@ericrisco/rsc 0.1.31 → 0.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +4 -4
  2. package/manifest.json +24 -5
  3. package/package.json +1 -1
  4. package/scripts/lib/domains.js +1 -1
  5. package/skills/analyze/SKILL.md +1 -0
  6. package/skills/author-skill/SKILL.md +20 -0
  7. package/skills/author-skill/references/description-recipe.md +2 -0
  8. package/skills/debug/SKILL.md +1 -1
  9. package/skills/implement/SKILL.md +72 -2
  10. package/skills/implement/references/per-task-review.md +46 -0
  11. package/skills/implement/scripts/review-package +59 -0
  12. package/skills/implement/scripts/sdd-workspace +47 -0
  13. package/skills/implement/scripts/task-brief +77 -0
  14. package/skills/parallel/SKILL.md +29 -0
  15. package/skills/plan/references/plan-template.md +18 -0
  16. package/skills/roast-me/SKILL.md +124 -0
  17. package/skills/roast-me/evals/README.md +76 -0
  18. package/skills/roast-me/evals/cases.yaml +75 -0
  19. package/skills/roast-me/prompts/analyze.md +90 -0
  20. package/skills/roast-me/prompts/compute.md +100 -0
  21. package/skills/roast-me/prompts/roast.md +181 -0
  22. package/skills/roast-me/tools/adapters/__init__.py +1 -0
  23. package/skills/roast-me/tools/adapters/__pycache__/__init__.cpython-312.pyc +0 -0
  24. package/skills/roast-me/tools/adapters/__pycache__/base.cpython-312.pyc +0 -0
  25. package/skills/roast-me/tools/adapters/__pycache__/claude.cpython-312.pyc +0 -0
  26. package/skills/roast-me/tools/adapters/__pycache__/codex.cpython-312.pyc +0 -0
  27. package/skills/roast-me/tools/adapters/__pycache__/gemini.cpython-312.pyc +0 -0
  28. package/skills/roast-me/tools/adapters/__pycache__/registry.cpython-312.pyc +0 -0
  29. package/skills/roast-me/tools/adapters/base.py +53 -0
  30. package/skills/roast-me/tools/adapters/claude.py +140 -0
  31. package/skills/roast-me/tools/adapters/codex.py +113 -0
  32. package/skills/roast-me/tools/adapters/gemini.py +121 -0
  33. package/skills/roast-me/tools/adapters/registry.py +68 -0
  34. package/skills/roast-me/tools/extract_prompts.py +520 -0
  35. package/skills/sdd/SKILL.md +23 -0
  36. package/skills/ship/SKILL.md +9 -1
  37. package/skills/specify/SKILL.md +26 -1
  38. package/skills/suggest/SKILL.md +1 -1
  39. package/skills/tasks/SKILL.md +25 -0
  40. package/skills/worktrees/SKILL.md +25 -0
@@ -115,6 +115,31 @@ Either way, the contract is identical: **after this step, the cwd is an isolated
115
115
  base, and the default-branch checkout is exactly as it was.** Confirm that out loud (at the dial's
116
116
  level) before handing to `implement`.
117
117
 
118
+ ### Provenance-aware cleanup (don't remove a workspace you didn't create)
119
+
120
+ Removing the wrong worktree leaves phantom state and can destroy someone else's in-progress work.
121
+ Before any `git worktree remove`, clear these guards:
122
+
123
+ ```bash
124
+ # 1) Are we even inside a linked worktree? (GIT_DIR != GIT_COMMON_DIR ⇒ yes)
125
+ [ "$(git rev-parse --git-dir)" != "$(git rev-parse --git-common-dir)" ] && echo "linked worktree"
126
+ # 2) Submodule false-positive guard — never treat a submodule as a worktree to remove
127
+ git rev-parse --show-superproject-working-tree # non-empty ⇒ this is a submodule; STOP
128
+ # 3) cd to the MAIN working tree before removing (you cannot remove the worktree you stand in)
129
+ cd "$(git rev-parse --git-common-dir)/.."
130
+ git worktree remove <path>
131
+ git worktree prune # self-heal stale administrative entries
132
+ ```
133
+
134
+ - **Only remove worktrees rsc/you created** — those under `.worktrees/` or `worktrees/`, or the
135
+ `../<repo>-<slug>` this skill made. A worktree the user or a native tool owns is **not yours to
136
+ delete**; leave it and say so.
137
+ - **Native tool owns its own lifecycle.** If you isolated via a native `EnterWorktree`-style tool,
138
+ exit through that tool's `remove`/`keep` — do **not** hand-run `git worktree remove` on a workspace
139
+ the native tool created; let it clean up so its tracking stays consistent.
140
+ - **`git worktree prune`** after a remove clears stale metadata when a directory vanished out from
141
+ under git — cheap self-healing, safe to run.
142
+
118
143
  ## Native vs. git fallback — which you're using
119
144
 
120
145
  | You have… | Create | Leave intact | Discard |