@synap-core/workspace-templates 0.73.0 → 0.74.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synap-core/workspace-templates",
3
- "version": "0.73.0",
3
+ "version": "0.74.0",
4
4
  "type": "module",
5
5
  "description": "Canonical workspace definitions — YAML source + typed exports for browser, backend, CLI, and marketplace",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",
package/retired.yaml CHANGED
@@ -144,3 +144,25 @@ retired:
144
144
  kind: automation
145
145
  reason: This rule now comes with the CRM space; installing or updating CRM installs it.
146
146
  since: "2026-11-18"
147
+
148
+ # Founder, 30 Nov 2026 (pod session 68aca476, finding 5117209c): three
149
+ # capability SCAFFOLDS (the generator's placeholders: "<Name> capability",
150
+ # an example.com key page, one generic <slug>_api tool and a <slug>_search
151
+ # verb that writes while named like a read) came in with commit 6ec0722bf and
152
+ # were published on 26 Nov 2026. Nothing in the catalog or any repo named
153
+ # them. src/no-capability-scaffolds.test.ts keeps the catalog free of them.
154
+ - slug: github-issues
155
+ kind: capability
156
+ reason: GitHub Issues was an unfinished draft and is no longer offered.
157
+ since: "2026-11-30"
158
+
159
+ - slug: stripe-payments
160
+ kind: capability
161
+ replacedBy: stripe
162
+ reason: Stripe Payments was an unfinished draft; the Stripe capability runs your whole Stripe account instead.
163
+ since: "2026-11-30"
164
+
165
+ - slug: test-api-3
166
+ kind: capability
167
+ reason: Test API 3 was a test draft and is no longer offered.
168
+ since: "2026-11-30"
@@ -123,6 +123,21 @@ The Critique stage passes when, on every variant going to review: the `critique`
123
123
  A failing gate sends the run back to Generate, which fixes the blockers and marks them `fixed`; you
124
124
  then critique again from scratch (a fresh list, new ids) — never edit a finding to make it pass.
125
125
 
126
+ ## Critiquing an HTML exploration
127
+
128
+ A new screen explored as an HTML page (skill `synap-design`, loop section 0) is critiqued with the same
129
+ rubric, with three differences:
130
+
131
+ - `chk.manifest-only` does not apply: components are optional in an exploration. It applies again to
132
+ the built screen.
133
+ - `chk.tokens-only` reads the page's CSS: every colour, space, radius and font is a `var(--synap-…)`;
134
+ a hex, rgb or copied token value is the finding.
135
+ - `region` is a locator in the page: an element's `data-block-id`, or a CSS selector, plus the
136
+ viewport (390 or 1440) and the theme (light or dark) you saw it at. Run the `checked` tier on the
137
+ page rendered at both widths and in both themes.
138
+
139
+ Post the findings as a critique document related to the record the page is attached to.
140
+
126
141
  ## Critiquing a built screen
127
142
 
128
143
  The same rubric runs on each implemented story (`implemented-story-id`, or every story in `frame-stories`) in Verify: capture it with the
@@ -8,6 +8,13 @@ metadata:
8
8
 
9
9
  # Designing with real components
10
10
 
11
+ **The Design app board is frozen for new work (founder, 29 Nov 2026).** This skill is for designs
12
+ already on the board and for implementing any design from real components. A NEW screen is explored as
13
+ an HTML page attached to the `ui-page`, `ui-component` or `user-flow` it designs (skill `synap-design`,
14
+ loop section 0): components optional, tokens always. Hand the person the link the pod returned (the
15
+ reply's `link`), never a devbox, localhost or Design app address. Whatever the design, the screen you
16
+ build uses only real components (sections 1 and 4 below).
17
+
11
18
  A design is data, not a picture. It is **Puck JSON** whose every block is a **real component** from
12
19
  our library, so the canvas renders it with the same code the product ships and a coding agent can
13
20
  implement it without guessing. It lives in the pod as a **`ui-design`** entity. The process
package/src/builder.yaml CHANGED
@@ -2271,9 +2271,15 @@ playbooks:
2271
2271
  # who creates a design with a variant-group already set starts it by hand.
2272
2272
  # Never `run`: a person approves each start.
2273
2273
  - name: Design to implementation
2274
- 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.
2274
+ description: Take a UI design request already on the Design app board (frozen for new work; a new screen is explored as an HTML page, skill synap-design) 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.
2275
2275
  goalTemplate: >-
2276
2276
  Take this UI design ({design}) for {surface} from draft to implemented.
2277
+ The Design app board is frozen for new work (founder, 29 Nov 2026): this
2278
+ process carries designs already on the board. A NEW screen is explored
2279
+ as an HTML page attached to its ui-page, ui-component or user-flow
2280
+ (skill synap-design, loop section 0), and the person gets the link the
2281
+ pod returned, never a devbox or Design app address; once validated it
2282
+ is built from real components through the process "Build a change".
2277
2283
  Load the designing-with-real-components skill first, and design-critique
2278
2284
  for the Critique stage. GENERATE: read the Storybook component manifest
2279
2285
  (/manifests/components.json, or the Storybook MCP), the design's goal and
@@ -4054,7 +4060,7 @@ playbooks:
4054
4060
  - key: options
4055
4061
  name: 6. Design options
4056
4062
  category: started
4057
- goal: "Load synap-design, impeccable, design-brief, dataviz, artifact-design. EVOLVE the existing page (name its file and the sections kept, changed, cut); never draw from scratch. 2 or 3 variants that differ by idea, on REAL data only, each screen in all states (full, empty, failed read with retry, many waiting capped with Show all, loading), light and dark, phone width. No screen has more than 7 things above the fold. Screenshot and look before publishing. Output: design-options document and the variants (Design canvas or one artifact)."
4063
+ goal: "Load synap-design, impeccable, design-brief, dataviz, artifact-design. EVOLVE the existing page (name its file and the sections kept, changed, cut); never draw from scratch. 2 or 3 variants that differ by idea, on REAL data only, each screen in all states (full, empty, failed read with retry, many waiting capped with Show all, loading), light and dark, phone width. No screen has more than 7 things above the fold. Screenshot and look before publishing. Output: design-options document and the variants, each an HTML page attached to the user flow (synap_create_document type html, attachTo the flow; skill synap-design, loop section 0); hand the person the link the pod returned, never a devbox or Design app address. The Design canvas is frozen for new work."
4058
4064
  expectedOutputs:
4059
4065
  - { kind: document, label: Design options, relationToSubject: relates_to }
4060
4066
  - { kind: view, label: Design options view, relationToSubject: none }
@@ -4082,7 +4088,7 @@ playbooks:
4082
4088
  mode: choose
4083
4089
  stakes: commitment
4084
4090
  allowOther: true
4085
- consequence: The chosen variant goes to Design to implementation
4091
+ consequence: The chosen variant goes to Build a change (an HTML page) or to Design to implementation (a design already on the board)
4086
4092
  options:
4087
4093
  - { label: Variant A }
4088
4094
  - { label: Variant B }
@@ -4099,7 +4105,7 @@ playbooks:
4099
4105
  - key: handoff
4100
4106
  name: 10. Hand off and capture
4101
4107
  category: completed
4102
- goal: "Launch playbook Design to implementation with the chosen design. Load engineering-memory: file the decision, what we learned, and what the process got wrong; update the views skill (playbooks/design-a-user-flow/views) run notes. Close open asks; the run ends here. The flow moves to built when Design to implementation lands the design, not here."
4108
+ goal: "Hand the chosen design on: an HTML page goes to the process Build a change (built from real components); a design already on the board goes to Design to implementation. Load engineering-memory: file the decision, what we learned, and what the process got wrong; update the views skill (playbooks/design-a-user-flow/views) run notes. Close open asks; the run ends here. The flow moves to built when the chosen design is built and merged, not here."
4103
4109
  expectedOutputs:
4104
4110
  - { kind: document, label: Learnings and process notes, relationToSubject: relates_to }
4105
4111
 
@@ -0,0 +1,101 @@
1
+ /**
2
+ * github-webhooks: the verbs the pod's `inbound_source.connect` (host github,
3
+ * synap-backend `services/webhooks/hosts/github.ts`) calls by NAME once a
4
+ * person approves its card, handing the source's secret to GitHub.
5
+ *
6
+ * What the backend relies on, pinned here:
7
+ * 1. the tool and the four verb names the adapter calls, each a declarative
8
+ * pod-scope verb on that tool (the door uses only pod-wide verbs);
9
+ * 2. the secret travels ONLY in a request body: `{{secret}}` appears in no
10
+ * path, query or header of any verb;
11
+ * 3. the hook GitHub makes posts JSON (`content_type: json`, the inbound door
12
+ * reads JSON), verifies TLS (`insecure_ssl: "0"`) and is named `web`
13
+ * ("Must be passed as web", docs.github.com/en/rest/orgs/webhooks);
14
+ * 4. the list verb is a read (`readOnly`: the filing reads it under the
15
+ * caller's own gate) and the three others are writes (never `readOnly`);
16
+ * 5. the token is the installer's own, never pod-wide, never typed in clear.
17
+ *
18
+ * NOT covered: GitHub itself (no live organization) and the pod's run of these
19
+ * specs (the backend's PGlite suite drives the same specs against a fake
20
+ * GitHub). A spec changed here must be changed there too.
21
+ */
22
+ import { readFileSync } from "node:fs";
23
+ import { join } from "node:path";
24
+ import { describe, expect, it } from "vitest";
25
+
26
+ const capability = JSON.parse(
27
+ readFileSync(join(import.meta.dirname, "..", "capabilities", "github-webhooks.capability.json"), "utf8"),
28
+ ) as { meta: Record<string, any>; spec: Record<string, any> };
29
+ const { spec } = capability;
30
+ const TOOL = "github_webhooks_api";
31
+ const VERBS = ["github_list_org_hooks", "github_create_org_hook", "github_update_org_hook", "github_ping_org_hook"];
32
+ const verb = (name: string) => spec.skills.find((s: { name: string }) => s.name === name);
33
+
34
+ describe("github-webhooks — the verbs inbound_source.connect calls", () => {
35
+ it("declares the tool and exactly the four verbs, declarative, pod-wide, on that tool", () => {
36
+ expect(capability.meta.slug).toBe("github-webhooks");
37
+ expect(spec.tools.map((t: { name: string }) => t.name)).toEqual([TOOL]);
38
+ expect(spec.skills.map((s: { name: string }) => s.name).sort()).toEqual([...VERBS].sort());
39
+ for (const name of VERBS) {
40
+ const v = verb(name);
41
+ expect(v, name).toMatchObject({ kind: "declarative", scope: "pod", requires: [TOOL] });
42
+ expect(v.providerSpec.tool, name).toBe(TOOL);
43
+ }
44
+ });
45
+
46
+ it("puts the secret only in a request body, never in a path, query or header", () => {
47
+ const carrying: string[] = [];
48
+ for (const name of VERBS) {
49
+ const p = verb(name).providerSpec;
50
+ const outside = JSON.stringify({ path: p.pathTemplate, query: p.query ?? {}, headers: p.headers ?? {} });
51
+ expect(outside, name).not.toContain("{{secret}}");
52
+ if (JSON.stringify(p.body ?? {}).includes("{{secret}}")) carrying.push(name);
53
+ }
54
+ // Not vacuous: the scan sees the two verbs that do carry it.
55
+ expect(carrying.sort()).toEqual(["github_create_org_hook", "github_update_org_hook"]);
56
+ });
57
+
58
+ it("makes a JSON hook that verifies TLS, named web, with the source's URL and events", () => {
59
+ const create = verb("github_create_org_hook").providerSpec;
60
+ expect(create).toMatchObject({ method: "POST", pathTemplate: "/orgs/{{org}}/hooks" });
61
+ expect(create.body).toEqual({
62
+ name: "web",
63
+ active: true,
64
+ events: "{{events}}",
65
+ config: { url: "{{url}}", content_type: "json", secret: "{{secret}}", insecure_ssl: "0" },
66
+ });
67
+ const update = verb("github_update_org_hook").providerSpec;
68
+ expect(update).toMatchObject({ method: "PATCH", pathTemplate: "/orgs/{{org}}/hooks/{{hookId}}" });
69
+ expect(update.body).toEqual({
70
+ active: true,
71
+ events: "{{events}}",
72
+ config: { url: "{{url}}", content_type: "json", secret: "{{secret}}", insecure_ssl: "0" },
73
+ });
74
+ expect(verb("github_ping_org_hook").providerSpec).toMatchObject({
75
+ method: "POST",
76
+ pathTemplate: "/orgs/{{org}}/hooks/{{hookId}}/pings",
77
+ });
78
+ expect(verb("github_list_org_hooks").providerSpec).toMatchObject({
79
+ method: "GET",
80
+ pathTemplate: "/orgs/{{org}}/hooks",
81
+ query: { per_page: "{{perPage}}", page: "{{page}}" },
82
+ });
83
+ });
84
+
85
+ it("the list is a read; the three others are writes", () => {
86
+ expect(verb("github_list_org_hooks").metadata).toEqual({ readOnly: true });
87
+ for (const name of VERBS.slice(1)) {
88
+ expect(verb(name).metadata, name).toEqual({ verbType: "write" });
89
+ }
90
+ });
91
+
92
+ it("takes the installer's own token, as a password, never pod-wide", () => {
93
+ const token = spec.params.find((p: { name: string }) => p.name === "githubToken");
94
+ expect(token).toMatchObject({ type: "password", required: true });
95
+ expect(token.description).toContain("Webhooks: Read and write");
96
+ expect(spec.vault).toHaveLength(1);
97
+ expect(spec.vault[0]).toMatchObject({ ref: "githubWebhooksTokenSecret", value: "{{githubToken}}" });
98
+ expect(spec.vault[0].isPodWide ?? false).toBe(false);
99
+ expect(spec.tools[0].credentialRef).toBe("githubWebhooksTokenSecret");
100
+ });
101
+ });
@@ -0,0 +1,96 @@
1
+ /**
2
+ * No capability SCAFFOLD ships in the catalog (founder, 30 Nov 2026, finding
3
+ * 5117209c, pod session 68aca476).
4
+ *
5
+ * Landing on app-bases main publishes every `capabilities/*.capability.json`
6
+ * (isPublic manifests reach every pod's market). Three generator outputs
7
+ * (github-issues, stripe-payments, test-api-3) were published that way on
8
+ * 26 Nov 2026: placeholder listing, an example.com key page, a generic
9
+ * `<slug>_api` tool and a `<slug>_search` verb that writes (propose.entity)
10
+ * while named like a read, which turned control-plane-api's
11
+ * `capability-templates.test.ts` red. They are retired in `retired.yaml`.
12
+ *
13
+ * A file is a scaffold when it still carries ANY of the capability
14
+ * generator's placeholders (synap-cli `capability-scaffold`):
15
+ * 1. the default listing text `<name> capability` (meta or spec description);
16
+ * 2. the placeholder key page `https://example.com/dashboard/keys`;
17
+ * 3. the generated verb bodies (`// Search skill — calls the API…`,
18
+ * `// Create skill — POST to API…`).
19
+ * The set scanned is DERIVED from the directory: a new file joins by existing.
20
+ *
21
+ * NOT covered: a scaffold whose author rewrote all three placeholders but kept
22
+ * the generic verbs (that is a real capability by then, and the CP test still
23
+ * checks its verb names against what its code does).
24
+ */
25
+ import { readdirSync, readFileSync } from "node:fs";
26
+ import { join } from "node:path";
27
+ import { describe, expect, it } from "vitest";
28
+
29
+ const DIR = join(import.meta.dirname, "..", "capabilities");
30
+ const SUFFIX = ".capability.json";
31
+
32
+ type Manifest = {
33
+ meta?: { slug?: string; name?: string; description?: string };
34
+ spec?: {
35
+ name?: string;
36
+ description?: string;
37
+ params?: Array<{ obtain?: { url?: string } }>;
38
+ skills?: Array<{ name?: string; code?: string }>;
39
+ };
40
+ };
41
+
42
+ const PLACEHOLDER_KEY_PAGE = "https://example.com/dashboard/keys";
43
+ const GENERATED_CODE = [/^\/\/ Search skill — calls the API/, /^\/\/ Create skill — POST to API/];
44
+
45
+ /** Every generator placeholder a manifest still carries (empty = not a scaffold). */
46
+ export function scaffoldMarks(m: Manifest): string[] {
47
+ const marks: string[] = [];
48
+ const name = m.meta?.name ?? m.spec?.name ?? "";
49
+ for (const [where, text] of [
50
+ ["meta.description", m.meta?.description],
51
+ ["spec.description", m.spec?.description],
52
+ ] as const) {
53
+ if (name && text?.trim() === `${name} capability`) marks.push(`${where} is the placeholder "${text}"`);
54
+ }
55
+ for (const p of m.spec?.params ?? [])
56
+ if (p.obtain?.url === PLACEHOLDER_KEY_PAGE) marks.push(`a param's obtain.url is ${PLACEHOLDER_KEY_PAGE}`);
57
+ for (const s of m.spec?.skills ?? [])
58
+ if (s.code && GENERATED_CODE.some((re) => re.test(s.code!.trimStart())))
59
+ marks.push(`verb ${s.name} is the generated body`);
60
+ return marks;
61
+ }
62
+
63
+ const files = readdirSync(DIR)
64
+ .filter((f) => f.endsWith(SUFFIX))
65
+ .sort();
66
+
67
+ describe("no capability scaffold ships in the catalog", () => {
68
+ it("reads the whole capability directory (non-vacuity)", () => {
69
+ // 56 manifests on 30 Nov 2026; a wrong path or a broken glob reads 0.
70
+ expect(files.length).toBeGreaterThanOrEqual(40);
71
+ expect(files).toContain("stripe.capability.json");
72
+ });
73
+
74
+ it("still recognises a generator output (self-check on a literal scaffold)", () => {
75
+ const sample: Manifest = {
76
+ meta: { slug: "acme", name: "Acme", description: "Acme capability" },
77
+ spec: {
78
+ name: "Acme",
79
+ description: "Acme capability",
80
+ params: [{ obtain: { url: PLACEHOLDER_KEY_PAGE } }],
81
+ skills: [
82
+ { name: "acme_search", code: "// Search skill — calls the API and proposes results as acme entities\n" },
83
+ { name: "acme_create", code: "// Create skill — POST to API and propose the created entity\n" },
84
+ ],
85
+ },
86
+ };
87
+ expect(scaffoldMarks(sample)).toHaveLength(5);
88
+ // A real listing that merely ends in "capability" is not a mark.
89
+ expect(scaffoldMarks({ meta: { name: "Acme", description: "Read Acme orders with this capability" } })).toEqual([]);
90
+ });
91
+
92
+ it.each(files)("%s carries no generator placeholder", (file) => {
93
+ const manifest = JSON.parse(readFileSync(join(DIR, file), "utf8")) as Manifest;
94
+ expect(scaffoldMarks(manifest), `${file} is a capability scaffold`).toEqual([]);
95
+ });
96
+ });
package/src/templates.ts CHANGED
@@ -7034,8 +7034,8 @@ const DATA = {
7034
7034
  },
7035
7035
  {
7036
7036
  "name": "Design to implementation",
7037
- "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.",
7038
- "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.",
7037
+ "description": "Take a UI design request already on the Design app board (frozen for new work; a new screen is explored as an HTML page, skill synap-design) 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.",
7038
+ "goalTemplate": "Take this UI design ({design}) for {surface} from draft to implemented. The Design app board is frozen for new work (founder, 29 Nov 2026): this process carries designs already on the board. A NEW screen is explored as an HTML page attached to its ui-page, ui-component or user-flow (skill synap-design, loop section 0), and the person gets the link the pod returned, never a devbox or Design app address; once validated it is built from real components through the process \"Build a change\". 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.",
7039
7039
  "subjectProfile": {
7040
7040
  "profileSlug": "ui-design"
7041
7041
  },
@@ -9555,7 +9555,7 @@ const DATA = {
9555
9555
  "key": "options",
9556
9556
  "name": "6. Design options",
9557
9557
  "category": "started",
9558
- "goal": "Load synap-design, impeccable, design-brief, dataviz, artifact-design. EVOLVE the existing page (name its file and the sections kept, changed, cut); never draw from scratch. 2 or 3 variants that differ by idea, on REAL data only, each screen in all states (full, empty, failed read with retry, many waiting capped with Show all, loading), light and dark, phone width. No screen has more than 7 things above the fold. Screenshot and look before publishing. Output: design-options document and the variants (Design canvas or one artifact).",
9558
+ "goal": "Load synap-design, impeccable, design-brief, dataviz, artifact-design. EVOLVE the existing page (name its file and the sections kept, changed, cut); never draw from scratch. 2 or 3 variants that differ by idea, on REAL data only, each screen in all states (full, empty, failed read with retry, many waiting capped with Show all, loading), light and dark, phone width. No screen has more than 7 things above the fold. Screenshot and look before publishing. Output: design-options document and the variants, each an HTML page attached to the user flow (synap_create_document type html, attachTo the flow; skill synap-design, loop section 0); hand the person the link the pod returned, never a devbox or Design app address. The Design canvas is frozen for new work.",
9559
9559
  "expectedOutputs": [
9560
9560
  {
9561
9561
  "kind": "document",
@@ -9614,7 +9614,7 @@ const DATA = {
9614
9614
  "mode": "choose",
9615
9615
  "stakes": "commitment",
9616
9616
  "allowOther": true,
9617
- "consequence": "The chosen variant goes to Design to implementation",
9617
+ "consequence": "The chosen variant goes to Build a change (an HTML page) or to Design to implementation (a design already on the board)",
9618
9618
  "options": [
9619
9619
  {
9620
9620
  "label": "Variant A"
@@ -9658,7 +9658,7 @@ const DATA = {
9658
9658
  "key": "handoff",
9659
9659
  "name": "10. Hand off and capture",
9660
9660
  "category": "completed",
9661
- "goal": "Launch playbook Design to implementation with the chosen design. Load engineering-memory: file the decision, what we learned, and what the process got wrong; update the views skill (playbooks/design-a-user-flow/views) run notes. Close open asks; the run ends here. The flow moves to built when Design to implementation lands the design, not here.",
9661
+ "goal": "Hand the chosen design on: an HTML page goes to the process Build a change (built from real components); a design already on the board goes to Design to implementation. Load engineering-memory: file the decision, what we learned, and what the process got wrong; update the views skill (playbooks/design-a-user-flow/views) run notes. Close open asks; the run ends here. The flow moves to built when the chosen design is built and merged, not here.",
9662
9662
  "expectedOutputs": [
9663
9663
  {
9664
9664
  "kind": "document",
@@ -1,176 +0,0 @@
1
- {
2
- "apiVersion": "synap/v1",
3
- "kind": "capability",
4
- "meta": {
5
- "slug": "github-issues",
6
- "name": "GitHub Issues",
7
- "description": "GitHub Issues capability",
8
- "tags": [
9
- "capability"
10
- ],
11
- "isPublic": true,
12
- "syncByDefault": true
13
- },
14
- "spec": {
15
- "key": "github-issues",
16
- "name": "GitHub Issues",
17
- "description": "GitHub Issues capability",
18
- "params": [
19
- {
20
- "name": "github-issuesApiKey",
21
- "label": "GitHub Issues API Key",
22
- "type": "text",
23
- "required": true,
24
- "description": "The GitHub Issues API key. Stored server-encrypted in the vault; never persisted in the template.",
25
- "obtain": {
26
- "url": "https://example.com/dashboard/keys",
27
- "steps": [
28
- "Obtain your API key from the provider dashboard",
29
- "Copy and paste it here"
30
- ]
31
- }
32
- }
33
- ],
34
- "vault": [
35
- {
36
- "ref": "apiKeySecret",
37
- "name": "{{name}} API key",
38
- "value": "{{github-issuesApiKey}}",
39
- "type": "api_key",
40
- "description": "API key for the GitHub Issues connector."
41
- }
42
- ],
43
- "tools": [
44
- {
45
- "name": "github-issues_api",
46
- "kind": "api",
47
- "description": "Authenticated HTTP access to the GitHub Issues API.",
48
- "credentialRef": "apiKeySecret",
49
- "executor": "is-agent",
50
- "config": {
51
- "baseUrl": "https://api.github.com",
52
- "auth": {
53
- "in": "header",
54
- "name": "Authorization",
55
- "prefix": "Bearer "
56
- }
57
- }
58
- }
59
- ],
60
- "skills": [
61
- {
62
- "name": "github-issues_search",
63
- "kind": "code",
64
- "scope": "pod",
65
- "requires": [
66
- "github-issues_api"
67
- ],
68
- "executionMode": "async",
69
- "timeoutSeconds": 60,
70
- "intent": "search_external",
71
- "description": "Search searchs via the GithubIssues API and propose results as github-issues entities.",
72
- "parameters": {
73
- "query": "string",
74
- "limit": "number?",
75
- "page": "number?"
76
- },
77
- "code": "// Search skill — calls the API and proposes results as github-issues entities\nconst query = String(args?.query ?? '').trim();\nif (!query) throw new Error('query is required');\n\nconst limit = args?.limit ? Math.min(Number(args.limit), 100) : 20;\nconst page = args?.page ? Math.max(Number(args.page), 1) : 1;\nconst path = args?.path || '/search';\n\nconst payload = { q: query, per_page: limit, page };\n\nconst res = await callProvider('github-issues_api', 'GET', path, payload);\nconst ok = typeof res?.status === 'number' && res.status >= 200 && res.status < 300;\nconst body = res?.body ?? res;\nconst items = Array.isArray(body) ? body : (body?.items ?? body?.data ?? body?.results ?? []);\n\nif (!ok || items.length === 0) {\n return { success: false, message: 'No results found' };\n}\n\nconst proposed = [];\nfor (const item of items) {\n const r = await propose.entity({\n profileSlug: 'github-issues',\n title: String(item?.title ?? item?.name ?? item?.id ?? 'result'),\n properties: { ...item, externalId: String(item?.id ?? item?.externalId ?? '') },\n });\n proposed.push(r);\n}\n\nreturn { success: true, count: items.length, proposed };"
78
- },
79
- {
80
- "name": "github-issues_create",
81
- "kind": "code",
82
- "scope": "pod",
83
- "requires": [
84
- "github-issues_api"
85
- ],
86
- "executionMode": "async",
87
- "timeoutSeconds": 60,
88
- "intent": "capture_into_pod",
89
- "description": "Create a new create via the GithubIssues API and propose it as a github-issues entity.",
90
- "parameters": {
91
- "title": "string",
92
- "properties": "object?",
93
- "externalId": "string?"
94
- },
95
- "code": "// Create skill — POST to API and propose the created entity\nconst title = String(args?.title ?? '').trim();\nif (!title) throw new Error('title is required');\n\nconst path = args?.path || '/create';\nconst payload = { ...args };\ndelete payload.path;\ndelete payload.title;\n\nconst res = await callProvider('github-issues_api', 'POST', path, payload);\nconst ok = typeof res?.status === 'number' && res.status >= 200 && res.status < 300;\nconst body = res?.body ?? res;\n\nif (!ok) {\n throw new Error(`create failed (${res?.status ?? 'unknown'})`);\n}\n\nconst r = await propose.entity({\n profileSlug: 'github-issues',\n title,\n properties: { ...body, externalId: String(body?.id ?? body?.externalId ?? '') },\n});\n\nreturn { success: true, proposed: r };"
96
- },
97
- {
98
- "name": "github-issues_update",
99
- "kind": "code",
100
- "scope": "pod",
101
- "requires": [
102
- "github-issues_api"
103
- ],
104
- "executionMode": "async",
105
- "timeoutSeconds": 60,
106
- "intent": "manage_file",
107
- "description": "Update an existing update via the GithubIssues API.",
108
- "parameters": {
109
- "externalId": "string",
110
- "title": "string?",
111
- "properties": "object?",
112
- "status": "string?"
113
- },
114
- "code": "// Update skill — PATCH/PUT to API\nconst externalId = String(args?.externalId ?? '').trim();\nif (!externalId) throw new Error('externalId is required');\n\nconst path = args?.path || `/${externalId}`;\nconst payload = { ...args };\ndelete payload.path;\ndelete payload.externalId;\n\nconst res = await callProvider('github-issues_api', 'PATCH', path, payload);\nconst ok = typeof res?.status === 'number' && res.status >= 200 && res.status < 300;\nconst body = res?.body ?? res;\n\nif (!ok) {\n throw new Error(`update failed (${res?.status ?? 'unknown'})`);\n}\n\nconst r = await propose.entity({\n profileSlug: 'github-issues',\n title: String(body?.title ?? body?.name ?? externalId),\n properties: { ...body, externalId },\n});\n\nreturn { success: true, proposed: r };"
115
- },
116
- {
117
- "name": "github-issues_delete",
118
- "kind": "code",
119
- "scope": "pod",
120
- "requires": [
121
- "github-issues_api"
122
- ],
123
- "executionMode": "async",
124
- "timeoutSeconds": 60,
125
- "intent": "manage_file",
126
- "description": "Delete a delete via the GithubIssues API.",
127
- "parameters": {
128
- "externalId": "string"
129
- },
130
- "code": "// Delete skill — DELETE from API\nconst externalId = String(args?.externalId ?? '').trim();\nif (!externalId) throw new Error('externalId is required');\n\nconst path = args?.path || `/${externalId}`;\n\nconst res = await callProvider('github-issues_api', 'DELETE', path);\nconst ok = typeof res?.status === 'number' && res.status >= 200 && res.status < 300;\n\nif (!ok) {\n throw new Error(`delete failed (${res?.status ?? 'unknown'})`);\n}\n\nreturn { success: true, deleted: externalId };"
131
- },
132
- {
133
- "name": "github-issues_list",
134
- "kind": "code",
135
- "scope": "pod",
136
- "requires": [
137
- "github-issues_api"
138
- ],
139
- "executionMode": "async",
140
- "timeoutSeconds": 60,
141
- "intent": "list_records",
142
- "description": "List lists via the GithubIssues API.",
143
- "parameters": {
144
- "limit": "number?",
145
- "page": "number?",
146
- "status": "string?"
147
- },
148
- "code": "// List skill — GET list from API\nconst limit = args?.limit ? Math.min(Number(args.limit), 100) : 20;\nconst page = args?.page ? Math.max(Number(args.page), 1) : 1;\nconst status = args?.status ? String(args.status).trim() : '';\nconst path = args?.path || '/list';\n\nconst payload = { per_page: limit, page };\nif (status) payload.status = status;\n\nconst res = await callProvider('github-issues_api', 'GET', path, payload);\nconst ok = typeof res?.status === 'number' && res.status >= 200 && res.status < 300;\nconst body = res?.body ?? res;\nconst items = Array.isArray(body) ? body : (body?.items ?? body?.data ?? body?.results ?? []);\n\nif (!ok) {\n return { success: false, message: 'List request failed' };\n}\n\nreturn { success: true, count: items.length, items };"
149
- },
150
- {
151
- "name": "github-issues_get",
152
- "kind": "code",
153
- "scope": "pod",
154
- "requires": [
155
- "github-issues_api"
156
- ],
157
- "executionMode": "async",
158
- "timeoutSeconds": 60,
159
- "intent": "fetch_record",
160
- "description": "Get a single get by external ID via the GithubIssues API.",
161
- "parameters": {
162
- "externalId": "string"
163
- },
164
- "code": "// Get skill — GET single entity by external ID\nconst externalId = String(args?.externalId ?? '').trim();\nif (!externalId) throw new Error('externalId is required');\n\nconst path = args?.path || `/${externalId}`;\n\nconst res = await callProvider('github-issues_api', 'GET', path);\nconst ok = typeof res?.status === 'number' && res.status >= 200 && res.status < 300;\nconst body = res?.body ?? res;\n\nif (!ok || !body) {\n return { success: false, message: 'Not found' };\n}\n\nconst r = await propose.entity({\n profileSlug: 'github-issues',\n title: String(body?.title ?? body?.name ?? externalId),\n properties: { ...body, externalId },\n});\n\nreturn { success: true, proposed: r };"
165
- }
166
- ],
167
- "provides": [
168
- "search_external",
169
- "capture_into_pod",
170
- "manage_file",
171
- "list_records",
172
- "fetch_record"
173
- ]
174
- },
175
- "dependencies": []
176
- }