fix: remove shell context to fix permission errors for non-DSP users

Shell commands in <context> sections using !` backticks trigger
permission checks for users not in dangerously-skip-permissions mode.
Replaced with @-file references where needed; process logic handles
missing files via allowed tools (Read, Glob, Grep).

Affected commands: new-project, progress, create-roadmap,
research-project, pause-work, consider-issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson
2025-12-17 08:35:14 -06:00
parent 39fdd4fa68
commit c21c5e978e
6 changed files with 3 additions and 26 deletions

View File

@@ -17,10 +17,9 @@ This prevents issue pile-up by providing a triage mechanism with codebase awaren
</objective>
<context>
Issues file: !`cat .planning/ISSUES.md 2>/dev/null || echo "NO_ISSUES_FILE"`
Project state: !`cat .planning/STATE.md 2>/dev/null | head -50`
Current phase: !`grep -E "^Phase:" .planning/STATE.md 2>/dev/null || echo "UNKNOWN"`
Roadmap phases: !`grep -E "^### Phase [0-9]" .planning/ROADMAP.md 2>/dev/null || echo "NO_ROADMAP"`
@.planning/ISSUES.md
@.planning/STATE.md
@.planning/ROADMAP.md
</context>
<process>

View File

@@ -24,11 +24,6 @@ Roadmaps define the phase breakdown - what work happens in what order. This comm
<context>
@.planning/PROJECT.md
**Check for research:**
!`ls .planning/research/*.md 2>/dev/null || echo "NO_RESEARCH"`
**Load config:**
@.planning/config.json
</context>

View File

@@ -22,9 +22,6 @@ Creates `.planning/` with PROJECT.md and config.json.
@~/.claude/get-shit-done/templates/config.json
</execution_context>
<context>
!`[ -d .planning ] && echo "PLANNING_EXISTS" || echo "NO_PLANNING"`
</context>
<process>

View File

@@ -14,7 +14,6 @@ Enables seamless resumption in fresh session with full context restoration.
<context>
@.planning/STATE.md
Current phase: !`ls -lt .planning/phases/*/*.md 2>/dev/null | head -1`
</context>
<process>

View File

@@ -14,15 +14,6 @@ Check project progress, summarize recent work and what's ahead, then intelligent
Provides situational awareness before continuing work.
</objective>
<context>
Planning structure: !`ls -la .planning/ 2>/dev/null || echo "NO_PLANNING_STRUCTURE"`
Phases: !`ls .planning/phases/ 2>/dev/null || echo "NO_PHASES"`
State exists: !`[ -f .planning/STATE.md ] && echo "EXISTS" || echo "MISSING"`
Roadmap exists: !`[ -f .planning/ROADMAP.md ] && echo "EXISTS" || echo "MISSING"`
Recent summaries: !`find .planning/phases -name "*-SUMMARY.md" -type f 2>/dev/null | sort | tail -3`
All plans: !`find .planning/phases -name "*-PLAN.md" -type f 2>/dev/null | sort`
All summaries: !`find .planning/phases -name "*-SUMMARY.md" -type f 2>/dev/null | sort`
</context>
<process>

View File

@@ -31,11 +31,7 @@ Each subagent writes directly to `.planning/research/` preserving main context.
</execution_context>
<context>
**Load project vision:**
@.planning/PROJECT.md
**Check for existing research:**
!`ls .planning/research/ 2>/dev/null || echo "NO_RESEARCH_DIR"`
</context>
<process>