Repo Create
Use this skill to help a user design and create the management layer for a repository before or while code is added. The core output is a small set of repo-governance documents that explain how developers and agents should work in the repo.
Workflow
- Inspect the repository first:
- Read existing
AGENTS.md,README.md,docs/,.gitignore, dependency files, and visible top-level directories. - Preserve existing conventions unless the user asks to replace them.
- Read existing
- Read
STATE.md; for a new run, reset it fromreferences/template/STATE.template.md, then mark the active stepin_progress. - Discuss scope with the user when it is not already clear:
- Ask what the repo is for, who will maintain it, expected languages, runtime services, and what directories should be allowed.
- If the user gave enough direction, proceed with conservative defaults and state the assumptions.
- Create or update
AGENTS.md:- Explain the repo purpose, operating rules, validation commands, and git hygiene.
- Teach the user where the important docs live and how to update them.
- Point agents to
docs/rules/filetree.mdbefore directory changes and todocs/rules/environment.mdbefore environment changes. - Route Git operations to the relevant file in
docs/rules/git/and human documentation mutations todocs/rules/human-docs.md. - Route issue acceptance and reproduction work to
docs/rules/demo.md.
- Create or update
docs/rules/:filetree.md: allowed directory tree, directory roles, creation rules, generated-file rules, and how to propose new directories.environment.md: language/runtime versions, package managers, services, secrets, data/model storage, and validation commands.git/branch.md,git/commit.md,git/issues.md,git/pull-request.md, andgit/changelog.md: focused Git workflow rules. Read the matching bundled references before drafting each file and preserve existing constraints and inbound links when reorganizing rules.human-docs.md: ownership, confirmation, structure, and evidence rules. Readreferences/rules/human-docs.mdbefore creating or changing this rule; its mutation also requires confirmation covering the proposed batch.demo.md: issue acceptance packages, reverse-sorted directory names, human result summaries, developer reproduction, and detailed evidence. Read demo rules; document the target layoutdemo/issues-<view-id>-<issue-id>/{reports.md,reproduce.md,detail/}and link the acceptance gate from AGENTS.md and PR guidance. Define the rules without fabricating completed issue evidence during repository setup.
- Propose the human documentation batch:
- Use
docs/human/roadmap.mdanddocs/human/changelog/<YYYY-Www>.mdfor confirmed direction and weekly history. Preserve existing paths unless migration is authorized. - Show exact paths and the proposed batch before seeking confirmation. Proceed when an existing explicit instruction already covers that batch; otherwise await confirmation before any mutation, including initial creation or moves.
- After the authorized write, read back the files and check evidence. Code or PR completion alone does not authorize updates to human-owned docs.
- Use
- Validate the docs:
- Check links and paths against the actual repo, including navigation changed by any Git-rule or human-doc migration. Distinguish proposed paths from files already created; report any batch still awaiting confirmation.
- Check demo naming examples, result/evidence navigation, and both documented environment paths. Distinguish rule validation from actually running a demo.
- Run the smallest relevant validation command if the repo defines one.
- Inspect
git diff --checkbefore committing or handing off.
- Mark completed or blocked steps in
STATE.mdwith evidence before the final response.
Reference
- Read
references/governance-docs.mdwhen writing or revising the actualAGENTS.md,docs/rules/, or human documentation content. - Read
references/rules/filetree.mdbefore creating or moving governance files. - Read demo rules before defining issue acceptance.
- Read
references/rules/env.mdbefore writing environment assumptions. - Read the matching Git reference before writing that rule: branches, commits, issues, pull requests, and release changelogs.
- Read human documentation before proposing or changing human-owned docs or their rule.
- Read
references/rules/state-rules.mdbefore changingSTATE.md.
Rules
- Do not invent services, package managers, credentials, ports, model paths, or deployment targets. Mark unknowns as decisions for the user.
- Do not overwrite existing repo instructions without preserving their required constraints.
- Keep governance docs practical: prefer rules that agents and developers can follow during day-to-day changes.
- If creating a new repo from scratch, create the governance docs before adding broad implementation structure.
Output
Final responses should include:
- Which governance docs were created or updated.
- The assumptions or user decisions encoded in those docs.
- Validation commands and results.
- Any remaining decisions the user still needs to make.