@synap-core/workspace-templates 0.69.0 → 0.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6861,7 +6861,7 @@ var DATA = {
6861
6861
  {
6862
6862
  "name": "Design to implementation",
6863
6863
  "description": "Take a UI design request from three variants built only of real Storybook components, through a rubric critique and a person's review on the canvas, to a pull request verified by the gates, a before/after compare and a walk in the running app.",
6864
- "goalTemplate": "Take this UI design ({design}) for {surface} from draft to implemented. Load the designing-with-real-components skill first, and design-critique for the Critique stage. GENERATE: read the Storybook component manifest (/manifests/components.json, or the Storybook MCP), the design's goal and scope and the entities it references, and write THREE variants as Puck JSON as a canvas of frames, one per screen (one frame for a single screen) \u2014 this design and two sibling ui-designs sharing its variant-group \u2014 using ONLY components the manifest lists, with props each one declares, design tokens and named motion presets only; each variant lays out every state the screen has (empty, loading, failed, full, long content); fill components-used from the JSON (across every frame of a canvas) and set schema-version (always 3: a canvas of frames, one per screen; never 1 or 2). CRITIQUE: judge each variant with the design-critique rubric and write the findings into its critique; a checked or pattern blocker sends the run back to Generate; opinions are never applied. REVIEW: a person compares the variants on the canvas and approves one; nothing is implemented from an unapproved design, and only a person sets approved. IMPLEMENT: read design-json and the Storybook MCP, build the screen from those same real components, open a pull request and record its URL in implementation-pr and the built screen's story in implemented-story-id (a single-frame design) or, for a design of several frames, each frame's stories in frame-stories ({ frameId: [storyId, ...] }). VERIFY: typecheck, story coverage, interaction and accessibility tests, visual regression and the token guards are green, the implemented story was captured and compared with the design and the current story, and the screen was walked in the running app. Move the design's status only through its lifecycle (update_entity with expectedStatus); never invent a status.",
6864
+ "goalTemplate": "Take this UI design ({design}) for {surface} from draft to implemented. Load the designing-with-real-components skill first, and design-critique for the Critique stage. GENERATE: read the Storybook component manifest (/manifests/components.json, or the Storybook MCP), the design's goal and scope and the entities it references, and write THREE variants as Puck JSON as a canvas of frames, one per screen (one frame for a single screen) \u2014 this design and two sibling ui-designs sharing its variant-group \u2014 using ONLY components the manifest lists, with props each one declares, design tokens and named motion presets only; each variant lays out every state the screen has (empty, loading, failed, full, long content); fill components-used from the JSON (across every frame of a canvas) and set schema-version (always 3: a canvas of frames, one per screen; never 1 or 2). CRITIQUE: judge each variant with the design-critique rubric and write the findings into its critique; a checked or pattern blocker sends the run back to Generate; opinions are never applied. REVIEW: a person compares the variants on the canvas and approves one; nothing is implemented from an unapproved design, and only a person sets approved. IMPLEMENT: read design-json and the Storybook MCP, build the screen from those same real components, open a pull request and record its URL in implementation-pr and the built screen's story in implemented-story-id (a single-frame design) or, for a design of several frames, each frame's stories in frame-stories ({ frameId: [storyId, ...] }). VERIFY: typecheck, story coverage, interaction and accessibility tests, visual regression and the token guards are green, the implemented story was captured and compared with the design and the current story, and the screen was walked in the running app. Move the design's status only through its lifecycle (update_entity with expectedStatus); never invent a status. PINS: the person annotates the design on the board; each pin is an open comment thread on this design. Read them with synap_get_thread_context {object: {type: entity, id: <the design>}, state: open}: each thread's anchor.locator names the frame (frameId, blockId), the viewport, the point and the contentVersion the person saw. A pin whose contentVersion is not the design's current updatedAt (the entity's own timestamp, in the same ISO form) is stale: say so in its thread and do not apply it blindly. Any write that bumps updatedAt (a save, your own write) makes older pins read stale, so read them before you write the design. Apply every current pin in the next variants and reply in its thread (synap_post_message, comment.replyTo the thread id) with what changed; never resolve a pin: the person resolves it at Review (agents propose, people resolve). A pod run of this playbook has no comment tool: an agent with the MCP doors works these steps.",
6865
6865
  "subjectProfile": {
6866
6866
  "profileSlug": "ui-design"
6867
6867
  },
@@ -6869,6 +6869,14 @@ var DATA = {
6869
6869
  {
6870
6870
  "on": "manual",
6871
6871
  "mode": "propose"
6872
+ },
6873
+ {
6874
+ "on": "created",
6875
+ "mode": "propose",
6876
+ "unless": {
6877
+ "property": "variant-group",
6878
+ "present": true
6879
+ }
6872
6880
  }
6873
6881
  ],
6874
6882
  "params": [
@@ -6892,7 +6900,7 @@ var DATA = {
6892
6900
  "name": "Generate",
6893
6901
  "category": "planned",
6894
6902
  "subjectStatus": "draft",
6895
- "goal": "Write three variants as Puck JSON as a canvas of frames, one per screen (one frame for a single screen) \u2014 this design and two siblings in its variant-group \u2014 from components the Storybook manifest lists, with their declared props, tokens and named motion presets only, each with every state the screen has.",
6903
+ "goal": "First read the design's open pins (synap_get_thread_context with object the design, state open) and mark each stale one (its locator.contentVersion is not the design's current updatedAt), before writing anything to the design. Write three variants as Puck JSON as a canvas of frames, one per screen (one frame for a single screen) \u2014 this design and two siblings in its variant-group \u2014 from components the Storybook manifest lists, with their declared props, tokens and named motion presets only, each with every state the screen has, applying every current pin. Reply in each pin's thread (synap_post_message, comment.replyTo) with what changed, or why it was stale or not applied; never resolve a pin.",
6896
6904
  "expectedOutputs": [
6897
6905
  {
6898
6906
  "kind": "ui-design",
@@ -6973,7 +6981,7 @@ var DATA = {
6973
6981
  "name": "Review",
6974
6982
  "category": "started",
6975
6983
  "subjectStatus": "in-review",
6976
- "goal": "A person compares the variants and their critiques on the canvas and approves one, or sends the design back with what to change. A sibling chosen over this design is written into it first, so the run carries the chosen variant.",
6984
+ "goal": "A person compares the variants and their critiques on the canvas and approves one, or sends the design back with what to change. The person resolves the pins the variants answered and pins what is still wrong; sending it back returns the run to Generate, which reads the open pins again. A sibling chosen over this design is written into it first, so the run carries the chosen variant.",
6977
6985
  "gate": {
6978
6986
  "kind": "human"
6979
6987
  },
@@ -8903,7 +8911,7 @@ var DATA = {
8903
8911
  {
8904
8912
  "name": "Review a UI component",
8905
8913
  "description": "Review one UI component of an app's Storybook against the design-critique rubric and decide what to do with it: nothing (fine, the run ends), a rewrite plan (the founder decides on it, nothing is built), or a small fix, built and gated on a branch and shown to the founder. Approving `approve` releases land, publish and done; no later stage asks the person again. Ends with the component marked reviewed at its current source.",
8906
- "goalTemplate": "Review the UI component {component} and decide what to do with it. Load the design-critique skill first (and designing-with-real-components for a fix). Read the component record: its stories, screenshot, props, composition (composed_of), variants (extends), the pages that use it, its family in the inventory, and its source file at the synced sha; read what the pod already knows about it (recall first). Set review-state to in-review when you start. CRITIQUE: judge each of its stories with the rubric (each finding with its rule id, tier, severity and region); opinions are never applied. VERDICT, which branches before any code: fine ends the run (reviewed-hash = source-hash, review-state fresh, no build); rewrite writes a plan document and stops on the founder's ask, nothing is built; only a small fix goes on. IMPLEMENT and GATE the fix on a branch of the project's repo (nothing reaches main before Approve). APPROVE: the founder sees the before/after of the story, the diff summary and the green gate at the full head sha, and approves once; that releases LAND, PUBLISH and DONE, run through the project's ship actions, never by an agent pushing main by hand. DONE: reviewed-hash = source-hash and review-state fresh. Code facts of the record (name, props, stories, source, composition) belong to the Storybook sync: never edit them on the pod.",
8914
+ "goalTemplate": "Review the UI component {component} and decide what to do with it. Load the design-critique skill first (and designing-with-real-components for a fix). Read the component record: its stories, screenshot, props, composition (composed_of), variants (extends), the pages that use it, its family in the inventory, and its source file at the synced sha; read what the pod already knows about it (recall first). Set review-state to in-review when you start. CRITIQUE: judge each of its stories with the rubric (each finding with its rule id, tier, severity and region); opinions are never applied. VERDICT, which branches before any code: fine ends the run (reviewed-hash = source-hash, review-state fresh, no build); rewrite writes a plan document and stops on the founder's ask, nothing is built; only a small fix goes on. IMPLEMENT and GATE the fix on a branch of the project's repo (nothing reaches main before Approve). APPROVE: the founder sees the before/after of the story, the diff summary and the green gate at the full head sha, and approves once; that releases LAND, PUBLISH and DONE, run through the project's ship actions, never by an agent pushing main by hand. DONE: reviewed-hash = source-hash and review-state fresh. Code facts of the record (name, props, stories, source, composition) belong to the Storybook sync: never edit them on the pod. PINS: the person may pin the component's stories on the board; each pin is an open comment thread on the component. Read them with synap_get_thread_context {object: {type: entity, id: <the component>}, state: open}: each thread's anchor.locator names the story (storyId), the viewport, the point and the contentVersion the person saw. A pin whose contentVersion is not the component's current source-hash is stale: say so in its thread and do not apply it blindly. Every current pin is a finding of the critique; reply in its thread (synap_post_message, comment.replyTo the thread id) with the verdict and, for a fix, what changed; never resolve a pin: the person resolves it at Approve (agents propose, people resolve). A pod run of this playbook has no comment tool: an agent with the MCP doors works these steps.",
8907
8915
  "scope": "session",
8908
8916
  "subjectProfile": {
8909
8917
  "profileSlug": "ui-component"
@@ -8943,7 +8951,7 @@ var DATA = {
8943
8951
  "key": "critique",
8944
8952
  "name": "Critique",
8945
8953
  "category": "started",
8946
- "goal": "Set the component's review-state to in-review, then judge each of its stories with the design-critique rubric and write the findings (rule id, tier, severity, confidence, region, evidence) into the critique document.",
8954
+ "goal": "Set the component's review-state to in-review, then judge each of its stories with the design-critique rubric and write the findings (rule id, tier, severity, confidence, region, evidence) into the critique document. Read the component's open pins too (synap_get_thread_context with object the component, state open): each current pin (its locator.contentVersion equals the component's source-hash) is a finding, with its thread as the evidence; a stale one is listed as stale and not judged.",
8947
8955
  "expectedOutputs": [
8948
8956
  {
8949
8957
  "kind": "document",
@@ -8965,6 +8973,13 @@ var DATA = {
8965
8973
  "check": {
8966
8974
  "kind": "judge"
8967
8975
  }
8976
+ },
8977
+ {
8978
+ "key": "critique-pins-read",
8979
+ "statement": "Every pin open on the component when the review started is in the critique, as a finding (its contentVersion equals the component's source-hash) or as stale, and has a reply in its thread from this run; no pin was resolved by the agent.",
8980
+ "check": {
8981
+ "kind": "judge"
8982
+ }
8968
8983
  }
8969
8984
  ]
8970
8985
  },
@@ -9013,7 +9028,7 @@ var DATA = {
9013
9028
  "key": "implement",
9014
9029
  "name": "Implement",
9015
9030
  "category": "started",
9016
- "goal": "Build the enhanced version in the component's source with the real components, on a branch of the project's repo, with its story updated, and capture the story before and after. Nothing reaches main here. Record the branch and its full head sha on the session.",
9031
+ "goal": "Build the enhanced version in the component's source with the real components, on a branch of the project's repo, with its story updated, and capture the story before and after; apply each current pin the verdict kept and reply in its thread with what changed. Nothing reaches main here. Record the branch and its full head sha on the session.",
9017
9032
  "criteria": [
9018
9033
  {
9019
9034
  "key": "implement-matches-design",
@@ -9056,7 +9071,7 @@ var DATA = {
9056
9071
  "key": "approve",
9057
9072
  "name": "Approve",
9058
9073
  "category": "started",
9059
- "goal": "The card shows the before/after capture of the story, the diff summary and the green devbox run at the full head sha. Approving it releases land, publish and done; no later stage asks again. A change touching auth, keys, vault, billing or a migration, or publishing to anyone but this pod, files its own approval instead of riding this one.",
9074
+ "goal": "The card shows the before/after capture of the story, the diff summary and the green devbox run at the full head sha, and the replies in the pins' threads. Approving it releases land, publish and done; no later stage asks again. The person resolves the pins the fix answered. A change touching auth, keys, vault, billing or a migration, or publishing to anyone but this pod, files its own approval instead of riding this one.",
9060
9075
  "gate": {
9061
9076
  "kind": "human"
9062
9077
  },
@@ -18107,8 +18122,11 @@ var DATA = {
18107
18122
  {
18108
18123
  "name": "Set up a design system",
18109
18124
  "description": "Connect one app's Storybook to the pod in three questions asked one at a time: where the Storybook is (a public URL, or a computer that builds and uploads it), which app or project it belongs to, and which brand identity it expresses. Ends with the first sync's import proposal filed for the person and the sync kept current.",
18110
- "goalTemplate": "Set up the design system of one app on this pod. Load the designing-with-real-components skill first. The pod asks the person three things, one per stage, when your turn ends that stage: never ask them yourself and never ask two at once. WHERE: read what the pod already has (the apps, the brand identities, any ui-component records and the app they belong to) and list the apps and brand identities by name, so the next answers can name one. APP: resolve the app the person named (an existing devplane_app first; never a second record for one that exists; a new one is created through a proposal, filed into the person's project). BRAND: resolve the brand identity they named (brand-identity, Brand space); none named: the source carries none. CONNECT: a public https URL \u2192 run storybook.sync with url, appId and brandIdentityId; a computer \u2192 hand the build-and-upload step to the person's computer (hand-off skill): it builds Storybook, writes a synap.storybook-bundle/v1 file, uploads it to the pod and runs storybook.sync with bundleFileId, appId and brandIdentityId. The first run of a source is ONE import proposal the person approves; never write the records yourself. KEEP CURRENT: the pod does not re-sync a Storybook on its own; for a URL, file a daily automation that runs storybook.sync with the same three values; for a computer, the same build, upload and sync runs after each push to the app's main. The brand identity goes only to storybook.sync (the source's config), never onto the records.",
18125
+ "goalTemplate": "Set up the design system of one app on this pod. Load the designing-with-real-components skill first. The pod asks the person three things, one per stage, when your turn ends that stage: never ask them yourself and never ask two at once. WHERE: read what the pod already has (the apps, the brand identities, any ui-component records and the app they belong to) and list the apps and brand identities by name, so the next answers can name one. APP: resolve the app the person named (an existing devplane_app first; never a second record for one that exists; a new one is proposed with create_entity, filed into the person's project). BRAND: resolve the brand identity they named (brand-identity, Brand space); none named: the source carries none. CONNECT: a public https URL \u2192 run storybook.sync with url, appId and brandIdentityId; a computer \u2192 the build and upload run on the person's computer, not in this run: when they uploaded a synap.storybook-bundle/v1 file, run storybook.sync with its bundleFileId, appId and brandIdentityId; until then, write the three values that computer's agent passes and stop. The first run of a source is ONE import proposal the person approves; never write the records yourself. KEEP CURRENT: the pod does not re-sync a Storybook on its own; for a URL, name the daily automation the person turns on (one storybook.sync step with the same three values); for a computer, the same build, upload and sync run after each push to the app's main. The brand identity goes only to storybook.sync (the source's config), never onto the records.",
18111
18126
  "executor": "is-agent",
18127
+ "tools": [
18128
+ "storybook"
18129
+ ],
18112
18130
  "status": "active",
18113
18131
  "stages": [
18114
18132
  {
@@ -18167,7 +18185,7 @@ var DATA = {
18167
18185
  "key": "brand",
18168
18186
  "name": "Which brand identity",
18169
18187
  "category": "started",
18170
- "goal": "Resolve the app the person named (an existing devplane_app first, never a twin; a new one through a proposal filed into their project). Ask nothing yourself; when your turn ends the pod asks which brand identity the Storybook expresses.",
18188
+ "goal": "Resolve the app the person named (an existing devplane_app first, never a twin; a new one proposed with create_entity, filed into their project). Ask nothing yourself; when your turn ends the pod asks which brand identity the Storybook expresses.",
18171
18189
  "criteria": [
18172
18190
  {
18173
18191
  "key": "app-resolved-once",
@@ -18202,11 +18220,11 @@ var DATA = {
18202
18220
  "key": "connect",
18203
18221
  "name": "Connect and first sync",
18204
18222
  "category": "started",
18205
- "goal": "Resolve the brand identity the person named (brand-identity in the Brand space; empty: none). A URL: run storybook.sync with url, appId and brandIdentityId. A computer: hand the step to the person's computer (hand-off skill): build Storybook, write a synap.storybook-bundle/v1 file, upload it to the pod, run storybook.sync with bundleFileId, appId and brandIdentityId. The first run is one import proposal for the person; a refused or failed sync is reported with its reason, never retried blindly.",
18223
+ "goal": "Resolve the brand identity the person named (brand-identity in the Brand space; empty: none). A URL: run storybook.sync with url, appId and brandIdentityId. A computer: the build and upload run on the person's computer, not in this run; with an uploaded synap.storybook-bundle/v1 file, run storybook.sync with its bundleFileId, appId and brandIdentityId; without one yet, write the values the computer's agent passes and stop. The first run is one import proposal for the person; a refused or failed sync is reported with its reason, never retried blindly.",
18206
18224
  "criteria": [
18207
18225
  {
18208
18226
  "key": "sync-ran-with-answers",
18209
- "statement": "storybook.sync ran once with the person's source (url, or a bundle file a computer uploaded), the resolved appId and, when one was named, the brandIdentityId, and its import proposal is filed or its refusal is reported with the reason.",
18227
+ "statement": "storybook.sync ran once with the person's source (url, or a bundle file a computer uploaded), the resolved appId and, when one was named, the brandIdentityId, and its import proposal is filed or its refusal is reported with the reason; or, for a computer with no bundle uploaded yet, the run wrote the values its agent passes.",
18210
18228
  "check": {
18211
18229
  "kind": "judge"
18212
18230
  }
@@ -18224,11 +18242,11 @@ var DATA = {
18224
18242
  "key": "keep-current",
18225
18243
  "name": "Keep it current",
18226
18244
  "category": "completed",
18227
- "goal": "A URL: file a daily automation (create_automation, cron) whose one capability step runs storybook.sync with the same url, appId and brandIdentityId. A computer: record on the session that the build, upload and sync run after each push to the app's main, and on which computer. Then say how the weekly review of changed components is turned on (the schedule of Review a UI component is installed paused).",
18245
+ "goal": "A URL: name the daily automation the person turns on to keep it current (one storybook.sync step with the same url, appId and brandIdentityId): the pod does not re-sync a Storybook on its own. A computer: say that its build, upload and sync run after each push to the app's main. Then say how the weekly review of changed components is turned on (the schedule of Review a UI component is installed paused).",
18228
18246
  "criteria": [
18229
18247
  {
18230
18248
  "key": "sync-kept-current",
18231
- "statement": "For a URL a daily storybook.sync automation is filed with the same three values; for a computer the session names the computer and the push that triggers the upload.",
18249
+ "statement": "For a URL the answer names the daily storybook.sync automation with the same three values; for a computer it names the push that triggers the build, upload and sync.",
18232
18250
  "check": {
18233
18251
  "kind": "judge"
18234
18252
  }