diff options
| author | Jesse Vincent <jesse@primeradiant.com> | 2026-06-17 13:18:28 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@ritter.dev> | 2026-06-18 15:44:22 -0700 |
| commit | 207a12b20345a391f05ee23e3e87bf7d717c8bbe (patch) | |
| tree | 9c8ac80bf1cce4be5b2c8950397af1fe8e9349b6 /skills/subagent-driven-development/scripts | |
| parent | b62616fc12f6a007c6fd5118146821d748da0d33 (diff) | |
feat(sdd): add sdd-workspace helper for a self-ignoring artifact dir
Diffstat (limited to 'skills/subagent-driven-development/scripts')
| -rwxr-xr-x | skills/subagent-driven-development/scripts/sdd-workspace | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/skills/subagent-driven-development/scripts/sdd-workspace b/skills/subagent-driven-development/scripts/sdd-workspace new file mode 100755 index 0000000..ea9bb08 --- /dev/null +++ b/skills/subagent-driven-development/scripts/sdd-workspace @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# Resolve and ensure the working-tree directory SDD uses for its short-lived +# artifacts: task briefs, implementer reports, review packages, and the +# progress ledger. Print the directory's absolute path. +# +# The workspace lives in the working tree (not under .git/) because Claude Code +# treats .git/ as a protected path and denies agent writes there — which blocks +# an implementer subagent from writing its report file. A self-ignoring +# .gitignore keeps the workspace out of `git status` and out of accidental +# commits without modifying any tracked file. +# +# Single source of truth for the workspace location, so task-brief and +# review-package cannot drift to different directories. +# +# Usage: sdd-workspace +set -euo pipefail + +root=$(git rev-parse --show-toplevel) +dir="$root/.superpowers/sdd" +mkdir -p "$dir" +printf '*\n' > "$dir/.gitignore" +cd "$dir" && pwd |
