diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 3c90e24..026f552 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "analysis-workflow", - "version": "0.9.1", + "version": "0.9.2", "description": "Conventions for analysis repos where humans and coding agents work side by side: versioned task directories for both, one session, worktree and PR per agent task; worktree-safe output paths; additive write-back to AnnData and SpatialData stores, which record which task wrote what. Ships a skill, guard hooks and the analysis_workflow Python package.", "author": { "name": "quadbio" diff --git a/skills/declare-inputs/SKILL.md b/skills/declare-inputs/SKILL.md index 4a635eb..c425789 100644 --- a/skills/declare-inputs/SKILL.md +++ b/skills/declare-inputs/SKILL.md @@ -20,15 +20,17 @@ Given several, hand each to its own subagent, with this section as its brief. 1. Read every script and notebook of the task, `scripts/_common.py` included. Follow calls into the repo's own package and into sibling packages far enough to see which keys a called function uses, its defaults included. -2. List what the code consumes: - - keys of a shared store it **uses**, not merely loads: a notebook that reads a whole object and plots two - columns used those two. `*` stands for the whole object, as when the task copies it; +2. List what the code **uses**, not merely loads: a key or a file read into a variable that nothing refers to is + left out. + - keys of a shared store: a notebook that reads a whole object and plots two columns used those two. A task + that copies a store declares `*`, the whole object, also when the copy drops keys; - files of other tasks: in their `outputs/` or `results/`, and code imported from them; - data files: under `data/`, or outside the repo by absolute path (`~/...` for a per-user cache, such as a downloaded model). Leave out what the task writes itself, and keys it wrote and then reads back. -3. Resolve a path the code builds at run time (a date, a section name, a glob) against what is on disk. +3. Resolve a path the code builds at run time (a date, a section name, a glob) against what is on disk. Files + read from one directory by a loop or a glob are listed once, as that directory. 4. Write the list, and nothing else, to `/inputs.yaml`. Paths inside the repo are relative to its root; keys are named as the store's records name them. A task that consumes nothing gets `[]`.