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
npx crune --dry-run is intentionally local-only: it lists candidate topics with their reusability score and never calls claude -p (verified in scripts/cli.ts:176-188 — execution exits before the synthesis branch).
That makes --dry-run cheap and offline, which is great for a first-pass look.
But users who are deciding whether to actually emit Skills often want to see what the LLM-synthesized output would look like before committing to writing files. Today the only way is to run synthesis for real and let it write to --output-dir.
We need a richer preview path that mirrors the real run (synthesis included) but emits to stdout instead of touching the filesystem.
What
A new flag (proposed: --preview) that:
runs the same pipeline as a normal invocation: build graph → pick top candidates → synthesize via claude -p
skips the final mkdir / writeFileSync step (scripts/cli.ts:230-236)
prints each synthesized Skill to stdout with a clear separator so users can pipe / less / diff
Honors --model, --count, --sessions-dir exactly like a real run.
Combining --preview with --skip-synthesis falls back to today's heuristic-only output (i.e. equivalent to --dry-run).
Keep --dry-run as-is (local, no LLM) for backward compatibility.
How
Refactor the synthesis loop in scripts/cli.ts:193-237 so the synthesis step and the file-writing step are decoupled. They currently live in the same for loop.
Thread a writeToDisk: boolean (or equivalent) through the per-candidate handler. --preview sets it to false.
Confirm the documented behavior in README and --help output.
Why
npx crune --dry-runis intentionally local-only: it lists candidate topics with their reusability score and never callsclaude -p(verified inscripts/cli.ts:176-188— execution exits before the synthesis branch).--dry-runcheap and offline, which is great for a first-pass look.--output-dir.What
--preview) that:claude -pmkdir/writeFileSyncstep (scripts/cli.ts:230-236)less/ diff--model,--count,--sessions-direxactly like a real run.--previewwith--skip-synthesisfalls back to today's heuristic-only output (i.e. equivalent to--dry-run).--dry-runas-is (local, no LLM) for backward compatibility.How
scripts/cli.ts:193-237so the synthesis step and the file-writing step are decoupled. They currently live in the sameforloop.writeToDisk: boolean(or equivalent) through the per-candidate handler.--previewsets it tofalse.--helpoutput.Notes
--previewshould also surface the evaluator's score / hints alongside each synthesized Skill so users can judge quality before installing.