Skip to content

Commit ddf3011

Browse files
Copilotintel352
andauthored
fix(cross-llm-pr-a): fix remaining guard violations — fence regex anchor, host blocks for prose tokens
Agent-Logs-Url: https://github.com/GoCodeAlone/claude-superpowers/sessions/94a635a0-4552-463a-9fe7-25ed11f8816e Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
1 parent 253305f commit ddf3011

4 files changed

Lines changed: 20 additions & 6 deletions

File tree

skills/alignment-check/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Invoked automatically by `writing-plans` in autonomous mode. Can also be invoked
2525

2626
## Dispatching the Alignment Agent
2727

28-
Dispatch a Sonnet agent to perform the comparison:
28+
Dispatch a `balanced`-tier agent to perform the comparison:
2929

3030
```
3131
Agent tool (general-purpose, model: sonnet):

skills/executing-plans/SKILL.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ Load plan, review critically, execute tasks in batches, report for review betwee
1919
1. Read plan file
2020
2. Review critically - identify any questions or concerns about the plan
2121
3. If concerns: Raise them with your human partner before starting
22-
4. If no concerns: Create TodoWrite and proceed
22+
4. If no concerns: Create a task list and proceed
23+
<host: claude-code>
24+
Use TodoWrite to create one todo per task.
25+
</host>
2326

2427
### Step 2: Execute Batch
2528
**Default: First 3 tasks**

skills/subagent-driven-development/SKILL.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ Execute plan using Agent Teams (default) or sequential subagents (fallback), wit
1111

1212
## Execution Mode Detection
1313

14-
**Default: Agent Teams** — when TeamCreate tool is available and `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` is set.
14+
**Default: Agent Teams** — when the Agent Teams feature is available.
15+
<host: claude-code>
16+
Available when: TeamCreate tool is in your tool list and `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` is set.
17+
</host>
1518

1619
**Fallback: Sequential Subagents** — when Agent Teams is not available. Uses the legacy one-subagent-at-a-time flow.
1720

@@ -66,6 +69,7 @@ Read the plan file, extract all tasks with full text.
6669

6770
**2. Create tasks in shared task list:**
6871

72+
<host: claude-code>
6973
For each plan task, create a TaskCreate with:
7074
- `subject`: "Implement: <task name>"
7175
- `description`: Full task text from plan + design doc reference + context
@@ -74,6 +78,7 @@ For each plan task, create a TaskCreate with:
7478
Then create corresponding review tasks:
7579
- "Review spec: <task name>" (blockedBy: implement task)
7680
- "Review quality: <task name>" (blockedBy: spec review task)
81+
</host>
7782

7883
**3. Spawn teammates:**
7984

@@ -191,7 +196,9 @@ Agent tool:
191196
**4. Monitor and steer:**
192197

193198
As team-lead, your job is now orchestration:
199+
<host: claude-code>
194200
- Monitor task completions via TaskList
201+
</host>
195202
- Reassign work if an implementer is stuck (DM them)
196203
- Answer implementer questions (they'll DM you)
197204
- Track overall progress
@@ -218,7 +225,10 @@ Invoke `superpowers:finishing-a-development-branch`.
218225

219226
When Agent Teams is not available, fall back to the original sequential flow:
220227

221-
1. Read plan, extract all tasks, create TodoWrite
228+
1. Read plan, extract all tasks
229+
<host: claude-code>
230+
and create TodoWrite for task tracking
231+
</host>
222232
2. Per task:
223233
a. Dispatch implementer subagent (./implementer-prompt.md)
224234
b. Answer questions if any

tests/skill-content-grep.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,16 @@ find skills agents -type f -name '*.md' -print0 \
6262
# because skill files often quote tool names as examples in code
6363
# blocks. Opening fences may carry an info string (e.g. ```bash);
6464
# closing fences are always bare (```). The toggle fires on any line
65-
# whose first non-whitespace characters are three backticks.
65+
# that is only optional whitespace, three backticks, an optional
66+
# alphanumeric/symbol info-string, and optional trailing whitespace.
6667
# - Markers must occupy the whole line (only optional whitespace
6768
# around the tag). A marker with trailing text is NOT recognised.
6869
# - Emits "LINENO:content" for every non-skipped line.
6970
annotated="$(awk '
7071
BEGIN { skip = 0; fence = 0; ln = 0 }
7172
{
7273
ln++
73-
if (/^[[:space:]]*```/) { fence = !fence; next }
74+
if (/^[[:space:]]*```[a-zA-Z0-9_+-]*[[:space:]]*$/) { fence = !fence; next }
7475
if (fence) { next }
7576
if (/^[[:space:]]*<host:[[:space:]]*claude-code[[:space:]]*>[[:space:]]*$/) { skip = 1; next }
7677
if (/^[[:space:]]*<\/host>[[:space:]]*$/) { skip = 0; next }

0 commit comments

Comments
 (0)