From humanize-rs
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 claudepluginhub cupnfish/humanize-rs --plugin humanize-rsThis skill uses the workspace's default tool permissions.
Transforms a rough draft document into a well-structured implementation plan with clear goals, acceptance criteria (AC-X format), path boundaries, and feasibility suggestions.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
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 orchestrator