area-lessonslisted
Install: claude install-skill atretyak1985/swarmery
# Purpose
List the ACTIVE lessons whose area globs overlap the current directory, read
from the local swarmery daemon (`GET /api/lessons?status=active&area=<dir>`).
Headless phase and plan runs already receive these lessons in their prompt;
interactive sessions get them only when the operator asks, through this skill.
Nothing here writes a file, a memory entry, or a hook.
# Rules (never violate)
1. Read-only: one `curl` GET against the daemon on `localhost:7777`, nothing else
that changes state.
2. Never copy lessons into `MEMORY.md`, `CLAUDE.md`, settings, or any hook. A
lesson that belongs in `CLAUDE.md` is promoted from the daemon's Lessons page,
which commits it on a new branch for review.
3. Quote each lesson with its id (`[L-12]`), so a later reply can cite the one
it relied on.
4. When the daemon is not reachable, say so in one line and stop. Never guess
lessons.
# Procedure
1. Resolve the directory relative to the repository root:
`git rev-parse --show-prefix` (empty at the root; then use `.`).
2. Query the daemon, URL-encoding the directory:
```bash
curl -s --globoff "http://localhost:7777/api/lessons?status=active&area=<dir>"
```
3. Render `lessons[]` as one line each, `- [L-<id>] <guidance> (areas: <areaGlobs>)`,
newest first as returned. An empty list is a valid answer: "No active lessons
for `<dir>`."
# How to use
## What it does
Shows the lessons that earlier headless runs in this project learned about the
directory you