From 832802f1dd78f10146fc7aab1b046f64e98d9feb Mon Sep 17 00:00:00 2001 From: Marius1311 Date: Wed, 18 Nov 2026 13:06:47 +0100 Subject: [PATCH] declare-inputs: unused files are left out, a copy declares `*`, a looped directory is listed once From an end-to-end run of the skill on a twelve-task test repo. Version 0.9.2. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01WtTJWVCHDBr1Lcg8K1Gaft --- .claude-plugin/plugin.json | 2 +- skills/declare-inputs/SKILL.md | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) 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 `[]`.