Repository navigation
Add living-docs-governance skill (maintain-phase project doc system) - #2277
Conversation
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds the Living Docs Governance skill, wires it into installation and packaging, and updates English and Chinese catalog documentation to report 279 skills. ChangesLiving Docs Governance Skill
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| Filename | Overview |
|---|---|
| skills/living-docs-governance/SKILL.md | New maintain-phase governance skill; well-structured with metadata, origin, clear role taxonomy, and sensible security guidance around treating external docs as untrusted. No critical issues found. |
| manifests/install-modules.json | Adds skills/living-docs-governance at the correct alphabetical position. No issues. |
| package.json | Registers skills/living-docs-governance/ entry in correct alphabetical order. No issues. |
| AGENTS.md | Skill count updated from 284 to 285 in two places; consistent with the change. No issues. |
| README.md | Skill count updated from 284 to 285 in the feature table and prose paragraph. Consistent and correct. |
| .claude-plugin/marketplace.json | Skill count bumped 284→285 in description string. Consistent with change. |
| .claude-plugin/plugin.json | Skill count bumped 284→285 in description string. Consistent with change. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Session Start] --> B[Read Active Harness Instructions\nAGENTS.md / CLAUDE.md]
B --> C[Read Canonical Map\nNavigation & ownership]
C --> D[Read Current Status\nBlockers & delete-zone]
D --> E[Read Relevant History/ADRs\nDecisions & removals]
E --> F{Work begins}
F --> G[Structure / Navigation change?]
F --> H[Blocker / Milestone / Removal change?]
F --> I[Hard decision / Incident?]
F --> J[Ordinary commit / routine fix?]
G --> G1[Update canonical Map]
H --> H1[Update Status + delete-zone]
I --> I1[Append History entry or ADR]
J --> J1[Rely on Git / issue tracker]
subgraph Four Roles
R1[Constitution\nAgent rules & policy links]
R2[Map\nWhat exists & where]
R3[Status\nHealth, blockers, delete-zone]
R4[History\nDecisions & removals]
end
B -.-> R1
C -.-> R2
D -.-> R3
E -.-> R4
Reviews (9): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile
|
🤖 Bezalel Engine — Automated Code Review Review of #2277 – “living-docs-governance” skill1. SummaryIntroduces one new skill (“living-docs-governance”) whose only implementation, per the diff, is the markdown file 2. Issues| # | Type | Where | Impact | |
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
skills/living-docs-governance/SKILL.md (1)
59-97: 🧹 Nitpick | 🔵 Trivial | ⚡ Quick winTemplate section would benefit from a concrete filled-in example.
Line 62 promises "fill the bracketed parts," but the provided templates show schema (table structure and field guidance) without explicit bracket notation. Templates are schema-like rather than literal fill-in-the-blank stubs. Adding one brief inline example (e.g., a three-row filled CLAUDE_MAP.md snippet) would reduce ambiguity for users who are setting this up for the first time.
Example enhancement:
`CLAUDE_MAP.md` (example fragment): | Path | One line | Who touches it | |---|---|---| | `src/auth/` | user identity and token management | security | | `docs/DESIGN.md` | architecture decisions | all |🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@skills/living-docs-governance/SKILL.md` around lines 59 - 97, The Document Templates section provides schema and structure guidance but lacks concrete examples of filled-in templates, making it unclear how to actually complete them. Add brief inline example snippets after each template definition (CLAUDE.md, CLAUDE_MAP.md, PROJECT_STATUS.md, PROJECT_LOG.md) showing what a completed version would look like with actual content rather than empty placeholders, particularly demonstrating realistic values for key fields like paths, metrics, and log entries to reduce ambiguity for first-time users setting up these documents.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@skills/living-docs-governance/SKILL.md`:
- Around line 59-97: The Document Templates section provides schema and
structure guidance but lacks concrete examples of filled-in templates, making it
unclear how to actually complete them. Add brief inline example snippets after
each template definition (CLAUDE.md, CLAUDE_MAP.md, PROJECT_STATUS.md,
PROJECT_LOG.md) showing what a completed version would look like with actual
content rather than empty placeholders, particularly demonstrating realistic
values for key fields like paths, metrics, and log entries to reduce ambiguity
for first-time users setting up these documents.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 00be4d44-56cb-4f80-950a-657e4ee53005
📒 Files selected for processing (1)
skills/living-docs-governance/SKILL.md
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (27)
- GitHub Check: Greptile Review
- GitHub Check: Test (ubuntu-latest, Node 20.x, npm)
- GitHub Check: Test (ubuntu-latest, Node 18.x, npm)
- GitHub Check: Test (ubuntu-latest, Node 22.x, yarn)
- GitHub Check: Test (ubuntu-latest, Node 20.x, yarn)
- GitHub Check: Test (windows-latest, Node 22.x, pnpm)
- GitHub Check: Test (ubuntu-latest, Node 22.x, pnpm)
- GitHub Check: Test (ubuntu-latest, Node 18.x, yarn)
- GitHub Check: Test (windows-latest, Node 20.x, npm)
- GitHub Check: Test (windows-latest, Node 22.x, npm)
- GitHub Check: Test (ubuntu-latest, Node 20.x, bun)
- GitHub Check: Test (windows-latest, Node 20.x, pnpm)
- GitHub Check: Test (windows-latest, Node 18.x, npm)
- GitHub Check: Test (windows-latest, Node 22.x, yarn)
- GitHub Check: Test (windows-latest, Node 20.x, yarn)
- GitHub Check: Test (macos-latest, Node 20.x, npm)
- GitHub Check: Test (windows-latest, Node 18.x, yarn)
- GitHub Check: Test (macos-latest, Node 20.x, yarn)
- GitHub Check: Test (macos-latest, Node 18.x, pnpm)
- GitHub Check: Test (macos-latest, Node 18.x, npm)
- GitHub Check: Test (windows-latest, Node 18.x, pnpm)
- GitHub Check: Test (macos-latest, Node 22.x, npm)
- GitHub Check: Test (ubuntu-latest, Node 18.x, bun)
- GitHub Check: Test (ubuntu-latest, Node 22.x, bun)
- GitHub Check: Test (ubuntu-latest, Node 18.x, pnpm)
- GitHub Check: Test (ubuntu-latest, Node 20.x, pnpm)
- GitHub Check: Coverage
🧰 Additional context used
📓 Path-based instructions (4)
skills/**/*.md
📄 CodeRabbit inference engine (CLAUDE.md)
Skills should be formatted as Markdown with clear sections for When to Use, How It Works, and Examples.
Files:
skills/living-docs-governance/SKILL.md
{agents,skills,commands}/**/*.md
📄 CodeRabbit inference engine (CLAUDE.md)
Use lowercase filenames with hyphens (e.g.,
python-reviewer.md,tdd-workflow.md) for agents, skills, and commands.
Files:
skills/living-docs-governance/SKILL.md
**/*.{md,mdx,rst}
📄 CodeRabbit inference engine (AGENTS.md)
Use doc-updater agent for documentation updates and maintaining codemaps
Files:
skills/living-docs-governance/SKILL.md
{skills,commands,agents,rules}/**
⚙️ CodeRabbit configuration file
{skills,commands,agents,rules}/**: Focus on prompt-injection resilience, tool-permission scope, destructive action guards, and secret exfiltration risks.
Files:
skills/living-docs-governance/SKILL.md
🧠 Learnings (3)
📓 Common learnings
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Organize project structure by feature/domain rather than by file type; maintain high cohesion and low coupling
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Use the Repository pattern to encapsulate data access behind a standard interface (findAll, findById, create, update, delete); business logic must depend on abstract interface, not storage mechanism
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Plan complex features before writing code using the planner agent; identify dependencies, risks, and break into phases
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Use conventional commit format: <type>: <description>. Types: feat, fix, refactor, docs, test, chore, perf, ci
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: If a security issue is found: STOP → use security-reviewer agent → fix CRITICAL issues → rotate exposed secrets → review codebase for similar issues
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Use agent-first approach: delegate to specialized agents for domain tasks (planner, architect, tdd-guide, code-reviewer, security-reviewer, etc.)
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Immediately use code-reviewer agent after writing or modifying code to address CRITICAL and HIGH severity issues
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Capture team/project knowledge (architecture decisions, API changes, runbooks) in the project's existing docs structure; capture personal debugging notes in auto memory
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Use autonomous loop execution with loop-operator agent for safe loop running with stall monitoring and intervention
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Use spec-miner agent for extracting specifications from brownfield projects during onboarding to spec-driven development
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Use build-error-resolver agent to analyze and fix build errors incrementally, verifying after each fix
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Use refactor-cleaner agent for dead code cleanup and code maintenance
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Analyze full commit history and draft comprehensive PR summaries including test plan before pushing with -u flag
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:10:46.877Z
Learning: Search for battle-tested skeleton/starter projects, evaluate with parallel agents (security, extensibility, relevance), clone best match, and iterate within proven structure
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:11:02.684Z
Learning: Organize code by functional/domain areas, not by type (feature-based structure over type-based structure)
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:11:02.684Z
Learning: Use conventional commit format: <type>: <description> where type is feat, fix, refactor, docs, test, chore, perf, or ci
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:11:02.684Z
Learning: Encapsulate data access in Repository pattern with standard interface (findAll, findById, create, update, delete); business logic depends on abstract interfaces, not storage mechanisms
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:11:02.684Z
Learning: Maintain high cohesion and low coupling in module design
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:11:02.684Z
Learning: Delegate domain tasks to specialized agents; use agent-first approach (planner for complex features, architect for design decisions, tdd-guide for new features/fixes, code-reviewer for code quality, security-reviewer for security, etc.)
Learnt from: CR
Repo: affaan-m/ECC
Timestamp: 2026-06-17T06:11:02.684Z
Learning: For complex features, plan first (use planner agent) before implementation, identifying dependencies and risks
📚 Learning: 2026-03-15T19:02:43.245Z
Learnt from: imrobinsingh
Repo: affaan-m/everything-claude-code PR: 503
File: skills/data-scraper-agent/SKILL.md:1-748
Timestamp: 2026-03-15T19:02:43.245Z
Learning: In this repository, skill folders should use a lowercase-hyphen name (e.g., data-scraper-agent, claude-api) and the skill description file inside each folder should be named SKILL.md (uppercase). Do not flag SKILL.md as a naming violation; treat SKILL.md as the canonical file name inside each skill directory.
Applied to files:
skills/living-docs-governance/SKILL.md
📚 Learning: 2026-04-15T15:52:59.963Z
Learnt from: manja316
Repo: affaan-m/everything-claude-code PR: 1360
File: skills/security-bounty-hunter/SKILL.md:11-18
Timestamp: 2026-04-15T15:52:59.963Z
Learning: In this repository’s skills documentation (skills/**/SKILL.md), use the canonical auto-activation skill section header `## When to Activate`—do not use `## When to Use`. CONTRIBUTING.md and docs/SKILL-DEVELOPMENT-GUIDE.md confirm the required header, and existing skills follow this convention. This header is important for the auto-activation mechanism to detect the correct section.
Applied to files:
skills/living-docs-governance/SKILL.md
🔇 Additional comments (4)
skills/living-docs-governance/SKILL.md (4)
1-6: Metadata and structure follow established conventions. LGTM!Front-matter includes required name, description, and
metadata: origin: ECCfields consistent with the codebase-onboarding skill. Folder naming (lowercase-hyphen) and file naming (SKILL.md uppercase) match repository standards. The Chinese trigger phrases in the description are a thoughtful way to support multi-language activation.
14-24: Section header and activation criteria are clear. LGTM!Uses
## When to Activate(correct per repository conventions) and provides specific, actionable criteria. The negative case ("Do not reach for this on a throwaway script") is helpful to set boundary expectations.
26-57: Four-document model and update rules are well-structured. LGTM!The non-overlap discipline (exactly one document per fact type) is enforced by clear role boundaries. Session read order is concrete: four short reads instead of repeated tree-grepping. Update rules are specific and tied to structural changes. The append-only log rule ("never edit or delete past lines") aligns with repository-wide audit-trail conventions.
99-104: Examples section effectively illustrates the skill in action. LGTM!Three concrete scenarios (docs drift, lost agent context, deleted file recreation) map directly to activation criteria and show how the four-document system breaks the cycle. Each example is specific and relatable.
|
Friendly ping 🙏 This is green on macOS and Ubuntu across all Node versions. The only red checks are |
…stem) Rebased onto latest main to resolve the merge conflict (the branch had gone DIRTY as main advanced). Trimmed to just the skill file (no top-level README/AGENTS edits), mirroring the merged affaan-m#2381. Previously approved by @powershello before this rebase.
71c9986 to
0c94765
Compare
|
@affaan-m This PR was previously approved by @powershello but went stale as main advanced (the branch had become conflicted/DIRTY). I've now rebased it cleanly onto the latest main — it's just the single |
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
|
@affaan-m Friendly follow-up: I resolved the branch conflicts against current main in 00e9177. The PR is now mergeable; all completed GitHub checks are green across Ubuntu and Windows, plus lint, coverage, Python, and security, while the macOS matrix is still queued. I also ran the full suite locally: 3240/3240 passed. This had prior approval from @powershello before main moved. When you have a moment after the remaining matrix completes, would you mind taking another look? Thank you for maintaining ECC. |
# Conflicts: # .claude-plugin/marketplace.json # .claude-plugin/plugin.json # README.md
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
haelyra
left a comment
There was a problem hiding this comment.
Thank you for sticking with this and repeatedly keeping it current. The role-separated documentation model—especially the delete-zone that records intentional removals so agents do not recreate them—is a genuinely useful addition for long-lived projects. I’m sorry it took us this long to give it a maintainer review.
We’d love one focused revision with these changes:
-
Adopt the project’s existing documentation before creating new root files. The current workflow always creates four fixed top-level files, but ECC now requires agents to reuse the established docs structure and ask before adding a new top-level artifact. Please inventory and map existing docs to the constitution/map/status/history roles first, then request approval only for roles that are genuinely missing.
-
Make the startup contract harness-neutral, or explicitly scope it to Claude Code.
workflow-qualityexposes this skill across Claude, Codex, Cursor, OpenCode, and other targets, while the current workflow hardcodesCLAUDE.mdand promises a session read order without wiring any lifecycle mechanism. Use the active harness instruction surface (AGENTS.md,CLAUDE.md, etc.) and explain how the order is enabled, or narrow the supported targets and claims. -
Add trust, verification, and retention boundaries. MAP/STATUS/LOG content is treated as authoritative and the log may never be corrected, which can preserve stale claims, embedded instructions, or secrets while duplicating Git history. Treat non-instruction docs as untrusted context, verify operational claims against code/tests/Git, permit correction or redaction, and reserve the log for governance decisions and intentional removals rather than every commit or fix.
The packaging/catalog wiring is correct, the branch is mergeable, and all 40 current checks are green. Smaller, independently testable PRs are generally easier for us to prioritize; this PR is already well scoped, so we’d be happy to review this targeted update in place rather than ask you to rebuild it.
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
|
Thanks again for the detailed maintainer review. The current head (
The PR is currently mergeable with all 40 checks green. @haelyra, when convenient, could you please take another look? Thank you. |
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
haelyra
left a comment
There was a problem hiding this comment.
Thank you for the thorough follow-through. The revised skill now reuses existing documentation, wires the active harness honestly, treats linked docs as untrusted evidence, and allows safe correction and redaction. The packaging is current and all 41 checks pass. This is ready to merge.
What
Adds a new skill
living-docs-governancethat governs a long-lived project's documentation as a small system of role-specific files — a constitution (CLAUDE.md), a map (CLAUDE_MAP.md), a health dashboard (PROJECT_STATUS.md), and an append-only ledger (PROJECT_LOG.md) — plus a fixed session read order so an agent reconstructs full context in four short reads instead of re-grepping the tree every session.Why (the gap it fills)
ECC already has
codebase-onboardingfor the one-time "I just cloned an unfamiliar repo" problem, and/project-initfor planning an ECC install. Neither addresses the ongoing maintain-phase problem: over months, docs drift from code, dead files get recreated, and agents lose context between sessions. This skill is the durable, low-overhead discipline that keeps the onboarding picture true over time — without the heavy CI machinery a large multi-contributor repo would use.The core idea is non-overlap: every fact lives in exactly one document (where is X → map; is it healthy → status; when/why did we delete it → log), so the documents do not rot together.
Not a duplicate
codebase-onboarding= one-time init/onboard; this = ongoing maintain./project-init= plan which ECC components to install; this = how a project's own docs stay true.Validation
Local checks pass:
validate-skills(strict),check-unicode-safety, markdownlint,validate-no-personal-paths, and catalog counts synced (271 → 272).