Repo bootstrap
Skill stevennitesh/programming-agent-skills/skills/experimental/repo-bootstrap
Bootstrap or reconcile a target repo's verified setup surface for the Programming Agent Skills pack.From its SKILL.md
npx -y skills add stevennitesh/programming-agent-skills --skill repo-bootstrapAssembled 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.
SKILL.md
5.9 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
Repo Bootstrap
Own one outcome: a compatible, verified repo-local setup surface.
Inventory. Reconcile. Choose. Draft. Provision. Verify.
Inventory
Inspect before asking. Read repository identity and tracker access; AGENTS.md and configured fallback instructions; repo-owned command sources; existing docs/agents/, context files, and ADRs; .gitignore, .tmp/, .scratch/; and hosted-tracker labels when accessible. Inspect workspace and package manifests, independently owned source roots, existing domain vocabularies, and ADR streams.
When any prior setup surface exists, run scripts/validate_setup.py read-only during Inventory; do not wait until Verify. Its complete failure list seeds the reconciliation delta.
Treat a command as verified only when repo config, CI, or maintained documentation owns it. Surface conflicting sources.
Inventory completes when the tracker candidate, verified commands, existing setup surface, domain layout, local-state policy, settled choices, and access blockers are known.
Reconcile
When a prior setup surface exists, treat this run as a reconcile, not a reset.
setup-schema.json owns the aggregate pack fingerprint. It identifies the setup generation, not per-file completeness. Compare every managed surface: AGENTS.md, all four docs/agents/*.md contracts, .tmp/ and .scratch/ policy, and applicable tracker configuration. Each managed contract carries a programming-agent-skills setup-file marker naming its source template and template hash; a missing or different marker identifies that file as unreconciled even when the aggregate marker is current. Markers are provenance evidence, not substitutes for content inspection or validator proof.
- Preserve. Carry forward the confirmed tracker, label mapping, domain layout, PR/MR intake policy, close policy, verified commands, repo invariants, and repo-specific contract additions.
- Delta. Propose only changes required by the current pack.
- Re-ask. Revisit a choice only when missing, ambiguous, incompatible, explicitly reopened, or contradicted by current evidence.
- Conflict. Surface incompatible repo policy and wait for the user's decision.
Choose
Resolve only unsettled choices, one answer at a time. Lead with the discovered recommendation and its consequence.
- Tracker. Choose GitHub, GitLab, Local Markdown, or another tracker with an explicit tracker mapping. Prefer the detected remote; otherwise recommend Local Markdown. For hosted trackers, settle external PR/MR intake and implemented-item closure. GitHub default: yes for closure. GitLab default: no. Intake defaults to no.
- Labels. Use triage-labels.md as the role set. Reuse matching labels, map local names, and propose only missing labels for creation after approval.
- Domain. Default to single-context (
CONTEXT.md,docs/adr/). Propose multi-context (CONTEXT-MAP.mdplus routed context docs and ADRs) only when independently owned domain vocabularies, decisions, or responsibilities span source roots. Workspace manifests trigger inspection but do not prove multiple contexts.$domain-modelingowns later domain-file creation and changes.
Verified commands, the four local contracts, and .tmp//.scratch/ policy are setup invariants, not extra choices.
Draft
Show the exact proposed delta:
- the
AGENTS.mdpatch with the engineering primer, verified commands, invariants, pointers, and<!-- programming-agent-skills setup-schema: 1:87b57bfbb165 -->; - all four
docs/agents/*.mdresults; - the
.gitignoredelta; - preserved repo-specific additions and unresolved conflicts;
- tracker labels and policies;
- access blockers and the verification plan.
Wait for approval before any file write or tracker mutation.
Provision
Apply only the approved delta. Reconcile existing local contracts in place. Preserve repo-specific additions.
- Primer. Update or create a short
AGENTS.mdwithExplore imaginatively. Converge under proof. Simplify ruthlessly., verified commands, local invariants, the current marker, and pointers to the four local contracts. When the portable engineering-contract owner is present, replace its portable title and owner preamble with the installed-pack primer and engineering-contract pointer; preserve repo-specific material. - Contracts. Reconcile the selected tracker template into
docs/agents/issue-tracker.md; triage-labels.md intodocs/agents/triage-labels.md; domain.md, with its layout resolved, intodocs/agents/domain.md; and engineering-contract.md intodocs/agents/engineering-contract.md. For another tracker, use the approved tracker mapping. Write each current setup-file marker only after that file's content and preserved additions have been reconciled. - State. Keep
.tmp/contents ignored and.scratch/trackable without replacing unrelated ignore rules. - Labels. For GitHub or GitLab, create only approved missing mapped and fixed labels; preserve existing labels and descriptions.
Treat dependency installation or broad environment mutation as a separate user-approved action.
Verify
Run scripts/validate_setup.py against the target repo. Then smoke-test tracker read access, verify hosted labels, run the cheapest repo-owned command proving the recorded command surface, run git diff --check, and read back every changed file and tracker mutation. Report skipped checks.
Setup completes only when the validator passes and tracker access, labels or local status vocabulary, verified commands, preserved additions, and approved mutations are confirmed. Otherwise report Setup incomplete, the blocker, and the exact next action.
What ships with it: 9 files
45.6 KB alongside SKILL.md, 1 of them executable
agents/
- openai.yaml43 B
scripts/
- validate_setup.pyruns13.4 KB
- domain.md1.5 KB
- engineering-contract.md8.3 KB
- issue-tracker-github.md7.3 KB
- issue-tracker-gitlab.md7.2 KB
- issue-tracker-local.md5.3 KB
- setup-schema.json346 B
- triage-labels.md2.1 KB