CLAUDE.md
CLAUDE.mdCLAUDE.mdroot
Quality
81/100
Scores the file, not the repository.Length
1,871 words
24 headings · 3 code blocksRepository
14
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# CLAUDE.md - Entry Point for Claude Code23> This file is the equivalent of `.github/copilot-instructions.md` for Claude Code.4> It loads once at session start. Keep it small -- point to detailed docs, don't duplicate them.56---78## Quality Loop Hard Rule (NON-SKIPPABLE)910> **HARD RULE**: Before editing, creating, or deleting any file for a code or docs change, run `.agentx/agentx.ps1 loop start -p "<task>"` as your ABSOLUTE FIRST tool call. Reading files and running `loop status` are allowed; mutating the workspace before `loop start` succeeds is a contract violation. The loop is NOT done until `.agentx/agentx.ps1 loop complete -s "<summary>"` succeeds, and at least one history iteration summary must contain the word "review" (subagent review pass). The pre-commit hook blocks commits when these conditions are unmet.11>12> **Honesty rule**: If asked whether the loop ran, run `.agentx/agentx.ps1 loop status` and report the actual state. Do not claim completion unless `loop complete` succeeded in the current session.13>14> **Minimum 5 iterations**: EVERY agent and task class requires at least 5 quality iterations before `loop complete` is allowed (enforced by the loop CLI, agentic runner, extension runtime, and pre-commit hook). Report each iteration with `loop iterate -s "..."`, then summarize before completing.15>16> **Cross-Cutting Agent Protocol**: The shared rules (quality loop, subagent review, per-iteration reporting, Karpathy, Model Council, Scrub, Brainstorm, Plan, Research) are defined ONCE in [.github/AGENT-PROTOCOL.md](.github/AGENT-PROTOCOL.md). Agent files keep only the front-loaded Pre-edit gate + Honesty rule stubs and point there.17>18> Frontmatter-only enforcement is insufficient -- this rule lives here in body prose because models routinely skip rules placed only in deeper docs.1920---2122## Mandatory Workflow Gates (NON-SKIPPABLE)2324These four rules carry the same weight as the Quality Loop. The pre-commit hook hard-fails commits that violate them. Bypass tokens exist for genuine emergencies only.2526> **Compound Capture (Done gate)**: Any commit that stages an APPROVED review under `docs/artifacts/reviews/REVIEW-*.md` MUST also stage the matching `docs/artifacts/learnings/LEARNING-<issue>.md`, OR record a skip rationale in the issue close comment and tag the commit message with `[skip-capture]`. Work is NOT Done until Compound Capture is resolved. See [AGENTS.md#compound-engineering-hard-rule](AGENTS.md#compound-engineering-hard-rule).27>28> **Model Council (ADR/PRD/Eval gate -- MANDATORY, NO SKIP)**: Any commit that stages a new `docs/artifacts/adr/ADR-*.md` MUST also stage a matching `docs/artifacts/adr/COUNCIL-*.md` capturing 3 diverse-model perspectives and a Synthesis section. Mandatory for Product Manager (prd-scope), Architect (adr-options), and any complex task; also Data Scientist (ai-design), Reviewer (code-review), and Consulting Research. There is no skip token -- the pre-commit hook hard-fails when the COUNCIL file is missing. See [AGENTS.md#role-pipeline-reference](AGENTS.md#role-pipeline-reference).29>30> **Execution Plan (complex-work gate)**: Any commit changing **8 or more** code files (`.ts/.tsx/.js/.ps1/.py/.cs/.go/.rs/.tf/.bicep/.sql`) MUST stage a corresponding `docs/execution/plans/EXEC-PLAN-*.md` derived from [.github/templates/EXEC-PLAN-TEMPLATE.md](.github/templates/EXEC-PLAN-TEMPLATE.md), OR tag the commit message with `[skip-plan]`. Plans are living documents and MUST be updated, not only authored. See [docs/WORKFLOW.md#execution-plans-for-complex-work](docs/WORKFLOW.md#execution-plans-for-complex-work).31>32> **Brainstorm (Engineer pre-Plan gate)**: When acting in the Engineer phase on non-trivial work, the `Research -> Brainstorm -> Plan -> Design -> Implement -> Test -> Review` pipeline is mandatory. The Brainstorm step is satisfied by recording at least one entry of type `brainstorm` in the clarification ledger OR an `## Alternatives Considered` block inside the execution plan **before** Plan is written. This step has no missing-file hook gate; reviewers MUST verify it during the review phase. See [AGENTS.md#pipeline-phase-compliance-hard-rule](AGENTS.md#pipeline-phase-compliance-hard-rule).3334**Honesty rule**: If asked whether any of these gates ran, inspect the staged files and commit message and report the actual state. Never claim a gate was satisfied without the artifact or skip token.3536---3738## Core Documents (Read Before Coding)39401. **[AGENTS.md](AGENTS.md)** - Map of all resources, quick-reference rules, pointers to detailed docs. Read for ANY coding or workflow task.412. **[docs/WORKFLOW.md](docs/WORKFLOW.md)** - Workflow, routing, handoff, status transitions, architecture. Read for multi-agent coordination.423. **[Skills.md](Skills.md)** - Production code standards index. Use the Quick Reference table to pick only the skills relevant to the task and active phase, then read those SKILL.md files.4344**When to skip AGENTS.md**: Answering questions, research, debugging only.4546---4748## Retrieval-Led Reasoning4950**IMPORTANT**: Prefer retrieval-led reasoning over pre-training-led reasoning for ALL implementation tasks.51Always `read_file` the relevant SKILL.md, instruction file, or spec before generating code.52Do NOT rely on training data for project-specific patterns, conventions, or APIs.53If a skill, spec, or doc exists in the workspace, read it first; generate second.5455---5657## Context Loading Rules5859Load context on-demand, not upfront. Match the task to the right documents:6061| Task | Load | Skip |62|------|------|------|63| Writing/editing code | AGENTS.md + matching instruction file + relevant skills | Skills not matching task |64| Creating new files, features, issues | AGENTS.md (workflow + classification) | Unrelated skills |65| Multi-agent coordination, handoffs | AGENTS.md + [docs/WORKFLOW.md](docs/WORKFLOW.md) | Unrelated skills |66| Answering questions, research | Nothing extra | AGENTS.md, Skills.md |67| Debugging | Matching instruction file + error handling skill | AGENTS.md |6869**Token budget**: Load only the skills relevant to the task and active phase. Prefer progressive disclosure over broad context loading.7071---7273## Context Loading7475### Session-Persistent Instructions (load at session start)7677Read these two files at the start of EVERY session -- they apply to all tasks:7879- [.github/instructions/memory.instructions.md](.github/instructions/memory.instructions.md) -- memory read/write protocol80- [.github/instructions/project-conventions.instructions.md](.github/instructions/project-conventions.instructions.md) -- learned project conventions8182### Instruction Files (5 remaining -- load on demand)8384| File Pattern | Read This |85|--------------|-----------|86| `*agent*`, `*llm*`, `*workflow*` | [.github/instructions/ai.instructions.md](.github/instructions/ai.instructions.md) |87| `*.py`, `*.pyx` | [.github/instructions/python.instructions.md](.github/instructions/python.instructions.md) |88| `*.cs`, `*.csx` | [.github/instructions/csharp.instructions.md](.github/instructions/csharp.instructions.md) |89| `*.ts` (backend) | [.github/instructions/typescript.instructions.md](.github/instructions/typescript.instructions.md) |90| `*.tsx`, `*.jsx`, `components/`, `hooks/` | [.github/instructions/react.instructions.md](.github/instructions/react.instructions.md) |9192### Skills (load directly for domains without instructions)9394| File Pattern | Load Skill |95|--------------|------------|96| `*.tf`, `*.tfvars` | [.github/skills/infrastructure/terraform/SKILL.md](.github/skills/infrastructure/terraform/SKILL.md) |97| `*.bicep`, `*.bicepparam` | [.github/skills/infrastructure/bicep/SKILL.md](.github/skills/infrastructure/bicep/SKILL.md) |98| `*.razor`, `*.razor.cs` | [.github/skills/languages/blazor/SKILL.md](.github/skills/languages/blazor/SKILL.md) |99| `*.sql`, `migrations/` | [.github/skills/languages/sql-server/SKILL.md](.github/skills/languages/sql-server/SKILL.md) + [.github/skills/languages/postgresql/SKILL.md](.github/skills/languages/postgresql/SKILL.md) |100| `*.yml`, `*.yaml`, `workflows/` | [.github/skills/operations/yaml-pipelines/SKILL.md](.github/skills/operations/yaml-pipelines/SKILL.md) + [.github/skills/operations/github-actions-workflows/SKILL.md](.github/skills/operations/github-actions-workflows/SKILL.md) |101| `Controllers/`, `api/`, `endpoints/` | [.github/skills/architecture/api-design/SKILL.md](.github/skills/architecture/api-design/SKILL.md) |102| `**/ux/**`, `**/prototypes/**` | [.github/skills/design/ux-ui-design/SKILL.md](.github/skills/design/ux-ui-design/SKILL.md) |103104---105106## Issue-First Workflow107108Every piece of work SHOULD start with an issue. Issue enforcement depends on mode:109- **GitHub Mode**: Issue references in commits are **required** (teams need traceability)110- **Local Mode**: Issue references are **optional** by default (solo developers can commit freely)111- Toggle: `.agentx/agentx.ps1 config set enforceIssues true` (or `false`)112113```bash114# GitHub Mode115gh issue create --title "[Story] Add /health endpoint" --label "type:story"116# Work...117git commit -m "feat: add health endpoint (#42)"118gh issue close 42 --reason completed119```120121```bash122# Local Mode (issues optional - commit freely)123git commit -m "feat: add user login"124125# Or use full issue workflow if preferred:126./.agentx/local-issue-manager.ps1 -Action create -Title "[Bug] Fix timeout" -Labels "type:bug"127git commit -m "fix: resolve login timeout (#1)"128./.agentx/local-issue-manager.ps1 -Action close -IssueNumber 1129```130131---132133## Classification134135| Type | Label | Route To |136|------|-------|----------|137| Broken? | `type:bug` | Engineer |138| Research? | `type:spike` | Architect |139| Docs only? | `type:docs` | Engineer |140| Pipeline/deploy? | `type:devops` | DevOps Engineer |141| Testing/certification? | `type:testing` | Tester |142| Large/vague? | `type:epic` | Product Manager |143| Single capability? | `type:feature` | Architect |144| Otherwise | `type:story` | Engineer |145146---147148## Commit Format149150```151type: description (#issue-number)152```153154Types: `feat`, `fix`, `docs`, `test`, `refactor`, `perf`, `chore`155156---157158## ASCII-Only Rule159160All source code, scripts, config, and documentation MUST use ASCII characters only (U+0000-U+007F).161162- MUST NOT use emoji, Unicode symbols, box-drawing characters, smart quotes163- MUST use ASCII equivalents: `[PASS]` not checkmarks, `[FAIL]` not cross marks, `->` not arrows, `-` not em-dashes164165---166167## Security Checklist168169Before any commit:170171- [ ] No hardcoded secrets172- [ ] SQL parameterization (no string concatenation)173- [ ] Input validation on all endpoints174- [ ] Dependencies scanned175176**Blocked commands**: `rm -rf /`, `git reset --hard`, `drop database`177178### Local Files First Rule179180All agents MUST create deliverable files locally using `editFiles` -- MUST NOT use `mcp_github_create_or_update_file` or `mcp_github_push_files` to push files directly to GitHub. Users must be able to review files locally before committing.181182---183184## Directive Language185186- **MUST** / **MUST NOT** - Absolute requirement or prohibition187- **SHOULD** / **SHOULD NOT** - Strong recommendation (exceptions need justification)188- **MAY** - Truly optional189190---191192## Agent Definitions193194Agent role files are at `.github/agents/`. Load only the active agent's definition:195196| Agent | Definition |197|-------|-----------|198| Agent X (Hub) | [.github/agents/agent-x.agent.md](.github/agents/agent-x.agent.md) |199| Product Manager | [.github/agents/product-manager.agent.md](.github/agents/product-manager.agent.md) |200| UX Designer | [.github/agents/ux-designer.agent.md](.github/agents/ux-designer.agent.md) |201| Architect | [.github/agents/architect.agent.md](.github/agents/architect.agent.md) |202| Engineer | [.github/agents/engineer.agent.md](.github/agents/engineer.agent.md) |203| Reviewer | [.github/agents/reviewer.agent.md](.github/agents/reviewer.agent.md) |204| Auto-Fix Reviewer | [.github/agents/reviewer-auto.agent.md](.github/agents/reviewer-auto.agent.md) |205| DevOps Engineer | [.github/agents/devops.agent.md](.github/agents/devops.agent.md) |206| Data Scientist | [.github/agents/data-scientist.agent.md](.github/agents/data-scientist.agent.md) |207| Tester | [.github/agents/tester.agent.md](.github/agents/tester.agent.md) |208| Power BI Analyst | [.github/agents/powerbi-analyst.agent.md](.github/agents/powerbi-analyst.agent.md) |209| Consulting Research | [.github/agents/consulting-research.agent.md](.github/agents/consulting-research.agent.md) |210| GitHub Ops | [.github/agents/internal/github-ops.agent.md](.github/agents/internal/github-ops.agent.md) |211| ADO Ops | [.github/agents/internal/ado-ops.agent.md](.github/agents/internal/ado-ops.agent.md) |212| AzDO PRD to WIT | [.github/agents/internal/ado-prd-to-wit.agent.md](.github/agents/internal/ado-prd-to-wit.agent.md) |213| Functional Reviewer | [.github/agents/internal/functional-reviewer.agent.md](.github/agents/internal/functional-reviewer.agent.md) |214| Architecture Reviewer | [.github/agents/internal/architecture-reviewer.agent.md](.github/agents/internal/architecture-reviewer.agent.md) |215| Prompt Engineer | [.github/agents/internal/prompt-engineer.agent.md](.github/agents/internal/prompt-engineer.agent.md) |216| Eval Specialist | [.github/agents/internal/eval-specialist.agent.md](.github/agents/internal/eval-specialist.agent.md) |217| Ops Monitor | [.github/agents/internal/ops-monitor.agent.md](.github/agents/internal/ops-monitor.agent.md) |218| RAG Specialist | [.github/agents/internal/rag-specialist.agent.md](.github/agents/internal/rag-specialist.agent.md) |219| Agile Coach | [.github/agents/agile-coach.agent.md](.github/agents/agile-coach.agent.md) |220221---222223## Claude Code Commands224225All 21 agents are available as `/project:` slash commands in Claude Code via `.claude/commands/` (invisible sub-agents do not have commands):226227| Command | Agent | Purpose |228|---------|-------|---------|229| `/project:agent-x` | Agent X (Hub) | Route work to specialist agents based on type and complexity |230| `/project:product-manager` | Product Manager | Create PRD, break Epics into Features and Stories |231| `/project:ux-designer` | UX Designer | Wireframes, HTML/CSS prototypes, WCAG 2.1 AA |232| `/project:architect` | Architect | ADR with 3+ options, Tech Spec with diagrams |233| `/project:engineer` | Engineer | Implement code, tests (80% coverage), quality loop |234| `/project:reviewer` | Reviewer | Code review (8 categories), approve or reject; also reviews standalone human-written architecture docs (`.md`/`.docx`/`.pptx`/`.pdf`/diagrams) via the Architecture Reviewer sub-agent |235| `/project:reviewer-auto` | Auto-Fix Reviewer | Review + auto-apply safe fixes |236| `/project:devops` | DevOps Engineer | GitHub Actions pipelines, deployment automation |237| `/project:data-scientist` | Data Scientist | ML pipelines, evaluations, drift monitoring |238| `/project:tester` | Tester | Automated testing, certification reports |239| `/project:powerbi-analyst` | Power BI Analyst | Power BI reports, DAX measures, semantic models |240| `/project:consulting-research` | Consulting Research | Domain-expert consulting research, client-ready materials |241| `/project:github-ops` | GitHub Ops | GitHub issue triage, sprint planning, backlog management |242| `/project:ado-ops` | ADO Ops | Azure DevOps work items, sprint planning, PRD decomposition |243| `/project:ado-prd-to-wit` | AzDO PRD to WIT | Analyze PRDs and plan ADO work item hierarchies for execution |244| `/project:agile-coach` | Agile Coach | Story creation, refinement, INVEST compliance |245246**Usage**: Type `/project:engineer Implement the health endpoint for issue #1` in Claude Code.247248Each command file contains the agent's constraints, boundaries, execution steps, and self-review checklist. It also instructs Claude to `read_file` the full agent definition at `.github/agents/` for retrieval-led reasoning.249250---251252## Templates253254| Template | Location |255|----------|----------|256| PRD | `.github/templates/PRD-TEMPLATE.md` |257| ADR | `.github/templates/ADR-TEMPLATE.md` |258| Tech Spec | `.github/templates/SPEC-TEMPLATE.md` |259| UX Design | `.github/templates/UX-TEMPLATE.md` |260| Code Review | `.github/templates/REVIEW-TEMPLATE.md` |261| Architecture Review | `.github/templates/ARCH-REVIEW-TEMPLATE.md` |262| Security Plan | `.github/templates/SECURITY-PLAN-TEMPLATE.md` |263| Progress Log | `.github/templates/PROGRESS-TEMPLATE.md` |264| Roadmap | `.github/templates/ROADMAP-TEMPLATE.md` |265
Also in jnPiyush/AgentX
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| jnPiyush/AgentXvscode-extension/.github/AGENTS.md · 14 | AGENTS.md | lint-formatstylegitsecurity+2 | 69/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/000-agentx-core.mdc · 14 | Cursor rules | styleapido-notagent-behaviour | 55/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/ai.mdc · 14 | Cursor rules | no sections | 16/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/csharp.mdc · 14 | Cursor rules | no sections | 16/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/python.mdc · 14 | Cursor rules | testlint-format | 32/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/react.mdc · 14 | Cursor rules | no sections | 16/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/typescript.mdc · 14 | Cursor rules | types | 16/100 | 3 days ago | |
| jnPiyush/AgentX.github/copilot-instructions.md · 14 | Copilot instructions | stylegitdo-notagent-behaviour | 67/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/ai.instructions.md · 14 | Copilot instructions | testing-strategydo-notagent-behaviour | 50/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/csharp.instructions.md · 14 | Copilot instructions | teststylesecuritydo-not+1 | 59/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/memory.instructions.md · 14 | Copilot instructions | lint-formatperformance | 54/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/project-conventions.instructions.md · 14 | Copilot instructions | styledo-not | 50/100 | today | |
| jnPiyush/AgentX.github/instructions/python.instructions.md · 14 | Copilot instructions | testlint-formatsecuritydo-not+1 | 67/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/react.instructions.md · 14 | Copilot instructions | testtypessecuritydo-not+1 | 63/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/typescript.instructions.md · 14 | Copilot instructions | setuptestlint-formatstyle+5 | 92/100 | 3 days ago | |
| jnPiyush/AgentXAGENTS.md · 14 | AGENTS.md | lint-formatstylegitsecurity+2 | 69/100 | 3 days ago |
Diff against vscode-extension/.github/AGENTS.md Diff against .cursor/rules/000-agentx-core.mdc Diff against .cursor/rules/ai.mdc Diff against .cursor/rules/csharp.mdc Diff against .cursor/rules/python.mdc Diff against .cursor/rules/react.mdc Diff against .cursor/rules/typescript.mdc Diff against .github/copilot-instructions.md Diff against .github/instructions/ai.instructions.md Diff against .github/instructions/csharp.instructions.md Diff against .github/instructions/memory.instructions.md Diff against .github/instructions/project-conventions.instructions.md Diff against .github/instructions/python.instructions.md Diff against .github/instructions/react.instructions.md Diff against .github/instructions/typescript.instructions.md Diff against AGENTS.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Adit-Jain-srm/NightmareNetCLAUDE.md · 45 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 3 days ago | |
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| microsoft/playwrightCLAUDE.md · 94k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 3 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 3 days ago | |
| filamentphp/filamentCLAUDE.md · 32k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| dotCMS/coreCLAUDE.md · 949 | CLAUDE.md | setupbuildteststyle+7 | 99/100 | today | |
| lollipopkit/flutter_server_boxCLAUDE.md · 8.3k | CLAUDE.md | buildteststylearch+2 | 98/100 | 3 days ago |
