Your Claude Code AI assistant, elevated to professional standards
|
v10.00 Released |
47 Active Runtime Rules |
Verified Release Gates |
God automation P092 Released |
- ⚡ Quick Start
- ✨ Features
- 📁 Rule Files
- 📦 Installation
- 📂 Design Documentation Structure
- 🔗 Integration Guide
- 🎓 Framework Highlights
- 🖼️ Visual Guide
- 📊 Before & After
- 📊 Current Quality Signals
- 🔒 Safety Commitments
- 🤝 Contributing
- 📜 License
- 🙏 Acknowledgments
Use the script for your platform. Both install the current active runtime rules only.
# Clone once
if [ ! -d "claude-code-rules" ]; then
git clone https://github.com/DarKWinGTM/claude-code-rules.git
fi
cd claude-code-rules || exit 1
# Install active runtime rules into ~/.claude/rules/
mkdir -p "$HOME/.claude/rules"
rule_files=(
accurate-communication.md
technical-snapshot-communication.md
response-closing-and-action-framing.md
answer-presentation.md
anti-mockup.md
anti-sycophancy.md
artifact-initiation-control.md
authority-and-scope.md
audience-surface-disclosure-control.md
context-load-and-document-density-control.md
custom-agent-selection-priority.md
dan-safe-normalization.md
document-consistency.md
document-changelog-control.md
document-design-control.md
document-patch-control.md
emergency-protocol.md
evidence-grounded-burden-of-proof.md
explanation-quality.md
external-verification-and-source-trust.md
flow-diagram-no-frame.md
functional-intent-verification.md
governed-document-rollover-control.md
memory-governance-and-session-boundary.md
maintainable-code-structure-and-decomposition.md
development-verification-and-debug-strategy.md
natural-professional-communication.md
native-worker-agent-routing-and-context-control.md
no-variable-guessing.md
operational-failure-handling.md
phase-implementation.md
portable-implementation-and-hardcoding-control.md
project-documentation-standards.md
recovery-contract.md
refusal-classification.md
refusal-minimization.md
runtime-topology-control.md
safe-file-reading.md
safe-terminal-output.md
strict-file-hygiene.md
tactical-strategic-programming.md
todo-standards.md
unified-version-control-system.md
zero-hallucination.md
high-signal-communication.md
execution-continuity-and-mode-selection.md
goal-set-review-and-priority-balance.md
)
for file in "${rule_files[@]}"; do
cp "$file" "$HOME/.claude/rules/$file"
done# Clone once
if (-not (Test-Path "claude-code-rules")) {
git clone https://github.com/DarKWinGTM/claude-code-rules.git
}
Set-Location claude-code-rules
# Install active runtime rules into ~/.claude/rules/
$rulesDir = Join-Path $HOME ".claude/rules"
New-Item -ItemType Directory -Force -Path $rulesDir | Out-Null
$ruleFiles = @(
"accurate-communication.md",
"technical-snapshot-communication.md",
"response-closing-and-action-framing.md",
"answer-presentation.md",
"anti-mockup.md",
"anti-sycophancy.md",
"artifact-initiation-control.md",
"authority-and-scope.md",
"audience-surface-disclosure-control.md",
"context-load-and-document-density-control.md",
"custom-agent-selection-priority.md",
"dan-safe-normalization.md",
"document-consistency.md",
"document-changelog-control.md",
"document-design-control.md",
"document-patch-control.md",
"emergency-protocol.md",
"evidence-grounded-burden-of-proof.md",
"explanation-quality.md",
"external-verification-and-source-trust.md",
"flow-diagram-no-frame.md",
"functional-intent-verification.md",
"governed-document-rollover-control.md",
"memory-governance-and-session-boundary.md",
"maintainable-code-structure-and-decomposition.md",
"development-verification-and-debug-strategy.md",
"natural-professional-communication.md",
"native-worker-agent-routing-and-context-control.md",
"no-variable-guessing.md",
"operational-failure-handling.md",
"phase-implementation.md",
"portable-implementation-and-hardcoding-control.md",
"project-documentation-standards.md",
"recovery-contract.md",
"refusal-classification.md",
"refusal-minimization.md",
"runtime-topology-control.md",
"safe-file-reading.md",
"safe-terminal-output.md",
"strict-file-hygiene.md",
"tactical-strategic-programming.md",
"todo-standards.md",
"unified-version-control-system.md",
"zero-hallucination.md",
"high-signal-communication.md",
"execution-continuity-and-mode-selection.md",
"goal-set-review-and-priority-balance.md"
)
foreach ($file in $ruleFiles) {
Copy-Item $file (Join-Path $rulesDir $file) -Force
}- Already cloned the repo? Skip the clone step and run the install block only.
- Need project-specific install instead? Change the destination from
~/.claude/rules/to./.claude/rules/. - This runtime-only install copies active rule files only.
- Governed design/changelog/TODO/phase/patch artifacts, inactive history/done surfaces, and
phase-implementation-template.mdremain in the repository for maintenance and synchronized updates. - Files already present in a shared runtime destination but outside this 47-file source-owned set are not cleanup targets by default.
If you want an AI CLI to install or adapt this repo for you, paste one of these prompts directly into that tool.
Claude Code — native install into ~/.claude/rules/
Install this rules repo for me from:
https://github.com/DarKWinGTM/claude-code-rules
Requirements:
- clone the repo if needed
- read the README Quick Start section first
- install only the active runtime rule set into ~/.claude/rules/
- do not install files from suspend/, support/, plugin/, design/, changelog/, phase/, patch/, or TODO.md
- verify the installed files after copying
- report exactly what was installed
Codex CLI — adapt active rules into AGENTS.md
Use this repo as the source of truth:
https://github.com/DarKWinGTM/claude-code-rules
Please:
- clone or inspect the repo
- read the README Quick Start and active root rule set
- create/update AGENTS.md for this project so Codex follows the same active rule intent
- adapt the rules into Codex-native instructions instead of copying Claude-specific runtime structure blindly
- ignore files under suspend/, support/, plugin/, design/, changelog/, phase/, patch/, and TODO.md unless explicitly needed as reference
- keep the result concise but faithful to the active rules
- summarize which source rules were mapped into AGENTS.md
Gemini CLI — adapt active rules into GEMINI.md
Use this repo as the source of truth:
https://github.com/DarKWinGTM/claude-code-rules
Please:
- clone or inspect the repo
- read the README Quick Start and active root rule set
- create/update GEMINI.md for this project so Gemini CLI follows the same active rule intent
- adapt the rules into Gemini-native instructions instead of copying Claude-specific runtime structure blindly
- ignore files under suspend/, support/, plugin/, design/, changelog/, phase/, patch/, and TODO.md unless explicitly needed as reference
- keep the result concise but faithful to the active rules
- summarize which source rules were mapped into GEMINI.md
When to use which prompt
- Use the Claude Code prompt when you want direct runtime installation into
~/.claude/rules/ - Use the Codex CLI prompt when you want equivalent behavior through
AGENTS.md - Use the Gemini CLI prompt when you want equivalent behavior through
GEMINI.md
|
|
|
|
Fundamental principles that govern all AI behavior
| Rule | Purpose | Key Benefit |
|---|---|---|
anti-mockup.md |
Real systems over simulations | No fake implementations |
anti-sycophancy.md |
Proposal evaluation and evidence-calibrated dissent | Honest thinking-partner behavior that evaluates user proposals before agreement-shaped wording, accepts safe user direction without factual or quality endorsement, seeks practical evidence before substantial alignment or challenge, and corrects claims when evidence conflicts |
zero-hallucination.md |
Verify-first factual discipline | Fact, preference/direction, inference, hypothesis, uncertainty, scoped non-findings, factual endorsement, and proof-aware assumptions stay separate |
Ensure consistent, safe, and well-documented outputs
| Rule | Purpose | Key Benefit |
|---|---|---|
accurate-communication.md |
Clear, honest communication | Evidence-honest wording for status, recommendations, phase closeout, memory/post-compact context, and direct human-readable action/result framing |
artifact-initiation-control.md |
Startup artifact governance | Resolve design/changelog/TODO/phase/patch posture before meaningful governed work drifts, resolve phase posture from sufficiently clear governed design when staged execution is warranted, and when phase posture resolves to create now, delegate current-phase/subphase/new-major identity selection to phase-implementation.md instead of implying a fresh major phase; initialize live task tracking early when non-trivial work needs visible execution state, treat phase-backed live task tracking as expected startup behavior with visible phase linkage from initialization, keep initialized live task lists as the continuing surface for the active objective, keep newly encountered unclear files in classification-first posture rather than disposal-first posture, and keep patch non-default during greenfield startup unless a real before/after review surface exists |
authority-and-scope.md |
Decision hierarchy | Deterministic precedence for user direction, hard boundaries, governed repo authority, runtime ownership scope, memory boundaries, and advisory future work |
audience-surface-disclosure-control.md |
Audience surface disclosure | Full direct-user/project-owner transparency stays separate from audience-safe generated public, customer-facing, operator-facing, log, demo, release, onboarding, and externally shared wording |
custom-agent-selection-priority.md |
Custom agent selection priority | Prefer the best visible custom/specialist agent after native worker routing has already classified intent, selected the needed worker capability, and chosen a direct/subagent/multi-subagent/team scale; do not turn agent availability into a routing or Agent Team escalation decision |
dan-safe-normalization.md |
Prompt-wrapper normalization | Safer intent evaluation before decisioning |
document-consistency.md |
Cross-reference validation | Keeps portable, source-side, governed design parent index, governed design child shard, source-owned active runtime, active runtime body-sufficiency, shared runtime destination, other-owner runtime, destination/runtime, local execution, and reusable source-artifact references distinct so parity/no-drift claims do not pass on shard-map drift, selected-shard overreach, shared-destination co-location, metadata-only roots, or cleanup-driven file classification |
document-changelog-control.md |
Version tracking system | Active changelogs stay version authority while changelog/done/ can hold inactive completed/older history when active scans would become too large |
document-design-control.md |
Design document standards | Active blueprint/target-state structure, compact parent design indexes with governed active child shards for large designs, no default design/done/, and required capture of implementation-relevant truth extracted from external docs/specs/provider references when later work still depends on it |
document-patch-control.md |
Patch Control | Governed before/after patch/review artifacts outside the live /phase workspace, with patch/done/ as inactive completed patch history rather than junk or active phase input by default |
emergency-protocol.md |
Crisis response | Fast, safe reactions |
evidence-grounded-burden-of-proof.md |
Evidence-seeking proof-aware judgment | One first-class authority for practical evidence-seeking before substantial reasoning, ordinary-evidence-versus-binding-constraint thresholds, burden-of-proof thresholds for factual endorsement and contradiction, user-owned preference/direction separation, fact/inference/hypothesis separation, scoped negative-evidence semantics, unresolved governing-basis uncertainty handling, remembered path-matched context as a distinct evidence/claim state, post-compact needs-recheck handling for compacted carry-forward exact detail, and explicit limits on using git-state evidence for disposal conclusions |
external-verification-and-source-trust.md |
External verification and source trust | Proactive web-backed fact checking, source ranking, corroboration, honest source-conflict handling, orchestrated research-lane source trust, and external evidence grounding for recommendation/design judgments |
functional-intent-verification.md |
Intent validation | Clarifies destructive, ambiguous, or high-impact intent before execution, with a real delete guard that blocks cleanup/isolation rationale from acting as deletion authorization |
governed-document-rollover-control.md |
Governed rollover control | Keeps large active governance entrypoints such as TODO.md and phase/SUMMARY.md compact by moving accumulated history into daily-first referenced history/ and done/ shards without deleting governed meaning |
memory-governance-and-session-boundary.md |
Memory governance and session boundary | Treat memory as scoped reusable context rather than active authority, keep root MEMORY.md as a compact but meaning-visible active index, compress repeated path-scope text with one declared Scope and Memory base, list active path-scoped entries as visible relative hooks, reject fake aliases and link-only hidden-memory routers, use global/path/archive semantics, make path the primary applicability key, keep session IDs as provenance only, keep archived memory inactive by default, and keep optional external recall supplemental to stronger checked execution surfaces |
maintainable-code-structure-and-decomposition.md |
Maintainable code structure | Owns coding-time responsibility boundaries, maintainability as future changeability, code-smell triggers, smallest useful decomposition, helper-function necessity, useful source-code comment discipline, God function/file pressure, wrong-abstraction avoidance, explicit dependency/state boundaries, behavior-preserving refactor posture, verification-strategy deferral, and tactical structure-debt convergence without rigid line-count or architecture-template rules |
development-verification-and-debug-strategy.md |
Development verification strategy | Owns proportionate coding-time verification strategy, debug signal selection, testing depth, TestKit/scenario decisions, fake/local versus live evidence boundaries, and closeout wording that does not treat edits as proof |
operational-failure-handling.md |
Operational failure policy | Bounded retry ceilings, honest cooldown guidance, and stop/escalation behavior for technical failures, including duplicate-looking Team Agent handling that treats stale or duplicate-looking presence as inspect-before-respawn rather than respawn-first churn |
phase-implementation.md |
Phase planning semantics | First-class /phase + SUMMARY.md model with major/subphase identities, lineage-first current-phase/subphase/new-major selection before opening a fresh major phase, design-to-phase execution synthesis when staged execution is warranted, current-phase-first, phase-context-aware, and phase-visible live task-list linkage, explicit phase-to-patch linkage when patch is in scope, phase/done/ as inactive completed phase history, phase closeout reporting that states delivered work/impact/verification/next state, bounded next-work discovery from active phase surfaces, and session-aligned wording for phase-linked task entries |
runtime-topology-control.md |
Runtime topology discipline | Bounded inspect-first, one-authority-at-a-time runtime mutation posture that prevents debug-by-expansion and requires explicit approval for additive or authority-changing topology moves |
technical-snapshot-communication.md |
Technical snapshot communication | First-class owner for bounded technical snapshot wording, exact/partial/inferred separation, scoped local-fact snapshot communication, and concise diagnostic snapshot state reporting |
response-closing-and-action-framing.md |
Response closing and action framing | First-class owner for concise end-of-response synthesis, clear action framing, recommendation-with-reason wording, alternative preservation, closed-topic summary handling, phase-backed closeout synthesis for delivered work, feature/improvement, impact, verification basis, and next phase state, and advisory goal-qualified proposal framing |
recovery-contract.md |
Blocked-response contract | Every constrained/refused path has actionable next steps |
tactical-strategic-programming.md |
Tactical vs strategic doctrine | Tactical entry stays fast, but every tactical move must point toward a declared strategic target and convergence path |
natural-professional-communication.md |
Communication style doctrine | Default to calm, human-readable, non-robotic, non-character-driven professional communication, keep easy explanations in an everyday Thai register when the user asks for simpler wording, reject metaphor-heavy or management-style abstraction when direct wording would be clearer, and front-load the operational purpose when the answer would otherwise bury it behind warm-up framing |
refusal-classification.md |
Deterministic refusal taxonomy | Consistent block decisions and traceable output modes |
refusal-minimization.md |
False-refusal reduction | Prefer recoverable constrained/context paths when authorized |
strict-file-hygiene.md |
File hygiene | Prevent junk files while allowing required governed startup artifacts, keep hygiene/cleanup wording from acting as deletion authority, and prevent shared runtime destination co-location from making other-owner runtime files junk by default |
todo-standards.md |
Task management | Compact durable TODO tracking plus phase-visible live task entries, same-objective task-list reuse, verification slices, and worker-lane tracking recovery |
project-documentation-standards.md |
Project documentation standards | Standardized docs for all projects plus compact active design index and governed child-shard role modeling, startup artifact gate, completed documentation surface governance for phase/done/, patch/done/, and changelog/done/, no-default-design/done/ blueprint boundary, governed companion status for required design/changelog/TODO/phase/patch surfaces, phase-family lineage visibility without taking over current-phase/subphase/new-major identity semantics, phase-shaped task creation alignment with visible phase pointers, runtime installs scoped to the current project/source-owned active runtime rule set, active runtime body-sufficiency install boundary, other-owner runtime destination file boundary, live-task-list-vs-durable-TODO distinction, non-default startup patch posture, and portable public onboarding/install guidance |
portable-implementation-and-hardcoding-control.md |
Portable implementation control | Keep shared artifacts, reusable support/package source artifacts, and public onboarding/install guidance portable by default, bind environment-specific values late, and prevent machine-local hardcoding drift |
execution-continuity-and-mode-selection.md |
Execution continuity and mode selection | Separates discussion mode from execution mode, re-checks intent when pasted logs/paths/snippets could be behavior/RULES evidence rather than project authorization, keeps startup governance as an execution precondition, keeps work moving when execution mode is active, discovers the next unfinished slice from execution surfaces, applies phase-lineage handling before opening a new major phase for phase-shaped follow-up work, preserves visible phase linkage in continuation-created or continuation-extended live tasks, and sends broad continuation, including research/design-improvement/source-comparison continuation, through subagent-first worker routing before leader raw absorption |
unified-version-control-system.md |
Unified version governance | Single deterministic UDVC-1 controller plus active runtime body-sufficiency validation |
Improve answer structure, clarity, and visual scanability
| Rule | Purpose | Key Benefit |
|---|---|---|
answer-presentation.md |
Answer presentation standards | Readable, purpose-first layouts for snapshots, comparisons, scope boundaries, goal frames, phase closeout, proposals, and optional deep dives |
explanation-quality.md |
Explanation structure quality | Plain-language-first technical explanation with proof-aware evidence boundaries, goal/output/gate clarity, phase closeout meaning, and optional deeper-detail offers |
flow-diagram-no-frame.md |
Clean ASCII diagrams | Better readability |
high-signal-communication.md |
High-signal response tightening | Removes low-value extra content and repeated wording without replacing the main communication-owner chains |
goal-set-review-and-priority-balance.md |
Goal review and priority balance | Keeps the full active goal set visible so work on A does not crowd out B and C |
Optimize your daily workflow efficiency
| Rule | Purpose | Key Benefit |
|---|---|---|
no-variable-guessing.md |
Read before reference | No wrong assumptions, including keeping git-state file signals as weak local evidence only |
native-worker-agent-routing-and-context-control.md |
Native worker routing | Classifies intent before project exploration, routes broad/noisy/high-context/multi-surface and broad research/design-improvement/source-heavy work by required capability, prefers standalone subagent and research lanes first, and keeps Agent Team workflow as an exceptional coordination escalation while the leader remains synthesis and verification owner |
context-load-and-document-density-control.md |
Context-load and document-density control | Worker-filtered evidence, safe docs, and God-line repair |
safe-file-reading.md |
Plan-before-read | Bounded file handling with parent-index-first, shard-selective reads for sharded active designs and rollover signals for oversized governance entrypoints |
safe-terminal-output.md |
Output management | No terminal flooding |
📊 Active Runtime Rules: 47
Current release: P092 / v10.00 automatic God artifact planning and controlled repair.
- Active source install set remains 47 files.
- Owner chains define automatic God artifact detection, repair planning, and closeout blocking for unresolved touched-scope pressure.
- Runtime install, 47/47 parity/body sufficiency, density/God-artifact automation review,
masterpush, and GitHub releasev10.00verification are complete.
The Quick Start block above is still the canonical runtime-only install block. The methods below use the same active 47-rule set and describe when to use each path without repeating the long file list.
Use this when: you want the full active runtime set installed globally.
Fastest path:
- Clone the repository.
- Run the Quick Start block exactly as shown above.
- Run the verification commands below.
If you already cloned the repo earlier, you do not need to repeat the clone step. Just return to the repo root, keep the same Quick Start file list, and rerun only the install portion against ~/.claude/rules/.
Use this when: you only want a small subset of the runtime rules.
# Example: Install just the anti-sycophancy rule
curl -o ~/.claude/rules/anti-sycophancy.md \
https://raw.githubusercontent.com/DarKWinGTM/claude-code-rules/master/anti-sycophancy.mdUse this when: you want the same active runtime set, but only inside the current project.
- Create
./.claude/rules/in the project root. - Reuse the same Quick Start command pattern.
- Change only the destination path from
~/.claude/rules/to./.claude/rules/.
This keeps the install set identical while scoping the rules to one repository.
Source-side note: public commands in this README are expressed from the repo root. Destination/runtime note: installation targets are shown separately as
~/.claude/rules/or./.claude/rules/.
| Location | Scope | Path | Use Case |
|---|---|---|---|
| Global | All projects | ~/.claude/rules/*.md |
Default recommendation |
| Project | Current project only | ./.claude/rules/*.md |
Project-specific needs |
Global install: verify under
~/.claude/rules/. Project-specific install: verify under./.claude/rules/instead.
# Global install check
claude --version
head -20 ~/.claude/rules/anti-sycophancy.md
ls ~/.claude/rules/answer-presentation.md
ls ~/.claude/rules/phase-implementation.md
ls ~/.claude/rules/artifact-initiation-control.md
# Project-specific install check (run from project root)
head -20 ./.claude/rules/anti-sycophancy.md
ls ./.claude/rules/answer-presentation.md
ls ./.claude/rules/phase-implementation.md
ls ./.claude/rules/artifact-initiation-control.md| Location | Purpose | File Type |
|---|---|---|
./design/*.design.md |
Active design specifications and target-state truth | Design docs; no default design/done/ |
*.md (root) |
Active runtime rules | Rules files |
./changelog/changelog.md |
Master repository-wide history | Master changelog |
./changelog/*.changelog.md |
Per-chain authoritative active history/current version state | Active changelogs |
./changelog/done/*.changelog.md |
Older or completed detailed history outside active scans | Inactive history for audit/rollback/provenance/trace |
./todo/history/*.md |
Daily TODO movement and pre-rollover snapshots outside the active TODO entrypoint | Referenced inactive TODO history |
./todo/done/*.md |
Large completed TODO/task detail outside the active TODO entrypoint | Referenced inactive TODO detail |
./phase/SUMMARY.md |
Compact governed summary/index for live phase planning and current roadmap state | Phase summary doc |
./phase/history/*.md |
Daily phase movement and pre-rollover phase-summary snapshots outside the active summary | Referenced inactive phase history |
./phase/phase-NNN-<phase-name>.md |
Governed active major-phase execution detail | Active major phase docs |
./phase/phase-NNN-NN-<subphase-name>.md |
Governed active subphase execution detail | Active subphase docs |
./phase/done/phase-NNN-*.md |
Completed phase detail retained outside active scans | Inactive completed phase history |
./patch/<context>.patch.md or ./<context>.patch.md |
Governed active patch/review artifacts outside live phase planning | Active patch docs |
./patch/done/<context>.patch.md |
Completed patch artifacts retained outside active scans | Inactive completed patch history |
./phase-implementation-template.md |
Root helper for phased planning | Helper artifact that also exposes active phase family, planned next phase(s), activation boundary, and next checkpoint guidance for future /phase authoring |
💡 Single Source of Truth Principle:
- Design files (
.design.md) define active target state and do not use a defaultdesign/done/surface- Per-chain active changelogs (
*.changelog.md) remain the authority for current governed chain history/version statetodo/history/,todo/done/,phase/history/,phase/done/,patch/done/, andchangelog/done/are inactive-by-default referenced history/detail surfaces for audit, rollback, provenance, or trace reconstructionchangelog/changelog.mdrecords repository-level synchronization historyREADME.mdremains overview-only, not chain authorityTODO.mdandphase/SUMMARY.mdstay compact current-state entrypoints; moved history remains reachable through theirhistory/anddone/references- Older coordination-flavored rollout records in
TODO.md,phase/SUMMARY.md, andchangelog/changelog.mdremain historical context only; current active authority stays in the active runtime rules and design docs
This section defines how design, changelog, runtime rules, TODO, and governed phase-planning artifacts should be updated together.
| Document | Role | Update Trigger |
|---|---|---|
design/*.design.md |
Target behavior/specification | Requirement or policy change |
*.md (root runtime rules) |
Active runtime behavior | Approved design change requires runtime sync |
changelog/changelog.md |
Master repository-wide synchronization history | Repository-level governed sync events |
changelog/*.changelog.md |
Authoritative active per-chain version history | Any rule/design update with version impact |
changelog/done/*.changelog.md |
Inactive completed or older detailed history | History/audit/rollback/provenance/trace needs only |
todo/history/*.md |
Referenced inactive TODO history | Daily movement, pre-rollover snapshots, and audit trail when active TODO.md is compacted |
todo/done/*.md |
Referenced inactive TODO detail | Large completed task/wave detail retained outside the active TODO entrypoint |
phase/SUMMARY.md |
Compact governed summary/index for live phased execution | Current phase roadmap/index and links to referenced history/done shards |
phase/history/*.md |
Referenced inactive phase history | Daily phase movement and pre-rollover summary snapshots when active phase/SUMMARY.md is compacted |
phase/phase-NNN-<phase-name>.md and phase/phase-NNN-NN-<subphase-name>.md |
Governed active phase-detail layer | Multi-stage execution detail under /phase, including design references, optional patch references, design extraction, optional patch extraction, review flow, reviewer checklist, review outcome, and execution detail |
phase/done/phase-NNN-*.md |
Inactive completed phase history | Completed phase detail should leave active scans but remain traceable |
patch/<context>.patch.md or root <context>.patch.md |
Governed active patch/review artifact layer | Patch or review work that is separate from live phase planning but may feed the phase layer one-way when relevant |
patch/done/<context>.patch.md |
Inactive completed patch history | Completed patch artifacts should leave active review scans but remain traceable |
phase-implementation-template.md |
Root helper for phased planning readability | Reusable authoring support when staged execution matters, including active phase family, planned next phase(s), activation boundary, and next checkpoint guidance |
TODO.md |
Execution and progress tracking | Work starts/completes or task state changes |
Before meaningful governed work drifts, the repository now expects startup artifact posture to be resolved through artifact-initiation-control.md.
That means design / changelog / TODO / phase / patch should be explicitly resolved as:
- use existing
- create now
- ask now
- not required
Required governed companions should stay visible when the checked work shape still requires them; the live task list helps run the work, but it does not replace required design/changelog/TODO/phase/patch surfaces.
When governed design is sufficiently clear and staged execution is warranted, phase posture should resolve to use existing or create now; the phase layer may derive execution order, current child phase files, and current-phase live tasks from that governed design instead of waiting for a separate retrospective planning prompt. If phase posture resolves to create now, identity still goes through phase-implementation.md so the outcome may be current-phase update, existing-family subphase, new major phase, or ask-now lineage handling.
For greenfield startup / baseline formation, patch should normally resolve to not required unless a real existing before/after review surface or explicit user request justifies patch packaging.
Once startup posture is settled and the active path is clear, execution should keep moving without re-pausing over the same gate.
When phased work also uses governed patch artifacts, the live phase workspace should now declare that linkage explicitly in phase/SUMMARY.md and the relevant child phase files.
Use inactive done/ surfaces to reduce active scan bloat without deleting governed history:
phase/done/for completed phase execution detailpatch/done/for completed patch/review artifactschangelog/done/for older or completed detailed history
Do not create a default design/done/ pattern. Design remains the active blueprint and target-state authority.
Open done/ surfaces only when history, audit, rollback, provenance, or trace reconstruction is needed. Files in done/ are not junk and completed status is not deletion authorization.
Change request received
→ resolve startup artifact posture first when the work is meaningfully governed
→ if staged work is warranted, synthesize phase posture/order/tasks from clear governed design
→ before opening a new major phase, apply phase lineage selection: current phase, existing-family subphase, new major, or ask-now
→ update design target state
→ synchronize runtime rule wording
→ record per-chain changelog version + summary
→ record repository-level sync in changelog/changelog.md when applicable
→ update TODO pending/completed/history
→ update phase/patch companion records when in scope
→ roll oversized active TODO or phase-summary history into referenced daily-first `history/` and `done/` shards before broad active-file absorption continues
→ move completed phase/patch/changelog detail to `done/` only when active scan bloat justifies inactive history separation
→ install only the 47 source-owned active runtime rules when an install gate is explicitly in scope
→ verify links, versions, active install scope, source/runtime parity, and active runtime body sufficiency only when a runtime install gate is in scope
- Design file links to the correct changelog file
- Changelog unified row maps to an existing detailed section
- Runtime rule version/header aligns with changelog current version
- README active runtime install list still contains exactly the 47 source-owned root rule files
TODO.mdandphase/SUMMARY.mdstay compact enough for active current-state reads and reference their relevanthistory/anddone/shardsphase/SUMMARY.mdexists when phased execution is used and names governing patch artifacts or explicitnonephase/SUMMARY.mdkeeps the phase map, source inputs, cross-phase handoffs, TODO/changelog coordination, verification, and rollback/containment picture current- child phase files include design references, patch references or explicit
none, objective, entry conditions, action checklist, affected artifacts, TODO/changelog coordination, verification, closeout, exit criteria, risks/rollback notes, and next possible phases when relevant - phase-backed closeout explains delivered work, feature/improvement, user/system impact, verification basis, and next phase state when useful
- sufficiently clear governed design can be synthesized into phase order and current-phase live tasks when staged execution is warranted
- phase identity selection checks lineage before opening a new major phase and can resolve to current-phase update, existing-family subphase, new major, or ask-now posture
- TODO pending section contains pending-only items (
- [ ]) - TODO history has a dated entry for completed milestone work
- inactive
phase/done/,patch/done/, andchangelog/done/surfaces are consulted only for history/audit/rollback/provenance/trace needs - no default
design/done/pattern is introduced because design remains active blueprint authority - files in
done/are not treated as junk or deletion-authorized by completed status - runtime install/parity checks do not classify or clean other-owner files in shared runtime destinations
design/recovery-contract.design.md
→ recovery-contract.md
→ changelog/recovery-contract.changelog.md
→ TODO.md (history/progress)
What was synchronized:
- Deterministic response keys were aligned across design and runtime (
decision_output,refusal_class,reason,what_can_be_done_now,how_to_proceed) - Changelog recorded the runtime/design version sync event
- TODO recorded completion in the hardening program history
design/safe-file-reading.design.md + design/safe-terminal-output.design.md
→ safe-file-reading.md + safe-terminal-output.md
→ changelog/safe-file-reading.changelog.md + changelog/safe-terminal-output.changelog.md
→ TODO.md (WS-5 completion)
What was synchronized:
- Shared verification-trigger model applied across related rules
- Deterministic output-cap wording standardized (
head -100 | head -c 5000, risky-file variant) - Changelog and TODO were updated to preserve traceability
TODO.md pending section audit
→ remove completed items from pending block
→ remove duplicate pending headings
→ add closure row in TODO history
What was synchronized:
- Pending section kept pending-only (
- [ ]) - Duplicate heading drift removed
- Program closure logged in dated history row
phase/SUMMARY.md
→ source-input extraction summary table
→ overview flow diagram
→ review summary table
→ phase/phase-NNN-*.md / phase/phase-NNN-NN-*.md
→ TODO.md history
What was synchronized:
/phasebecame the live phase-planning namespaceSUMMARY.mdbecame the required summary/index for live phased execution- child phase files were required to carry design extraction, review flow, reviewer checklist, and standardized review outcomes
SUMMARY.mdwas extended to carry source-input rollup and review rollup views for faster approval- the model gained an explicit Definition of Done and stop rule so governance expansion does not continue by default after completion
- communication rules were narrowed so next-step options are suggested only when genuinely useful rather than treated as a mandatory ending pattern
design/*.design.md + patch/<context>.patch.md or root <context>.patch.md
→ phase/SUMMARY.md
→ phase/phase-NNN-*.md / phase/phase-NNN-NN-*.md
→ TODO.md history
What was synchronized:
phase-implementationwas extended from design-only extraction into one-way source synthesisphase/SUMMARY.mdcan now show both design inputs and patch inputs when patch-derived work matters- child phase files can now carry optional patch references and patch-to-phase extraction alongside design traceability
- patch artifacts remained outside the live phase workspace
- design and patch documents did not gain a reverse-link requirement back to phase
artifact-initiation-control.design.md
→ artifact-initiation-control.md
→ changelog/artifact-initiation-control.changelog.md
→ phase/SUMMARY.md + phase/phase-004-*.md
→ TODO.md history
What was synchronized:
- a new first-class startup-governance owner was created
- startup artifact posture now resolves before meaningful governed work drifts
project-documentation-standards,phase-implementation,todo-standards, andstrict-file-hygienewere aligned to the new startup contract- the rollout itself opened
phase-004from the start instead of being backfilled later
41 active runtime rules
→ source-only semantic compression program
→ final semantic parity and aggregate reduction audit
→ explicit runtime install gate
→ source/runtime hash parity verification
What was synchronized:
- the active runtime scope stayed limited to the then-README-installed 41 root rule files
- final source state was recorded at 4,051 lines / 31,316 words / 231,675 bytes
- runtime install into
~/.claude/rules/happened only after the separate install gate opened - parity passed with no missing active files or hash mismatches
- co-located runtime files outside the source-owned install set remained observed-only and untouched
authority-and-scope.md
→ project-documentation-standards.md
→ strict-file-hygiene.md
→ document-consistency.md
→ README / TODO / phase / patch records
What was synchronized:
- runtime co-location was clarified as non-ownership authority
- destination files outside the current source-owned install set require owner/project scope resolution before classification or cleanup
- documentation, hygiene, and reference owners were aligned to preserve the source-owned/shared-destination/other-owner distinction
response-closing-and-action-framing.md
→ phase-implementation.md
→ answer-presentation.md
→ accurate-communication.md
→ explanation-quality.md
What was synchronized:
- phase-backed closeouts now report delivered work, feature/improvement, user/system impact, verification basis, and next phase state when relevant
- closeout wording remains evidence-honest and does not turn edited or partially verified work into fixed/stable claims
- audit/checklist detail no longer dominates the user-facing completion message
active phase / patch / changelog surfaces
→ completed history surfaces under done/ when scan bloat grows
→ active design remains blueprint truth
What was synchronized:
phase/done/,patch/done/, andchangelog/done/are inactive-by-default history surfaces- broad current-state scans start from active docs and avoid
done/unless history/audit/rollback/provenance/trace is needed design/done/is not a default pattern because design remains target-state authority- completed history is not junk and does not authorize deletion
governed design target state
→ artifact-initiation-control.md startup phase posture
→ phase-implementation.md execution synthesis
→ current child phase files and current-phase live tasks
What was synchronized:
- sufficiently clear governed design can now drive phase posture and execution order when staged execution is warranted
/phasemay derive current child phase files and current-phase live tasks from design truth without replacing design as target-state authority- real stop gates remain: design ambiguity, materially different rollout choices, missing access, destructive/high-impact action, and approval-sensitive scope change
The current phased execution model uses phase/SUMMARY.md plus child phase files as the live execution workspace, while design stays target-state authority and patch stays before/after review authority.
governed design target state
→ startup artifact posture
→ phase identity selection: current phase / existing-family subphase / new major / ask-now
→ phase/SUMMARY.md phase map and source inputs
→ phase-NNN / phase-NNN-NN child execution files
→ current-phase live task list with visible phase context
→ closeout with delivered work, impact, verification, and next phase state
What this gives you:
- staged work gets a deterministic phase workspace instead of ad hoc planning drift
- sufficiently clear governed design can become phase order and current-phase live tasks when staged execution is warranted
- phase-shaped follow-up work checks family lineage before opening a new major phase, so related work can stay in the current phase or become an existing-family subphase when that is the truthful identity
- non-trivial phase-backed built-in task entries visibly carry phase ID, phase name, phase family, or clearly implied stage context in the subject or description
- patch inputs can feed phase planning one-way without turning
/patchinto the live phase namespace - child phase files keep execution fields close to the actual phase: objective, entry conditions, actions, affected artifacts, verification, closeout, exit criteria, risks, and next possible phases
- closeout wording explains what changed and why it matters before audit/checklist detail dominates the message
- real stop gates remain intact for design ambiguity, materially different rollout choices, missing access, destructive/high-impact action, and approval-sensitive scope change
- completed phase detail can leave active scans through
phase/done/without becoming junk or replacingphase/SUMMARY.md
Complexity calibration so simple work stays direct and risky/system work gets deeper review
Simple work → direct answer or short implementation path
Moderate work → structured stepwise reasoning
High-risk work → deeper comparison, security, and integration review
Critical work → stronger verification, mitigation, and stop-gate handling
| Input | What it changes | Result |
|---|---|---|
| Manual action steps | How much sequencing is needed | Avoids under-planning multi-step work |
| Decision points | Whether alternatives must be compared | Prevents premature path collapse |
| Dependencies | How much integration risk exists | Keeps external systems visible |
| Security requirements | How strict the review must be | Deepens auth/payment/data/destructive work |
Use Developer, Security, and Architect lenses when a task really spans implementation, risk, and architecture together.
Developer lens ──┐
Security lens ──┼──→ One evidence-backed recommendation
Architect lens ──┘
How it works:
- Developer lens → feasibility, implementation shape, and maintainability
- Security lens → authorization, secrets, data, destructive-action, and abuse-risk boundaries
- Architect lens → system ownership, integration, rollout, and future changeability
- Synthesis → one practical recommendation with trade-offs when they matter
Boundary: this is perspective coverage, not automatic teammate spawning for every task.
Reuse previously validated reasoning patterns only after rechecking them against the current context
| Action | Benefit |
|---|---|
| Recognize recurring problem shapes | Avoids solving the same pattern from zero every time |
| Adapt the candidate pattern | Keeps reuse tied to the current task, repo, and constraints |
| Validate before relying on it | Prevents stale memory or old fixes from becoming false authority |
Boundary: cached patterns accelerate reasoning, but checked current evidence still wins.
![]() Anti-Sycophancy Evidence-calibrated agreement |
![]() Anti-Mockup Real systems over fake surfaces |
![]() Zero Hallucination Verify before strong claims |
User: "Set up database connection"
↓
AI: "Here's the connection string:
DATABASE_URL=postgres://localhost:5432/mydb"
Result: ❌ Guessed values
❌ No verification
❌ Potentially wrong
❌ User frustrated
User: "Set up database connection"
↓
AI: "Let me check your .env file first..."
[Reading configuration...]
"Found your existing config:
DATABASE_URL=postgres://prod-server:5432/app_db
Should I use this, or do you want to change it?"
Result: ✅ Verified from actual files
✅ No guessing
✅ User confirmation
✅ Professional interaction
The difference? Professional AI behavior that respects your existing configuration.
- Current README meaning: 47 source-owned root rule files.
- Impact: keeps install scope explicit.
- Current README meaning: v10.00 keeps install scope at 47 source-owned active runtime files.
- Verification state: P092 source docs, runtime install, 47/47 parity/body sufficiency, density/God-artifact automation review,
masterpush, and GitHub releasev10.00verification are complete. - Impact: protects install scope and other-owner runtime files.
- Current README meaning: active governance documents stay role-bounded, and detected touched-scope God pressure must get an owner outcome.
- Repair routes: repair clear local overload now, shard active design truth, roll over accumulated history/detail, split God Phase/God Patch candidates, or plan a visible repair slice.
- Impact: keeps active docs cheaper to read, edit, diff, and verify.
- Current README meaning: proof-seeking and claim-state boundaries stay separate.
- Scope: fact, preference/direction, factual endorsement, inference, hypothesis, uncertainty, memory, scoped non-finding, and binding constraints.
- Impact: reduces overclaim, floating recommendation, sycophantic agreement, and hallucination risk.
- Current README meaning: governed design can drive phase posture, order, and tasks.
- Lineage: phase-shaped follow-up checks current phase, subphase, new major, or ask-now posture.
- Live tasks: non-trivial phase-backed entries visibly carry phase context.
- Closeout: roadmap context can support next-phase recommendations at true closeout.
- Coding gates: material coding phases preserve Development Verification / TestKit Coverage when it affects exit criteria.
- Impact: reduces retrospective phase backfill, phase-hidden task drift, silent closeout dead-ends, and edit-only coding closeout.
- Current README meaning: history and done surfaces are referenced inactive surfaces by default.
- Included surfaces:
todo/history/,todo/done/,phase/history/,phase/done/,patch/done/, andchangelog/done/. - Boundary:
design/done/is not a default pattern. - Impact: reduces active scan bloat without deleting governed history.
- Current README meaning: co-located runtime files outside the source-owned set are not cleanup targets by default.
- Impact: prevents other-owner file damage.
| Commitment | Description |
|---|---|
| No Mock/Stub by Default | Prefer real systems and clearly label or avoid fake implementations unless explicitly requested |
| No Guessing | Verify local paths, values, symbols, and configuration before treating them as known |
| Evidence-Honest Claims | Match wording strength to checked evidence and disclose scoped non-findings |
| No Sycophancy | Evaluate user proposals before agreement-shaped wording, accept safe user direction without factual or quality endorsement, seek proof before substantial recommendations or challenges, and correct claims when evidence conflicts |
| Destructive-Action Guard | Cleanup, hygiene, isolation, or worktree rationale never authorizes deletion by itself |
The practical goal is safe, evidence-grounded AI behavior that keeps user authority intact.
These rules evolve based on real-world usage:
- 🔄 Real-world usage patterns → What actually works
- 💬 User feedback → Your experience matters
- 🔐 Safety considerations → Stronger boundaries and safer defaults
- ⚡ Context discipline → Keeping runtime guidance useful without unnecessary bloat
Pull requests welcome! Please ensure:
- New rules follow existing format
- Include clear documentation
- Add visual assets if applicable
- Update changelog
- Respect completion boundaries — do not add new mandatory capability blocks to a completed governance model unless the change is explicitly justified and intentionally approved
We value: Quality over quantity, clarity over complexity, and bounded governance over endless expansion
MIT License - Feel free to adapt for your own use case.
Attribution appreciated but not required.
Personal rule set and configuration framework for Claude Code CLI.
Inspired by:
- Constitutional AI principles (Anthropic)
- Best practices for AI assistant development
- Real-world production experience
- Community feedback and contributions
Built with ❤️ for the Claude Code community
Version: 9.98 | Last Updated: 2026-05-10 | Framework: Sophisticated AI Framework with Constitutional Governance
Made with 💙 by developers who care about AI quality














