agentleFS
benshapyrobenshapyro/cadre-devkit-claude/CLAUDE.md

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

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
  1. Distinctive:

    Before starting ANY non-trivial implementation, assess confidence across 5 criteria (0.0-1.0 scale):

    line 9
  2. Distinctive:

    If confidence is below 0.90:

    line 33
  3. Distinctive:

    Ask specific questions OR conduct research

    line 36
  4. Distinctive:

    Only proceed when ≥0.90 or user explicitly approves lower confidence

    line 38
  5. Distinctive:

    After completing ANY non-trivial implementation, answer these 4 questions with evidence:

    line 49
  6. Distinctive:

    Avoid "should work" or "typically..." language

    line 61
  7. Distinctive:

    Avoid "probably works" or "should be fine"

    line 65
  8. Distinctive:

    When user explicitly confirms completion

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 28,633 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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

CriterionWeightKey Questions
Requirements Clarity25%Are requirements explicit? Acceptance criteria defined? Edge cases identified?
Technical Feasibility25%Is approach verified? APIs available? Stack compatible?
Dependency Verification20%Dependencies accessible? Versions compatible? Infrastructure ready?
Test Strategy15%How will this be tested? Tools available? Test cases defined?
Risk Assessment15%Failure modes known? Mitigation defined? Rollback possible?

Decision Matrix

Overall ScoreStatusAction
≥0.90GREENProceed with implementation
0.70-0.89YELLOWInvestigate alternatives, clarify ambiguity, document assumptions
<0.70REDSTOP - 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:

  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

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:

  1. "Tests passing" without actual output shown
  2. "Everything works" without specific evidence
  3. Implementation complete with failing tests
  4. Skipped error messages or warnings
  5. "Probably works" or "should work" language
  6. "Likely..." or "typically..." speculation
  7. 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 rules
  • testing-guide.md - Test frameworks, coverage guidelines
  • environment.md - Node, Python, Postgres setup
  • commands-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 → /ship

Existing Project:

/plan add user authentication
[implement feature]
/review
/validate
/ship

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.