add-subfeature
Add Subfeature
Use this skill when an existing canonical feature needs a durable child planning folder instead of direct in-place edits to the parent feature plan.
Responsibilities
- Resolve the parent feature planning folder under the repository planning layout.
- Initialize the feature-local
subfeatures/registry when it does not exist yet. - Create one durable subfeature under
docs/features/<feature>/subfeatures/<subfeature-id>/. - Maintain machine-readable subfeature metadata for parent-child and impact context.
- Seed the subfeature as a real planning folder with its own
.planning-meta.json.
Preferred Input
- a parent feature slug, folder name, or path
- a subfeature ID or short slug
- an optional subfeature type such as
additive,narrowing,superseding, orreplacement - an optional summary of why the feature needs the child capability
Required Output
<feature_path>/subfeatures/README.md<feature_path>/subfeatures/registry.json<feature_path>/subfeatures/<subfeature-id>/discover.md<feature_path>/subfeatures/<subfeature-id>/.planning-meta.json<feature_path>/subfeatures/<subfeature-id>/.subfeature-meta.json
Workflow
- Resolve the parent feature.
- Initialize the feature-local subfeature registry with
manage_subfeatures.py init-feature <feature>when needed. - Create the durable child planning folder with
manage_subfeatures.py add <feature> <subfeature-id>. - Write the requested child capability in the subfeature-local
discover.md. - Hand off to
assess,design,breakdown, andreview-planningusing the selected subfeature folder.
Source of Truth Rules
- Keep
docs/features/<feature-slug>/as the parent feature planning folder. - Treat
docs/features/<feature-slug>/subfeatures/<subfeature-id>/as a durable planning folder, not a temporary delta and not an execution slice. - Do not silently fold subfeature docs back into the parent feature docs.
- Let the subfeature folder keep its own planning lifecycle through
.planning-meta.json.
Tooling
# Initialize the subfeature registry for a canonical feature
python3 skills/add-subfeature/scripts/manage_subfeatures.py init-feature "<feature-slug>"
# Create a new additive subfeature
python3 skills/add-subfeature/scripts/manage_subfeatures.py add "<feature-slug>" "<subfeature-id>"
# Create a superseding subfeature with a short summary
python3 skills/add-subfeature/scripts/manage_subfeatures.py add \
"<feature-slug>" "<subfeature-id>" \
--type superseding \
--summary "Replace legacy checkout path with a durable child capability"
# Advance subfeature state once required artifacts exist
python3 skills/add-subfeature/scripts/manage_subfeatures.py set-status \
"<feature-slug>" "<subfeature-id>" impact_ready
# Validate one subfeature
python3 skills/add-subfeature/scripts/manage_subfeatures.py validate \
"<feature-slug>" "<subfeature-id>"
Guardrails
- Do not use this skill for net-new feature discovery; use
guide-planninganddiscoverfor that. - Do not treat subfeatures as execution slices.
- Do not overwrite parent feature docs during subfeature bootstrap.
- Do not use this skill to create speculative work that should stay under
docs/proposals/.
More from sirius-cc-wu/sirius-skills
dioxus-ui-ux
Dioxus UI/UX design intelligence. Specialized guidelines for Dioxus Components, plus 50 styles, 21 palettes, 50 font pairings. Stacks: dioxus, daisyui, shadcn, html-tailwind. Actions: plan, build, create, design, implement, review, fix, improve, optimize. Projects: web app, dashboard, admin panel, SaaS, mobile app. Elements: button, modal, navbar, card, form, chart.
16dioxus-stitch
Transforms Stitch designs into clean, modular Dioxus code using daisyUI. Handles RSX conversion, type-safe props, and data decoupling for Rust projects.
8dioxus-ui-skill
Dioxus UI/UX design intelligence. Specialized guidelines for Dioxus Components, plus 50 styles, 21 palettes, 50 font pairings. Stacks: dioxus, shadcn, html-tailwind. Actions: plan, build, create, design, implement, review, fix, improve, optimize. Projects: web app, dashboard, admin panel, SaaS, mobile app. Elements: button, modal, navbar, card, form, chart.
4discover
Frames a project or feature before implementation by capturing goals, constraints, stakeholders, and initial story candidates.
2ui-flow
Captures optional UI and UX flows, screen-level requirements, and interaction notes before implementation.
2design
Produces feature-level system-design.md artifacts before breakdown when a feature needs architecture, interface, constraint, failure-handling, or validation decisions captured durably.
2