feat(coding-agent): discover skills in .agents paths by default

This commit is contained in:
Mario Zechner 2026-02-20 00:15:53 +01:00
parent 7207c16c84
commit 39cbf47e42
6 changed files with 115 additions and 7 deletions

View file

@ -258,14 +258,18 @@ const { session } = await createAgentSession({
`cwd` is used by `DefaultResourceLoader` for:
- Project extensions (`.pi/extensions/`)
- Project skills (`.pi/skills/`)
- Project skills:
- `.pi/skills/`
- `.agents/skills/` in `cwd` and ancestor directories (up to git repo root, or filesystem root when not in a repo)
- Project prompts (`.pi/prompts/`)
- Context files (`AGENTS.md` walking up from cwd)
- Session directory naming
`agentDir` is used by `DefaultResourceLoader` for:
- Global extensions (`extensions/`)
- Global skills (`skills/`)
- Global skills:
- `skills/` under `agentDir` (for example `~/.pi/agent/skills/`)
- `~/.agents/skills/`
- Global prompts (`prompts/`)
- Global context file (`AGENTS.md`)
- Settings (`settings.json`)

View file

@ -23,8 +23,12 @@ Pi implements the [Agent Skills standard](https://agentskills.io/specification),
Pi loads skills from:
- Global: `~/.pi/agent/skills/`
- Project: `.pi/skills/`
- Global:
- `~/.pi/agent/skills/`
- `~/.agents/skills/`
- Project:
- `.pi/skills/`
- `.agents/skills/` in `cwd` and ancestor directories (up to git repo root, or filesystem root when not in a repo)
- Packages: `skills/` directories or `pi.skills` entries in `package.json`
- Settings: `skills` array with files or directories
- CLI: `--skill <path>` (repeatable, additive even with `--no-skills`)