agentleFS
LandonTomaineLandonTomaine/LT-Agents/skills/bootstrap-repo-standards/SKILL.md

bootstrap-repo-standards

Skill0 starsChanged 4 months agoMITView on GitHub

Bootstrap or overhaul repository standards for a small to medium app, service, library, infrastructure, SaaS, edge, or integration-heavy repo. Use when Codex should inspect a repo with bundled repo_scan.py, interview about product and architecture decisions, and propose approved docs, AGENTS.md, agent rules, linters, formatters, tests, CI, hooks, validation workflows, repo-local skills, and a durable bootstrap checklist before writing files.

The file

Show its rules and text

We split this skill into the rules it gives an agent

48 rules. About 0 are common, 32 are distinctive, and 16 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈32

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 16

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat the target repo as the path named by the user, or the current working directory if no path is given.

    line 18
  2. Very specific:

    Before broad manual inventory, run scripts/repo_scan.py <repo> from this skill and summarize its output.

    line 19
  3. Distinctive:

    If Python is unavailable for bundled scripts, ask whether to install Python, use another available Python launcher, or proceed with a …

    line 20
  4. Distinctive:

    Start read-only. Do not create or modify durable repo files until the user approves an exact file/action manifest.

    line 21
  5. Distinctive:

    Ask before running commands that may write generated files, install packages, alter hooks, migrate databases, or change lockfiles.

    line 23
  6. Distinctive:

    Keep non-agent docs useful to humans and agent docs short.

    line 25
  7. Distinctive:

    Do not call the skill done while material questions, checklist items, or validation decisions remain open unless the user explicitly …

    line 26
  8. Very specific:

    Use .agents/tmp/bootstrap-repo-standards/ only as approved working state, never as final documentation.

    line 27
  9. Distinctive:

    Prefer scripts for repeatable deterministic work.

    line 28
  10. Very specific:

    Use scripts/scaffold_backbone.py for approved standard shapes and scripts/copy_skill_package.py for approved source skill copies.

    line 29
  11. Distinctive:

    Do not hand-write reusable skill packages from memory.

    line 30
  12. Distinctive:

    Do not put TODO placeholders in always-loaded agent files.

    line 31
  13. Distinctive:

    Do not mention where a pattern came from or earlier setup work in generated repo guidance.

    line 32
  14. Distinctive:

    Do not assume the repo has a UI, API, deployed environment, or any other runtime surface.

    line 33
  15. Distinctive:

    Keep validation, setup/run, deployment/release, and docs-maintenance decisions explicit.

    line 34
  16. Distinctive:

    Keep standards-improvement TODOs separate from product backlog unless the user explicitly wants one shared tracker.

    line 35
  17. Very specific:

    Every candidate skill requires an explicit placement decision: repo-local, user/global, ignore, or defer.

    line 37
  18. Distinctive:

    Check git status and note dirty files.

    line 44
  19. Very specific:

    Ask to create or reuse temp tracking files under .agents/tmp/bootstrap-repo-standards/.

    line 46
  20. Distinctive:

    If no Python launcher works, ask before installing Python or using the manual fallback.

    line 50
  21. Distinctive:

    If the scan fails, capture the command, exit/failure reason, and fallback searches used.

    line 51
  22. Very specific:

    Use targeted rg --files and rg searches to confirm docs, routes, setup/run, deployment/release, validation, tooling, skills, hooks, CI, …

    line 52
  23. Very specific:

    If the scan or searches find .codex/skills, .agents/skills, or possible skill migration work, run scripts/check_skill_migration.py <repo> …

    line 53
  24. Very specific:

    Read current entrypoints first: AGENTS.md, README*, docs indexes, agent-rule indexes, setup/run/deployment docs, existing skills under …

    line 54
  25. Distinctive:

    Ask concrete questions, grouped by theme and ordered by risk.

    line 67
  26. Very specific:

    Keep a visible question ledger: answered, unanswered, ambiguous, assumption candidate, defer.

    line 69
  27. Very specific:

    If temp tracking exists, update question-ledger.md after every user answer batch.

    line 70
  28. Very specific:

    If temp tracking exists, keep the draft in backbone-manifest.md before writing approved final files.

    line 86
  29. Distinctive:

    Use draft mode first for optional skills, hooks, security/public-repo files, file-backlog, standards-roadmap, and approved source skill …

    line 93
  30. Very specific:

    Use --only <path-or-skill-folder> when drafting or applying one approved generated skill from a larger scaffold set.

    line 94
  31. Distinctive:

    Do not propose broad skill bundles when one focused repo-local skill or one route doc would cover the need.

    line 95
  32. Distinctive:

    Ask for approval of the manifest or a named subset.

    line 98
  33. Distinctive:

    Do not write files from a vague approval like "looks good" if paths/actions are not shown.

    line 99
  34. Distinctive:

    If the user changes direction, revise the manifest in chat first.

    line 100
  35. Distinctive:

    Write only approved files.

    line 103
  36. Distinctive:

    Create or update the durable bootstrap checklist before broader standards files so later work has a tracked ledger.

    line 104
  37. Very specific:

    Prefer scripts/scaffold_backbone.py <repo> --mode draft --set <set> --only <path-or-skill-folder> before apply for individual approved …

    line 105
  38. Very specific:

    Use scripts/copy_skill_package.py <source-skill-dir> <repo> --mode draft before apply for approved source skill copies.

    line 106
  39. Distinctive:

    Use apply mode only for approved files and exact approved target paths.

    line 107
  40. Distinctive:

    Keep docs short and update routes/indexes together.

    line 111
  41. Very specific:

    Add tests/configs/hooks only when the exact gate and command are approved.

    line 112
  42. Distinctive:

    Run validation appropriate to the changed files and report what passed, failed, or was not run.

    line 113
  43. Distinctive:

    Ask whether to tighten, split, remove, or defer pieces before calling the backbone finished.

    line 117
  44. Distinctive:

    Leave unresolved product or architecture questions visible rather than burying them in assumptions.

    line 118
  45. Very specific:

    Update completion-checklist.md when temp tracking exists.

    line 119
  46. Distinctive:

    If completion criteria are not met, keep going: ask, revise, update ledgers, and re-check.

    line 120
  47. Distinctive:

    Do not scaffold optional skill groups just because the script can generate them.

    line 128
  48. Distinctive:

    Do not turn source-repo workflows into target-repo policy without user confirmation.

    line 129

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

Bootstrap Repo Standards

Primary lens: Implementation.

Goal

Turn a repository into a well-routed, human-readable, agent-usable engineering system through evidence, questions, proposals, and explicit approval.

Discovery first. Do not finalize product meaning, architecture policy, coding standards, repo-local skills, or durable files from inference alone.

Gates

  • Treat the target repo as the path named by the user, or the current working directory if no path is given.
  • Before broad manual inventory, run scripts/repo_scan.py <repo> from this skill and summarize its output. If it cannot run, report the exact blocker and then do an explicit manual fallback inventory.
  • If Python is unavailable for bundled scripts, ask whether to install Python, use another available Python launcher, or proceed with a manual fallback. Do not silently skip the scripts.
  • Start read-only. Do not create or modify durable repo files until the user approves an exact file/action manifest.
  • Existing target files are source material. Read, compare, and patch; do not replace them with generic skeletons.
  • Ask before running commands that may write generated files, install packages, alter hooks, migrate databases, or change lockfiles.
  • Product docs require a product interview. Repo clues can suggest questions and draft outlines, not final truth.
  • Keep non-agent docs useful to humans and agent docs short. Prefer routes, focused files, and terse directives over manuals.
  • Do not call the skill done while material questions, checklist items, or validation decisions remain open unless the user explicitly accepts that stop point.
  • Use .agents/tmp/bootstrap-repo-standards/ only as approved working state, never as final documentation.
  • Prefer scripts for repeatable deterministic work. Use AI for decisions and repo-specific content, not repetitive commands or file churn.
  • Use scripts/scaffold_backbone.py for approved standard shapes and scripts/copy_skill_package.py for approved source skill copies.
  • Do not hand-write reusable skill packages from memory.
  • Do not put TODO placeholders in always-loaded agent files.
  • Do not mention where a pattern came from or earlier setup work in generated repo guidance. Use evidence to choose patterns, then write target-repo guidance only.
  • Do not assume the repo has a UI, API, deployed environment, or any other runtime surface. Treat every validation surface as a question until file evidence and user confirmation settle it.
  • Keep validation, setup/run, deployment/release, and docs-maintenance decisions explicit. If they are deferred, record the defer and owner/next step.
  • Keep standards-improvement TODOs separate from product backlog unless the user explicitly wants one shared tracker.
  • Include a durable tracked bootstrap checklist in the first proposed manifest unless the user rejects it.
  • Every candidate skill requires an explicit placement decision: repo-local, user/global, ignore, or defer.
  • Source skills are side references. Copy only a compact contract or narrow workflow shape after explicit repo-fit and manifest approval.

Workflow

  1. Establish scope.
    • Identify repo path, repo stage, desired outcome, and whether the user wants audit-only, proposal-only, or approved implementation after discussion.
    • Check git status and note dirty files. Do not overwrite user work.
    • Load references/execution-contracts.md before creating temp tracking, judging completion, or running write-mode scaffold scripts.
    • Ask to create or reuse temp tracking files under .agents/tmp/bootstrap-repo-standards/. If approved, run scripts/init_tracking.py <repo>.
  2. Inventory relentlessly but structurally.
    • First command after git status: python <this-skill>/scripts/repo_scan.py <repo> or equivalent Python launcher for the environment.
    • If no Python launcher works, ask before installing Python or using the manual fallback.
    • If the scan fails, capture the command, exit/failure reason, and fallback searches used.
    • Use targeted rg --files and rg searches to confirm docs, routes, setup/run, deployment/release, validation, tooling, skills, hooks, CI, tests, and runtime surfaces.
    • If the scan or searches find .codex/skills, .agents/skills, or possible skill migration work, run scripts/check_skill_migration.py <repo> before proposing anything about skill placement or migration.
    • Read current entrypoints first: AGENTS.md, README*, docs indexes, agent-rule indexes, setup/run/deployment docs, existing skills under .agents/skills or legacy .codex/skills, CI/hook configs, project/package files, and representative tests.
    • For existing repos, sample implementation code by layer or feature before proposing architecture rules.
  3. Build an evidence map.
    • Summarize what is proven by files, what is only inferred, and what is unknown.
    • Classify surfaces: product, architecture, backend, frontend, API, workers/jobs, CLI/library, data, tests, local setup/run, deployment/release, local validation, deployed validation, tooling, workflow, docs, documentation maintenance, standards roadmap, agent rules, repo-local skills, CI/hooks.
    • Load references/backbone-checklist.md after the repo shape is clear.
    • Load references/guided-implementation.md before classifying the repo as empty, docs-prefilled, code-prefilled, or active app and before recommending autonomous orchestration scaffolds.
    • Prepare durable checklist entries for present, partial, missing, not applicable, defer, or rejected status with file evidence and next steps.
  4. Interview before prescribing.
    • Load references/question-bank.md.
    • Load references/documentation-maintenance.md, references/operational-docs.md, and references/validation.md only when those themes are in scope.
    • Ask concrete questions, grouped by theme and ordered by risk.
    • Distinguish blocking decisions from non-blocking preferences.
    • Keep a visible question ledger: answered, unanswered, ambiguous, assumption candidate, defer.
    • If temp tracking exists, update question-ledger.md after every user answer batch.
    • For each inferred recommendation, cite the evidence and ask the user to confirm, reject, or refine it.
    • Continue until decisions are explicit enough to draft.
    • Require each confirmed repo surface to have an explicit local validation answer and, when deployed environments exist, an explicit deployed validation answer.
    • Require explicit decisions for setup/run routes, deployment/release routes, docs maintenance, work tracking, and standards roadmap handling.
  5. Propose the backbone.
    • Produce a concise proposed file/action manifest:
      • file path
      • create/update/skip
      • audience: human, agent, or both
      • purpose
      • key contents
      • dependencies/routes
      • approval status
    • Include docs/development/bootstrap-checklist.md as create or update unless the user rejects a durable checklist.
    • If temp tracking exists, keep the draft in backbone-manifest.md before writing approved final files.
    • Include quality-gate proposals only when evidence or user goals justify them.
    • Include git hook, CodeQL, security, and public-repo readiness files only when the repo is public, shared externally, or the user wants those gates.
    • Load the relevant reference before proposing docs maintenance, operational docs, validation docs, repo-local skills, work tracking, placeholders, or source-skill copies.
    • Include skill proposals only after a per-skill decision table shows evidence, trigger, placement, docs-vs-skill rationale, source/global equivalent, and approval status.
    • Recommend which candidate patterns to adopt, adapt, skip, or avoid based on this repo's actual stack and size.
    • For the durable bootstrap checklist, use scripts/scaffold_backbone.py <repo> --mode draft --set bootstrap-checklist for a draft or --mode apply --set bootstrap-checklist after approval, then replace generic rows with repo-specific evidence.
    • Use draft mode first for optional skills, hooks, security/public-repo files, file-backlog, standards-roadmap, and approved source skill copies.
    • Use --only <path-or-skill-folder> when drafting or applying one approved generated skill from a larger scaffold set.
    • Do not propose broad skill bundles when one focused repo-local skill or one route doc would cover the need.
  6. Get explicit approval.
    • Ask for approval of the manifest or a named subset.
    • Do not write files from a vague approval like "looks good" if paths/actions are not shown.
    • If the user changes direction, revise the manifest in chat first.
  7. Implement approved batches.
    • Write only approved files.
    • Create or update the durable bootstrap checklist before broader standards files so later work has a tracked ledger.
    • Prefer scripts/scaffold_backbone.py <repo> --mode draft --set <set> --only <path-or-skill-folder> before apply for individual approved generated skills.
    • Use scripts/copy_skill_package.py <source-skill-dir> <repo> --mode draft before apply for approved source skill copies.
    • Use apply mode only for approved files and exact approved target paths.
    • For existing files, read current content and apply approved targeted patches.
    • For new custom repo-local skills, invoke the user's skill-creator and target .agents/skills. Use scaffold only for the approved standard starter skill or approved standard skeletons.
    • For skill migration, update path references and routes in the same approved batch. Do not delete the legacy copy until the migrated skill is validated and the user approves removal.
    • Keep docs short and update routes/indexes together.
    • Add tests/configs/hooks only when the exact gate and command are approved.
    • Run validation appropriate to the changed files and report what passed, failed, or was not run.
  8. Review and iterate until complete.
    • Show the resulting docs, skills, and gates as a reviewable system.
    • Ask whether to tighten, split, remove, or defer pieces before calling the backbone finished.
    • Leave unresolved product or architecture questions visible rather than burying them in assumptions.
    • Update completion-checklist.md when temp tracking exists.
    • If completion criteria are not met, keep going: ask, revise, update ledgers, and re-check.

Execution Contracts

Load references/execution-contracts.md when temp tracking, durable bootstrap checklist rules, completion criteria, script safety, scaffold sets, or final output shape matters.

Do Not

  • Do not scaffold optional skill groups just because the script can generate them.
  • Do not turn source-repo workflows into target-repo policy without user confirmation.

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.