Skip to content

DarKWinGTM/claude-code-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

163 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Code Rules

🏛️ Claude Code Rules & Framework 🏛️

Your Claude Code AI assistant, elevated to professional standards

v10.00
Released
47
Active Runtime Rules
Verified
Release Gates
God automation
P092 Released


📑 Table of Contents


⚡ Quick Start

Use the script for your platform. Both install the current active runtime rules only.

Bash — Linux / macOS

# 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

PowerShell — Windows

# 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
}

Notes

  • 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.md remain 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.

🤖 AI-Assisted Install Prompts

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

✨ Features

🎯 Core Capabilities

🔍 Evidence-First Accuracy

  • Seek practical proof before substantial reasoning when material
  • Separate fact, inference, hypothesis, and scoped non-finding
  • Use evidence as grounding, not an automatic decision lock
  • No guessing local paths, values, symbols, or config

🛡️ Anti-Sycophancy

  • Evaluate proposals before agreement-shaped wording
  • Safe user direction stays separate from factual or quality endorsement
  • Substantial agreement, design, recommendation, and challenge use checked evidence when material
  • Claim-focused corrections and constructive dissent remain allowed when evidence or fit conflicts

🔒 Security First

  • Real systems over simulations
  • No mock implementations by default
  • Verified configurations before strong claims
  • Destructive/high-impact actions require intent clarity

Runtime Context Discipline

  • 47 active runtime rules in the current source install set
  • P073 source compression completed and audited
  • P073/P077/P078/P079 runtime install parity was verified only after explicit install gates
  • P080 source governance is synchronized and runtime install parity is verified for the 42-rule set
  • P081 source governance is synchronized for v9.80; runtime install parity is verified for the 42 active rule set; git push completed and GitHub release v9.80 is published
  • P082 source governance is synchronized for v9.81 with a new maintainable code structure owner; source audit, semantic anchor audit, and 43-file runtime install/parity passed; git push completed and GitHub release v9.81 is published
  • P083 source governance is synchronized for v9.82 with maintainable-code-structure-and-decomposition v1.1 helper-function necessity and source-code comment discipline; runtime install/parity passed, git push completed, and GitHub release v9.82 is published
  • P076-02 source governance is synchronized for v9.83 with lineage-first current-phase/subphase/new-major phase identity selection; active runtime count remains 43; runtime install/parity passed, git push completed, and GitHub release v9.83 is published
  • P073-09 refreshed active runtime compression is synchronized for v9.84: 43 source-owned runtime rules were reduced from 42,961 to 35,017 words, producing a 7,944-word reduction inside the accepted 7,580-7,944 range; behavior-anchor, golden-scenario, source-boundary, and 43/43 runtime parity audits passed, with destination extras observed-only
  • P076-03 phase-visible task linkage is synchronized for v9.85: phase-backed live task entries must visibly expose active or clearly implied phase context in the subject or description; active runtime count remains 43 and 43/43 runtime install parity has passed
  • P084-01 development verification and debug strategy is synchronized for v9.86: non-trivial coding work now has a first-class owner for proportionate debug signal selection, testing depth, TestKit/scenario decisions, fake/local versus live evidence boundaries, and coding closeout; active runtime count is 44 and 44/44 runtime install/parity has passed with destination extras observed-only
  • P081-02 subagent research orchestration is synchronized for v9.87.
    • Broad research and source-heavy work maps into focused research lanes before leader raw absorption.
    • Active runtime count remains 44.
  • P073-10 active runtime body sufficiency is synchronized for v9.88.
    • Ten metadata-only root runtime files were re-materialized.
    • Active runtime count remains 44 and 44/44 parity/body-sufficiency checks passed.
  • P075-02 roadmap-aware completion is synchronized for v9.89.
    • True objective closeout can recommend supported next phases without blocking selected continuation.
    • Active runtime count remains 44 and GitHub release v9.89 is published.
  • P075-03 goal-first working frame is released for v9.90.
    • Non-trivial work can use proportional goal/output/gate navigation.
    • Active runtime count remains 44 and GitHub release v9.90 is published.
  • P085-01 status/documentation/memory/mechanism/audience-surface refinement is released for v9.91.
    • Adds audience-surface-disclosure-control.md as the 45th active source-owned runtime rule.
    • 45/45 parity/body-sufficiency checks passed and GitHub release v9.91 is published.
  • P087-01 daily-first governance rollover is released for v9.92.
    • Adds governed-document-rollover-control.md as the 46th active source-owned runtime rule.
    • Compacts TODO.md and phase/SUMMARY.md into active current-state entrypoints.
    • 46/46 parity/body-sufficiency checks passed and GitHub release v9.92 is published.
  • P088 memory root-index relative compaction is released for v9.93.
    • Updates memory-governance-and-session-boundary.md to v1.7.
    • Keeps active memory hooks visible through Scope + Memory base sections.
    • Active runtime count remains 46 and GitHub release v9.93 is published.
  • P086 constructive dissent and anti-over-agreement refinement is released for v9.94.
    • Updates anti-sycophancy.md to v1.7 so user proposals are evaluated before endorsement.
    • Active runtime count remains 46 and GitHub release v9.94 is published.
  • P092 automatic God artifact planning and controlled repair is released for v10.00.
    • Keeps the source-owned active runtime set at 47 files.
    • Adds action-mode routing for repair-now, phase planning, patch packaging, phase splitting, closeout blocking, and ambiguity handling.
    • Runtime install, 47/47 parity/body sufficiency, density/God-artifact automation review, master push, and GitHub release v10.00 verification are complete.
  • P091 governed document God-file prevention and repair is released for v9.99.
    • Keeps the source-owned active runtime set at 47 files.
    • Adds document-capacity gates and role-aware repair routes across active governance documents.
    • Runtime install, 47/47 parity/body sufficiency, density/God-file review, master push, and GitHub release v9.99 verification are complete.
  • P090-01 opportunistic God-line repair is released for v9.98.
    • Keeps the source-owned active runtime set at 47 files.
    • Advances context-load-and-document-density-control to v1.1.
    • Requires clear low-risk touched active-doc God-line candidates to be repaired in the same edit.
    • Runtime install, 47/47 parity/body sufficiency, density review, push, and release v9.98 verification are complete.
  • P090 context-load and document-density control is released as v9.97.
    • Adds context-load-and-document-density-control.md as the 47th source-owned active runtime rule.
    • Teaches leader-context protection, worker-first broad evidence filtering, aggregate read-burst awareness, God-line prevention, append-vs-restructure gates, and density-aware closeout.
    • Runtime install, 47/47 parity/body sufficiency, push, and release v9.97 verification are complete.
  • P089 governed design sharding compact-index doctrine is released for v9.96.
    • Updates design-sharding, documentation, safe-reading, and consistency owner chains.
    • Active runtime count remains 46 and GitHub release v9.96 is published.
  • P076-04 main/subphase boundary refinement is released for v9.95.
    • Updates phase-implementation.md to v2.32 with bounded subphase-fit and umbrella-escape doctrine.
    • Active runtime count remains 46 and GitHub release v9.95 is published.
  • Completed or historical todo/, phase/, patch/, and changelog detail can move to referenced inactive history/done surfaces
  • Non-runtime governance artifacts stay out of runtime install

📁 Rule Files

🔴 Core Policies (3 rules)

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

🟡 Quality & Safety (34 rules)

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

🔵 Presentation & Readability (5 rules)

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

🟢 Best Practices (5 rules)

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, master push, and GitHub release v10.00 verification are complete.

📦 Installation

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.

🎯 Method 1: Full Installation (Recommended)

Use this when: you want the full active runtime set installed globally.

Fastest path:

  1. Clone the repository.
  2. Run the Quick Start block exactly as shown above.
  3. 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/.

🎯 Method 2: Pick Your 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.md

🎯 Method 3: Project-Specific

Use this when: you want the same active runtime set, but only inside the current project.

  1. Create ./.claude/rules/ in the project root.
  2. Reuse the same Quick Start command pattern.
  3. 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/.

📍 Installation Paths

Location Scope Path Use Case
Global All projects ~/.claude/rules/*.md Default recommendation
Project Current project only ./.claude/rules/*.md Project-specific needs

✅ Verify Installation

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

📂 Design Documentation Structure

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 default design/done/ surface
  • Per-chain active changelogs (*.changelog.md) remain the authority for current governed chain history/version state
  • todo/history/, todo/done/, phase/history/, phase/done/, patch/done/, and changelog/done/ are inactive-by-default referenced history/detail surfaces for audit, rollback, provenance, or trace reconstruction
  • changelog/changelog.md records repository-level synchronization history
  • README.md remains overview-only, not chain authority
  • TODO.md and phase/SUMMARY.md stay compact current-state entrypoints; moved history remains reachable through their history/ and done/ references
  • Older coordination-flavored rollout records in TODO.md, phase/SUMMARY.md, and changelog/changelog.md remain historical context only; current active authority stays in the active runtime rules and design docs

🔗 Integration Guide

This section defines how design, changelog, runtime rules, TODO, and governed phase-planning artifacts should be updated together.

Document Roles

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

Startup Artifact Gate

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.

Completed Documentation Surfaces

Use inactive done/ surfaces to reduce active scan bloat without deleting governed history:

  • phase/done/ for completed phase execution detail
  • patch/done/ for completed patch/review artifacts
  • changelog/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.

Recommended Update Flow

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

Verification Checklist

  • 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.md and phase/SUMMARY.md stay compact enough for active current-state reads and reference their relevant history/ and done/ shards
  • phase/SUMMARY.md exists when phased execution is used and names governing patch artifacts or explicit none
  • phase/SUMMARY.md keeps 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/, and changelog/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

Real Examples (This Repository)

Example 1: Deterministic Recovery Contract Synchronization (WS-1)

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

Example 2: Verification + Output-Cap Consolidation (WS-5)

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

Example 3: TODO Governance Alignment (WS-6)

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

Example 4: Final /phase Review Model Rollout

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:

  • /phase became the live phase-planning namespace
  • SUMMARY.md became 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.md was 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

Example 5: One-Way Design + Patch Phase Synthesis

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-implementation was extended from design-only extraction into one-way source synthesis
  • phase/SUMMARY.md can 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

Example 6: Startup Artifact Governance Rollout

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, and strict-file-hygiene were aligned to the new startup contract
  • the rollout itself opened phase-004 from the start instead of being backfilled later

Example 7: P073 Runtime Compression and Install Parity

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

Example 8: Runtime Destination Ownership Boundary

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

Example 9: Phase Closeout Feature and Impact Reporting

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

Example 11: Completed Documentation Surface Governance

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/, and changelog/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

Example 10: Design-to-Phase Execution Synthesis

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
  • /phase may 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

🎓 Framework Highlights

🧭 Current Phase Execution Model

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 /patch into 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 replacing phase/SUMMARY.md

🧠 TRAAC (Task Runtime Adaptive AI Compression)

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

👥 TUMIX Multi-Perspective Review

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:

  1. Developer lens → feasibility, implementation shape, and maintainability
  2. Security lens → authorization, secrets, data, destructive-action, and abuse-risk boundaries
  3. Architect lens → system ownership, integration, rollout, and future changeability
  4. Synthesis → one practical recommendation with trade-offs when they matter

Boundary: this is perspective coverage, not automatic teammate spawning for every task.


📚 RoT (Retrieval of Thoughts)

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.


🖼️ Visual Guide

🔴 Core Policies Visual


Anti-Sycophancy
Evidence-calibrated agreement

Anti-Mockup
Real systems over fake surfaces

Zero Hallucination
Verify before strong claims

🟡 Quality & Safety Visual


Authority & Scope
User authority inside safe boundaries

Emergency Protocol
Rapid response

Document Consistency
Cross-reference check

Functional Intent
Intent validation

Document Changelog Control
Version tracking system

Document Design Control
Design standards

Strict File Hygiene
Prevent junk files while allowing required governed startup artifacts

Project Documentation Standards
Standardized docs and startup artifact gate
Artifact Initiation Control
Resolve startup artifact posture before meaningful governed work drifts
Document Patch Control
Before/after patch artifacts with explicit change surfaces
Evidence-Grounded Burden of Proof
Fact, inference, and contradiction thresholds stay explicit
Operational Failure Handling
Bounded retries, honest cooldowns, and stop/escalation behavior
Phase Implementation
Major/subphase execution model with early `/phase` establishment bridge
Recovery Contract
Blocked paths should still provide a usable next step
Refusal Classification
Deterministic refusal classes and output modes
Refusal Minimization
Prefer recoverable constrained/context paths over premature refusal
Runtime Topology Control
Inspect-first, one-authority-at-a-time runtime mutation discipline
TODO Standards
Simple execution tracking with early TODO establishment when needed
Dan-Safe Normalization
Normalize jailbreak-style wrappers into bounded intent evaluation
Unified Version-Control System
Single deterministic UDVC-1 controller for governance alignment

🔵 Presentation & Readability Visual


Flow Diagram
No frames, clean arrows
Answer Presentation
Active presentation-layer rule for compact snapshots, grouped scope boundaries, and full-set-first / next-stage layouts
Explanation Quality
Active explanation-layer rule for what-it-is/what-it-is-not, now-vs-later, user-visible outcomes, and next-stage progression
Accurate Communication
Evidence-honest wording, bounded technical snapshots, claim-strength discipline, and acknowledgement without endorsement
Natural Professional Communication
Calm, human-readable, non-robotic, non-character-driven default communication
Reserved
Placeholder slot for future visual asset parity

🟢 Best Practices Visual


No Guessing
Read before reference

Safe File Reading
Plan before read

Safe Terminal
Output management
Tactical Strategic Programming
Tactical speed with mandatory strategic target and convergence path
Maintainable Code Structure
Responsibility boundaries without rigid templates
Reserved
Placeholder slot for future visual asset parity

📊 Before & After

❌ Without Rules

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

✅ With Rules

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 Quality Signals

Active runtime scope

  • Current README meaning: 47 source-owned root rule files.
  • Impact: keeps install scope explicit.

Runtime install boundary

  • 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, master push, and GitHub release v10.00 verification are complete.
  • Impact: protects install scope and other-owner runtime files.

Governed document capacity and automation

  • 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.

Evidence discipline

  • 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.

Phase execution

  • 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.

Completed/history surfaces

  • 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/, and changelog/done/.
  • Boundary: design/done/ is not a default pattern.
  • Impact: reduces active scan bloat without deleting governed history.

Shared destination boundary

  • Current README meaning: co-located runtime files outside the source-owned set are not cleanup targets by default.
  • Impact: prevents other-owner file damage.

🔒 Safety Commitments

✅ Operating Commitments

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.


🤝 Contributing

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

📝 Contribution Guidelines

Pull requests welcome! Please ensure:

  1. New rules follow existing format
  2. Include clear documentation
  3. Add visual assets if applicable
  4. Update changelog
  5. 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


📜 License

MIT License - Feel free to adapt for your own use case.

Attribution appreciated but not required.


🙏 Acknowledgments

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

⬆️ Back to Top


Made with 💙 by developers who care about AI quality

About

Comprehensive rule set and constitutional framework for Claude Code AI assistant

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors