Bootstrap repo standards
Skill LandonTomaine/LT-Agents/skills/bootstrap-repo-standards
Reusable Codex skills and agent workflows
npx -y skills add LandonTomaine/LT-Agents --skill bootstrap-repo-standardsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
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.
SKILL.md
11.3 KB, ~2.3k tokens by cl100k_base, as published. Nobody here has run it
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.pyfor approved standard shapes andscripts/copy_skill_package.pyfor 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, ordefer. - Source skills are side references. Copy only a compact contract or narrow workflow shape after explicit repo-fit and manifest approval.
Workflow
-
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, runscripts/init_tracking.py <repo>.
-
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 --filesandrgsearches 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, runscripts/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/skillsor 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.
- First command after git status:
-
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, orrejectedstatus with file evidence and next steps.
-
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.mdafter 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.
-
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.mdascreateorupdateunless the user rejects a durable checklist. - If temp tracking exists, keep the draft in
backbone-manifest.mdbefore 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-checklistfor a draft or--mode apply --set bootstrap-checklistafter 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.
- Produce a concise proposed file/action manifest:
-
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.
-
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 draftbefore 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-creatorand 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.
-
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.mdwhen 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.
What ships with it: 18 files
161.0 KB alongside SKILL.md, 6 of them executable
agents/
- openai.yaml429 B
references/
- backbone-checklist.md14.6 KB
- documentation-maintenance.md3.8 KB
- execution-contracts.md5.9 KB
- guided-implementation.md5.8 KB
- operational-docs.md3.7 KB
- placeholders.md793 B
- question-bank.md14.0 KB
- repo-local-skills.md8.9 KB
- source-skill-patterns.md7.7 KB
- validation.md5.2 KB
- work-tracking.md3.5 KB
scripts/
- check_skill_migration.pyruns5.8 KB
- copy_skill_package.pyruns7.6 KB
- init_tracking.pyruns4.0 KB
- render_codeql_workflow.pyruns3.6 KB
- repo_scan.pyruns25.6 KB
- scaffold_backbone.pyruns40.0 KB
Gives 0 of the 12 instructions most docs writing skills give in ~2.3k tokens
Counted across 1,637 of the 3,044 authors here whose files we hold, read 2026-08-07
- Announce the skill at startin 54 of 1637, across 26 files
- Convert legacy doc files before editingin 45 of 1637, across 7 files
- Predict questions readers might askin 42 of 1637, across 4 files
- Generate clarifying questions for initial contextin 42 of 1637, across 3 files
- Create document scaffold with placeholder textin 42 of 1637, across 3 files
- Brainstorm content options for each sectionin 42 of 1637, across 3 files
- Test the document with a fresh context-less instancein 42 of 1637, across 3 files
- Include exact file paths in every taskin 42 of 1637, across 15 files
- Ask interview questions one at a timein 42 of 1637, across 27 files
- Apply surgical edits during refinementin 41 of 1637, across 2 files
- Offer structured workflow or freeformin 40 of 1637, across 1 file
- Ask for document meta-contextin 40 of 1637, across 2 files
Said here and by no other author read
- run the repo scanner before manual inventory
- start read-only until an exact manifest is approved
- patch existing files instead of replacing them
- interview the user before drafting product docs
- maintain a visible question ledger
- propose a durable bootstrap checklist
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.