ring
CLAUDE.md217 starsChanged 4 months agoApache-2.0View on GitHub
AGENTS.md is a symlink to this file — edit CLAUDE.md only; changes propagate automatically. When creating or modifying any agent in */agents/*.md: All Ring components use the unified ring: prefix. ⛔ AGENTS.md IS A SYMLINK TO CLAUDE.md — MUST NOT break: Before adding any content: SEARCH FIRST with grep -r "keyword" --include="*.md". See docs/WORKFLOWS.md for canonical source table and shared patterns rule. When adding/removing a code review agent in ring:reviewing-code pool: ⛔ SEVEN-FILE UPDATE RULE (all in same commit) —…
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
13 rules. About 0 are common, 5 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
When creating or modifying any agent in */agents/*.md:
- Very specific: line 15
MUST verify agent has all required sections — see docs/AGENT_DESIGN.md
- Very specific: line 16
MUST include positive <example> blocks showing correct behavior
- Distinctive: line 17
MUST keep agents under 300 lines (implementation) or 200 lines (reviewers)
- Very specific: line 18
MUST use selective standards loading via index.md (selective sections only, not monolithic WebFetch).
- Distinctive: line 19
If any section is missing → Agent is INCOMPLETE
- Very specific: line 40
All Ring components use the unified ring: prefix.
- Distinctive: line 51
MUST NOT delete the AGENTS.md symlink or replace it with a regular file
- Very specific: line 52
If symlink is broken → restore with: ln -sf CLAUDE.md AGENTS.md
- Very specific: line 56
Before adding any content: SEARCH FIRST with grep -r "keyword" --include="*.md".
- Distinctive: line 58
If content exists → REFERENCE it, DO NOT duplicate
- Distinctive: line 59
If adding new content → add to the canonical source
- Very specific: line 65
When adding/removing a code review agent in ring:reviewing-code pool:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
AGENTS.md is a symlink to this file — edit CLAUDE.md only; changes propagate automatically.
⛔ CRITICAL RULES (READ FIRST)
1. Agent Modification = Mandatory Verification
When creating or modifying any agent in */agents/*.md:
- MUST verify agent has all required sections — see docs/AGENT_DESIGN.md
- MUST include positive
<example>blocks showing correct behavior - MUST keep agents under 300 lines (implementation) or 200 lines (reviewers)
- MUST use selective standards loading via
index.md(selective sections only, not monolithic WebFetch). - If any section is missing → Agent is INCOMPLETE
2. Agents are EXECUTORS, Not DECISION-MAKERS
- Agents VERIFY, they DO NOT ASSUME
- Agents REPORT blockers, they DO NOT SOLVE ambiguity autonomously
- Agents FOLLOW gates, they DO NOT SKIP gates
- Agents ASK when uncertain, they DO NOT GUESS
3. Anti-Patterns (MUST NOT do these)
- MUST NOT skip ring:using-ring — mandatory, not optional
- MUST NOT run reviewers sequentially — dispatch in parallel
- MUST NOT skip TDD's RED phase — test must fail before implementation
- MUST NOT ignore skill when applicable — "simple task" is not an excuse
- ZERO PANIC POLICY —
panic(),log.Fatal(), andMust*helpers are FORBIDDEN everywhere (including bootstrap/init). Return(T, error)instead. Only exception:regexp.MustCompile()with compile-time constants. - MUST NOT commit manually — use
ring:committing-changesskill - MUST NOT assume compliance — VERIFY with evidence
4. Unified Ring Namespace (MANDATORY)
All Ring components use the unified ring: prefix.
- ✅
ring:code-reviewer,ring:backend-go - ❌ omitting
ring:prefix (FORBIDDEN) - ❌
ring-default:ring:code-reviewer(deprecated plugin-specific prefix)
5. CLAUDE.md ↔ AGENTS.md Synchronization
⛔ AGENTS.md IS A SYMLINK TO CLAUDE.md — MUST NOT break:
- Edit CLAUDE.md — changes automatically appear in AGENTS.md
- MUST NOT delete the AGENTS.md symlink or replace it with a regular file
- If symlink is broken → restore with:
ln -sf CLAUDE.md AGENTS.md
6. Content Duplication Prevention (MUST CHECK)
Before adding any content: SEARCH FIRST with grep -r "keyword" --include="*.md".
- If content exists → REFERENCE it, DO NOT duplicate
- If adding new content → add to the canonical source
See docs/WORKFLOWS.md for canonical source table and shared patterns rule.
7. Reviewer-Pool Synchronization (MUST CHECK)
When adding/removing a code review agent in ring:reviewing-code pool:
⛔ SEVEN-FILE UPDATE RULE (all in same commit) — see docs/WORKFLOWS.md for the complete checklist and secondary consumers sweep.
Quick Navigation
| Topic | Location |
| Critical Rules | This file (above) |
| Agent verification checklist + example blocks | docs/AGENT_DESIGN.md |
| Frontmatter schema | docs/FRONTMATTER_SCHEMA.md |
| Lexical salience, enforcement words, prompt patterns | docs/PROMPT_ENGINEERING.md |
| Reviewer-pool sync, Documentation sync, Content duplication | docs/WORKFLOWS.md |
| Repository overview, installation, architecture | README.md |
| Architecture diagrams | ARCHITECTURE.md |
Architecture (Plugin Summary)
| Plugin | Path | Skills | Agents |
| ring-default | default/ | 23 | 2 |
| ring-dev-team | dev-team/ | 35 | 24 |
| ring-pm-team | pm-team/ | 14 | 4 |
| ring-tw-team | tw-team/ | 4 | 3 |
Total: 76 skills, 33 agents across 4 plugins. Plugin versions in .claude-plugin/marketplace.json.
Each plugin contains: skills/, agents/, hooks/, plus per-harness install manifests .codex-plugin/, .cursor-plugin/, and .opencode/ (alongside the marketplace-wide .claude-plugin/marketplace.json at repo root). See README.md for full directory structure.
Key Workflows
| Workflow | Quick Reference |
| Add skill | Create */skills/name/SKILL.md with frontmatter per Frontmatter Schema |
| Add agent | Create */agents/name.md → verify required sections per Agent Design |
| Modify hooks | Edit */hooks/hooks.json → test with bash */hooks/session-start.sh |
| Code review | ring:reviewing-code dispatches 9 default reviewers plus triggered conditional specialists |
| Pre-dev (small) | ring:planning-small-features → 4-gate workflow |
| Pre-dev (large) | ring:planning-large-features → 8-gate workflow |
| Dev cycle backend | ring:running-dev-cycle → rolling-wave phased cycle (Gate 0 per task, Gate 8/9 per epic, Step 11.5 phase boundary) |
| Dev cycle frontend | ring:running-dev-cycle-frontend → rolling-wave phased cycle (Gate 0 per task, Gate 7 per epic, Gate 8 per task, phase boundary) |
See docs/WORKFLOWS.md for detailed instructions.
Compliance Rules
# TDD compliance (default/skills/test-driven-development/SKILL.md)
- Test file must exist before implementation
- Test must produce failure output (RED)
- Only then write implementation (GREEN)
# Review compliance (default/skills/reviewing-code/SKILL.md)
- All 9 default reviewers must pass; triggered conditional specialists must also pass
- Critical findings = immediate fix required
- Re-run the selected review pool after fixes
# Skill compliance (default/skills/using-ring/SKILL.md)
- Check for applicable skills before any task
- If skill exists for task → MUST use it
# Commit compliance: see default/skills/committing-changes/SKILL.md (canonical source).
- MUST use ring:committing-changes skill for all commits
- MUST NOT write git commit commands manuallySession Context
System loads at SessionStart (from default/ plugin):
default/hooks/session-start.sh— loads skill quick reference viagenerate-skills-ref.pyring:using-ringskill — injected as mandatory workflow
Active branch: main | Remote: github.com/LerianStudio/ring
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

