|
| 1 | +# skills |
| 2 | + |
| 3 | +Project-local skills for AI coding agents (Claude Code, plus other tools that follow the [Agent Skills](https://agentskills.io) open standard, e.g. Codex). Each `<skill-name>/SKILL.md` is invokable as `/<skill-name>` and Claude can also load it automatically when its `description` matches the user's intent (unless `disable-model-invocation: true` is set). |
| 4 | + |
| 5 | +`.agents/` is the canonical directory; `.claude → .agents` is a symlink at the repo root, so Claude Code (which reads `.claude/skills/`) and tooling that reads `.agents/skills/` see the same files. |
| 6 | + |
| 7 | +## Script wrappers |
| 8 | + |
| 9 | +Wrappers around `python -m scripts.pipeline.<module>`. Side-effecting ones set `disable-model-invocation: true` so Claude won't auto-trigger destructive work; read-only ones are model-invocable. |
| 10 | + |
| 11 | +| Skill | Wraps | Purpose | |
| 12 | +|---|---|---| |
| 13 | +| `/raincloud-build` | `scripts.pipeline.build` | Full pipeline (fetch → … → convert) for one or more slugs. | |
| 14 | +| `/raincloud-fetch` | `scripts.pipeline.fetch` | Download raw bytes only. | |
| 15 | +| `/raincloud-extract` | `scripts.pipeline.extract` | Unpack archives into `_workdir/`. | |
| 16 | +| `/raincloud-convert` | `scripts.pipeline.convert` | Stage 7 — emit sibling `.vortex` per spec opt-in. | |
| 17 | +| `/raincloud-hydrate` | `scripts.pipeline.hydrate` | Stage 8 (optional, opt-in) — dereference a slug's URL column into a sibling parquet under `parquet-hydrated/`. Side-effecting (outbound HTTP); safety-filter-gated; `disable-model-invocation: true`. | |
| 18 | +| `/raincloud-docs` | `scripts.pipeline.docs` | Regenerate derived docs. *(model-invocable — regen is mostly idempotent.)* | |
| 19 | +| `/raincloud-tighten-variant` | `scripts.pipeline.tighten_variant` | In-place JSON → VARIANT promotion. | |
| 20 | +| `/raincloud-status` | `scripts.pipeline.status` | Per-slug filesystem state (raw / workdir / parquet / vortex / variant-pending). *(read-only, model-invocable.)* | |
| 21 | +| `/raincloud-validate-manifest` | `scripts.pipeline.validate_manifest` | Static checks for `sources.json` — JSON Schema + handler-registry / slug-uniqueness / fetch-auth cross-checks. *(read-only, model-invocable.)* | |
| 22 | +| `/raincloud-list-datasets` | `scripts.pipeline.list_datasets` | Filter/list slugs by family / handler / license / fetch-type / reader / vortex / regex. *(read-only, model-invocable.)* | |
| 23 | + |
| 24 | +## Procedural playbooks (model-invocable) |
| 25 | + |
| 26 | +These guide multi-step procedures from [`SKILLS.md`](../context/SKILLS.md). Default frontmatter — Claude can pull them up automatically when the user's request matches. |
| 27 | + |
| 28 | +| Skill | When to use | |
| 29 | +|---|---| |
| 30 | +| `/raincloud-add-dataset` | Adding a new dataset to `sources.json` and producing its first build. | |
| 31 | +| `/raincloud-add-handler` | Writing a new transform handler under `scripts/pipeline/handlers/`. | |
| 32 | +| `/raincloud-add-kaggle-tos` | Adding a Kaggle dataset gated behind a one-time ToS click-through. | |
| 33 | +| `/raincloud-promote-variant` | Picks the right path (in-place vs new-build) for JSON → VARIANT. | |
| 34 | +| `/raincloud-debug-build` | Diagnostic checklist for a failing build — isolate which stage broke. | |
| 35 | +| `/raincloud-large-build` | Run a memory- or runtime-heavy build safely (caps, nohup, logging). *(side-effecting — `disable-model-invocation: true`.)* | |
| 36 | +| `/raincloud-remove-dataset` | Remove a dataset from the manifest and clean up its outputs. *(destructive — `disable-model-invocation: true`.)* | |
| 37 | + |
| 38 | +## Supporting context |
| 39 | + |
| 40 | +`../context/` holds symlinks back to the repo-root canonical docs: |
| 41 | + |
| 42 | +- [`AGENTS.md`](../context/AGENTS.md) — invariants and architecture for AI agents. |
| 43 | +- [`SKILLS.md`](../context/SKILLS.md) — playbooks (the source for the procedural skills above). |
| 44 | +- [`README.md`](../context/README.md) — user-facing project overview. |
| 45 | +- [`sources.schema.md`](../context/sources.schema.md) — `sources.json` schema reference. |
| 46 | + |
| 47 | +Each `SKILL.md` references these via relative paths (`../../context/X.md`) so the agent pulls authoritative guidance without copying. |
| 48 | + |
| 49 | +## Adding or editing a skill |
| 50 | + |
| 51 | +```text |
| 52 | +my-skill/ |
| 53 | +├── SKILL.md # required — frontmatter + instructions |
| 54 | +├── reference.md # optional — detailed reference loaded only when needed |
| 55 | +└── scripts/ # optional — bundled scripts the skill can execute |
| 56 | + └── helper.py |
| 57 | +``` |
| 58 | + |
| 59 | +Reference: <https://code.claude.com/docs/en/skills>. Frontmatter fields used here: |
| 60 | + |
| 61 | +- `name` — slug; matches the directory name. |
| 62 | +- `description` — front-load the key use case (truncated at 1,536 chars in the listing). |
| 63 | +- `argument-hint` — autocomplete hint for `/<skill> <args>`. |
| 64 | +- `disable-model-invocation` — `true` for side-effecting skills so Claude won't auto-trigger them. |
| 65 | +- `allowed-tools` — pre-approve specific tool patterns when the skill is active (e.g. `Bash(python -m scripts.pipeline.build *)`). |
0 commit comments