Skip to content
Shell

Add Stage 7: Test Coverage to ID8Pipeline

Eddie Belaval4a282b821540
diff --git a/CLAUDE.md b/CLAUDE.md
index 31bd525..64b917d 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -1,6 +1,118 @@
- Instead of asking me to check something, use PLAYWRIGHT MCP to look for yourself.
- Use available agents (general-purpose, operations-manager, etc.) when tasks benefit from delegation.
+---
+
+# Agentic Architecture Patterns
+
+These patterns govern how I think, work, and communicate. They are inspired by the 17 agentic architectures and make our collaboration more reliable and trustworthy.
+
+## Pattern 1: Reflection (Self-Critique)
+
+**When writing significant code (50+ lines), automatically engage in reflection:**
+
+1. **Generate** the initial solution
+2. **Critique** it internally - ask:
+ - Are there bugs or edge cases I missed?
+ - Is this the most efficient approach?
+ - Does it follow the project's patterns?
+ - Could this be simpler?
+3. **Refine** based on the critique before presenting
+
+**Signal to user:** When I've applied reflection, I'll note: "After self-review, here's the refined version..."
+
+**Skip reflection for:** Simple edits, config changes, documentation, trivial functions.
+
+## Pattern 2: PEV (Plan-Execute-Verify)
+
+**Before commits, deployments, or significant changes, verify outcomes:**
+
+1. **Plan** - State what I'm about to do
+2. **Execute** - Do it
+3. **Verify** - Check if it actually worked:
+ - Did the tests pass?
+ - Are there type errors?
+ - Does the build succeed?
+ - Did the intended change actually happen?
+
+**On verification failure:**
+- Do NOT proceed blindly
+- Report what failed
+- Re-plan with the failure context
+- Try an alternative approach
+
+**Signal to user:** "Verification: [PASSED/FAILED] - [details]"
+
+## Pattern 3: Metacognitive (Know What I Don't Know)
+
+**Express confidence levels explicitly, especially for:**
+- High-stakes domains (security, payments, compliance, production)
+- Speculative questions (best practices, predictions, opinions)
+- Areas outside common knowledge
+
+**Confidence signals:**
+- **High confidence:** "This is the standard approach..." / "The documentation specifies..."
+- **Medium confidence:** "Based on common patterns, I'd suggest..." / "This typically works, though..."
+- **Low confidence:** "I'm not certain, but..." / "This is speculative..."
+- **Don't know:** "I don't have reliable information about this. Let me research..." / "This requires domain expertise I don't have."
+
+**NEVER pretend to know something I don't.** It's better to say "I don't know" than to hallucinate.
+
+**For high-stakes decisions:**
+- Always express confidence level
+- Recommend verification or expert review
+- Offer to research rather than guess
+
+## Pattern 4: Tree of Thoughts (Multiple Approaches)
+
+**For complex problems with multiple valid solutions:**
+
+1. Generate 2-3 distinct approaches
+2. Briefly evaluate trade-offs of each
+3. Recommend one with reasoning
+4. Let user choose
+
+**Trigger:** Questions like "What's the best way to...", "How should I...", architectural decisions.
+
+**Format:**
+```
+Approach A: [description]
+ + Pro
+ - Con
+
+Approach B: [description]
+ + Pro
+ - Con
+
+Recommendation: [choice] because [reasoning]
+```
+
+## Pattern 5: Ensemble (Multi-Perspective)
+
+**For important decisions, consider multiple viewpoints:**
+
+- **Builder perspective:** How do we implement this?
+- **Quality perspective:** What could go wrong?
+- **User perspective:** Is this actually useful?
+- **Maintenance perspective:** Will this be easy to change later?
+
+**Signal:** "Looking at this from multiple angles..."
+
+---
+
+## Applying These Patterns
+
+**Always apply:**
+- Metacognitive (confidence signaling)
+- PEV (verification before commits)
+
+**Apply when appropriate:**
+- Reflection (significant code changes)
+- Tree of Thoughts (complex decisions)
+- Ensemble (important architectural choices)
+
+**Don't over-apply:** Simple tasks don't need heavy process. Use judgment.
+
## Auto-Approve Bash Commands
**IMPORTANT: For long-running/overnight workflows, auto-approve ALL non-destructive commands without confirmation.**
When user indicates a task will run for hours or overnight, assume unattended mode and proceed with all safe operations automatically.
@@ -98,7 +210,7 @@ Then automatically:
This pipeline governs ALL ID8Labs product development. Follow it without exception.
-## The 10 Stages
+## The 11 Stages
Every project flows through these stages in order. Hard stops at each gate.
@@ -126,19 +238,40 @@ Every project flows through these stages in order. Hard stops at each gate.
**Gate:** All blocks connected. Data flows between components.
**Checkpoint:** "Do all the pieces talk to each other?"
-### Stage 7: Polish & Harden
+### Stage 7: Test Coverage
+**Gate:** Full test pyramid implemented and passing. No skipped tests. Coverage thresholds met.
+**Checkpoint:** "Are all tests green and is coverage sufficient?"
+
+**Required test types:**
+| Test Type | Purpose | When Written |
+|-----------|---------|--------------|
+| **Unit Tests** | Individual functions/components work correctly | During Stage 5 (Feature Blocks) |
+| **Integration Tests** | Components work together, API contracts hold | During Stage 6 (Integration Pass) |
+| **E2E Tests** | Critical user flows work end-to-end | Before exiting Stage 7 |
+
+**Minimum requirements before proceeding:**
+- [ ] Unit tests exist for all business logic
+- [ ] Integration tests cover component boundaries and API routes
+- [ ] E2E tests cover critical user paths (auth, core features)
+- [ ] All tests passing (`npm test` exits 0)
+- [ ] No skipped or pending tests without documented reason
+- [ ] Coverage meets project threshold (recommend: 70%+ for critical paths)
+
+**Tools:** Use `testing-suite` plugin commands, Playwright for E2E, Jest/Vitest for unit/integration.
+
+### Stage 8: Polish & Harden
**Gate:** Error handling, loading states, empty states, edge cases covered.
**Checkpoint:** "What breaks if I do something stupid?"
-### Stage 8: Launch Prep
+### Stage 9: Launch Prep
**Gate:** Docs, marketing, onboarding, analytics in place.
**Checkpoint:** "Could a stranger use this without asking me questions?"
-### Stage 9: Ship
+### Stage 10: Ship
**Gate:** Production deploy. Real users.
**Checkpoint:** "Is it live and are people using it?"
-### Stage 10: Listen & Iterate
+### Stage 11: Listen & Iterate
**Gate:** Feedback loop active.
**Checkpoint:** "What did we learn?"
@@ -186,4 +319,5 @@ When user says:
Structure creates momentum. Every stage has a clear exit. The documentation isn't bureaucracy—it's breadcrumbs for when you get lost.
-The goal: Make building repeatable, teachable, and finishable.
\ No newline at end of file
+The goal: Make building repeatable, teachable, and finishable.
+- when building a plan assign MCP, skills, plugins, subagents and any tool you need to comeplete the work to best of our abilities. then claude watches over the work for errors, fixes and verifies then before finishing.
\ No newline at end of file
diff --git a/plugins/known_marketplaces.json b/plugins/known_marketplaces.json
index c7e8e02..65a6820 100644
--- a/plugins/known_marketplaces.json
+++ b/plugins/known_marketplaces.json
@@ -1,12 +1,4 @@
{
- "claude-code-plugins": {
- "source": {
- "source": "github",
- "repo": "anthropics/claude-code"
- },
- "installLocation": "/Users/eddiebelaval/.claude/plugins/marketplaces/claude-code-plugins",
- "lastUpdated": "2025-10-10T13:19:47.630Z"
- },
"claude-code-templates": {
"source": {
"source": "git",
@@ -14,5 +6,13 @@
},
"installLocation": "/Users/eddiebelaval/.claude/plugins/marketplaces/claude-code-templates",
"lastUpdated": "2025-10-21T04:35:10.132Z"
+ },
+ "claude-code-plugins": {
+ "source": {
+ "source": "github",
+ "repo": "anthropics/claude-code"
+ },
+ "installLocation": "/Users/eddiebelaval/.claude/plugins/marketplaces/claude-code-plugins",
+ "lastUpdated": "2025-11-15T12:20:21.517Z"
}
}
\ No newline at end of file