You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This phase is a HARD GATE. The user must approve baseline and parallel readiness before Phase 2.**
253
253
254
+
**Bundled scripts.** Phases 1 and 3 call helper scripts that ship in this skill's `scripts/` directory (`measure.sh`, `parallel-probe.sh`, `experiment-worktree.sh`). The Bash tool's working directory is the user's project, not the skill directory, so a bare `scripts/<name>` path will not resolve — invoke each by the skill's own absolute path. Every runnable block below already sets `SKILL_DIR` inline (shell state does not persist between Bash tool calls, so each block must carry it); just replace the `<absolute path …>` placeholder with the directory you loaded this `ce-optimize` SKILL.md from before running. The shape:
255
+
256
+
```bash
257
+
SKILL_DIR="<absolute path of the directory containing this SKILL.md>"
258
+
bash "$SKILL_DIR/scripts/<name>"
259
+
```
260
+
254
261
### 1.1 Clean-Tree Gate
255
262
256
263
Verify no uncommitted changes to files within `scope.mutable` or `scope.immutable`:
@@ -269,7 +276,8 @@ Filter the output against the scope paths. If any in-scope files have uncommitte
269
276
**If user provides a measurement harness** (the `measurement.command` already exists):
270
277
1. Run it once via the measurement script:
271
278
```bash
272
-
bash scripts/measure.sh "<measurement.command>" <timeout_seconds> "<measurement.working_directory or .>"
279
+
SKILL_DIR="<absolute path of the directory containing this SKILL.md>"
280
+
bash "$SKILL_DIR/scripts/measure.sh" "<measurement.command>" <timeout_seconds> "<measurement.working_directory or .>"
273
281
```
274
282
2. Validate the JSON output:
275
283
- Contains keys for all degenerate gate metric names
@@ -312,7 +320,8 @@ If primary type is `judge`, also run the judge evaluation on baseline output to
Read the JSON output. Present any blockers to the user with suggested mitigations. Treat the probe as intentionally narrow: it should inspect the measurement command, the measurement working directory, and explicitly declared shared files, not the entire repository.
@@ -321,7 +330,8 @@ Read the JSON output. Present any blockers to the user with suggested mitigation
321
330
322
331
Count existing worktrees:
323
332
```bash
324
-
bash scripts/experiment-worktree.sh count
333
+
SKILL_DIR="<absolute path of the directory containing this SKILL.md>"
If count + `execution.max_concurrent` would exceed 12:
@@ -437,10 +447,13 @@ If the backlog is non-empty but no runnable hypotheses remain because everything
437
447
438
448
For each hypothesis in the batch, dispatch according to `execution.mode`. In `serial` mode, run exactly one experiment to completion before selecting the next hypothesis. In `parallel` mode, dispatch the full batch concurrently.
439
449
450
+
The Phase 3 blocks below each set `SKILL_DIR` inline as well (the loaded `ce-optimize` skill directory; see the Bundled scripts note in Phase 1) — shell state does not persist from Phase 1, so each block carries its own assignment.
2. Apply port parameterization if configured (set env vars for the measurement script)
446
459
3. Fill the experiment prompt template (`references/experiment-prompt-template.md`) with:
@@ -474,7 +487,8 @@ For each completed experiment, **immediately**:
474
487
475
488
1. **Run measurement** in the experiment's worktree:
476
489
```bash
477
-
bash scripts/measure.sh "<measurement.command>" <timeout_seconds> "<worktree_path>/<measurement.working_directory or .>" <env_vars...>
490
+
SKILL_DIR="<absolute path of the directory containing this SKILL.md>"
491
+
bash "$SKILL_DIR/scripts/measure.sh" "<measurement.command>" <timeout_seconds> "<worktree_path>/<measurement.working_directory or .>" <env_vars...>
478
492
```
479
493
- If stability mode is `repeat`, run the measurement harness `repeat_count` times in that working directory and aggregate the results exactly as in Phase 1 before evaluating gates or ranking the experiment.
480
494
- Use the aggregated metrics as the experiment's score; if variance exceeds `noise_threshold`, record that in learnings so the operator knows the result is noisy.
Copy file name to clipboardExpand all lines: skills/ce-polish/SKILL.md
+27-5Lines changed: 27 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,25 @@ Start the dev server, open the feature in a browser, and iterate. You use the fe
17
17
18
18
## Phase 1: Start the dev server
19
19
20
+
The scripts below ship in this skill's `scripts/` directory. The Bash tool's working directory is the user's project, not the skill directory, so a bare `scripts/<name>` path will not resolve — invoke each by the skill's own absolute path. Every runnable block below sets `SKILL_DIR` inline (shell state does not persist between Bash tool calls, so each command must carry it); replace the `<absolute path …>` placeholder with the directory you loaded this `ce-polish` SKILL.md from before running.
21
+
20
22
### 1.1 Check for `.claude/launch.json`
21
23
22
-
Run `bash scripts/read-launch-json.sh`. If it finds a configuration, use it — the user already told us how to start the project.
24
+
```bash
25
+
SKILL_DIR="<absolute path of the directory containing this SKILL.md>"
26
+
bash "$SKILL_DIR/scripts/read-launch-json.sh"
27
+
```
28
+
29
+
If it finds a configuration, use it — the user already told us how to start the project.
23
30
24
31
### 1.2 Auto-detect (when no launch.json)
25
32
26
-
Run `bash scripts/detect-project-type.sh` to identify the framework.
33
+
Identify the framework:
34
+
35
+
```bash
36
+
SKILL_DIR="<absolute path of the directory containing this SKILL.md>"
37
+
bash "$SKILL_DIR/scripts/detect-project-type.sh"
38
+
```
27
39
28
40
Route by type to the matching recipe reference for start command and port defaults:
29
41
@@ -39,9 +51,19 @@ Route by type to the matching recipe reference for start command and port defaul
39
51
|`procfile`|`references/dev-server-procfile.md`|
40
52
|`unknown`| Ask the user how to start the project |
41
53
42
-
For framework types that need a package manager, run `bash scripts/resolve-package-manager.sh` and substitute the result into the start command.
54
+
For framework types that need a package manager, run the resolver and substitute the result into the start command:
43
55
44
-
Resolve the port with `bash scripts/resolve-port.sh --type <type>`.
56
+
```bash
57
+
SKILL_DIR="<absolute path of the directory containing this SKILL.md>"
Copy file name to clipboardExpand all lines: skills/ce-riffrec-feedback-analysis/SKILL.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,10 +25,11 @@ When the input is ambiguous (e.g., a zip arrived without context), inspect the r
25
25
26
26
## Analyzer entrypoint
27
27
28
-
All non-setup paths share the same analyzer:
28
+
All non-setup paths share the same analyzer, which ships in this skill's `scripts/` directory. The Bash tool's working directory is the user's project, not the skill directory, so a bare `scripts/<name>` path will not resolve. Invoke it by the skill's own absolute path: set `SKILL_DIR` to the directory you loaded this `ce-riffrec-feedback-analysis` SKILL.md from, in the same command (shell state does not persist between Bash calls):
Accepted inputs: a Riffrec `.zip`, an `.mp4` / `.mov` / `.webm` video, an `.m4a` / `.mp3` / `.wav` audio file, or a meeting-notes `.md`. Use `--output-dir <dir>` to control where artifacts land. In repos with `docs/brainstorms/`, the default is `docs/brainstorms/riffrec-feedback/`. The quick path overrides the output dir to a temp location so nothing pollutes the repo.
Copy file name to clipboardExpand all lines: skills/ce-riffrec-feedback-analysis/references/extensive-analysis.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,11 @@ Use this path when the input is a longer recording (over ~60 seconds), contains
4
4
5
5
## Workflow
6
6
7
-
1. Run the analyzer:
7
+
1. Run the analyzer (`SKILL_DIR` is the directory containing the `ce-riffrec-feedback-analysis` SKILL.md; set it in the same command — shell state does not persist between Bash calls):
Use `--output-dir <dir>` when the artifact should live somewhere specific. In a repo with `docs/brainstorms/`, the default output goes under `docs/brainstorms/riffrec-feedback/`.
Copy file name to clipboardExpand all lines: skills/ce-riffrec-feedback-analysis/references/quick-bug-report.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,11 @@ Use this path when the input is a short recording (under ~60 seconds), the user
4
4
5
5
## Workflow
6
6
7
-
1. Run the analyzer to a temp directory so nothing pollutes the repo:
7
+
1. Run the analyzer to a temp directory so nothing pollutes the repo (`SKILL_DIR` is the directory containing the `ce-riffrec-feedback-analysis` SKILL.md; set it in the same command — shell state does not persist between Bash calls):
0 commit comments