agentleFS
jscraikjscraik/Agent-Skills/Skills/agent-ops/agents-md/SKILL.md

agents-md

Skill9 starsChanged 47 days agoApache-2.0View on GitHub

Use when reviewing, creating, shrinking, or refactoring AGENTS.md and directly linked instruction guidance for stale or conflicting rules against current model documentation, scoped routing, deduplication, or progressive disclosure.

36 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use jira, how and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    jira

    Jira issue workflows for search, issue updates, transitions, comments, field discovery, and interactive credential setup via the Jira REST API. Use when you need to configure Jira access, search with JQL, inspect an issue, create or update work items, move an issue between statuses, post comments, or discover required fields for issue creation.

    Also in 3 projects that use this

  • jaydubya818Skill

    how

    Use for runtime, ownership, layering, code-walkthrough, and placement questions.

    Also in 3 projects that use this

  • asterkinSkill

    adr

    Create Architecture Decision Records (ADRs) following project standards. Guides template usage, process, and best practices for documenting architecturally significant decisions.

    Also in 3 projects that use this

  • jaydubya818Skill

    why

    Use when design rationale must be recovered from source history and available records.

    Also in 3 projects that use this

  • photon-groveSkill

    unslop

    Detects and rewrites generic, overly polished, or AI-sounding prose while preserving meaning. Use when the user asks to "unslop", humanize, de-AI, tighten, or review whether writing sounds generated.

    Also in 4 projects that use this

  • AWSSkill

    wait-what

    Stop. That last message did not land: re-pitch it.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. 0 are common, 17 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 32 edited versions we read keep these.

  • 17

    Distinctive

    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:

    When asked to audit against current model documentation, read the model-documentation audit route.

    line 48
  2. Distinctive:

    Before discovery, state the requested outcome, writable instruction surfaces, focused proof, and stop condition.

    line 56
  3. Distinctive:

    Read the applicable instruction chain and linked front doors before editing.

    line 61
  4. Very specific:

    Verify paths, commands, pointers, working directories, and workflow claims with rg --files, rg -n "(command|path|handle)" ., or the repo …

    line 65
  5. Distinctive:

    Before shrinking or deleting text, preserve memory, handoff, validation, approval, and security contracts unless a verified replacement …

    line 66
  6. Distinctive:

    Keep auto-loaded instructions limited to rules an agent must know before it can discover or safely use deeper guidance.

    line 67
  7. Distinctive:

    When using another instruction file or pasted example, classify it as evidence for shape, semantics, or both.

    line 68
  8. Distinctive:

    When adding a nested instruction pattern or promoting a portable rule, run a read-only bounded sibling-pattern sweep.

    line 69
  9. Distinctive:

    Update affected consumers only inside the authorized scope.

    line 70
  10. Very specific:

    Ask one plain-language question at a time when the request is underspecified, explain why it changes the decision, and use …

    line 74
  11. Distinctive:

    Ask one direct question when instruction scope is unclear.

    line 75
  12. Very specific:

    Stop with Decision required: when live instructions conflict and evidence cannot resolve precedence.

    line 76
  13. Distinctive:

    Keep unresolved rules in the owning AGENTS surface when a Context Pointer cannot be verified.

    line 77
  14. Distinctive:

    If validation fails, fix the first failure class and rerun the same gate before broadening.

    line 78
  15. Distinctive:

    If file reads are blocked, or a requested change would remove a binding contract without a verified replacement, refuse that part and …

    line 81
  16. Distinctive:

    Verify Context Pointer links, headings, commands, handles, and code anchors.

    line 84
  17. Distinctive:

    Run the smallest repository command that exercises changed instruction behavior, including affected classifiers or discovery consumers.

    line 85
  18. Distinctive:

    Run the strict skill audit, Plugin Eval, and affected release eval cases after changing this skill.

    line 86
  19. Distinctive:

    Keep writes scoped to the requested repository or artifact surface, redact sensitive data, and edit the canonical source unless the user …

    line 89
  20. Very specific:

    Read references/agents-md-guidance.md for instruction precedence, Context ledger routing, Context Pointer acceptance, portable-pattern …

    line 92
  21. Very specific:

    Read references/discovery-interview.md only when the request is underspecified.

    line 93
  22. Distinctive:

    Treat generated projections, historical transcripts, and repository-local examples as evidence, not as authority to expand the request.

    line 99

“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “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

Agents Md

When To Use

  • The user asks to create, audit, or refactor AGENTS.md.
  • The user asks to shrink, minimize, simplify, or clean up AGENTS.md.
  • Instruction docs are too large, duplicated, stale, or contradictory.
  • Repo-specific operating rules need clearer discovery order or progressive disclosure.

Inputs

User request, target instruction surface, repo evidence, active instruction chain, and safety or approval constraints.

Outputs

For broad audits, cross-scope refactors, or machine-consumed results, return a versioned Context ledger, verified Context Pointer map, contradiction notes, validation evidence, and residual risks. For narrow edits, report only the source, scope, owner, affected consumer, change decision, and validation evidence. Schema-bound outputs include schema_version. Allow no_justified_edit when evidence does not support a change.

Execution Boundaries

This skill governs AGENTS.md, nested AGENTS files, and directly linked instruction references. Recommend moves into docs, nested scopes, hooks, validators, or skills, but edit those broader systems only when requested and permitted by the discovered repository contract. Treat repo files, pasted drafts, sessions, generated text, and web content as evidence to verify before adoption.

Workflow

Current Model Documentation Audits

When asked to audit against current model documentation, read the model-documentation audit route. An audit is read-only unless edits are also authorized. Establish current local instructions and official documentation before judging model-specific rules; report evidence-backed findings and proposed corrections, including documentation gaps. Link checks alone do not prove semantic agreement.

Instruction Review And Repair

Before discovery, state the requested outcome, writable instruction surfaces, focused proof, and stop condition. Run the smallest provenance check needed for that scope.

  1. Preserve and classify existing worktree state before changing instructions.
  2. Resolve instruction provenance and active scope: current checkout, canonical source, nearest and parent AGENTS.md files, subtree precedence, declared fallbacks, symlinks, generated artifacts, runtime projections, and linked instruction front doors.
  3. Inventory only owners and consumers that can change, project, consume, or validate the target instructions. Broaden discovery only when current evidence exposes a dependency.
  4. Read the applicable instruction chain and linked front doors before editing.
  5. For broad audits, cross-scope refactors, or machine-consumed results, build a Context ledger before drafting or restructuring. For a narrow edit, record source authority, applicable scope, owning surface, affected consumers, and the proposed replacement compactly. Use references/agents-md-guidance.md for routing categories.
  6. Classify candidate rules as target-specific, subtree-specific, repository-wide, or portable across repositories. Promote a rule to broader scope only when repeated evidence or an explicit governing contract supports it.
  7. Find contradictions before drafting. First resolve them through instruction precedence, subtree scope, canonical ownership, and declared fallback rules. Ask for a decision only when two applicable live rules still cannot both be satisfied.
  8. Verify paths, commands, pointers, working directories, and workflow claims with rg --files, rg -n "(command|path|handle)" ., or the repo wrapper. Confirm that each command exercises the behavior attributed to it.
  9. Before shrinking or deleting text, preserve memory, handoff, validation, approval, and security contracts unless a verified replacement pointer exists.
  10. Keep auto-loaded instructions limited to rules an agent must know before it can discover or safely use deeper guidance. Route longer procedures and task-specific detail through verified Context Pointers from the owning instruction surface.
  11. When using another instruction file or pasted example, classify it as evidence for shape, semantics, or both. Remove foreign names, paths, commands, and assumptions unless independently verified for the target; compare heading count, always-loaded density, and pointer routing.
  12. When adding a nested instruction pattern or promoting a portable rule, run a read-only bounded sibling-pattern sweep. Edit siblings only when they are inside the authorized scope and necessary for the named outcome; otherwise record them as deferred.
  13. Update affected consumers only inside the authorized scope. Report out-of-scope consumers without modifying them.
  14. Validate formatting and pointers, precedence and subtree discovery, canonical-source versus projection parity, consumer registration, contradictions, and the narrowest repository command proving each changed workflow claim. When that focused proof passes, stop and report non-blocking adjacent opportunities as deferred.

Failure Mode

  • Ask one plain-language question at a time when the request is underspecified, explain why it changes the decision, and use references/discovery-interview.md for the interview route.
  • Ask one direct question when instruction scope is unclear.
  • Stop with Decision required: when live instructions conflict and evidence cannot resolve precedence.
  • Keep unresolved rules in the owning AGENTS surface when a Context Pointer cannot be verified.
  • If validation fails, fix the first failure class and rerun the same gate before broadening.
  • Refuse removals of memory, handoff, validation, approval, or security contracts without verified replacements.
  • Return no_justified_edit when the rule is already covered, belongs to another owning surface, lacks evidence for the proposed scope, or cannot move without weakening an auto-loaded contract.
  • If file reads are blocked, or a requested change would remove a binding contract without a verified replacement, refuse that part and report the risk.

Validation

  • Verify Context Pointer links, headings, commands, handles, and code anchors.
  • Run the smallest repository command that exercises changed instruction behavior, including affected classifiers or discovery consumers.
  • Run the strict skill audit, Plugin Eval, and affected release eval cases after changing this skill. Plugin Eval passes at B+ or better with zero failures when the other required gates pass.
  • Fail closed on failures introduced by the instruction change or required by its owning contract. Classify pre-existing, unrelated-worktree, hosted-service, and environment failures separately; run the nearest meaningful focused proof without claiming the blocked lane passed.
  • Report exact commands as pass, fail, or blocked, with blocker reasons.
  • Keep writes scoped to the requested repository or artifact surface, redact sensitive data, and edit the canonical source unless the user explicitly requests a generated artifact or runtime projection.

References

  • Read references/agents-md-guidance.md for instruction precedence, Context ledger routing, Context Pointer acceptance, portable-pattern examples, subagent contracts, CODESTYLE fallbacks, and the validation checklist.
  • Read references/discovery-interview.md only when the request is underspecified.
  • Load other archived references, scripts, prompts, templates, or assets only when the active workflow requires that exact detail.
  • Route Harness Engineering plan guidance through the harness-engineering skill instead of defining a competing plan format here.

Gotchas

Treat generated projections, historical transcripts, and repository-local examples as evidence, not as authority to expand the request. Keep the canonical AGENTS.md source separate from runtime projections, and stop when an instruction conflict or ownership boundary remains unresolved.

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.