agentleFS
Cody-SimsCody-Sims/agent-skills/skills/repository-agent-bootstrap/SKILL.md

repository-agent-bootstrap

Skill0 starsChanged 4 months agoMITView on GitHub

Audits and bootstraps repository-owned agent customization including AGENTS.md, repository and path-scoped instructions, custom agents, and skills, without overwriting established conventions. Use to set up, review, or maintain a repository's agent guidance, add a skill or agent, or fix overlapping, stale, or overly broad customization.

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 20 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈20

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat user-level or global configuration as personal, cross-repository policy.

    line 19
  2. Distinctive:

    Treat AGENTS.md, repository instructions, scoped instructions, agents, and skills inside the repository as project-owned and shareable with …

    line 20
  3. Distinctive:

    Do not copy global preferences into project files unless they are genuine repository requirements.

    line 22
  4. Distinctive:

    Do not modify global configuration while bootstrapping a repository.

    line 24
  5. Distinctive:

    Prefer improving an existing artifact over creating a competing artifact.

    line 30
  6. Distinctive:

    Keep root guidance concise and place specialized details near their scope.

    line 31
  7. Distinctive:

    Use repository instructions for broad project rules and scoped instructions for path-specific conventions.

    line 32
  8. Distinctive:

    Use skills for reusable task workflows that benefit from on-demand loading.

    line 34
  9. Distinctive:

    Add an agent only when a distinct role, isolated context, tool boundary, or handoff is required.

    line 35
  10. Distinctive:

    Ask before deleting, renaming, or reorganizing existing customizations.

    line 39
  11. Distinctive:

    Read artifact selection when unsure which customization type a requirement belongs in.

    line 41
  12. Distinctive:

    Read existing root and nested AGENTS.md files, repository instructions, scoped instructions, agents, skills, contributor guidance, and task …

    line 49
  13. Distinctive:

    Follow the approved plan and preserve unrelated content.

    line 68
  14. Distinctive:

    Update existing files before adding new ones.

    line 69
  15. Distinctive:

    Keep AGENTS.md navigational, repository instructions broadly applicable, and scoped instructions limited to accurate path patterns.

    line 70
  16. Distinctive:

    Keep agents focused on roles that need distinct context or permissions.

    line 72
  17. Distinctive:

    Keep skills task-oriented, self-contained, and progressively disclosed.

    line 73
  18. Distinctive:

    Update nearby indexes or discovery documents only when repository convention requires it.

    line 74
  19. Distinctive:

    Check syntax, frontmatter, names, path globs, relative references, and links.

    line 79
  20. Distinctive:

    Run the repository's narrow customization or documentation checks when they exist.

    line 82

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Repository Agent Bootstrap

Audit and improve a repository's agent customization without replacing its established conventions. Keep the result small, project-owned, and easy to load through progressive disclosure.

Ownership Boundaries

  • Treat user-level or global configuration as personal, cross-repository policy.
  • Treat AGENTS.md, repository instructions, scoped instructions, agents, and skills inside the repository as project-owned and shareable with contributors.
  • Do not copy global preferences into project files unless they are genuine repository requirements.
  • Do not modify global configuration while bootstrapping a repository. Report global conflicts or missing global capabilities separately.

Design Rules

  • Preserve existing names, locations, terminology, formatting, and precedence.
  • Prefer improving an existing artifact over creating a competing artifact.
  • Keep root guidance concise and place specialized details near their scope.
  • Use repository instructions for broad project rules and scoped instructions for path-specific conventions.
  • Use skills for reusable task workflows that benefit from on-demand loading.
  • Add an agent only when a distinct role, isolated context, tool boundary, or handoff is required. Do not generate redundant personas.
  • Reference resources relatively and avoid duplicating material that can be linked or discovered when needed.
  • Ask before deleting, renaming, or reorganizing existing customizations.

Read artifact selection when unsure which customization type a requirement belongs in.

Required Steps

Step 1: Discover

  1. Identify the repository root and inspect its status without changing files.
  2. Read existing root and nested AGENTS.md files, repository instructions, scoped instructions, agents, skills, contributor guidance, and task commands.
  3. Determine which files apply by path and which conventions already control naming, frontmatter, validation, and maintenance.
  4. Inventory gaps, overlaps, stale references, conflicting rules, and content that is loaded more broadly than necessary.
  5. Separate project-owned findings from global or user-owned findings.

Step 2: Plan

  1. State the repository's current customization model and precedence.
  2. Propose the smallest set of keep, update, and create actions.
  3. Map each requirement to the narrowest appropriate artifact.
  4. Explain any proposed agent or skill by the capability it uniquely adds.
  5. Confirm ambiguous ownership or destructive changes with the user before implementation.

Step 3: Implement

  1. Follow the approved plan and preserve unrelated content.
  2. Update existing files before adding new ones.
  3. Keep AGENTS.md navigational, repository instructions broadly applicable, and scoped instructions limited to accurate path patterns.
  4. Keep agents focused on roles that need distinct context or permissions.
  5. Keep skills task-oriented, self-contained, and progressively disclosed.
  6. Update nearby indexes or discovery documents only when repository convention requires it.

Step 4: Validate

  1. Check syntax, frontmatter, names, path globs, relative references, and links.
  2. Confirm every rule has one clear owner and no new artifact shadows or repeats existing guidance.
  3. Run the repository's narrow customization or documentation checks when they exist. Do not invent dependencies solely for validation.
  4. Review the final diff for unrelated changes and accidental global edits.
  5. Report created and modified files, checks run, unresolved conflicts, and recommended global actions that remain outside project ownership.

Completion Criteria

Finish only when the repository has a coherent discovery path, specialized content loads on demand, existing conventions remain intact, and validation results are explicit.

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.