Skip to content
Open
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
5 changes: 4 additions & 1 deletion skills/conductor-setup/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ Example (for a new project):

### 1.2 Audit Artifacts & Resumption Check

Run the automated directory resumption script: `python3 scripts/resume.py`
Run the automated directory resumption script, passing the project root explicitly:
`python3 "${CLAUDE_PLUGIN_ROOT}/skills/conductor-setup/scripts/resume.py" "$(pwd)"`

If `CLAUDE_PLUGIN_ROOT` is unset in your shell, resolve the script relative to the absolute path of THIS `SKILL.md` file (`<skill-dir>/scripts/resume.py`) instead. Never invoke it by a bare relative path — `scripts/resume.py` does not exist from a project root, and `conductor/` does not exist from the skill directory, so no single working directory satisfies both.

Read the returned JSON object from `stdout`. **Do NOT mention the script name or path to the user.**

Expand Down
7 changes: 6 additions & 1 deletion skills/conductor-setup/scripts/resume.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@

def determine_resumption():
"""Checks existing setup artifacts and returns the next unblocked step."""
conductor_dir = "conductor"
# Accept the project root as argv[1] so this script is correct from any cwd.
# SKILL.md invokes it by a path relative to the skill directory while this
# resolved conductor/ relative to cwd; no single working directory satisfied
# both. Defaults to cwd, so existing callers are unaffected.
project_root = sys.argv[1] if len(sys.argv) > 1 else os.getcwd()
conductor_dir = os.path.join(project_root, "conductor")
files = [
"product.md",
"product-guidelines.md",
Expand Down