@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/src/templates.ts CHANGED
@@ -6793,7 +6793,7 @@ const DATA = {
6793
6793
  {
6794
6794
  "name": "Design to implementation",
6795
6795
  "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.",
6796
- "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) — this design and two sibling ui-designs sharing its variant-group — 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.",
6796
+ "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) — this design and two sibling ui-designs sharing its variant-group — 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.",
6797
6797
  "subjectProfile": {
6798
6798
  "profileSlug": "ui-design"
6799
6799
  },
@@ -6801,6 +6801,14 @@ const DATA = {
6801
6801
  {
6802
6802
  "on": "manual",
6803
6803
  "mode": "propose"
6804
+ },
6805
+ {
6806
+ "on": "created",
6807
+ "mode": "propose",
6808
+ "unless": {
6809
+ "property": "variant-group",
6810
+ "present": true
6811
+ }
6804
6812
  }
6805
6813
  ],
6806
6814
  "params": [
@@ -6824,7 +6832,7 @@ const DATA = {
6824
6832
  "name": "Generate",
6825
6833
  "category": "planned",
6826
6834
  "subjectStatus": "draft",
6827
- "goal": "Write three variants as Puck JSON as a canvas of frames, one per screen (one frame for a single screen) — this design and two siblings in its variant-group — from components the Storybook manifest lists, with their declared props, tokens and named motion presets only, each with every state the screen has.",
6835
+ "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) — this design and two siblings in its variant-group — 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.",
6828
6836
  "expectedOutputs": [
6829
6837
  {
6830
6838
  "kind": "ui-design",
@@ -6905,7 +6913,7 @@ const DATA = {
6905
6913
  "name": "Review",
6906
6914
  "category": "started",
6907
6915
  "subjectStatus": "in-review",
6908
- "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.",
6916
+ "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.",
6909
6917
  "gate": {
6910
6918
  "kind": "human"
6911
6919
  },
@@ -8835,7 +8843,7 @@ const DATA = {
8835
8843
  {
8836
8844
  "name": "Review a UI component",
8837
8845
  "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.",
8838
- "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.",
8846
+ "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.",
8839
8847
  "scope": "session",
8840
8848
  "subjectProfile": {
8841
8849
  "profileSlug": "ui-component"
@@ -8875,7 +8883,7 @@ const DATA = {
8875
8883
  "key": "critique",
8876
8884
  "name": "Critique",
8877
8885
  "category": "started",
8878
- "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.",
8886
+ "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.",
8879
8887
  "expectedOutputs": [
8880
8888
  {
8881
8889
  "kind": "document",
@@ -8897,6 +8905,13 @@ const DATA = {
8897
8905
  "check": {
8898
8906
  "kind": "judge"
8899
8907
  }
8908
+ },
8909
+ {
8910
+ "key": "critique-pins-read",
8911
+ "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.",
8912
+ "check": {
8913
+ "kind": "judge"
8914
+ }
8900
8915
  }
8901
8916
  ]
8902
8917
  },
@@ -8945,7 +8960,7 @@ const DATA = {
8945
8960
  "key": "implement",
8946
8961
  "name": "Implement",
8947
8962
  "category": "started",
8948
- "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.",
8963
+ "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.",
8949
8964
  "criteria": [
8950
8965
  {
8951
8966
  "key": "implement-matches-design",
@@ -8988,7 +9003,7 @@ const DATA = {
8988
9003
  "key": "approve",
8989
9004
  "name": "Approve",
8990
9005
  "category": "started",
8991
- "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.",
9006
+ "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.",
8992
9007
  "gate": {
8993
9008
  "kind": "human"
8994
9009
  },
@@ -18029,8 +18044,11 @@ const DATA = {
18029
18044
  {
18030
18045
  "name": "Set up a design system",
18031
18046
  "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.",
18032
- "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 → run storybook.sync with url, appId and brandIdentityId; a computer → 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.",
18047
+ "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 → run storybook.sync with url, appId and brandIdentityId; a computer → 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.",
18033
18048
  "executor": "is-agent",
18049
+ "tools": [
18050
+ "storybook"
18051
+ ],
18034
18052
  "status": "active",
18035
18053
  "stages": [
18036
18054
  {
@@ -18089,7 +18107,7 @@ const DATA = {
18089
18107
  "key": "brand",
18090
18108
  "name": "Which brand identity",
18091
18109
  "category": "started",
18092
- "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.",
18110
+ "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.",
18093
18111
  "criteria": [
18094
18112
  {
18095
18113
  "key": "app-resolved-once",
@@ -18124,11 +18142,11 @@ const DATA = {
18124
18142
  "key": "connect",
18125
18143
  "name": "Connect and first sync",
18126
18144
  "category": "started",
18127
- "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.",
18145
+ "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.",
18128
18146
  "criteria": [
18129
18147
  {
18130
18148
  "key": "sync-ran-with-answers",
18131
- "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.",
18149
+ "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.",
18132
18150
  "check": {
18133
18151
  "kind": "judge"
18134
18152
  }
@@ -18146,11 +18164,11 @@ const DATA = {
18146
18164
  "key": "keep-current",
18147
18165
  "name": "Keep it current",
18148
18166
  "category": "completed",
18149
- "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).",
18167
+ "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).",
18150
18168
  "criteria": [
18151
18169
  {
18152
18170
  "key": "sync-kept-current",
18153
- "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.",
18171
+ "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.",
18154
18172
  "check": {
18155
18173
  "kind": "judge"
18156
18174
  }