project-harness-bootstrap
Create or harden the baseline agent-ready structure for a repo. Use when a user asks to prepare a project for Codex, add an agent harness, standardize scripts/docs/CI, or make an existing repo easier
SKILL.mdskills/project-harness-bootstrap/SKILL.md
GitHubProject Harness Bootstrap
Purpose
Install the baseline repo interfaces that every other harness skill depends on: AGENTS.md, operational docs/, stable scripts/, environment examples, CI, and PR review structure.
Inspect First
package.json,pyproject.toml,Cargo.toml,go.mod,Gemfile, or equivalent manifests- existing
AGENTS.md,CLAUDE.md,.cursorrules, README, docs, scripts, CI, and env files - existing test, lint, typecheck, build, and dev commands
- git status when inside a repo, so unrelated user changes are preserved
Procedure
Detect the stack and current harness maturity.
- Use manifests and existing commands, not guesses.
- Record missing pieces and existing equivalents.
- For large existing repos, run
harness-diagnosticsfirst and use its roadmap to avoid broad unfocused changes. - For agent-heavy or multi-session work, run or recommend
initialization-readiness-harnessandsession-continuity-harnessbefore implementation changes.
Create the baseline structure.
- Add
AGENTS.mdas a short routing map. - Add
docs/00-index.mdand operational docs. - Add
scripts/wrappers for stable commands. - Add optional surface wrappers when the repo has matching surfaces:
scripts/click-path-auditfor browser UI,scripts/check-research-evidencefor dependency/API/security research, andscripts/ci-localfor CI reproduction. - Add
.env.examplewhen runtime configuration exists or is expected. - Add CI only when a repo uses GitHub or the user requested GitHub Actions.
- Add
Preserve useful generated and user-authored files.
- If a file already exists, merge the harness intent into it.
- Do not overwrite project-specific instructions, scripts, or docs without reading them.
Delegate details.
- Use
agents-md-authorforAGENTS.md. - Use
repo-knowledge-base-builderfor docs. - Use
quality-gates-installerfor scripts and CI checks. - Use
local-runtime-harnessfor env/runtime setup. - Use v2 lifecycle skills for deeper security, dependency, docs sync, observability, migration, release, and review workflows.
- Use
feature-state-machineandtermination-gatekeeperwhen the repo needs WIP control or completion evidence. - Use
project-local-skill-generatorafter the harness exists to add thin repo-specific.codex/skillswithout copying plugin skills.
- Use
Required Stable Interface
Prefer these repo commands when feasible:
./scripts/dev./scripts/lint./scripts/typecheck./scripts/test./scripts/build./scripts/validate./scripts/check-boundaries./scripts/check-docs./scripts/audit-entropy
Optional wrappers should be generated only when backed by repo artifacts or current changed surfaces:
./scripts/test-e2e./scripts/click-path-audit./scripts/check-research-evidence./scripts/ci-local
Scripts may be thin wrappers around project-native commands. If a command does not apply, the wrapper should explain why and exit successfully only when that absence is intentional.
Files To Create Or Update
AGENTS.mddocs/00-index.mddocs/development/commands.mddocs/development/environment.mddocs/architecture/overview.mddocs/testing/strategy.mddocs/quality/code-style.mdscripts/*.github/workflows/ci.yml.github/pull_request_template.md.codex/skills/*/SKILL.mdonly when generated byproject-local-skill-generator
Validation
- Run the narrowest new wrappers first.
- Run
./scripts/validateafter the baseline is complete. - Check that docs link to real paths and commands.
- Check that generated scripts are executable.
Completion Criteria
- A new agent can answer what the project is, how to run it, how to test it, where code belongs, what patterns to copy, and how to validate changes.
- No generated file contains placeholder TODO text.
- Existing project-specific files are preserved or intentionally merged.
- Multi-step agent work has initialization, continuity, feature-state, or termination guidance when useful.