Enforce TDD discipline across your software development workflow: write failing tests first (RED phase), then implement minimal code to pass them (GREEN), validate with full test suites and linting, and optionally refactor or strip unneeded code. Also create Architecture Decision Records (ADRs) with Y-statements and generate C4/Mermaid system diagrams.
Write minimal implementation to make failing tests pass. Use this agent when the craft skill dispatches an implementation task from a yak with agent-type 'agent-impl'. The agent writes implementation ONLY — never modifies test files. Applies a YAGNI simplification pass after tests pass. Reports GREEN gate status.
Execute non-TDD phase tasks like schema migrations, infrastructure setup, or configuration. Use this agent when the craft skill dispatches a task from a yak with agent-type 'no-test'. The agent executes the task as described and verifies the acceptance gate.
Fix implementation after validation finds failures. Use this agent when the craft skill creates a remediation yak with agent-type 'agent-remediate'. The agent fixes implementation code ONLY — never modifies test files. Receives failure output from the validation agent. Escalates to user after 2 failed attempts.
Write failing tests for a TDD phase. Use this agent when the craft skill dispatches a test-writing task from a yak with agent-type 'agent-test'. The agent writes tests ONLY — never implementation code. It receives a self-contained task context with file paths, test spec, and test command. Reports RED gate FAIL if tests pass immediately.
Run the full test suite and report results without modifying any files. Use this agent when the craft skill dispatches a validation task from a yak with agent-type 'agent-validate'. The agent runs tests, type-checks, and linting — all must exit 0 for the VALIDATE gate to pass. Reports only, never fixes.
Guides writing minimal Architecture Decision Records (ADRs). Use when recording architectural decisions, documenting design choices, capturing technical decisions with context and alternatives, or when user mentions ADR, architecture decision, or decision record.
Implement phase of RPI methodology. Executes a task-graph-driven implementation using isolated agents with strict RED/GREEN/VALIDATE gate enforcement. Use when executing an implementation plan from the draft skill.
Creates architecture diagrams using LikeC4 (structural C4, dynamic flows) or Mermaid (data flow diagrams). Use when creating C4 diagrams, architecture diagrams, sequence diagrams, data flow diagrams, or any system visualization.
Draft phase of RPI methodology. Consumes research artifact or topic and produces compact implementation plan with test specs and Agent Context blocks. Activates naturally inside plan mode for non-trivial work, or invoke explicitly with /draft. Use after research or to start planning a non-trivial feature.
Architectural guidance for hexagonal (ports and adapters) patterns. Does not generate files — use scaffold for project generation. Use when designing application structure, separating domain from infrastructure, creating testable boundaries, or when user mentions ports, adapters, hexagonal, or clean architecture.
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A Claude Code plugin providing skills for software development best practices.
/plugin marketplace add agentpatterns/craft
/plugin install crafter
After installation, skills are available as crafter:skill-name and activate automatically when relevant to your task.
git clone https://github.com/agentpatterns/craft
/plugin marketplace add /path/to/craft
/plugin install crafter@craft
/plugin marketplace update craft
The crafter plugin provides skills for software development, architecture, and diagramming:
| Skill | Command | Description |
|---|---|---|
| tdd | /tdd | Boundary-focused TDD workflow enforcing L3/L4 altitude testing and property-based tests |
| research | /research | Spawns parallel subagents to explore a codebase and produce a compact research artifact |
| draft | /draft | Consumes research artifact and produces a compact implementation plan with L3/L4 test specs |
| craft | /craft | Executes an implementation plan phase by phase with strict test-first discipline |
| refactor | /refactor | Refactoring process with test safety and incremental commits |
| pair | /pair | Guided pair-programming mode where Claude teaches rather than writes code |
| tidy | /tidy | Audit agent-facing documentation (CLAUDE.md, READMEs) for staleness and recommend fixes |
| reflect | /reflect | Post-session reflection that mines git history and artifacts to produce improvement proposals |
| diagram | /diagram | Creates architecture diagrams (C4 structural, dynamic flows, data flow) with subtype dispatch |
| scaffold | /scaffold | Scaffolds DDD projects from Gherkin feature files with language subtype dispatch |
| hexagonal-architecture | /hexagonal-architecture | Applies hexagonal (ports & adapters) architecture with domain-first design |
| adr | /adr | Guides writing minimal Architecture Decision Records |
The crafter plugin's core workflow for non-trivial features:
/research) — Explore the codebase with parallel subagents, output a compact research artifact/draft) — Consume the research artifact, produce a compact implementation plan with test specs/craft) — Execute the plan phase by phase with strict RED → GREEN → REFACTOR disciplineSkills are validated by a three-layer pipeline. See tests/README.md for full methodology.
Layer 1 — Deterministic (local): Validates skill structure, frontmatter, triggers, and scenario schemas. No API calls.
bash tests/local/validate-skills.sh
Layer 2 — Promptfoo evals: Functional and behavioral evaluation using real Claude API calls. See tests/evals/README.md for setup and cost.
cd tests/evals && promptfoo eval
Layer 3 — Human review: Manual review for subjective quality and calibrating LLM-judge rubrics.
See AGENTS.md for skill authoring guidelines, testing workflows, and the pre-ship checklist.
See docs/architecture.md for project structure and key concepts.
npx claudepluginhub agentpatterns/craft --plugin crafterHarness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Feature development with code-architect/explorer/reviewer agents, CLAUDE.md audit and session learnings, and Agent Skills creation with eval benchmarking from Anthropic.
Reliable automation, in-depth debugging, and performance analysis in Chrome using Chrome DevTools and Puppeteer
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques
Access thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.