Not yet reviewed by 20X · No signed release verified
- Works with (as stated by the author)
- Claude Code
Review details
- Human review
- Not yet reviewed by 20X
- Limited checks
- No check recorded for these files
- Source
- Source not verified
A verified signature checks published file bytes against a trusted publisher’s signed manifest. It does not verify safety, authorship, rights or assistant use.
Declarations and limited checks do not guarantee safety or sharing rights. Review the files before use. Access that the author has not stated is unknown.
How to use it
- 1Save the file as ~/.claude/CLAUDE.md to apply it to every project (or as CLAUDE.md in one project).
- 2Remove or adapt references to skills and agents you don't have installed.
- 3Start a new Claude Code session; the file is read automatically.
Community results
0 reportsNo one has shared a result yet.
1 file. Filenames and raw files are in Technical details.
Development Guidelines for Claude
About this file: v3 architecture generation from the current 4.9.0 package. Core principles live here; detailed patterns load on demand via skills.
Architecture:
- CLAUDE.md (this file): Core philosophy + quick reference (~160 lines, always loaded)
- Skills: Detailed patterns loaded on-demand (specification, ubiquitous-language, planning, story-splitting, stack-pull-requests, acceptance-review, debugging, ci-debugging, tdd, testing, mutation-testing, test-design-reviewer, typescript-strict, functional, refactoring, reduce-system-complexity, expectations, front-end-testing, react-testing, react-performance, xstate, render-code-shape, hexagonal-architecture, domain-driven-design, event-sourcing, twelve-factor, api-design, secure-oauth-oidc, bff-design, bff-entry-points, cli-design, codebase-design, improve-codebase-architecture, structure-codebase, evaluate-existing-solutions, finding-seams, characterisation-tests, production-parity-skill-builder, storyboard, teach-me, diagrams, technical-writing, find-skills, find-gaps, double-check, graph-engineering, review)
- External skills: Loaded on-demand from community repos (impeccable + 17 steering commands from pbakaus/impeccable, web quality and clarity from Addy Osmani, simple-english from AminBlg/SimpleEnglish, Next.js and React skills from Vercel, grill-me and writing-for-agents from mattpocock/skills, skill-creator from anthropics/skills, seo-audit from coreyhaines31/marketingskills, skill-doctor from warpdotdev/common-skills)
- Agents: Specialized subprocesses for verification and analysis
Previous versions:
- v2.0.0: Modular with @docs/ imports (~3000+ lines always loaded)
- v1.0.0: Single monolithic file (1,818 lines)
Core Philosophy
TEST-DRIVEN DEVELOPMENT IS NON-NEGOTIABLE FOR NEW OR CHANGED BEHAVIOR. Every production behavior change must be written in response to a failing behavior test. Pure behavior-preserving refactoring and mechanism reduction begin from passing preservation evidence and remain behaviorally green. Use mutation evidence where meaningful; for unreachable, configuration, contract, integration, or operational changes, record proportionate alternate evidence and N/A instead of fabricating RED or structural mutants.
I follow Test-Driven Development (TDD) with a strong emphasis on behavior-driven testing and functional programming principles. All work should be done in small, incremental changes that maintain a working state throughout development.
For mutation-testing cadence, a phase of work means one PR review boundary. Normally that is one PR-sized, independently mergeable slice; in a cross-slice stack it is one whole-slice member, and in an intra-slice stack it is one focused dependent layer. It does not mean a multi-PR feature/stack as a whole or the numbered lifecycle phases in README.md.
Quick Reference
Key Principles:
- Write behavior tests first for new or changed behavior (TDD)
- Test behavior, not implementation
- No unexplained
any; contain unavoidable interop and justify assertions - Prefer immutable values and pure logic; isolate necessary mutation and effects
- Cohesive functions behind stable module contracts
- TypeScript strict mode always
- Reuse an existing production schema when it adds test evidence; do not redefine the same contract
Preferred Tools:
- Language: TypeScript (strict mode)
- Testing: Follow the repository harness; prefer real-browser evidence when the claim depends on browser behaviour and the cost is justified
- State Management: Prefer immutable patterns
Testing Principles
Core principle: Test behavior, not implementation. Cover changed and high-risk behavior proportionately; a coverage percentage is not proof.
Quick reference:
- Write behavior tests first for new or changed behavior (TDD non-negotiable)
- Test through the subject's public interface at the layer the claim names (an HTTP endpoint is the wrong interface for a browser claim)
- Use factories for repeated or nested test data; isolated lifecycle hooks and clear one-off values are valid
- Tests must document expected business behavior
- Organize tests around behavior and repository ownership, not a universal file-count rule
For detailed testing patterns and examples, load the testing skill.
For verifying test effectiveness through mutation analysis, load the mutation-testing skill at the end-of-phase PR-readiness gate; use its mutator rules earlier for cheap test-design guidance without running the automated harness.
TypeScript Guidelines
Core principle: Strict mode always. Schema-first at trust boundaries, types for internal logic.
Quick reference:
- No unexplained
any; useunknownat untrusted boundaries and contain unavoidable interop - No type assertions without justification
- Follow repository convention for
type/interface, then language semantics - Define schemas at runtime trust boundaries and derive types from them
- Use plain types, smart constructors, or domain values for trusted internal logic
For detailed TypeScript patterns and rationale, load the typescript-strict skill.
For API and interface design patterns, load the api-design skill.
For OAuth 2.0 or OpenID Connect design, implementation, review, testing, incident analysis, or migration, load the secure-oauth-oidc skill.
Code Style
Core principle: Prefer immutable data and pure logic where they make behavior easier to reason about; keep necessary effects explicit.
Quick reference:
- Prefer immutable values; contain mutation where a boundary, library, or measured performance need requires it
- Pure functions wherever possible
- Use early returns or composition when they make branching clearer
- Use comments for non-obvious why, constraints, and safety context
- Use an options object when positional parameters are ambiguous or unstable
- Choose array methods or loops by clarity, control flow, and measured needs
- Compose small private functions behind cohesive, stable module contracts; do not equate one helper with one public module
For detailed patterns and examples, load the functional skill.
Development Workflow
Core principle: Use fast RED-GREEN-REFACTOR increments for changed behavior. Run mutation testing or review alternate evidence once at the end-of-phase PR-readiness gate, after implementation and refactoring are complete.
Quick reference:
- RED: Write a failing behavior test before new or changed behavior
- GREEN: Write MINIMUM code to pass test
- REFACTOR OR REDUCE: Assess applicable improvements while ordinary behavior tests stay green
- REPEAT: Continue the inner cycle without running the automated mutation harness after each increment, refactor, or commit
- PRE-PR MUTATION GATE: When the phase is otherwise ready for a PR, run mutation testing once for the accumulated scope where meaningful; otherwise record
N/Aplus proportionate reachability, configuration, contract, integration, or operational evidence - KILL MUTANTS: During that gate, address valuable survivors and re-run focused/diff mutation checks as part of the same gate (ask the human when value is ambiguous)
- Wait for commit approval before every commit
- Each increment leaves codebase in working state
For detailed TDD workflow, load the
tddskill. For a behavior-changing planned slice, loadtdd,testing, and applicable refactoring guidance before code changes begin. Use themutation-testingskill's mutator rules for cheap test-design guidance, but do not run its harness until the end-of-phase PR-readiness gate. For a pure behavior-preserving refactor/reduction, load only the applicable testing, refactoring, and reduction skills during implementation, then apply mutation testing or alternate evidence at the same PR gate; loadreduce-system-complexitywhen net mechanism removal is claimed, and record why any other skill isN/A. Do not load the full RED workflow merely to assert implementation shape. For refactoring methodology, load therefactoringskill. For removing total branches, states, dependencies, layers, flags, retries, jobs, or operational moving parts from a selected existing path while conserving behavior, load thereduce-system-complexityskill. Pure reductions use the verified REFACTOR path, not a fabricated structural RED test. For fuzzy product/design decisions, loadgrill-mewhen installed; otherwise use the host's one-question mechanism orspecificationto pressure-test the decision tree before writing stories or plans. For turning fuzzy intent into shared understanding and acceptance criteria — agent-facilitated draft followed by accountable, risk-proportionate human review — load thespecificationskill. For naming domain concepts, glossary work, or any new/changed domain term — the five-step language protocol, never silent coinage — load theubiquitous-languageskill. For broad stories, epics, features, or backlog items, loadstory-splittingto create child stories before planning. For tightening an existing story, plan, acceptance criteria set, or mock spec, loadfind-gapsto write confirmed answers back into the artifact. For significant implementation work, loadplanningto turn one selected child story or narrow capability into the repository's declared planning workflow and location; useplans/only as the documented fallback. When one planned vertical slice may be too large for review, or later slices should start on the same evolving baseline before lower PRs merge, loadstack-pull-requestswithplanningto choose independent PRs or an explicit hard-/flow-lineage stack without turning technical layers into stories or slices. For CI failure diagnosis, load theci-debuggingskill. For local or runtime failure diagnosis, loaddebuggingto preserve evidence, localize one causal hypothesis at a time, and fix the earliest shared owning boundary when a fix is requested. For a read-only decision on whether finished implementation satisfies an authoritative requirement, loadacceptance-reviewand report every criterion plus its evidence and exact verdict. For hexagonal architecture projects, load thehexagonal-architectureskill. For Domain-Driven Design projects, load thedomain-driven-designskill. For event-sourced systems or bounded contexts (events as the source of truth, the Decider write model, event stores, projections and read models, event versioning, snapshots), load theevent-sourcingskill. For 12-factor service projects, load thetwelve-factorskill. For production observability (wide events, OpenTelemetry, SLOs/alerting, telemetry testing), load theobservabilityskill. For CLI tool design (stream separation, format flags, exit codes, composability), load thecli-designskill. For the backend-for-frontend pattern itself — whether to adopt a BFF, how many, what each may own, upstream aggregation and partial failure, and mediating user identity toward upstream services — load thebff-designskill. For browser-facing BFF or backend HTTP entry points — public/protected access classification, authentication middleware, session cookies, CSRF/Origin policy, protected SSE/WebSocket registration, and endpoint-protection enforcement — load thebff-entry-pointsskill. For designing a selected module's coherent responsibility, full caller-facing contract, information hiding, depth, leverage, and justified seams, load thecodebase-designskill. For a read-only render of how code composes — entry points, module boundaries, the types crossing them, signatures, and a cited call graph per wiring, with[NEW]marking work not yet built — load therender-code-shapeskill. Use it to understand an unfamiliar path or to pseudocode a change before implementing it; it never authorizes the edit. For finding and ranking evidence-backed architecture improvements across a repository or subsystem — with a self-contained visual HTML report — load theimprove-codebase-architectureskill. For designing or auditing source trees, frontend route/feature/state/design-system ownership, package boundaries, visible hexagonal layouts, feature folders, BFF route organization, composition roots, or folder migrations, load thestructure-codebaseskill. For front-end flow logic, load thexstateskill — and load it before reaching foruseState, not only when a file already imports xstate. Two tests decide ownership, never how the value renders: an external answer changed it (request, response, error, retry, timeout, cancellation, stream message, anything sent to a BFF), or the interaction has an interruptible middle (a drag holding pointer capture, a closing animation, a gesture binding document listeners). A disabled button or spinner is the presentation of temporal state. State stays in React only when both tests come back empty — one event sets it completely, nothing to interrupt or dispose. Asubmitting/isLoadingflag, a promise chain setting state in sequence, a double-submit guard, an error cleared before a retry, auseEffectneeding an ignore flag, or a timer something must clear is a hand-rolled statechart; if an actor already owns that lifecycle, the state belongs in it. Check the repository's own conventions for which layer owns machines before creating one, and ask rather than guess on a genuine tie. For React or Next.js performance work, load thereact-performanceskill: baseline the symptom, attribute the cost with evidence, apply one rule at a time from the pinnedvercel-react-best-practicescatalogue, then re-measure. Behavior tests stay unchanged and green; immutability and typing rules are not traded for speed, and unmeasured optimizations are reverted rather than kept. Before introducing a material generic mechanism or durable new dependency, loadevaluate-existing-solutionsproportionately: run a lightweight local/platform preflight before bespoke generic machinery; run due diligence without reopening alternatives for a named but newly introduced dependency; use the full comparison for consequential unresolved choices. Do not turn this into a search tax for domain-specific logic, small glue, routine use of an already-adopted tool, or ordinary fixes and refactors. For environment parity issues (works locally but not in production/staging, config or auth drift), load theproduction-parity-skill-builderskill. For making untestable code testable, load thefinding-seamsskill. For documenting existing behavior before changes, load thecharacterisation-testsskill. For multi-surface design audits before code (embed every mock in a scope on one reviewable page with flow diagram + gap cards + per-mock audit checklists), load thestoryboardskill. For structured learning of any topic (interactive tutoring, courses, quizzes, reviewable HTML lessons), use/teach-me [topic]. For developer-facing prose — READMEs, guides, tutorials, reference docs, proposals, release notes — load thetechnical-writingskill (reader-first structure, falsifiable claims, agent-readable reference shape). For reader-facing prose that needs sentence-level co-writing, rewriting, review, or diagnostics because it feels generic, hollow, or AI-shaped, loadclaritywhen installed.technical-writingowns the document's reader job, structure, and verifiable claims;clarityowns substance, voice, and sentences. For technical prose requested in plain English, layman's terms, ASD-STE100, or a form suitable for non-native readers or translation, loadsimple-englishwhen installed. Use its Plain mode by default and its Strict mode only when the user names STE or compliance; leave marketing and brand voice toclarity. For documents an agent consumes rather than a human — a SKILL.md,CLAUDE.md/AGENTS.md, or a doc reached by a pointer — loadwriting-for-agentswhen installed: context pointers and trigger wording, the context/cognitive load split, the information hierarchy and progressive disclosure, and completion criteria that resist premature completion. Route by audience, not by file type:technical-writingowns human-facing prose,writing-for-agentsowns agent-facing instruction. For authoring, restructuring, evaluating, or benchmarking a skill itself — drafting from scratch, running evals over test prompts, or tuning a description for trigger accuracy — loadskill-creatorwhen installed. Usewriting-for-agentsfor how the words should read andskill-creatorfor the authoring and measurement loop around them. For grading installed skills against recent local agent conversations, loadskill-doctorwhen installed. It owns retrospective scoring and evidence-backed improvement proposals; useskill-creatorfor authoring and controlled prompt evals. For discovering and installing agent skills from the open ecosystem (npx skills), load thefind-skillsskill. For adversarial review of plans, acceptance criteria, stories, or design mocks — one question at a time, turning each answer into a new AC / plan paragraph / mock-state spec written back to the source of truth — load thefind-gapsskill. For relentless decision-tree interrogation before story splitting, planning, or implementation, loadgrill-mewhen installed; otherwise usespecificationor the host's one-question mechanism. For a rigorous second opinion on finished work, loaddouble-check. It selects an available reviewer dynamically, prefers a different provider when possible, labels a same-provider fresh-context fallback honestly, and bounds unresolved disagreement rather than requiring artificial consensus. For composing several installed skills into one orchestrated multi-agent run — an agent graph where each sub-agent node loads exactly one skill, with fan-out, adversarial verification, and synthesis stages — load thegraph-engineeringskill. For reviewing any change boundary — uncommitted work-in-progress, a branch, a stacked layer, a diff, or a pull request — through composable skill lenses (/panel-review, one sub-agent per lens, verified findings, one ranked report), or for the PR-readiness evidence gate before creating a PR, load thepanel-reviewskill.
Project onboarding: Run /setup only when the user asks to onboard or
configure a project and authorizes the generated project files. Ordinary
read-only or narrowly scoped work does not trigger setup.
Project-level hooks: When the repository supports hooks and the user authorizes project configuration, consider a PostToolUse typecheck/format hook using the repository's existing toolchain. /setup may generate one only within that explicit onboarding scope; the curl installer does not install settings.json.
Output Guardrails
- Honor the requested artifact boundary — Persist a plan or document only when the user asks for a file or the repository declares that durable owner. Otherwise answer in chat without creating a new source of truth.
- Plan-only mode — When asked for a plan, design, or document only, produce ONLY that artifact. Do not write production code, test code, or make any implementation changes unless explicitly asked.
- Incremental output — When exploring a codebase, produce a first draft of output within 3-4 tool calls. Refine iteratively rather than front-loading all exploration before producing anything.
Working with Claude
Core principle: Think deeply, follow TDD strictly, capture learnings while context is fresh.
Quick reference:
- ALWAYS FOLLOW TDD for behavior change; keep pure refactors/reductions behaviorally green from passing, proportionate preservation evidence
- Assess refactoring after every green (but only if adds value)
- Ask "What do I wish I'd known at the start?" after significant changes
- Route durable, non-obvious learnings through
expectationsto their actual owner: source/tests, glossary, accepted decision mechanism, maintained docs, active plan, or repository working policy - Update CLAUDE.md only for local working policy it is declared to own, and only when the request or repository workflow authorizes that write
For detailed TDD workflow, load the tdd skill.
For refactoring methodology, load the refactoring skill.
For detailed guidance on expectations and documentation, load the expectations skill.
Browser Automation
Prefer agent-browser for web automation. If it is not installed, fall back to other available tools (e.g. WebFetch, curl, or MCP browser tools). Always try agent-browser first.
agent-browser core workflow:
agent-browser open <url>- Navigate to pageagent-browser snapshot -i- Get interactive elements with refs (@e1, @e2)agent-browser click @e1/fill @e2 "text"- Interact using refs- Re-snapshot after page changes
Run agent-browser --help for all commands.
Resources and References
- TypeScript Handbook
- Testing Library Principles
- Kent C. Dodds Testing JavaScript
- Functional Programming in TypeScript
Summary
The key is to write clean, testable, functional code that evolves through small, safe increments. Drive production-behavior changes with a test that describes the desired behavior; use claim-appropriate evidence for documentation, configuration, dependency, generated, CI, and operational changes. The implementation should be the simplest thing that makes the test or other governing check pass. When in doubt, favor simplicity and readability over cleverness.
Latest changes
Initial reviewed release.
No earlier versions recorded.
File verification
- File integrity
No signed release verified for this version.
This checks published bytes, not safety, authorship, rights or assistant use.
Full compatibility
As stated by the author: Claude Code
Included files
1 fileCLAUDE.md
markdownPublic file access is temporarily paused.
Use in your own tool
Save this resource and connect your assistant in the Use with flow before copying a test request.
Related resources
Karpathy-Inspired Coding Guidelines (CLAUDE.md)
Four behavioral rules that stop AI coding agents from over-engineering, guessing, and making unrelated edits.
Claude Code
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Oct 3
Critical Thinking Mode
A Copilot custom agent that challenges assumptions and asks probing questions instead of editing code.
GitHub Copilot
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Nov 11
Dart/Flutter Coding Style (ECC)
Dart/Flutter-specific coding style: formatting tools, idioms, immutability, error handling, and naming.
Claude Code, Cursor
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Nov 11