Update the Feature Map
update-feature-mapApply a single change to the feature map and get the updated file back, so features and flows stay in step with the code after additions, renames, removals, or step changes.
Instructions
Apply one change to the feature map and get the new file back. Call it after you add, rename or remove a feature or a flow, or change a flow's steps, so the map stays in step with the code.
Changes, one per call:
{ op: "add-feature", name, description?, flows? }
{ op: "rename-feature", feature, name }
{ op: "remove-feature", feature }
{ op: "set-flow", feature, flow: { name, description?, steps: [{ name, route?, screen?, action?, components?, data? }] } } adds the flow, or replaces the one with that name
{ op: "rename-flow", feature, flow, name }
{ op: "remove-flow", feature, flow }
The Main Quest is the one goal for a set time, with at most 3 initiatives that carry it out. When the user names a direction ("this quarter is about team planning"), save it:
{ op: "set-main-quest", goal (12 words at most), ends: "YYYY-MM-DD", starts?, initiatives?: [{ name, outcome }] } refused while another is open
{ op: "end-main-quest" }
{ op: "add-initiative", name, outcome (one sentence, 25 words at most) }
{ op: "remove-initiative", initiative }
{ op: "set-initiative", feature, flow?, initiative } links work to an initiative, to "foundation" for upkeep such as sign-in and billing, or null to unlink
feature and flow take an id or an exact name. Write the returned file to .better-design/feature-map.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map | Yes | The exact contents of .better-design/feature-map.json. | |
| change | Yes | ||
| context | No | Optional. One sentence on WHY you are calling this and what the user asked for (e.g. 'adding nav icons for the fintech dashboard'). Used only for usage analytics; does not change the result. |