How to operate a monorepo
Manage many skills in one repository — paths config, root skills, and changed-only workflows.
You run one repository containing several Agent Skills and want discovery, targeting and changed-only checks to behave predictably.
How discovery works
Without any configuration, agore-skill scans two locations:
skill:
paths:
- "."
- "skills/*"A directory becomes a skill when it directly contains a SKILL.md file.
So the default layout recognizes:
- SKILL.mdthe root itself is a skill (RelPath '.')
- skills
- alphaskills/alpha
- SKILL.md
- betaskills/beta
- SKILL.md
Two consequences to internalize:
- The patterns are matched as directories, and only a direct
SKILL.mdchild counts.skills/alpha/docs/notes.mddoes not create a skill; aSKILL.mdtwo levels below (team/skills/alpha/SKILL.md) is not found under the default paths. - Unmatched glob patterns are not errors — an empty
skills/directory is fine.
When the root itself is a skill, it always sorts first, before the
skills/* entries.
Point discovery at a custom layout
Add or change patterns in agore.yaml. Patterns are relative globs against
the repository root:
skill:
paths:
- "."
- "skills/*"
- "team/*/SKILL.md/.."In practice keep it simple: prefer mirroring the layout with globs like
agents/* if your skills live under agents/.
Target skills precisely
Every accepting command (inspect, lint) takes explicit targets:
agore-skill inspect alpha # by name
agore-skill inspect skills/alpha # by path
agore-skill inspect skills/alpha/SKILL.md # by SKILL.md path
agore-skill inspect alpha beta # several at onceA name or path is resolved in two passes: first against the discovered skills
(by name or relative path), then — as a fallback — against the filesystem,
where any directory containing a SKILL.md is accepted even when it is
outside skill.paths. Only when both passes fail do you get the strict
error:
Skill target "nope" not found (use a skill name or a directory containing SKILL.md).
Changed-only workflows
In a multi-skill repo, --changed is the workhorse for PR checks:
agore-skill lint --strict --changed
agore-skill inspect --changedThe changed set is the merge of git diff --name-only <workspace.base>...HEAD
and git status --porcelain — staged, unstaged and untracked working-tree
files are included (renames at their destination), so uncommitted local edits
are picked up immediately. Note the triple-dot form, i.e. changes introduced
by your branch, not everything differing from a possibly-stale base. A skill
is kept when any changed file falls under its directory; when the root itself
is a skill, any change keeps it. workspace.base defaults to main — set it
if your trunk differs. On a repository without commits or without the base
branch, the command fails with a message like
cannot compute changed skills from main...HEAD: ....
The layout rule to remember
LAYOUT-001 enforces what skills.sh can discover: a skill directory may be
the repo root (.) or exactly one level below a parent
(<anything>/<skill-name>). Nesting deeper than that —
team/skills/alpha/ — fails lint:
skill directory "team/skills/alpha" is nested too deeply for skills.sh
discovery (use root or skills/<name>)
Keep the two-level convention and both agore-skill and consumption tools
see the same skills.
Related
- Discovery details and the zero-config defaults: Zero-config single-repo vs monorepo discovery
- The
pathsfield in full: agore.yaml reference