skills/humanize-gen-plan/SKILL.md
Generate a structured implementation plan from a draft document. The host orchestrates repository analysis, Codex planning rounds, convergence, user clarification, and final authoring. The CLI provides deterministic helper commands for config lookup, validation, scaffold preparation, and one-shot Codex consultation.
npx skillsauth add cupnfish/humanize-rs humanize-gen-planInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Transforms a rough draft document into a well-structured implementation plan with clear goals, acceptance criteria (AC-X format), path boundaries, and feasibility suggestions.
All command examples below use the humanize CLI available on PATH:
humanize
flowchart TD
BEGIN([BEGIN]) --> MODE["Parse mode flags<br/>discussion/direct + auto-start"]
MODE --> CONFIG["Load merged config<br/>Run: humanize config merged --json --with-meta"]
CONFIG --> VALIDATE["Validate IO and prepare scaffold<br/>Run: humanize gen-plan --prepare-only --input <draft> --output <plan>"]
VALIDATE --> CHECK{Validation passed?}
CHECK -->|No| REPORT_ERROR["Report validation error<br/>Stop"]
REPORT_ERROR --> END_FAIL([END])
CHECK -->|Yes| READ_DRAFT[Read draft and prepared plan scaffold]
READ_DRAFT --> CHECK_RELEVANCE{"Is draft relevant to<br/>this repository?"}
CHECK_RELEVANCE -->|No| REPORT_IRRELEVANT["Report: Draft not related to repo<br/>Stop"]
REPORT_IRRELEVANT --> END_FAIL
CHECK_RELEVANCE -->|Yes| CODEX1["Run first-pass Codex critique<br/>Run: humanize ask-codex ..."]
CODEX1 --> CANDIDATE["Claude candidate plan v1"]
CANDIDATE --> MODE_SWITCH{"Mode = discussion?"}
MODE_SWITCH -->|No| RESOLVE
MODE_SWITCH -->|Yes| CONVERGE["Run convergence loop with second Codex"]
CONVERGE --> RESOLVE["Resolve issues, metrics, and user decisions"]
RESOLVE --> FINAL_PLAN["Generate final plan content"]
FINAL_PLAN --> WRITE["Edit prepared output file"]
WRITE --> LANG{"Alternative language enabled?"}
LANG -->|Yes| TRANSLATE["Write translated variant"]
LANG -->|No| AUTO
TRANSLATE --> AUTO{"Auto-start RLCR allowed?"}
AUTO -->|Yes| SETUP["Run: humanize setup rlcr <plan>"]
AUTO -->|No| REPORT_SUCCESS["Report success"]
SETUP --> REPORT_SUCCESS
REPORT_SUCCESS --> END_SUCCESS([END])
Read command arguments and determine:
GEN_PLAN_MODE=discussion or direct--auto-start-rlcr-if-converged is enabledReject simultaneous --discussion and --direct.
Run:
humanize config merged --json --with-meta
Use the returned JSON to resolve:
alternative_plan_languagegen_plan_modechinese_plan fallbackCLI flags take priority over config.
Run:
humanize gen-plan --prepare-only --input <path/to/draft.md> --output <path/to/plan.md>
This step should:
--- Original Design Draft Start ---If this command exits non-zero, stop and report the error directly.
After scaffold creation succeeds:
humanize:draft-relevance-checker agentConsult Codex with:
humanize ask-codex "<structured planning critique prompt>"
The response should identify:
Use this output as Codex Analysis v1.
Using the draft, repo context, and Codex Analysis v1:
If GEN_PLAN_MODE=discussion:
humanize ask-codex pass to challenge the candidate planIf GEN_PLAN_MODE=direct:
Use AskUserQuestion to resolve:
Preserve the original draft content. Treat user answers as additive clarifications, not replacements.
The final plan must include:
Use the Edit tool to update the prepared output file:
If alternative language output is enabled:
If --auto-start-rlcr-if-converged is enabled, only auto-start when:
discussionconvergedRun:
humanize setup rlcr <path/to/plan.md>
Report:
humanize gen-plan --prepare-only uses these exit codes:
| Exit Code | Meaning | |-----------|---------| | 0 | Success - continue | | 1 | Input file not found | | 2 | Input file is empty | | 3 | Output directory does not exist | | 4 | Output file already exists | | 5 | No write permission | | 6 | Invalid arguments | | 7 | Plan template file not found |
Inside Claude Code, this skill is the preferred gen-plan path:
humanize CLI replaces the legacy shell helpershumanize ask-codex remains a one-shot consultation tool used by the host flow rather than the top-level orchestratortools
Iterative development with AI review. Provides RLCR (Ralph-Loop with Codex Review) for implementation planning and code review loops, plus PR review automation with bot monitoring.
development
Start RLCR (Ralph-Loop with Codex Review) with hook-equivalent enforcement from skill mode by reusing the existing native `humanize gate rlcr` logic.
development
Consult Codex as an independent expert. Sends a question or task to `humanize ask-codex` and returns the response.
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.