@synap-core/workspace-templates 0.70.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
  },