Skip to Content
agore-skill
Explanation

Zero-config discovery

How a single paths model covers single-repo and monorepo layouts without a mode field.

Many tools ask you to declare what kind of repository you have: is this a single-project repo or a monorepo? agore-skill refuses the question. There is no mode field anywhere in agore.yaml.

The mechanism

Instead of a mode, discovery is defined by one list of glob patterns:

skill:
  paths:
    - "."
    - "skills/*"

A directory matching any pattern and directly containing a SKILL.md is a skill. That single rule expresses both worlds:

  • Single-repo: SKILL.md sits at the root; the pattern . matches it.
  • Monorepo: skills sit one level down; skills/* matches each directory that directly holds a SKILL.md.

The same list, evaluated the same way, covers both. A repository can even be both at once — a root skill plus skills under skills/ — which is a shape other tools cannot express cleanly.

Why the defaults are what they are

[".", "skills/*"] matches the layout that consumption tools (skills.sh discovery) understand, which is exactly one level of nesting. The lint rule LAYOUT-001 enforces the same boundary from the other side: a skill deeper than ./<dir>/<skill> cannot be discovered by consumers, so it fails lint even if agore-skill could technically scan it. Tool and ecosystem agree on the map.

Internally, discovery always produces a slice of skill targets, whether it found one or many. That is why every command that accepts targets — inspect, lint — treats "the workspace" and "a named skill" uniformly, and why release can simply refuse anything that is not exactly one target.

What the config is and is not

  • Discovery patterns and lint/release policy live in agore.yaml.
  • The file itself is optional for init, create, inspect and lint: missing it means "use the defaults above", not an error.
  • release is the one command that demands the file — because release behavior (publishers, exclusions, repository identity) has no safe default worth guessing at.

On this page