Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 6 additions & 4 deletions skills/declare-inputs/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<task>/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 `[]`.

Expand Down
Loading