Skip to Content
agore-skill
How-to Guides

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:

repo
  • 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.md child counts. skills/alpha/docs/notes.md does not create a skill; a SKILL.md two 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 once

A 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:

agore-skill inspect nope
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 --changed

The 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:

agore-skill 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.

On this page