From humanize
Transforms a loose idea into a repo-grounded draft via directed-diversity exploration. Accepts idea text or file path, optional --n (directions) and --output path.
How this command is triggered — by the user, by Claude, or both
Slash command
/humanize:gen-idea <idea-text-or-path> [--n <int>] [--output <path>]This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Generate Idea Draft from Loose Input Read and execute below with ultrathink. ## Hard Constraint: Draft-Only Output This command MUST NOT implement features, modify source code, or create commits while producing the draft. Permitted writes are limited to the single output draft file produced in Phase 4; prerequisite directory creation for the default `.humanize/ideas/` path by the validation script is permitted as part of that write. All exploration subagents run read-only. This command transforms a loose idea into a repo-grounded draft suitable as input to `/humanize:gen-plan`. It app...
Read and execute below with ultrathink.
This command MUST NOT implement features, modify source code, or create commits while producing the draft. Permitted writes are limited to the single output draft file produced in Phase 4; prerequisite directory creation for the default .humanize/ideas/ path by the validation script is permitted as part of that write. All exploration subagents run read-only.
This command transforms a loose idea into a repo-grounded draft suitable as input to /humanize:gen-plan. It applies directed-diversity exploration: a lead picks N orthogonal directions, N parallel Explore subagents develop each, the lead synthesizes a draft with one primary direction plus N-1 alternatives. Each direction carries objective evidence from the repo.
Sequential Execution Constraint: All phases MUST execute strictly in order. Each phase fully completes before the next.
Extract from $ARGUMENTS:
.md file (required).--n <int>: number of directions. Default 6.--output <path>: target draft path. Default resolved by the validation script.Do not interpret or rewrite the idea text here. Pass $ARGUMENTS through to Phase 1 unchanged.
Run:
"${CLAUDE_PLUGIN_ROOT}/scripts/validate-gen-idea-io.sh" $ARGUMENTS
Handle exit codes:
0: Parse stdout to extract INPUT_MODE, OUTPUT_FILE, SLUG, TEMPLATE_FILE, N (each appears on its own KEY: value line). When INPUT_MODE is file, stdout additionally contains an IDEA_BODY_FILE: <path> line; extract that too. Continue to Phase 2. (SLUG is informational — the script has already incorporated it into OUTPUT_FILE, so later phases do not need to use SLUG directly.)1: Report "Missing or empty idea input" and stop.2: Report "Input looks like a file path but is missing, not readable, or not .md" and stop.3: Report "Output directory does not exist — please create it or choose a different path" and stop.4: Report "Output file already exists — choose a different path" and stop.5: Report "No write permission to output directory" and stop.6: Report "Invalid arguments" with the stdout usage text and stop.7: Report "Template file missing — plugin configuration error" and stop.Before VALIDATION_SUCCESS, stdout may contain one or more lines starting with WARNING: (for example, WARNING: short idea (<N> chars); proceeding when an inline idea is under 10 characters). Surface these warnings to the user in your final report but continue Phase 2 normally. WARNING: lines are informational, not errors.
Obtain the idea body into memory as IDEA_BODY, based on INPUT_MODE:
inline: stdout contains a sentinel block at the end of the success output; extract all text between the === IDEA_BODY_BEGIN === and === IDEA_BODY_END === lines (exclusive). The script emits a trailing newline after the last body line.file: read the full contents of IDEA_BODY_FILE using the Read tool.Preserve byte-identical content in memory for later phases. No on-disk tempfile is created in inline mode — the stdout sentinel block is the authoritative source.
Generate exactly N orthogonal directions for exploring the idea.
Before generating directions, read (paths relative to the project root, which is $(git rev-parse --show-toplevel)):
README.md at the project root.CLAUDE.md at the project root (if it exists)..claude/CLAUDE.md (if it exists).Glob with pattern * (one level, no recursion).This context grounds the directions in the actual repo rather than generic brainstorming.
Produce exactly N direction entries. Each entry has:
name: a 2-5 word short label.rationale: a single sentence explaining why this angle is distinct from the other directions.Hard constraint: orthogonality. Two near-duplicate directions defeat the directed-diversity premise. Before returning:
N entries, regenerate once with an explicit "you MUST produce N orthogonal directions" instruction.N but at least 2, proceed with the reduced count and emit a warning to the user: Warning: direction generation returned <count> of <N> requested directions; proceeding with reduced count.direction generation degraded; retry.Store the final direction list as DIRECTIONS (ordered; index 0..len-1).
Dispatch all directions in a single Task-tool message containing one Task invocation per direction. This is the W2S parallel-swarm step.
For each direction in DIRECTIONS, launch one Explore subagent. Each invocation prompt MUST include:
IDEA_BODY) captured in Phase 1.Explore this direction within the current repo. Gather OBJECTIVE EVIDENCE:
- Specific repo paths with existing patterns worth extending.
- Prior art or precedent in the codebase or adjacent tooling.
- Measurable considerations (approximate complexity, LOC surface, performance implications) where discoverable from reading the code.
Read-only. Do not write any files.
If no concrete evidence exists for this direction, report the literal string
exploratory, no concrete precedentonce in OBJECTIVE_EVIDENCE and stop exploring further. Fabrication of references is forbidden.Return a structured proposal with exactly these fields:
APPROACH_SUMMARY: concrete design description (what to build, core mechanism, affected components).OBJECTIVE_EVIDENCE: bullet list of repo paths, prior art, or theexploratory, no concrete precedentsentinel.KNOWN_RISKS: short bullet list.CONFIDENCE: one ofhigh,medium,low.
Collect all subagent responses. For each response:
exploration phase degraded; retry.Associate each surviving proposal with its originating direction (so Phase 4 can label it with the original direction name). When numbering alternatives in Phase 4 after any drops, renumber survivors sequentially as Alt-1..Alt-K (where K is the count of surviving non-primary directions). Do not preserve gaps from dropped proposals.
Review all surviving proposals. Choose the strongest as the primary based on:
CONFIDENCE — high > medium > low as tiebreaker.Record the chosen direction as PRIMARY; the remaining surviving directions become the Alt-1..Alt-K list (where K is the number of non-primary survivors, K ≤ N-1), numbered sequentially in their original direction order with no gaps for any dropped proposals.
Generate a 4-10 word Title Case title that captures the primary direction, not the original input phrasing verbatim. Example: idea add undo/redo with primary direction command-pattern history yields title Command-Pattern Undo Stack For The Editor.
Read the template file located at TEMPLATE_FILE (from Phase 1 stdout).
Produce the finalized draft content in memory by replacing placeholders:
<TITLE> — the inferred title.
<ORIGINAL_IDEA> — byte-identical value of IDEA_BODY captured in Phase 1. Preserve line breaks, trailing newline, and all formatting. Do NOT paraphrase or re-indent.
<PRIMARY_NAME> — primary direction's short name.
<PRIMARY_RATIONALE> — primary direction's rationale (from Phase 2).
<PRIMARY_APPROACH_SUMMARY> — primary proposal's APPROACH_SUMMARY.
<PRIMARY_OBJECTIVE_EVIDENCE> — primary proposal's OBJECTIVE_EVIDENCE, rendered as a bullet list. If the subagent returned only the literal sentinel exploratory, no concrete precedent, render it as a single bullet: - exploratory, no concrete precedent.
<PRIMARY_KNOWN_RISKS> — primary proposal's KNOWN_RISKS, rendered as a bullet list.
<ALTERNATIVES> — for each non-primary survivor at its Alt index i (1-based, sequential per Step 4.1), emit:
### Alt-<i>: <name>
- Gist: <one-paragraph summary derived from APPROACH_SUMMARY>
- Objective Evidence:
- <bullet from OBJECTIVE_EVIDENCE>
- ...
- Why not primary: <one sentence stating the tradeoff vs PRIMARY>
Separate consecutive Alt entries with a single blank line.
<SYNTHESIS_NOTES> — one paragraph describing which elements from the alternatives could fold into the primary if the user chose a different direction. This is the lead's own synthesis note, not a subagent output.
Write the finalized content to OUTPUT_FILE using the Write tool. Single write; no progressive edits.
Report to the user:
OUTPUT_FILE).N and the actual direction count (note if reduced due to degradation).To turn this draft into a plan, run: /humanize:gen-plan --input <OUTPUT_FILE> --output <plan-path>.exploratory, no concrete precedent sentinel from subagents is preserved verbatim in the draft.OUTPUT_FILE.npx claudepluginhub 7rah/humanize6plugins reuse this command
First indexed Apr 30, 2026
/gen-ideaTransforms a loose idea into a repo-grounded draft via directed-diversity exploration. Accepts idea text or file path, optional --n (directions) and --output path.
/research-idea-to-specTransforms an idea (text or markdown file) into a draft specification document by performing multi-source web and GitHub research to gather prior art and best practices, then outputs a structured spec file.
/brainstormDiscovers project context and proposes an implementation plan for approval before code is written. Invokes the oac:approach skill to guide the process.
/SKILLGuides structured brainstorming to transform rough ideas into implementation-ready designs through collaborative discovery, analysis, and iterative refinement. Produces a design folder and commits the result.
/brainstormLeads interactive dialogue to clarify feature requirements, explore 2-3 approaches with pros/cons, and generate a dated brainstorm.md document.
/exploreEnters a thinking-focused mode for exploring ideas, investigating problems, and clarifying requirements without implementing code. Supports optional argument for topic or conversation context.