Agent-Native Repo Playbook
Outcome
Make the repository a reliable harness in which a cold agent can take clear
intent through implementation, validation, product-facing proof, cleanup, and
reporting with minimal human coordination.
Operating model:
- Humans own intent, priorities, acceptance criteria, taste, and material risk.
- Agents own code, tests, docs, tooling, validation, cleanup, and routine
follow-through.
- Repeated confusion or failure is a harness gap to fix, not a prompt to repeat.
Use recommendation-only mode for audit, review, score, or report requests. Edit
the repository only when the user asks for changes or implementation.
Modes and References
Always read references/best-practices.md, then load only the task-specific
references:
- Scorecard: for a score, benchmark, readiness, or maturity assessment, read
references/harness-readiness-rubric.md.
- Guidance: when reviewing or changing root or nested
AGENTS.md, STRUCTURE.md,
or equivalent guidance, read references/agents-md-best-practices.md.
- Docs: when reviewing or changing docs placement, architecture docs, or docs
freshness rules, read
references/docs-structure-and-maintenance.md.
Workflow
- Read the repo's sources of truth and execution surfaces:
- root and relevant nested guidance;
- structure maps, architecture, references, decisions, and active trackers;
- workflows, build/test commands,
scripts/check-fast.sh, and full checks;
- relevant local skills, tools, logs, and product inspection paths.
- Respect local contracts. Repo guidance and established architecture override
this playbook's defaults.
- Trace the full job from discovery to change, static validation, product or
service proof, cleanup, reporting, and recovery. Identify where a cold agent
would stall, guess, or need repeated human intervention.
- Prioritize gaps that reduce coordination or turn repeated mistakes into
mechanical feedback. Prefer a small working guardrail over more policy prose.
- Match the requested action:
- For an audit, recommend without editing.
- For implementation, make the requested changes, update durable docs, and
validate in proportion to risk.
- Ground every major finding or completion claim in a file, command, log,
screenshot, artifact, smoke test, or other concrete evidence.
Output
For recommendation audits, return:
What is working.
Highest-leverage gaps.
Guidance audit: Keep / Move / Delete only when root guidance is in scope.
Recommended next moves: Immediate, Near-term, and Later.
Evidence: concrete file paths and relevant commands.
For scorecards, add the overall score and dimension table required by
references/harness-readiness-rubric.md.
For implementation, lead with the result and include checks run, product or
service proof when relevant, skipped validation with reasons, and any remaining
harness gap that weakened proof.
Rules
- Preserve the model that humans set intent and agents write and maintain the
implementation and repo docs.
- Prefer autonomous feedback loops, deterministic tools, and mechanical
guardrails over reminders.
- Keep root guidance concise. Use it as a router; add nested guidance only where
local boundary rules materially differ. Honor intentional alternatives such
as
STRUCTURE.md.
- Use the repo's docs contract. When none exists, prefer
docs/architecture/
for system shape and docs/references/ for exact implementation facts.
- For a multi-repo system with a canonical orientation skill, keep cross-repo
ownership and routing there while keeping implementation detail in the owning
repo. Do not duplicate an architecture manual in the skill.
- Favor direct, recoverable workflows in trusted repos. Do not add team-heavy
approvals, branch ceremony, or centralized policy layers without a concrete
need or explicit request.
- Do not introduce centralized audit scripts unless the user explicitly asks.
- Use
$project for durable project trackers and close or archive completed
trackers according to repo guidance.
Resources
references/best-practices.md: canonical operating principles and default
priorities.
references/harness-readiness-rubric.md: scorecard dimensions and output
contract.
references/agents-md-best-practices.md: guidance quality gate and
Keep / Move / Delete model.
references/docs-structure-and-maintenance.md: lightweight docs contract and
maintenance rules.
1---2name: agent-native-repo-playbook3description: Audits and improves repositories for a solo-developer, high-permission, agent-native workflow in which humans set intent and agents complete implementation, documentation, validation, and cleanup. Use for repository harness audits, readiness scoring, AGENTS or docs reviews, autonomous execution and proof-of-work loops, direct-to-main or YOLO safety, agent legibility, mechanical guardrails, and recurring agent drift.4---56# Agent-Native Repo Playbook78## Outcome910Make the repository a reliable harness in which a cold agent can take clear11intent through implementation, validation, product-facing proof, cleanup, and12reporting with minimal human coordination.1314Operating model:1516- Humans own intent, priorities, acceptance criteria, taste, and material risk.17- Agents own code, tests, docs, tooling, validation, cleanup, and routine18 follow-through.19- Repeated confusion or failure is a harness gap to fix, not a prompt to repeat.2021Use recommendation-only mode for audit, review, score, or report requests. Edit22the repository only when the user asks for changes or implementation.2324## Modes and References2526Always read `references/best-practices.md`, then load only the task-specific27references:2829- Scorecard: for a score, benchmark, readiness, or maturity assessment, read30 `references/harness-readiness-rubric.md`.31- Guidance: when reviewing or changing root or nested `AGENTS.md`, `STRUCTURE.md`,32 or equivalent guidance, read `references/agents-md-best-practices.md`.33- Docs: when reviewing or changing docs placement, architecture docs, or docs34 freshness rules, read `references/docs-structure-and-maintenance.md`.3536## Workflow37381. Read the repo's sources of truth and execution surfaces:39 - root and relevant nested guidance;40 - structure maps, architecture, references, decisions, and active trackers;41 - workflows, build/test commands, `scripts/check-fast.sh`, and full checks;42 - relevant local skills, tools, logs, and product inspection paths.432. Respect local contracts. Repo guidance and established architecture override44 this playbook's defaults.453. Trace the full job from discovery to change, static validation, product or46 service proof, cleanup, reporting, and recovery. Identify where a cold agent47 would stall, guess, or need repeated human intervention.484. Prioritize gaps that reduce coordination or turn repeated mistakes into49 mechanical feedback. Prefer a small working guardrail over more policy prose.505. Match the requested action:51 - For an audit, recommend without editing.52 - For implementation, make the requested changes, update durable docs, and53 validate in proportion to risk.546. Ground every major finding or completion claim in a file, command, log,55 screenshot, artifact, smoke test, or other concrete evidence.5657## Output5859For recommendation audits, return:60611. `What is working`.622. `Highest-leverage gaps`.633. `Guidance audit: Keep / Move / Delete` only when root guidance is in scope.644. `Recommended next moves`: Immediate, Near-term, and Later.655. `Evidence`: concrete file paths and relevant commands.6667For scorecards, add the overall score and dimension table required by68`references/harness-readiness-rubric.md`.6970For implementation, lead with the result and include checks run, product or71service proof when relevant, skipped validation with reasons, and any remaining72harness gap that weakened proof.7374## Rules7576- Preserve the model that humans set intent and agents write and maintain the77 implementation and repo docs.78- Prefer autonomous feedback loops, deterministic tools, and mechanical79 guardrails over reminders.80- Keep root guidance concise. Use it as a router; add nested guidance only where81 local boundary rules materially differ. Honor intentional alternatives such82 as `STRUCTURE.md`.83- Use the repo's docs contract. When none exists, prefer `docs/architecture/`84 for system shape and `docs/references/` for exact implementation facts.85- For a multi-repo system with a canonical orientation skill, keep cross-repo86 ownership and routing there while keeping implementation detail in the owning87 repo. Do not duplicate an architecture manual in the skill.88- Favor direct, recoverable workflows in trusted repos. Do not add team-heavy89 approvals, branch ceremony, or centralized policy layers without a concrete90 need or explicit request.91- Do not introduce centralized audit scripts unless the user explicitly asks.92- Use `$project` for durable project trackers and close or archive completed93 trackers according to repo guidance.9495## Resources9697- `references/best-practices.md`: canonical operating principles and default98 priorities.99- `references/harness-readiness-rubric.md`: scorecard dimensions and output100 contract.101- `references/agents-md-best-practices.md`: guidance quality gate and102 Keep / Move / Delete model.103- `references/docs-structure-and-maintenance.md`: lightweight docs contract and104 maintenance rules.