Skip to content

Add mix-and-match development patterns recipe for tasking Claude#4

Merged
burtbyproxy merged 6 commits intomainfrom
copilot/add-development-patterns-documentation
Jan 23, 2026
Merged

Add mix-and-match development patterns recipe for tasking Claude#4
burtbyproxy merged 6 commits intomainfrom
copilot/add-development-patterns-documentation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 23, 2026

VibeScript enforces governance (what/where AI can modify) but lacks a system for defining coding style and practices (how AI writes code). Teams need consistent, reusable patterns for YAGNI, DRY, testing, documentation, etc. when tasking Claude.

Added Documentation

Core Pattern System (docs/development-patterns.md - 866 lines)

  • YAGNI, DRY, SOLID with strict/moderate/relaxed variants
  • Testing strategies (TDD, test-after, critical-path)
  • Error handling (fail-fast, graceful degradation, result types)
  • Documentation levels (full JSDoc, public APIs, self-documenting)
  • Code organization (domain-driven, layer-based, feature-based)
  • Pre-built bundles: "Strict & Safe", "Production Ready", "Move Fast", "Prototype/MVP"
  • Production-Focused Directives: Comprehensive guidance for VibeScript's 5 new directives (security, performance, dependencies, observability, breaking) with examples at each pattern level

Quick Start Guide (docs/tasking-claude.md - 415 lines)

  • Copy-paste task templates
  • Pattern selection decision trees
  • Troubleshooting matrix
  • Pattern anti-combinations
  • Integration notes for new production directives

Mad-Lib Template (.vibe/templates/claude-context.md.template - 230 lines)

  • Checkbox-style pattern selection
  • Project-specific rules, constraints, vocabulary
  • Architectural decisions tracking
  • Production directives section for security, performance, dependencies, observability, and breaking changes

Supporting Materials

  • Real-world e-commerce API example (docs/example-setup.md - 378 lines)
  • Print-friendly quick reference card (docs/patterns-quick-reference.md - 258 lines)

Total: 2,147 lines of comprehensive documentation

Usage Example

# .vibe/claude-context.md
Claude, use: Moderate YAGNI, Moderate DRY, TDD with 80% coverage,
JSDoc for public APIs, Fail-fast at boundaries, Atomic commits

Custom Rules:
- All DB queries use repository pattern
- API responses follow JSON:API spec
- No business logic in controllers

Then task Claude:

Claude, read .vibe/claude-context.md and implement user registration

or mix ad-hoc:

Claude, implement checkout flow using:
- Strict YAGNI (no speculation)
- High test coverage (80%+)
- Defense in depth security

Integration

  • Merged with latest main branch changes (VibeScript 1.1.0 with 13 directives)
  • Updated README.md with patterns section
  • Updated .vibe/claude.instructions.md to reference pattern files
  • All documentation updated to reflect 5 new production directives (security, performance, dependencies, observability, breaking)
  • Provides pattern-level guidance (strict/moderate/relaxed) for each new directive
  • 27+ cross-references between documentation files
  • Complements existing VibeScript governance without code changes
Original prompt

Okay give claude a recipe of approaches to use when tasking. Such as YAGNI, DRY, etc. Common every day development patterns that when assigning Claude to a VibeScript powered project you can essentially mix and match or madlib Claude's starting instructions to conform to your expecations (or Claude can define starting expectations for future instances of himself).


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits January 23, 2026 21:34
Co-authored-by: burtbyproxy <1827866+burtbyproxy@users.noreply.github.com>
Co-authored-by: burtbyproxy <1827866+burtbyproxy@users.noreply.github.com>
Co-authored-by: burtbyproxy <1827866+burtbyproxy@users.noreply.github.com>
Copilot AI changed the title [WIP] Add documentation for common development patterns Add mix-and-match development patterns recipe for tasking Claude Jan 23, 2026
Copilot AI requested a review from burtbyproxy January 23, 2026 21:40
@burtbyproxy burtbyproxy marked this pull request as ready for review January 23, 2026 22:51
@burtbyproxy
Copy link
Copy Markdown
Contributor

There were changes to the main branch, please review and be sure your docs and everything line up with all of that.

Copy link
Copy Markdown
Contributor

@burtbyproxy burtbyproxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were changes on the main branch since you did this work, please update to cover that.

Copilot AI and others added 2 commits January 23, 2026 22:54
… branch

Co-authored-by: burtbyproxy <1827866+burtbyproxy@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Jan 23, 2026

There were changes to the main branch, please review and be sure your docs and everything line up with all of that.

Updated all documentation to align with main branch changes. Added comprehensive coverage of the 5 new production directives (security, performance, dependencies, observability, breaking) with examples at each pattern level. See commit 0dbb4af.

There were changes on the main branch since you did this work, please update to cover that.

Merged main branch and updated all documentation files to cover the new directives. Added "Production-Focused Directives" section to development-patterns.md with examples showing how to apply patterns at strict/moderate/relaxed levels for all 5 new directives. See commit 0dbb4af.

Copilot AI requested a review from burtbyproxy January 23, 2026 22:57
@burtbyproxy burtbyproxy merged commit da16619 into main Jan 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants