executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
agentic-repo-scaffoldScaffold a repo's agent-maintainability contract: AGENTS.md architecture contract + executable verify harness (boundary / giant-file / generated-clean checks) + a single `make verify` / `pnpm verify` + `.agent/` ledgers. Stack-aware. Use on "scaffold AGENTS.md", "set up the agent contract", "add a verification harness", "make this repo agent-maintainable", …
Independent GitHub snapshot · Automated classification · Original documentation governs
name: agentic-repo-scaffold
description: >
Scaffold a repo's agent-maintainability contract: AGENTS.md architecture contract +
executable verify harness (boundary / giant-file / generated-clean checks) + a single
make verify / pnpm verify + .agent/ ledgers. Stack-aware. Use on "scaffold
AGENTS.md", "set up the agent contract", "add a verification harness", "make this repo
agent-maintainable", "wire up make verify", or starting/hardening a repo for
long-horizon agent maintenance. Distinct from /init (docs CLAUDE.md): this writes the
CONTRACT + executable gates.
Turns the agentic-repo-architecture framework into committed, executable artifacts in a target repo.
Core principle: instruction files are context, not enforcement. Every architecture rule this skill writes into AGENTS.md must have a matching deterministic check in tools/verify/ and CI, or it will be violated under context pressure.
make verify; standing up .agent/ ledgers for a long refactor./init), or a one-file change. This is repo-infrastructure scaffolding.Create a todo per step.
package.json / go.mod / pyproject.toml / Cargo.toml, the build scripts, and the top-level tree.AGENTS.md, CLAUDE.md, any tools/verify or check scripts, .agent/, .cursor/rules, a verify command, CI workflow. Never clobber a richer existing file — extend it, or write a .proposed sibling and diff.references/frontend.mdreferences/backend.mdreferences/general.mdAGENTS.md (the architecture contract)templates/AGENTS.template.md. Fill in: real architecture map (use the ACTUAL directory names in this repo — don't impose core/application/ports/adapters names if the repo already has a working, legible convention; map the roles onto its real paths), import rules, contract rules, file limits, the verify command, and the done-definition.CLAUDE.md is absent, drop the thin pointer from templates/CLAUDE.pointer.md. If it exists and is substantive, leave it; just ensure it references AGENTS.md.templates/, adapting globs/paths to the repo:
check-giant-files.mjs (language-agnostic LOC gate; or check-giant-files.py for non-JS repos)check-boundaries.mjs (forbidden-import / purity check — set the layer regexes to the repo's real paths)check-generated-clean.sh (regenerate + git diff --quiet; skip if the repo has no generated code)verify script in package.json (typecheck → lint → unit → contract → e2e/visual where present → architecture checks).make verify target (go vet → golangci-lint → go test ./... → arch/giant-file checks).make verify (ruff/mypy → pytest → checks).templates/Makefile.fragment or templates/package.verify.json as the starting shape..agent/ ledgers (only for genuine long-horizon work).agent/PROGRESS.md, .agent/EVIDENCE.md, .agent/DECISIONS.md from templates/agent-ledgers/..cursor/rules/*.mdc from the matching reference §8 (boundaries rule + verification rule). Skip otherwise.templates/ci-verify.yml (GitHub Actions). A check that isn't in CI is advisory only.verify command. Do not mark done from inspection — show command output.references/ blueprint ship inside this skill, so the package is self-contained.