agentleFS
LerianStudioLerianStudio/ring/CLAUDE.md

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.

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
  1. Very specific:

    When creating or modifying any agent in */agents/*.md:

    line 13
  2. Very specific:

    MUST verify agent has all required sections — see docs/AGENT_DESIGN.md

    line 15
  3. Very specific:

    MUST include positive <example> blocks showing correct behavior

    line 16
  4. Distinctive:

    MUST keep agents under 300 lines (implementation) or 200 lines (reviewers)

    line 17
  5. Very specific:

    MUST use selective standards loading via index.md (selective sections only, not monolithic WebFetch).

    line 18
  6. Distinctive:

    If any section is missing → Agent is INCOMPLETE

    line 19
  7. Very specific:

    All Ring components use the unified ring: prefix.

    line 40
  8. Distinctive:

    MUST NOT delete the AGENTS.md symlink or replace it with a regular file

    line 51
  9. Very specific:

    If symlink is broken → restore with: ln -sf CLAUDE.md AGENTS.md

    line 52
  10. Very specific:

    Before adding any content: SEARCH FIRST with grep -r "keyword" --include="*.md".

    line 56
  11. Distinctive:

    If content exists → REFERENCE it, DO NOT duplicate

    line 58
  12. Distinctive:

    If adding new content → add to the canonical source

    line 59
  13. Very specific:

    When adding/removing a code review agent in ring:reviewing-code pool:

    line 65

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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)

  1. MUST NOT skip ring:using-ring — mandatory, not optional
  2. MUST NOT run reviewers sequentially — dispatch in parallel
  3. MUST NOT skip TDD's RED phase — test must fail before implementation
  4. MUST NOT ignore skill when applicable — "simple task" is not an excuse
  5. ZERO PANIC POLICY — panic(), log.Fatal(), and Must* helpers are FORBIDDEN everywhere (including bootstrap/init). Return (T, error) instead. Only exception: regexp.MustCompile() with compile-time constants.
  6. MUST NOT commit manually — use ring:committing-changes skill
  7. 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

TopicLocation
Critical RulesThis file (above)
Agent verification checklist + example blocksdocs/AGENT_DESIGN.md
Frontmatter schemadocs/FRONTMATTER_SCHEMA.md
Lexical salience, enforcement words, prompt patternsdocs/PROMPT_ENGINEERING.md
Reviewer-pool sync, Documentation sync, Content duplicationdocs/WORKFLOWS.md
Repository overview, installation, architectureREADME.md
Architecture diagramsARCHITECTURE.md

Architecture (Plugin Summary)

PluginPathSkillsAgents
ring-defaultdefault/232
ring-dev-teamdev-team/3524
ring-pm-teampm-team/144
ring-tw-teamtw-team/43

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

WorkflowQuick Reference
Add skillCreate */skills/name/SKILL.md with frontmatter per Frontmatter Schema
Add agentCreate */agents/name.md → verify required sections per Agent Design
Modify hooksEdit */hooks/hooks.json → test with bash */hooks/session-start.sh
Code reviewring: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 backendring:running-dev-cycle → rolling-wave phased cycle (Gate 0 per task, Gate 8/9 per epic, Step 11.5 phase boundary)
Dev cycle frontendring: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 manually

Session Context

System loads at SessionStart (from default/ plugin):

  1. default/hooks/session-start.sh — loads skill quick reference via generate-skills-ref.py
  2. ring:using-ring skill — injected as mandatory workflow

Active branch: main | Remote: github.com/LerianStudio/ring

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.