agentleFS
SentryKnown publishergetsentry/skillet/examples/garfield/SKILL.md

garfield

Skill13 starsChanged 7 months agoMITView on GitHub

Coordinates subagent review, fixes, and verification during implementation; use when the user explicitly asks for Garfield on an active code slice, but not for standalone review, brainstorming, non-code work, or PR CI iteration.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 14 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use Garfield only when the user explicitly requests it during implementation.

    line 10
  2. Distinctive:

    Before delegating review, record:

    line 14
  3. Distinctive:

    Use this snapshot to judge every finding.

    line 22
  4. Very specific:

    Read references/code-comments.md when comments or docstrings changed.

    line 34
  5. Very specific:

    Read references/implementation-minimalism.md when the slice adds guards, fallbacks, adapters, configuration, or defensive tests.

    line 35
  6. Very specific:

    Read references/interface-design.md when public/module boundaries, lifecycle, ownership, or naming changed.

    line 36
  7. Very specific:

    Read references/test-quality.md when tests, fixtures, or test obligations changed.

    line 37
  8. Very specific:

    Consider specs/docs, dead code, delayering, type boundaries, generated/dependency artifacts, comments, minimalism, interface design, test …

    line 47
  9. Distinctive:

    Use one no-edit subagent per applicable task or policy.

    line 51
  10. Distinctive:

    Start up to three reviewers.

    line 53
  11. Distinctive:

    Start the next reviewers.

    line 55
  12. Distinctive:

    If subagents or required capacity are unavailable, stop and report that Garfield cannot run.

    line 58
  13. Distinctive:

    After material edits, run targeted validation and repeat only the reviews affected by the change.

    line 76
  14. Distinctive:

    Stop after repeated findings, three cycles without progress, unavailable subagents, or when the smallest fix requires broad or unclear …

    line 78
  15. Distinctive:

    Do not include a cycle diary or generic review advice.

    line 90
  16. Distinctive:

    Never run Garfield for standalone review or non-code iteration.

    line 94
  17. Distinctive:

    Never substitute an agentless review for required subagents.

    line 95
  18. Distinctive:

    Never change APIs, permissions, defaults, validation policy, serialization, or unrelated code outside the captured intent.

    line 96
  19. Distinctive:

    Never revert unrelated user work.

    line 97

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
SKILL.md

Garfield

Use Garfield only when the user explicitly requests it during implementation. Review the current slice, preserve the user's intent, fix material current-diff problems, and stop when the slice is ready.

1. Capture the Intent

Before delegating review, record:

  • requested behavior and intended changes
  • compatibility expectations and non-goals
  • diff/base and touched files
  • repository instructions and relevant specs
  • tests, generated artifacts, dependencies, and validation already run

Use this snapshot to judge every finding. Do not let a reviewer redefine the task.

2. Build the Effective Policy Set

Discover applicable repository policies under policies/**/*.md, excluding policy indexes and templates. Compare them with Garfield's bundled policies by intent and scope:

  • repository-wide policy for the same concern: use it and omit the bundled policy
  • narrower or adjacent policy: keep both
  • unrelated policy: ignore it

Bundled policies:

  • Read references/code-comments.md when comments or docstrings changed.
  • Read references/implementation-minimalism.md when the slice adds guards, fallbacks, adapters, configuration, or defensive tests.
  • Read references/interface-design.md when public/module boundaries, lifecycle, ownership, or naming changed.
  • Read references/test-quality.md when tests, fixtures, or test obligations changed.

3. Select Review Tasks

Always review:

  • behavior and spec alignment
  • repository instructions
  • validation coverage

Consider specs/docs, dead code, delayering, type boundaries, generated/dependency artifacts, comments, minimalism, interface design, test quality, and effective repository policies. Mark every candidate applicable or skipped from concrete diff evidence.

4. Delegate Reviews

Use one no-edit subagent per applicable task or policy. Give each reviewer only the slice context and policy it needs. Keep at most three Garfield subagents open at once:

  1. Start up to three reviewers.
  2. Collect and close completed reviewers.
  3. Start the next reviewers.
  4. Drain review agents before independent verification.

If subagents or required capacity are unavailable, stop and report that Garfield cannot run.

Require findings in this form:

[severity][evidence:<label[,label]> <locator>] path:line - concern. impact: <impact>. fix: <smallest change>.

5. Triage and Fix

Accept a finding only when the current diff introduced or worsened it, made evidence stale, or omitted a required artifact.

  • Fix blocker and high findings when the smallest fix preserves intent.
  • Fix medium findings only when they are current-diff-caused and local.
  • Reject vague, preference-only, or evidence-free findings.
  • Defer unrelated hardening, broad cleanup, and out-of-intent behavior changes.
  • Preserve unrelated user changes.

After material edits, run targeted validation and repeat only the reviews affected by the change. Use a separate verification advisor when validation is uncertain, the slice is risky, generated/dependency artifacts changed, or this is the final readiness pass.

Stop after repeated findings, three cycles without progress, unavailable subagents, or when the smallest fix requires broad or unclear behavior changes.

Handoff

Report only:

  • garfield: pass or garfield: blocked
  • validation commands and results
  • independent verification result when used
  • residual blocker/high/medium concerns
  • deferred adjacent improvements or unclear behavior changes

Do not include a cycle diary or generic review advice.

Never

  • Never run Garfield for standalone review or non-code iteration.
  • Never substitute an agentless review for required subagents.
  • Never change APIs, permissions, defaults, validation policy, serialization, or unrelated code outside the captured intent.
  • Never revert unrelated user work.

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.