.agents/skills/meta--onboarding/SKILL.md
Step-by-step playbook that transforms a repository for AI-first development. It scopes the repository, runs read-only audits, maintains an outcome-driven checklist, guides collaborative improvements, and verifies the results with evidence. Use when onboarding a new repository, when a user says "set up this repo for agents," or when starting a harness engineering transformation. Do not use when the repo is already onboarded and the goal is to run a single specific skill.
npx skillsauth add patterninc/code-mint meta--onboardingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Transform a repository for AI-first development in phases. This playbook is assessment-first, approval-gated, and outcome-driven. The user should always be able to tell what the next proof is and what evidence already exists.
docs/onboarding-checklist.md, not only in chat.Maintain these outcomes as the public promise of onboarding:
Validate Current StateNavigateSelf-TestSmoke PathBug ReproductionSRE InvestigationUse docs/outcomes.md for the glossary and docs/onboarding-checklist.md as the system of record.
Phases vs outcomes: This playbook runs in five phases; a single phase may touch more than one north-star outcome when the proofs are coupled (for example Self-Test before Smoke Path, or bug repro alongside operational investigation). That does not relax the rule: prove and record each outcome separately in the checklist—one row at a time in the recommended order—before treating the next outcome as done.
.agents/reports/*-audit.md.agents/reports/completed/docs/onboarding-checklist.md.agents/code-mint-status.json (committed to git)docs/skills-status.md.agents/reports/onboarding-summary.mdWhen the onboarding scope is not the git repository root, briefly check as needed (not an exhaustive audit): .github/workflows/ at the repo root, root package.json and workspace manifests (pnpm, turbo, nx, and similar), root docker-compose / Makefile / Justfile, and root-level docs/ or ADRs when they define release or CI behavior for the service. Summarize or link what matters in scoped AGENTS.md, docs/, or .agents/reports/onboarding-summary.md so work in the scope does not rely on unstated parent-only context. This extends the README discovery in Safety Preflight step 3 to other common root-only locations.
Scoping rule: The target may be an entire repository or a specific directory/project within a larger repository or monorepo. Infer the intended scope from the user's initial instructions, and treat paths, commands, and AGENTS.md placement as relative to that scope unless a step explicitly needs the containing repository root for git operations. Reading the git repository root README.md (and READMEs on the path to the scope) for discovery is separate from that rule: use them to find repo-wide workflows, then record or reference what matters inside the scope.
Before running any auditors or creators:
README.md files on the path from the repo root to the scope; skim them for workflows relevant to the scoped project (deploy, release, CI, environment). Note in .agents/reports/onboarding-summary.md or audit output when important facts live only outside the scope so remediation can copy or reference them into scoped AGENTS.md or docs/..agents/, AGENTS.md, docs/onboarding-checklist.md, or prior audit reports already exist within the target scope.Ensure the following paths exist inside the target scope:
mkdir -p .agents/reports .agents/reports/completed docs
touch .agents/reports/.gitkeep .agents/reports/completed/.gitkeep
Ensure these docs exist inside the target scope. If they do not, copy them from code-mint before continuing:
docs/framework.mddocs/outcomes.mddocs/onboarding-checklist.mddocs/skills-status.md when the repo wants the compatibility viewInitialize .agents/reports/onboarding-summary.md if it does not exist. Use it as the running memo for:
N/A decisionsInitialize .agents/code-mint-status.json if it does not already exist. Copy it from the code-mint template and set scope to the onboarding scope path relative to the git root (. for repo-root onboarding, or the subdirectory path for scoped onboarding). This file is committed to git and serves as the machine-readable fingerprint for cross-repo scanning.
Ensure .gitignore keeps the directories but ignores generated report files:
.agents/reports/*
!.agents/reports/.gitkeep
!.agents/reports/completed/
.agents/reports/completed/*
!.agents/reports/completed/.gitkeep
If the git repository uses a single root .gitignore and the onboarding scope is not the repository root, add the same patterns there with a path prefix for the scope, or place a .gitignore under the scope directory.
Use this structure:
# Onboarding Summary
**Repository:** [name]
**Current Phase:** [Phase 1 / Phase 2 / Phase 3 / Phase 4 / Phase 5]
## Outcomes
- Validate Current State: [Not Started / In Progress / Proven / Blocked / N/A]
- Navigate: [Not Started / In Progress / Proven / Blocked / N/A]
- Self-Test: [Not Started / In Progress / Proven / Blocked / N/A]
- Smoke Path: [Not Started / In Progress / Proven / Blocked / N/A]
- Bug Reproduction: [Not Started / In Progress / Proven / Blocked / N/A]
- SRE Investigation: [Not Started / In Progress / Proven / Blocked / N/A]
## Current Priorities
- [top priority]
## Decisions And Approvals
- [decision or approval]
## Blockers
- [blocker]
## Next Step
- [next proof or manual follow-up]
## Next PR
- [recommended branch or PR scope]
Start with discovery, not taxonomy. Before you ask about detailed skill applicability, ask 1-2 freeform questions that uncover the real onboarding goal. Good starting prompts:
Use the repository context to infer likely scope, then summarize your understanding back to the user before asking narrower follow-up questions. Example:
Here is my current read: you want better codebase legibility, a trustworthy test path, and a safe smoke path that an agent can use to confirm the repo is actually working. I think that means navigation, self-test, and runtime proof are definitely in scope; SRE investigation may depend on whether operational tooling exists.
Only after that summary should you confirm applicability for the remaining areas:
.env files or environment variable configuration?Mark any inapplicable outcome or supporting area as N/A in docs/onboarding-checklist.md. Skip those steps later.
Instead of forcing the user into a fixed path immediately, ask about preferences that shape the recommendation:
Then recommend the next phase sequence in plain language and ask for confirmation.
Run applicable auditors to understand the current state. These are non-destructive, read-only assessments that produce reports to .agents/reports/.
Skill: legibility--auditor
Output: .agents/reports/legibility--auditor-audit.md
Skill: autonomy--test-readiness-auditor
Output: .agents/reports/autonomy--test-readiness-auditor-audit.md
Skill: autonomy--env-auditor
Output: .agents/reports/autonomy--env-auditor-audit.md
Skill: autonomy--runtime-auditor
Output: .agents/reports/autonomy--runtime-auditor-audit.md
Skill: autonomy--sre-auditor
Output: .agents/reports/autonomy--sre-auditor-audit.md
Once scope is known, Phase 1 auditors may run in parallel because they are read-only. Do not parallelize creator or remediation work in later phases unless the scopes are clearly independent and the user approves.
When auditors run in parallel, do not have each auditor update .agents/code-mint-status.json individually — concurrent writes to the same file lose data. Instead, defer all fingerprint updates to the single "After Phase 1" step below, which writes all outcome statuses in one pass.
Update docs/onboarding-checklist.md with:
Validate Current State = Proven when the baseline reports and summary exist and the summary captures what is working, blocked, risky, and next to proveNot Started, In Progress, Blocked, or N/A based on the audit findingsUpdate .agents/code-mint-status.json: set onboarded_at to today's ISO date, and update each outcome's status and date to match the checklist.
Present a concise summary to the user:
Phase 1 Assessment Complete.
Validate Current State: Proven - [one-line summary]
Navigate: [status] - [one-line summary]
Self-Test: [status] - [one-line summary]
Smoke Path: [status] - [one-line summary]
Bug Reproduction: [status] - [one-line summary]
SRE Investigation: [status] - [one-line summary]
Recommended next proof: [single next outcome]
Then stop and ask for approval before making changes.
Persist the Phase 1 summary into .agents/reports/onboarding-summary.md, including:
N/A decisionsThis phase makes the codebase navigable enough for the agent to explain where work belongs and what user-facing behavior depends on each module.
Skill: legibility--enhancer
Input: .agents/reports/legibility--auditor-audit.md
Root means the onboarding scope root: the repository root when onboarding the full repo, or the scoped project directory when onboarding a monorepo package.
Walk through the root AGENTS.md collaboratively. Capture:
Prioritize the 3-5 highest-value modules that need local context. Capture:
NavigateMark Navigate as Proven only when:
AGENTS.md exists and is accurateRecord the proof in docs/onboarding-checklist.md.
Use the audit reports from Phase 1 to remediate the next approved gap.
Skill: autonomy--test-readiness-creator
Input: .agents/reports/autonomy--test-readiness-auditor-audit.md
Focus on establishing the smallest trustworthy targeted test path for a high-value module or behavior.
Self-TestMark Self-Test as Proven only when:
docs/onboarding-checklist.mdSkill: autonomy--env-creator
Input: .agents/reports/autonomy--env-auditor-audit.md
Before any .env rewrite:
.env may contain the only surviving copy of any secret..env as the active file and surface recovery instructions.Skill: autonomy--runtime-creator
Input: .agents/reports/autonomy--runtime-auditor-audit.md
Build setup scripts, local service flows, and smoke-check documentation only after the user approves those changes. The agent handles scripting; the human provides infrastructure context and confirms approval-gated decisions.
Smoke PathMark Smoke Path as Proven only when:
Use autonomy--sre-agent or the local debugging workflow to turn one real bug report into a deterministic repro. Favor a failing test when possible.
Bug ReproductionMark Bug Reproduction as Proven only when:
If the project has logs, metrics, traces, or deployment history, customize and use autonomy--sre-agent.
If the SRE agent needs project-local values, fill the [CUSTOMIZE] sections in:
.agents/skills/autonomy--sre-agent/SKILL.md.agents/skills/autonomy--sre-agent/references/recipes.mdSRE InvestigationMark SRE Investigation as Proven only when:
N/A with a reasonIf the repository truly has no operational tooling, mark the outcome N/A.
Re-run all applicable auditors to confirm improvements.
Before re-running auditors, archive Phase 1 reports so before/after comparison remains possible:
for f in .agents/reports/*-audit.md; do
[ -f "$f" ] && cp "$f" ".agents/reports/completed/$(basename "$f" .md)-baseline-$(date +%Y-%m-%d).md"
done
Run each applicable auditor again and compare the new results against the Phase 1 baseline.
docs/onboarding-checklist.md with final statuses, evidence, and dates..agents/code-mint-status.json: set last_validated to today's ISO date, and update all outcome statuses and dates to their final values.docs/skills-status.md if the repo wants the compatibility view..agents/reports/completed/..agents/reports/onboarding-summary.md with what changed, what remains manual, unresolved risks, and the next recommended skill or proof.Once the onboarding outcomes are proven, these ongoing skills become more useful:
| Skill | When To Use |
|---|---|
| clarity--ticket-writer | When a PM or engineer has a new feature request or bug report |
| autonomy--sre-agent | When investigating production issues, errors, or incidents |
| legibility--auditor | Quarterly, to audit documentation coverage as the codebase evolves |
| autonomy--test-readiness-auditor | When test infrastructure changes or new modules are added |
| meta--skill-creator | When you need to create new project-specific skills |
AGENTS.md files.autonomy--sre-agent for real failures and clarity--ticket-writer for new work.The durable progress checklist lives in docs/onboarding-checklist.md. Do not create a second parallel checklist in chat.
development
Best practices and template for creating new agent skills in the code-mint framework. Use when creating a new skill, authoring SKILL.md files, or structuring skill directories. Do not use when editing an existing skill's logic (edit directly instead) or when creating AGENTS.md files (use legibility--enhancer).
development
Collaboratively walks a human through creating high-quality AGENTS.md files throughout a codebase, implementing progressive disclosure architecture. Use when creating or updating AGENTS.md files, onboarding a repository to agent-first practices, or remediating findings from legibility--auditor. Do not use when evaluating existing documentation coverage (use legibility--auditor) or when creating agent skills (use meta--skill-creator).
development
Audits a repository's documentation coverage and agent-readiness by evaluating AGENTS.md placement, progressive disclosure quality, and UX intent documentation. Use when evaluating repository structure, auditing documentation coverage, assessing agent-readiness, or onboarding a codebase to agent-first practices. Do not use when creating or editing AGENTS.md files directly (use legibility--enhancer instead).
development
Collaborates with a product owner, TPM, or engineer to refine vague requests into high-quality work tickets optimized for agent one-shot execution. Use when writing tickets, refining requirements, reviewing feature requests, or when a stakeholder submits a new task. Do not use when debugging an existing issue (use autonomy--sre-agent) or when auditing codebase readiness (use legibility--auditor).