cadre-devkit-claude
CLAUDE.md9 starsChanged 12 months agoMITView on GitHub
This plugin provides a comprehensive productivity and quality system for Claude Code. Before starting ANY non-trivial implementation, assess confidence across 5 criteria (0.0-1.0 scale): NEVER proceed with confidence <0.90 without explicit user approval. If confidence is below 0.90: 1. State current confidence score with breakdown 2. Identify weak areas (any criterion <0.80) 3. Ask specific questions OR conduct research 4. Recalculate after new information 5. Only proceed when ≥0.90 or user explicitly approves lower confidence Skip confidence check for: -…
- Reads credentials
- Deletes or force-pushes
In this repository10 other files it gives its agents.
- api-design-patternsSkill
- code-formatterSkill
- devkit-knowledgeSkill
- documentation-templatesSkill
- error-handlerSkill
- frontend-designSkill
- product-discoverySkill
- react-patternsSkill
- tailwind-conventionsSkill
- test-generatorSkill
The file
We split this CLAUDE.md into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Before starting ANY non-trivial implementation, assess confidence across 5 criteria (0.0-1.0 scale):
- Distinctive: line 33
If confidence is below 0.90:
- Distinctive: line 36
Ask specific questions OR conduct research
- Distinctive: line 38
Only proceed when ≥0.90 or user explicitly approves lower confidence
- Distinctive: line 49
After completing ANY non-trivial implementation, answer these 4 questions with evidence:
- Distinctive: line 61
Avoid "should work" or "typically..." language
- Distinctive: line 65
Avoid "probably works" or "should be fine"
- Distinctive: line 78
When user explicitly confirms completion
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cadre DevKit for Claude Code
This plugin provides a comprehensive productivity and quality system for Claude Code.
Features
Pre-Implementation Confidence Check
Before starting ANY non-trivial implementation, assess confidence across 5 criteria (0.0-1.0 scale):
Assessment Criteria
| Criterion | Weight | Key Questions |
| Requirements Clarity | 25% | Are requirements explicit? Acceptance criteria defined? Edge cases identified? |
| Technical Feasibility | 25% | Is approach verified? APIs available? Stack compatible? |
| Dependency Verification | 20% | Dependencies accessible? Versions compatible? Infrastructure ready? |
| Test Strategy | 15% | How will this be tested? Tools available? Test cases defined? |
| Risk Assessment | 15% | Failure modes known? Mitigation defined? Rollback possible? |
Decision Matrix
| Overall Score | Status | Action |
| ≥0.90 | GREEN | Proceed with implementation |
| 0.70-0.89 | YELLOW | Investigate alternatives, clarify ambiguity, document assumptions |
| <0.70 | RED | STOP - Ask clarifying questions, research unknowns, then re-assess |
Enforcement
NEVER proceed with confidence <0.90 without explicit user approval.
If confidence is below 0.90:
- State current confidence score with breakdown
- Identify weak areas (any criterion <0.80)
- Ask specific questions OR conduct research
- Recalculate after new information
- Only proceed when ≥0.90 or user explicitly approves lower confidence
When to Skip
Skip confidence check for:
- Simple edits (typos, formatting, comments)
- Direct user instructions with clear scope
- Tasks where requirements are already verified in conversation
Post-Implementation SelfCheck
After completing ANY non-trivial implementation, answer these 4 questions with evidence:
Q1: Are tests passing?
- Provide actual test output (not "tests pass" without proof)
- Show test command executed and pass/fail counts
Q2: Are all requirements met?
- Map each requirement to implementation (file:line references)
- Confirm nothing was missed or assumed
Q3: No unverified assumptions?
- External APIs/libraries verified with documentation
- Avoid "should work" or "typically..." language
Q4: Is there evidence?
- Include test results, validation output, or build success
- Avoid "probably works" or "should be fine"
Red Flags (Avoid)
- Claiming success without output
- "Everything works" without evidence
- Ignoring warnings or errors
- Speculation instead of verification
When to Skip
Skip SelfCheck for:
- Simple edits (typos, formatting, config)
- Exploratory/research tasks
- When user explicitly confirms completion
Red Flags (NEVER Use These)
These indicate hallucination - immediate failure:
- "Tests passing" without actual output shown
- "Everything works" without specific evidence
- Implementation complete with failing tests
- Skipped error messages or warnings
- "Probably works" or "should work" language
- "Likely..." or "typically..." speculation
- Claims without concrete proof
Detection Rate: 94% hallucination prevention
Components
Hooks
Security (PreToolUse)
- Dangerous Command Blocker: Prevents
rm -rf /,chmod 777, force push, etc. - Sensitive File Guard: Blocks access to
.env, credentials, SSH keys (allows .example files)
Automation (PostToolUse)
- Auto-Format: Runs Prettier/Black after Edit/Write operations
- Test-On-Change: Runs related tests after source file changes
Workflow Commands
/greenfield [idea]- Discover and specify a new project (creates SPEC.md, DESIGN.md, PLAN.md)/plan [--tdd] [feature]- Plan before implementing (--tdd for test-driven)/research [topic]- Deep research with parallel sub-agents/backlog [bug|enh|ux]- Document bugs/improvements without implementing/review- Qualitative code review/slop- Remove AI-generated code slop (over-comments, defensive overkill, any casts)/validate- Quantitative checks (types, lint, tests, build)/progress- Save research findings as knowledge docs/ship- Commit with proper formatting/learn [question]- Interactive help about Claude Code and the devkit
Skills
- devkit-knowledge - Architecture, commands, skills, hooks, workflows
- product-discovery - MVP scoping and requirements discovery
- api-design-patterns - REST/GraphQL best practices
- code-formatter - Style guidelines
- documentation-templates - README, API docs
- error-handler - Exception handling patterns
- test-generator - Jest/Pytest test creation
Agents
- code-reviewer - Code quality review
- debugger - Error analysis
- spec-discovery - Requirements clarification
- git-helper - Git workflows
- documentation-researcher - Latest docs lookup
References (Progressive Disclosure)
Load detailed content on-demand with @references/filename.md:
style-guide.md- Naming conventions, lint rulestesting-guide.md- Test frameworks, coverage guidelinesenvironment.md- Node, Python, Postgres setupcommands-reference.md- Common dev commands
Usage
Skills and agents auto-activate based on your prompts. Use workflow commands for the development lifecycle:
New Project:
/greenfield [your idea]
→ Creates SPEC.md, DESIGN.md, PLAN.md in docs/
/plan [first feature from spec]
[implement]
/review → /validate → /shipExisting Project:
/plan add user authentication
[implement feature]
/review
/validate
/shipDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

