Prompt-based workflow system for Claude Code - Not executable code, but structured prompts that teach Claude how to deliver features end-to-end.
If your project fits in one Claude session, you don't need this.
Built for developers who use Claude Code on real projects and need:
- Consistent delivery: A 6-step pipeline from review to PR, every time
- Persistent memory: Context that survives across sessions and refactoring
- Tracked decisions: Architecture choices linked to actual code
- Quality gates: Automated checks before every PR
- Structured prompts (skills) that Claude Code loads into context
- Workflow templates that guide Claude through a 6-step delivery process
- Memory schemas that define how to store/retrieve context efficiently
- Best practices documentation for black-box architecture
- Executable code or a CLI tool
- A plugin that adds new commands to Claude Code
- An autonomous agent that runs independently
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YOU: "Use the workflow skill to add authentication" β
β β β
β CLAUDE CODE: Loads skills/workflow.md into context β
β β β
β CLAUDE: Follows the 6-step protocol defined in the skill β
β β β
β RESULT: Structured delivery with memory and traceability β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Requirement | Version | Notes |
|---|---|---|
| Claude Code | Latest | CLI tool from Anthropic |
| Git | 2.0+ | For commit tracking |
| Node.js | 18+ | Optional: for validation scripts |
# Install globally
npm install -g claude-e2e-workflow
# Or in your project
npm install claude-e2e-workflowAfter installation, copy skills to your Claude Code directory manually or use the git method below.
# Clone
git clone https://github.com/gl0bal01/claude-e2e-workflow.git
cd claude-e2e-workflow
# Run installer
./scripts/install.sh
# Or with options
./scripts/install.sh --help # Show usage
./scripts/install.sh --dry-run # Preview changes
./scripts/install.sh --verbose # Detailed output# Clone
git clone https://github.com/gl0bal01/claude-e2e-workflow.git
cd claude-e2e-workflow
# Run installer
.\scripts\install.ps1
# Or with options
.\scripts\install.ps1 -Help # Show usage
.\scripts\install.ps1 -DryRun # Preview changes
.\scripts\install.ps1 -Verbose # Detailed output# Copy skills and commands to Claude's directory
# Linux/macOS: ~/.claude/
# Windows: %USERPROFILE%\.claude\
cp -r skills/* ~/.claude/skills/
cp -r commands/* ~/.claude/commands/# Linux / macOS
./scripts/verify.sh
# Windows (PowerShell)
.\scripts\verify.ps1You: I want to add user authentication. Use the e2e workflow skill.
Claude: I'll follow the 6-step E2E workflow:
Step 1: Review - Let me analyze your codebase...
[continues through all 6 steps]
See QUICKSTART.md for detailed guide.
Install directly from the Claude Code plugin marketplace:
# Add from marketplace
claude plugin marketplace add gl0bal01/claude-e2e-workflow
# Or install from local directory
claude plugin install ./path/to/claude-e2e-workflow
# Enable the plugin
claude plugin enable claude-e2e-workflow.claude-plugin/
βββ marketplace.json # Plugin metadata for marketplace discovery
skills/
βββ claude-e2e-workflow/
βββ skill.json # Skill registry with variants
βββ memory.md # Memory management skill
βββ retrieve.md # Context retrieval skill
βββ refactor.md # Black-box refactoring skill
βββ plan.md # Architecture planning skill
βββ debug.md # Debugging skill
βββ security.md # Security audit skill
| Skill | Description | Tokens |
|---|---|---|
memory |
Create, verify, repair anchors. Manage decisions, tasks, patterns. | 1800 |
retrieve |
Load context by task/module/symbol/tags. Token-efficient. | 1500 |
refactor |
Analyze and refactor into black-box components. | 750 |
plan |
Design strategic architecture with module boundaries. | 1140 |
debug |
Systematic debugging with boundary analysis. | 1450 |
security |
OWASP Top 10, secrets detection, auth patterns. | 2100 |
See docs/PLUGIN-MARKETPLACE.md for full plugin documentation.
ββββββββββ ββββββββββ ββββββββββ ββββββββββ ββββββββββ ββββββββββ
β REVIEW β β β PLAN β β β PATCH β β β VERIFY β β β PR β β β MEMORY β
β read β β design β β impl β β gates β β summaryβ β save β
ββββββββββ ββββββββββ ββββββββββ ββββββββββ ββββββββββ ββββββββββ
β β β β β β
β [approval] β [on fail] β β
β β β fix β β
ββββββββββββββ΄βββββββββββββ΄βββββββββββββββββββββββββ΄βββββββββββββ
β
ββββββββββββΌβββββββββββ
β MEMORY LAYER β
β anchors β tasks β
β decisions β patternsβ
βββββββββββββββββββββββ
| Step | Purpose | Output |
|---|---|---|
| Review | Understand codebase without changes | Architecture report with file:line |
| Plan | Design black-box modules | Migration plan (requires approval) |
| Patch | Implement one module at a time | Commits with anchors |
| Verify | Run quality gates | Pass/fail report |
| PR | Human-readable summary | PR description |
| Memory | Save context for next session | Updated memory files |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CLAUDE CODE β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β SKILLS LAYER β β
β β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β β
β β β memory β β retrieve β β refactor β β plan β β debug β β β
β β β 1800 tok β β 1500 tok β β 750 tok β β 1140 tok β β 1450 tok β β β
β β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β β
β β ββββββββββββ β β
β β β security β β OWASP Top 10, secrets detection, auth patterns β β
β β β 2100 tok β β β
β β ββββββββββββ β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β AGENTS LAYER β β
β β βββββββββββββββββββ β β
β β β workflow β βββ orchestrates ββββββββββββββββββββββββ β β
β β β orchestrator β β β β
β β βββββββββββββββββββ βΌ β β
β β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β β
β β β reviewer β β planner β βimplement β β verifier β β debugger β β β
β β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YOUR PROJECT β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β .claude/memory/ β β
β β anchors.jsonl β Code references with drift protection β β
β β decisions.jsonl β Architecture Decision Records (ADR) β β
β β tasks.jsonl β Task tracking with dependencies β β
β β patterns.jsonl β Learned codebase conventions β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β CLAUDE.md β Project-specific configuration (source of truth) β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Anchors are drift-resistant code references that survive refactoring.
{
"anchor_id": "anc_a1b2c3d4",
"commit": "abc123def",
"path": "src/auth/service.ts",
"start_line": 45,
"end_line": 92,
"symbol": "AuthService.login",
"symbol_type": "method",
"snippet_hash": "sha256:8f14e45f...",
"context_hash": "sha256:2c26b46b...",
"summary": "Validates credentials and creates JWT token",
"tags": ["auth", "critical-path", "jwt"],
"status": "valid",
"created_at": "2025-01-15T10:30:00Z",
"last_verified": "2025-01-15T10:30:00Z"
}When code moves, anchors find it:
| Strategy | How It Works | Reliability |
|---|---|---|
| Line number | Direct lookup | Fast but fragile |
| Symbol lookup | Find by function/class name | High |
| Snippet hash | Match exact content | Exact |
| Context hash | Match surrounding lines | Fuzzy |
| Git blame | Track code movement | Historical |
All memory files are validated against JSON Schemas with built-in secret detection:
# Validate all memory files (includes secret scanning)
node scripts/validate-memory.js .claude/memory/
# Validate single file
node scripts/validate-memory.js .claude/memory/anchors.jsonl
# Skip secret detection
node scripts/validate-memory.js .claude/memory/ --no-secretsKeep versions synchronized across all config files:
# Check version consistency
npm run version:check
# Sync all versions to match package.json
npm run version:syncClaude has limited context. We optimize for it:
| Context Type | Tokens | Priority | When Loaded |
|---|---|---|---|
| Active task | 500 | Critical | Always |
| Current module interface | 300 | Critical | Always |
| Related interfaces | 200 | High | On demand |
| Recent decisions | 200 | Medium | When relevant |
| Hot paths | 100 | High | Always |
| Work buffer | 1700 | - | Reserved |
| Total budget | 3000 | - | - |
Note: These values are tuned for Claude Opus. Adjust for other models.
| Gate | Tool | Blocking | Purpose |
|---|---|---|---|
lint |
ESLint/Ruff/etc | Yes | Code style |
typecheck |
tsc/mypy/etc | Yes | Type safety |
unit_tests |
Jest/pytest/etc | Yes | Component tests |
contract_tests |
Custom | Yes | Interface compliance |
boundary_check |
Custom | Yes | No forbidden imports |
e2e_smoke |
Playwright/etc | No | Critical path |
security_scan |
npm audit/etc | No | Vulnerabilities |
claude-e2e-workflow/
βββ .claude-plugin/ # Plugin marketplace configuration
β βββ marketplace.json # Plugin metadata for discovery
β
βββ agents/ # Agent definitions
β βββ workflow-orchestrator.md # Main coordinator
β βββ arch-reviewer.md # Read-only analysis
β βββ arch-planner.md # Architecture design
β βββ arch-implementer.md # Code changes
β βββ arch-verifier.md # Quality gates
β βββ arch-debugger.md # Bug isolation
β βββ agent.json # Agent registry
β
βββ skills/ # Skill definitions
β βββ claude-e2e-workflow/ # Plugin-compatible skill package
β βββ skill.json # Skill registry with variants
β βββ memory.md # Memory operations
β βββ retrieve.md # Context loading
β βββ refactor.md # Black-box refactoring
β βββ plan.md # Architecture planning
β βββ debug.md # Debugging
β βββ security.md # Security audit
β βββ SKILL.md # Skill documentation
β
βββ commands/ # Command templates
β βββ workflow.md
β βββ review.md
β βββ memory.md
β βββ arch-*.md
β
βββ schemas/ # JSON Schemas for validation
β βββ anchor.schema.json
β βββ decision.schema.json
β βββ task.schema.json
β βββ pattern.schema.json
β
βββ scripts/ # Utility scripts
β βββ install.sh # Installation
β βββ verify.sh # Verification
β βββ validate-memory.js # Schema + secret validation
β βββ sync-version.js # Version consistency
β
βββ examples/ # Working examples
β βββ todo-app/
β βββ before/ # Messy code
β βββ after/ # Black-box version
β βββ README.md # Walkthrough
β
βββ templates/
β βββ CLAUDE.md # Project template
β
βββ docs/
β βββ E2E-WORKFLOW.md # Full documentation
β βββ QUICKSTART.md # 5-minute guide
β βββ ARCHITECTURE.md # Design decisions
β βββ PLUGIN-MARKETPLACE.md # Plugin installation guide
β βββ QUALITY-GATES.md # Pass/fail criteria
β βββ DRIFT-DETECTION.md # Anchor repair strategies
β βββ AGENT-EXAMPLES.md # Input/output examples
β βββ DEPENDENCIES.md # Dependency audit
β βββ CONFIGURATION.md # Hardcoded values reference
β βββ PUBLISHING.md # npm publishing guide
β
βββ tests/ # Validation tests
β βββ schemas.test.js
β
βββ .github/
β βββ ISSUE_TEMPLATE/
β β βββ bug_report.md
β β βββ feature_request.md
β βββ PULL_REQUEST_TEMPLATE.md
β
βββ README.md # This file
βββ CONTRIBUTING.md # How to contribute
βββ CHANGELOG.md # Version history
βββ SECURITY.md # Security policy
βββ CODE_OF_CONDUCT.md # Community standards
βββ LICENSE # MIT
See examples/todo-app/ for a complete before/after transformation.
// One file does everything
class TodoApp {
db: any;
mailer: any;
async createTodo(data: any) {
// validation mixed with business logic
// direct DB calls
// email sending inline
// no error handling
}
}// Clean separation
interface ITodoService {
create(data: CreateTodoDTO): Promise<Result<Todo, TodoError>>;
}
class TodoService implements ITodoService {
constructor(
private repo: ITodoRepository,
private events: IEventBus
) {}
async create(data: CreateTodoDTO): Promise<Result<Todo, TodoError>> {
// Single responsibility
// Dependency injection
// Typed errors
// Testable
}
}We welcome contributions! See CONTRIBUTING.md for:
- How to report bugs
- How to suggest features
- Code style guidelines
- Pull request process
See CHANGELOG.md for version history.
Current version: 1.0.0
See SECURITY.md for:
- Supported versions
- How to report vulnerabilities
- Security best practices
MIT - See LICENSE
- Black Box Architecture - Foundation principles
- Eskil Steenberg - Original black-box concepts
- Claude Code - The AI assistant this is built for