Skill Repo Structure
Load: npx cyberplace@<version> governance show skill-repo-structure
Rules for organizing a repository that ships one or more Agent Skills — directories, manifests, contributor internals, and CI.
Repo archetypes
Section titled “Repo archetypes”Collection
Section titled “Collection”Skills only — publish via npx skills add owner/repo.
LICENSEREADME.mdskills/ <skill-name>/ SKILL.md README.mdMaintained library
Section titled “Maintained library”Collection plus validation and install hygiene. Add:
AGENTS.md(andCLAUDE.mdsymlink for Claude Code)- CI that runs
npx cyberplace@<version> audit validateon PRs touchingskills/ - Documented install commands in README
- Optional committed
skills-lock.json
Tooling library
Section titled “Tooling library”Maintained library plus npm CLI, governances, or hooks shipped from the same repo. Add as needed:
governances/ # version-pinned standardssrc/ # CLI sourcepackage.json # publishable bin.changeset/ # if using ChangesetsRequires a single documented verify command in AGENTS.md (typecheck + lint + test + audit).
Plugin bundle
Section titled “Plugin bundle”Skills grouped under named bundles for Claude/plugin marketplaces.
plugins/ <bundle-name>/ skills/<skill-name>/SKILL.md .claude-plugin/Required for any public skill repo
Section titled “Required for any public skill repo”LICENSEat repo root- Public skills under
skills/<name>/SKILL.md - Each skill complies with agentskills.io spec (
namematches directory; valid frontmatter) - Each public skill has
README.mdalongsideSKILL.md(when to use, what it does, install command) - No loose
SKILL.mdat repo root or outside a named skill directory - Root
README.mdwithnpx skills add …install instructions
Contributor conventions
Section titled “Contributor conventions”| Placement | Location | Notes |
|---|---|---|
| User | ~/.agents/skills/<name>/ | Not in the skill repo |
| Project private | .agents/skills/<name>/ | metadata: internal: true; not shipped in npx skills add |
| Project public | skills/<name>/ | Installed by consumers |
- Upstream patches from a local install map to
skills/<name>/…in the source repo — never.agents/skills/upstream
Discipline sections in AGENTS.md
Section titled “Discipline sections in AGENTS.md”## Commit Discipline and similar sections are agent-first:
- Dense normative rules in the body — no links to other files
### Referencesat section bottom — commit-helper skill name andgovernance showone-liners only- Do not paste full governance bodies into
AGENTS.md
Use init-commit-discipline to inject commit discipline.
Optional manifests
Section titled “Optional manifests”| File | When |
|---|---|
skills-lock.json | Reproducible skill installs |
skills.sh.json | Listing on skills.sh |
.claude-plugin/marketplace.json | Claude plugin UX |
governances/ | Repo ships version-pinned standards |
Anti-patterns
Section titled “Anti-patterns”- Duplicating a skill in both
skills/and.agents/skills/without a documented reason - Bloating
AGENTS.mdwith full governance bodies — usegovernance showpointers instead - Rationale prose in governances, discipline sections, or public skills
## Why,## Rationale,## Backgroundsections in agent-loaded artifacts- Committing
SKILL.local.mdor secrets into public skill trees - Running no CI on skill-only repos that accept external PRs