name: feature-boundary-planner
Use this skill from the ZCode repository root before implementation when a request needs feature-impact discovery, product-boundary clarification, coverage planning, or an E2E handoff.
Treat impact discovery and boundary planning as two connected jobs:
Do not begin with a large Cartesian product. Build a compact semantic impact map, verify it against live code, then ask only the questions that change the result.
impact-only: Produce an Impact Brief. Do not change product code or existing product specs.planning: Produce the Impact Brief, clarify product semantics, and update specs or planning documents before code.implementation-handoff: Complete planning and prepare accepted cases for implementation or e2e-case-lifecycle.Infer the least expansive mode from the user's request. A request to scan, explain, diagnose, or report impact is impact-only. A request to change or build uses planning unless the user explicitly limits the work.
For every impact scan, read:
docs/feature-impact-discovery.mdreferences/zcode-feature-graph.yamlreferences/impact-brief-template.mdreferences/zcode-domain-cross-products.mdFor planning or implementation-handoff, also read:
packages/formal-proof/README.mdreferences/case-planning-template.mdWhen conversation/session behavior is affected, read:
docs/conversation-protocol-declaration.mddocs/conversation-product-state-space.mddocs/conversation-session-case-catalog.mddocs/testing/conversation-session-e2e-coverage-matrix.mddocs/testing/conversation-session-e2e-development-workflow.mddocs/testing/conversation-session-requirement-matrix-workflow.mdRead only the domain-specific references routed by the feature graph and domain map. Prefer current fact/architecture docs over historical plans.
Classify the proposed change before expanding the graph. Use one or more of:
presentation: labels, layout, visibility, interaction controls, responsive behavior, theme, or locale.option-source: candidates, grouping, sorting, filtering, registry, or discovery.draft-default: initial value, inheritance, fallback, or local edit state.validation: availability, permissions, guards, blocking, or error presentation.commit-effect: command/service invoked and the runtime state changed by the action.persistence: saved representation, load, migration, isolation key, or cache.recovery: queue, snapshot, reconnect, replay, owner command, or stream recovery.Do a low-cost scan before asking the user to classify an ambiguous change. Ask only when two interpretations would materially change the impact conclusion.
references/zcode-feature-graph.yaml.local display/draft -> default/inheritance -> validation/gating -> commit command/service -> authoritative runtime or persistence owner.rg only for docs, config, generated files, unindexed content, or precise string checks after the graph has identified the area.graph-drift-candidate; do not silently rewrite product semantics from static reachability.must-inspect: shared edit point, owner, or commit path.should-inspect: shared option source, default, validation, or high-value invariant.conditional: relevant only for a change layer, client mode, workspace type, or runtime condition.invariant-only: no expected edit, but isolation must be verified.evidence-only: test or reachable implementation used only as supporting evidence.Never report every reachable node as an affected feature. Explain the semantic edge and why it matters for this change layer.
For every UI entry point, record:
Shared UI does not imply shared behavior. The same model label can mean current conversation runtime, an automation record, a Subagent Markdown field, or a built-in override. Preserve those state and commit boundaries unless the user explicitly changes the product contract.
After impact discovery, convert only undefined or conflicting relations into questions.
If the user has not named any capability or behavior, ask one concise scope question before scanning.
Turn confirmed scan results into reusable retrieval data.
impact-only mode, include a proposed graph delta in the Impact Brief but do not edit the graph.planning and implementation-handoff modes, update references/zcode-feature-graph.yaml after the relevant product semantics are confirmed.codeSeeds instead of inventing duplicate product surfaces.Run this section only in planning or implementation-handoff mode.
state -> candidate -> guard -> effect -> case. Prefer pairwise and high-risk combinations over global expansion.accepted, undefined, pruned, ignored, or bug-candidate.In planning modes, update or create the feature spec, catalog, matrix, decision worksheet, or backlog before implementation. For conversation-related E2E work, update the conversation case catalog and coverage matrix and obtain pruning decisions before writing tests.
Hand accepted E2E cases to e2e-case-lifecycle when they require manual-review specs, provider replay fixtures, Docker isolation, timing control, or CI promotion.
Always use references/impact-brief-template.md and include:
For planning modes, append the sections in references/case-planning-template.md: clarification log, dimensions, candidate combinations, pruning decisions, accepted cases, coverage rows, and E2E handoff notes. Keep case IDs stable.
impact-only request into code or product-spec edits.bug-candidate; do not rewrite the contract to match current code without confirmation.desktop-continuous and mobile web-remote-replayable semantics separate.workspaceIdentity?.trim() || workspacePath; use workspacePath for execution and display.