Skip to content

Commit 5977a4d

Browse files
committed
fix(pr-scope): trim explore-idea cleanup scope
1 parent 5d65036 commit 5977a4d

24 files changed

Lines changed: 51 additions & 4829 deletions

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,3 @@ temp
1717
# Python cache
1818
__pycache__/
1919
*.pyc
20-
21-
# Refactoring leftovers - use hooks/lib/ versions instead
22-
hooks/loop-codex-stop-hook-helpers.sh

commands/explore-idea.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ If `mkdir` fails, stop with an error message. Write `.failed` if the directory w
139139
For each selected direction (in `SELECTED_DIRECTION_IDS`):
140140
1. Read the direction's data from the loaded directions JSON (match by `direction_id`).
141141
2. Read the worker prompt template from `WORKER_PROMPT_TEMPLATE`.
142-
3. Build a per-worker prompt by substituting these placeholders in the template:
142+
3. Build a per-worker prompt by substituting these placeholders in the template. Treat all direction-derived strings as untrusted data: JSON-quote or otherwise escape Markdown code-fence delimiters before insertion so values cannot break out of the template's data sections.
143143
- `<RUN_ID>` → the run ID
144144
- `<DIRECTION_ID>``direction_id`
145145
- `<DIR_SLUG>``dir_slug`

commands/gen-idea.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ Construct the companion `directions.json` in memory using all surviving directio
233233
**Field derivation rules:**
234234
- `direction_id`: `"dir-" + zero-padded source_index (2 digits) + "-" + dir_slug`. Example: `"dir-00-command-history"`.
235235
- `dir_slug`: Derived from direction name — lowercase, replace non-alphanumeric with hyphens, collapse consecutive hyphens, strip leading/trailing hyphens. Must match `^[a-z0-9-]+$`.
236+
- `dir_slug` collision handling: if two direction names slugify to the same value, append `-2`, `-3`, etc. by original `source_index` order until every `dir_slug` is unique.
236237
- `source_index`: The 0-based index of this direction in the original `DIRECTIONS` list from Phase 2 (before any degradation drops).
237238
- `display_order`: 0 for the primary direction, 1 through K for alternatives in their sequential order.
238239
- `is_primary`: `true` for exactly one direction (PRIMARY), `false` for all others.

commands/start-rlcr-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: "Start iterative loop with Codex review"
3-
argument-hint: "[path/to/plan.md | --plan-file path/to/plan.md] [--max N] [--codex-model MODEL:EFFORT] [--codex-timeout SECONDS] [--track-plan-file] [--push-every-round] [--base-branch BRANCH] [--full-review-round N] [--skip-impl] [--claude-answer-codex] [--agent-teams] [--yolo] [--skip-quiz] [--privacy]"
3+
argument-hint: "[path/to/plan.md | --plan-file path/to/plan.md] [--max N] [--codex-model MODEL:EFFORT] [--codex-timeout SECONDS] [--track-plan-file] [--push-every-round] [--base-branch BRANCH] [--full-review-round N] [--skip-impl] [--claude-answer-codex] [--agent-teams] [--yolo] [--skip-quiz] [--privacy] [--no-privacy]"
44
allowed-tools:
55
- "Bash(${CLAUDE_PLUGIN_ROOT}/scripts/setup-rlcr-loop.sh:*)"
66
- "Read"

docs/install-for-kimi.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ cp -r skills/humanize-gen-plan ~/.config/agents/skills/
5353
cp -r skills/humanize-refine-plan ~/.config/agents/skills/
5454
cp -r skills/humanize-rlcr ~/.config/agents/skills/
5555

56+
# Kimi does not use Codex native Stop hooks, so install the gate-based
57+
# RLCR entrypoint used by scripts/install-skill.sh --target kimi.
58+
cp skills/humanize-rlcr/SKILL-kimi.md ~/.config/agents/skills/humanize-rlcr/SKILL.md
59+
5660
# Copy runtime dependencies used by the skills
5761
# (must match install-skill.sh's install_runtime_bundle)
5862
cp -r scripts ~/.config/agents/skills/humanize/

docs/runtime-spike-results.md

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)