Prepare a Codebase for Recursive Optimization
Use this skill when a repository needs enough structure for coding agents to improve it safely over repeated loops.
Inputs
- Repository path
- User goal or repo mission
- Existing agent instructions
- Available install, lint, typecheck, test, and build commands
Procedure
- Inspect the repository tree, README, package metadata, tests, CI, and existing agent guidance.
- Identify the repo goal, public API, protected surfaces, test strategy, and deployment path.
- Check whether these files exist:
goal.md,AGENTS.md,README.md,docs/architecture.mdorARCHITECTURE.md,TESTING.md,EVALS.md,.climbhill/policy.yaml,.climbhill/eval.yaml,.agent/skills/, andresources/. - Propose missing repository support files before creating them.
- Avoid overwriting existing files unless the human explicitly approves.
- Write conservative policy defaults: protect tests, evals, CI, migrations, infra, lockfiles, and security-sensitive paths.
- Record assumptions and unknowns in the preparedness report.
Outputs
- Preparedness gap summary
- Created or proposed repository support files
- Known commands
- Protected surfaces
- Follow-up issues or questions
Rubric
- The repo goal is explicit.
- Edit boundaries are machine-readable.
- Test and evaluation commands are recorded.
- Human approval surfaces are clear.
- Existing guidance is preserved.