Skip to content
Agentmart
Submit a tool

review-agents-tree

Audit the tracked `AGENTS.md` tree against best practices, write `.agents/AGENTS_TREE_REVIEW.md`, and propose cleanup, compaction, conflict resolution, or…

Skill by siarhei-belavus

IndexedMIT★ 2
Write a review

Chalk Labs

Need help deploying review-agents-tree?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/siarhei-belavus-review-agents-tree

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Audit the tracked `AGENTS.md` tree against best practices, write `.agents/AGENTS_TREE_REVIEW.md`, and propose cleanup, compaction, conflict resolution, or sharding when needed. May auto-apply only trivial non-semantic hygiene fixes.

Use cases: security, writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/review-agents-tree

What's inside

Skill name
review-agents-tree
Description
Audit the tracked `AGENTS.md` tree against best practices, write `.agents/AGENTS_TREE_REVIEW.md`, and propose cleanup, compaction, conflict resolution, or sharding when needed. May auto-apply only trivial non-semantic hygiene fixes.
License
MIT
Instructions
126 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# review-agents-tree

Manual durable-context hygiene pass.

Not a workflow gate.
Not a replacement for `distill-knowledge`.

Run this periodically to keep the tracked `AGENTS.md` tree lean, conflict-free, and aligned with current code/tests.

## Read first
- `../references/persistent-artifacts-contract.md`
- `../../references/communication-mode.md`
- root tracked `AGENTS.md`
- all tracked local `AGENTS.md` files under the repository
- tracked `AGENTS.override.md` paths only to detect misuse or drift; never treat them as canonical repo truth
- relevant code/tests only when a guidance conflict or staleness finding needs verification

## Scope
This skill owns:
- periodic best-practice audit of the tracked `AGENTS.md` tree
- writing `.agents/AGENTS_TREE_REVIEW.md`
- proposing cleanup, compaction, conflict resolution, and sharding plans
- auto-applying only trivial non-semantic hygiene fixes when they are clearly safe
- being the only non-distill skill allowed to touch tracked `AGENTS.md`, and only for those trivial non-semantic hygiene fixes

It does not own:
- writing `AGENTS.override.md`
- semantic doctrine changes without explicit human approval
- shard creation, shard moves, or meaning-changing conflict resolution without explicit human approval
- task-local packet work unless a current task explicitly asked for this audit as part of that packet

## Audit workflow
1. Discover the tracked tree.
   - Enumerate all tracked `AGENTS.md` files.
   - Note any tracked `AGENTS.override.md` files as likely hygiene smells.
   - Build the effective hierarchy from root downward.
2. Audit file shape.
   - Confirm every tracked `AGENTS.md` has `## Scope`.
   - Confirm section names stay canonical when present.
   - Flag missing, tautological, or low-value `## Scope` sections.
   - Flag `## Entrypoints` sections in deep leaf shards when they add no real wayfinding value.
   - Confirm other sections are present only when they contain real content.
   - Flag files that drift from canonical section names.
3. Audit lean-ness.
   - Treat broad overview prose, directory dumps, repeated boilerplate, and generic cookbook content as compaction smells.
   - Treat roughly 200+ lines as a review trigger for compaction or sharding, not an automatic failure.
4. Audit specificity.
   - Flag vague, non-verifiable instructions.
   - Prefer exact commands, stable owner/module names, hard constraints, and durable rationale.
   - Treat raw file-path links as a fragility smell unless they are unusually stable and clearly necessary.
5. Audit hierarchy quality.
   - Flag parent/child duplication when the child adds no meaningful specialization.
   - Flag local files that restate root doctrine instead of carrying only boundary-local guidance.
   - Flag guidance placed too high or too low relative to the stable owner boundary.
6. Audit conflicts and ambiguity.
   - Flag contradictory rules across parent/child tracked files.
   - Flag ambiguous wording that could lead different agents to make different choices.
   - Verify suspicious conflicts against code/tests before concluding.
7. Audit staleness.
   - Flag stale paths, commands, owner/module references, or other brittle anchors.
   - Flag entries that are now better encoded in code/tests and should be pruned.
8. Audit for task-state leakage.
   - Flag plan recaps, worklog residue, temporary migration notes, or current-task chatter that belongs in `.plans/*`, not tracked `AGENTS.md`.
9. Decide whether a trivial hygiene fix is safe.
   - Safe auto-fix classes:
     - section heading normalization to canonical names
     - whitespace / formatting cleanup
     - deduping exact duplicate bullets
     - removing obviously broken file references when the correct target is unambiguous
     - reordering within one section when meaning does not change
   - If any fix changes meaning, defers a judgment call, or changes topology, do not apply it automatically.
10. Write `.agents/AGENTS_TREE_REVIEW.md`.
    - Summarize current tree health.
    - Record any auto-applied hygiene fixes.
    - Emit concrete findings and approval-gated proposals.

## Findings categories
Use compact `AT#` findings.

Good finding classes:
- bloated file that should be compacted
- duplicated guidance across parent/child files
- conflict or ambiguity between tracked layers
- stale path/command/reference
- task-local residue leaking into durable context
- missing, tautological, or low-value `Scope`
- low-value leaf `Entrypoints`
- fragile raw file-path links
- file broad enough that sharding should be considered
- tracked `AGENTS.override.md` or override misuse smell

## Best-practice bar
A strong tracked `AGENTS.md` tree is:
- lean
- specific
- path-scoped by stable owner boundary
- conflict-free
- low-duplication
- explicit about commands/validation, constraints, and durable decisions only where needed
- consistently shaped, with a lean non-tautological `Scope` in every tracked file
- sparing with `Entrypoints`, mainly at root/hub levels
- resistant to path fragility

## Report shape
Default `.agents/AGENTS_TREE_REVIEW.md` should include:
- `Status:` `healthy` | `needs_cleanup` | `needs_approval_for_refactor`
- `Auto-applied hygiene fixes:`
- `AT# findings:` ordered by severity
- `Approval-gated proposals:`
- `Suggested next pass:` `no_op` | `compact_existing_files` | `apply_semantic_cleanup_after_approval` | `propose_sharding_after_approval`

## Do not
- treat `AGENTS.override.md` as canonical repo context
- auto-apply semantic changes
- auto-create new tracked shards
- auto-merge or move tracked shards
- rewrite guidance just to make it prettier
- preserve stale or redundant prose because it feels helpful

From siarhei-belavus/agent-public, MIT.

More from siarhei-belavus/agent-public

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Apr 29, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from siarhei-belavus

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get review-agents-tree running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying review-agents-tree?

CallGet help
Cite this page

review-agents-tree skill. Agent Mart. https://agentmart.dev/skills/siarhei-belavus-review-agents-tree (last updated 2026-10-24)