wtf.write-feature
Write Feature
Create a GitHub Feature issue that defines a user-facing capability. Fetch the parent Epic for context so the user does not repeat it.
Process
0. GitHub CLI setup
Run the setup check from ../references/gh-setup.md. Stop if gh is not installed or not authenticated. Note whether the extensions are available. That result controls whether native sub-issue and dependency links are created in step 10.
If invoked from wtf.epic-to-features or wtf.write-epic, skip this step. The orchestrator already ran it. Also skip on re-invocations in the same session (e.g. "Write next Feature" loop in step 11).
0b. Resolve the planning mode and the feature scope
Run the Resolve the mode block from ../references/planning-mode.md. An explicit guided or flow argument in the invocation wins over config. $WTF_PLAN shapes steps 3 and 8 below. Every quality gate runs in both modes.
Then resolve the feature scope from .wtf/config.json with the same read pattern: