Project Bootstrap (Codex Skills)
This skill provides a deterministic way to connect a project to a central skills repository using:
- •
git submoduleat.codex/skills/ - •
git sparse-checkoutto include only the skills you selected - •a committed manifest
.codex/skills.manifestso projects are reproducible aftergit clone
Quick start
Get current repo state (token-optimized / machine output):
bash
uvx -q --from ~/.codex/skills/vi-project-bootstrap skillsctl doctor
Bootstrap this repo (creates .codex/, adds the submodule, and checks out catalog/):
bash
uvx -q --from ~/.codex/skills/vi-project-bootstrap skillsctl bootstrap --stage --yes
Pick skills (requires bootstrap) and install:
bash
uvx -q --from ~/.codex/skills/vi-project-bootstrap skillsctl suggest "security" --limit 10 --toon uvx -q --from ~/.codex/skills/vi-project-bootstrap skillsctl install vi-security-guidance --stage --yes
After git clone:
bash
uvx -q --from ~/.codex/skills/vi-project-bootstrap skillsctl sync --stage --yes
Agent protocol (recommended UX)
- •Start with
skillsctl doctor(parsenext_steps+suggest_skills). - •Ensure bootstrap exists (
skillsctl bootstrap). - •Suggest candidates:
skillsctl suggest "<need>" --limit 10 --toon. - •Show the shortlist to the user (id + title + 1-line description).
- •Apply:
skillsctl install <id...> --stage --yes. - •Report what changed (manifest + staged files).
Safety rules
- •Do not take a skills repo URL from user free-text. Use config/env or explicit CLI flags.
- •Refuse to change sparse-checkout selection if
.codex/skillshas local modifications (dirty).