@synap-core/workspace-templates 0.72.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/capabilities/github-webhooks.capability.json +308 -0
- package/dist/index.js +66 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/retired.yaml +22 -0
- package/skills/design-critique/SKILL.md +15 -0
- package/skills/designing-with-real-components/SKILL.md +7 -0
- package/src/builder-work-views.template.test.ts +103 -7
- package/src/builder.yaml +41 -6
- package/src/github-webhooks.test.ts +101 -0
- package/src/kanban-grouping.test.ts +16 -0
- package/src/no-capability-scaffolds.test.ts +96 -0
- package/src/templates.ts +37 -5
- package/src/validate.ts +56 -5
- package/capabilities/github-issues.capability.json +0 -176
- package/capabilities/stripe-payments.capability.json +0 -176
- package/capabilities/test-api-3.capability.json +0 -104
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synap-core/workspace-templates",
|
|
3
|
-
"version": "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
|
|
@@ -17,17 +17,32 @@
|
|
|
17
17
|
* it proves the criteria and the field AGREE, not which values they hold (the
|
|
18
18
|
* first test pins those). It goes red when only one side changes.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* The Claude Code session (backend#1449, migration 0468): the POD writes
|
|
21
|
+
* `workedIn` / `workedInAll` on a work from the sessions that took it as
|
|
22
|
+
* subject. The catalog only DECLARES them, so a board can group by
|
|
23
|
+
* `workedIn` and a view can filter on `workedInAll`; nothing in the catalog
|
|
24
|
+
* may give them a value (the pod's triggers would strip it anyway). The key
|
|
25
|
+
* set is pinned to the backend's `SERVER_DERIVED_PROPERTY_KEYS` when the
|
|
26
|
+
* synap-backend sibling is beside this repo (the devbox gate tree; skipped,
|
|
27
|
+
* with a warning, where it is absent).
|
|
28
|
+
*
|
|
29
|
+
* Not covered: what the pod actually writes, and how a board labels a column
|
|
30
|
+
* (the humanized id): NEEDS-DOGFOOD on a pod with the Builder updated.
|
|
22
31
|
*/
|
|
32
|
+
import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
|
|
33
|
+
import { dirname, join } from "node:path";
|
|
34
|
+
import { fileURLToPath } from "node:url";
|
|
23
35
|
import { describe, expect, it } from "vitest";
|
|
24
36
|
import { readYamlTemplates } from "./generate.mjs";
|
|
37
|
+
import { SERVER_DERIVED_PROPERTY_KEYS, validateTemplate } from "./validate.js";
|
|
38
|
+
import type { WorkspaceYaml } from "./types.js";
|
|
25
39
|
|
|
26
40
|
type Property = {
|
|
27
41
|
slug: string;
|
|
28
42
|
valueType: string;
|
|
29
43
|
inputType?: string;
|
|
30
44
|
enumValues?: string[];
|
|
45
|
+
label?: string;
|
|
31
46
|
constraints?: { defaultValue?: unknown };
|
|
32
47
|
};
|
|
33
48
|
type View = {
|
|
@@ -50,8 +65,8 @@ type Template = {
|
|
|
50
65
|
playbooks: Playbook[];
|
|
51
66
|
};
|
|
52
67
|
|
|
53
|
-
const
|
|
54
|
-
|
|
68
|
+
const corpus = readYamlTemplates();
|
|
69
|
+
const builder = corpus.find((t) => t.slug === "builder-workspace")!.data as unknown as Template;
|
|
55
70
|
const feature = builder.profiles.find((p) => p.slug === "devplane_feature")!;
|
|
56
71
|
const prop = (slug: string) => feature.properties.find((p) => p.slug === slug);
|
|
57
72
|
const bare = (field: string) => field.replace(/^properties\./, "");
|
|
@@ -85,15 +100,15 @@ describe("the works views", () => {
|
|
|
85
100
|
expect(byName("Feature cards")).toMatchObject({ type: "grid", config: { cardSettings: { colorField: "change" } } });
|
|
86
101
|
});
|
|
87
102
|
|
|
88
|
-
it("every field a works view names is a property of the feature (non-vacuity:
|
|
89
|
-
const works = ["Feature Board", "Features by type", "Feature list", "Feature cards"].map(byName);
|
|
103
|
+
it("every field a works view names is a property of the feature (non-vacuity: 5 views)", () => {
|
|
104
|
+
const works = ["Feature Board", "Features by type", "Feature list", "Feature cards", "Features by Claude Code session"].map(byName);
|
|
90
105
|
expect(works.every(Boolean)).toBe(true);
|
|
91
106
|
const named = works.flatMap((v) => [
|
|
92
107
|
...(v!.config?.cardFields ?? []),
|
|
93
108
|
...(v!.config?.groupByField ? [v!.config.groupByField] : []),
|
|
94
109
|
...(v!.config?.cardSettings?.colorField ? [v!.config.cardSettings.colorField] : []),
|
|
95
110
|
]);
|
|
96
|
-
expect(named).toEqual(expect.arrayContaining(["change", "repos"]));
|
|
111
|
+
expect(named.map(bare)).toEqual(expect.arrayContaining(["change", "repos", "workedIn"]));
|
|
97
112
|
expect(named.map(bare).filter((f) => !prop(f))).toEqual([]);
|
|
98
113
|
});
|
|
99
114
|
});
|
|
@@ -109,3 +124,84 @@ describe("the Shape step teaches the same types the field holds", () => {
|
|
|
109
124
|
}
|
|
110
125
|
});
|
|
111
126
|
});
|
|
127
|
+
|
|
128
|
+
describe("the Claude Code session: the pod writes it, the catalog only declares it", () => {
|
|
129
|
+
const PKG = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
130
|
+
const MONO = join(PKG, "../../..");
|
|
131
|
+
const BACKEND_KEYS = join(MONO, "synap-backend/packages/database/src/utils/worked-in.ts");
|
|
132
|
+
|
|
133
|
+
it("workedIn (one string) and workedInAll (a list) are declared with plain labels and no value", () => {
|
|
134
|
+
expect(prop("workedIn")).toMatchObject({ valueType: "string", label: "Claude Code session" });
|
|
135
|
+
expect(prop("workedInAll")).toMatchObject({ valueType: "array", label: "All Claude Code sessions" });
|
|
136
|
+
for (const slug of SERVER_DERIVED_PROPERTY_KEYS) {
|
|
137
|
+
expect({ slug, enumValues: prop(slug)?.enumValues, constraints: prop(slug)?.constraints }).toEqual({
|
|
138
|
+
slug,
|
|
139
|
+
enumValues: undefined,
|
|
140
|
+
constraints: undefined,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
it("a board groups works by workedIn, with Feature Board's cards", () => {
|
|
146
|
+
const board = builder.views.find((v) => v.name === "Features by Claude Code session");
|
|
147
|
+
const featureBoard = builder.views.find((v) => v.name === "Feature Board")!;
|
|
148
|
+
expect(board).toMatchObject({ type: "kanban", scopeProfileSlug: "devplane_feature", config: { groupByField: "properties.workedIn" } });
|
|
149
|
+
expect(board!.config!.cardFields).toEqual(featureBoard.config!.cardFields);
|
|
150
|
+
expect(board!.config!.cardSettings).toEqual(featureBoard.config!.cardSettings);
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
it("no template, example, playbook, view filter or automation in the catalog names them otherwise", () => {
|
|
154
|
+
// Every YAML template, with the two declarations and the one grouping removed.
|
|
155
|
+
const stray = corpus.flatMap((t) => {
|
|
156
|
+
const data = structuredClone(t.data) as unknown as Template;
|
|
157
|
+
if (t.slug === "builder-workspace") {
|
|
158
|
+
const f = data.profiles.find((p) => p.slug === "devplane_feature")!;
|
|
159
|
+
f.properties = f.properties.filter((p) => !SERVER_DERIVED_PROPERTY_KEYS.includes(p.slug));
|
|
160
|
+
data.views = data.views.filter((v) => v.name !== "Features by Claude Code session");
|
|
161
|
+
}
|
|
162
|
+
return SERVER_DERIVED_PROPERTY_KEYS.some((k) => JSON.stringify(data).includes(k)) ? [t.slug] : [];
|
|
163
|
+
});
|
|
164
|
+
expect(stray).toEqual([]);
|
|
165
|
+
// Every other catalog file (automations, capabilities, skills, agents, views).
|
|
166
|
+
const files: string[] = [];
|
|
167
|
+
const walk = (dir: string) => {
|
|
168
|
+
if (!existsSync(dir)) return;
|
|
169
|
+
for (const name of readdirSync(dir)) {
|
|
170
|
+
const path = join(dir, name);
|
|
171
|
+
if (statSync(path).isDirectory()) walk(path);
|
|
172
|
+
else files.push(path);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
for (const dir of ["automations", "capabilities", "skills", "agents", "views"]) walk(join(PKG, dir));
|
|
176
|
+
expect(files.length).toBeGreaterThan(50);
|
|
177
|
+
const named = files.filter((f) => SERVER_DERIVED_PROPERTY_KEYS.some((k) => readFileSync(f, "utf8").includes(k)));
|
|
178
|
+
expect(named).toEqual([]);
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
it("a template that gives them a value is refused (property-server-derived-value)", () => {
|
|
182
|
+
const data = structuredClone(builder) as unknown as Template;
|
|
183
|
+
data.profiles.find((p) => p.slug === "devplane_feature")!.properties.find((p) => p.slug === "workedIn")!.constraints = {
|
|
184
|
+
defaultValue: "claude-code:x",
|
|
185
|
+
};
|
|
186
|
+
const rules = validateTemplate(data as unknown as WorkspaceYaml, { corpus: corpus.map((t) => t.data as WorkspaceYaml) })
|
|
187
|
+
.errors.map((e) => e.rule);
|
|
188
|
+
expect(rules).toContain("property-server-derived-value");
|
|
189
|
+
const clean = validateTemplate(builder as unknown as WorkspaceYaml, { corpus: corpus.map((t) => t.data as WorkspaceYaml) })
|
|
190
|
+
.errors.map((e) => e.rule);
|
|
191
|
+
expect(clean).not.toContain("property-server-derived-value");
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
const hasBackend = existsSync(BACKEND_KEYS);
|
|
195
|
+
if (!hasBackend) console.warn(`[builder-work-views] SKIP the backend pin: ${BACKEND_KEYS} is absent`);
|
|
196
|
+
it.skipIf(!hasBackend)("the key set equals the backend's SERVER_DERIVED_PROPERTY_KEYS", () => {
|
|
197
|
+
const text = readFileSync(BACKEND_KEYS, "utf8");
|
|
198
|
+
const consts = Object.fromEntries(
|
|
199
|
+
[...text.matchAll(/export const (\w+) = "([^"]+)";/g)].map((m) => [m[1], m[2]])
|
|
200
|
+
);
|
|
201
|
+
const set = text.match(/SERVER_DERIVED_PROPERTY_KEYS[^=]*=\s*new Set\(\[([^\]]*)\]\)/);
|
|
202
|
+
expect(set).not.toBeNull();
|
|
203
|
+
const keys = set![1].split(",").map((s) => s.trim()).filter(Boolean).map((id) => consts[id] ?? id.replace(/"/g, ""));
|
|
204
|
+
expect(keys.length).toBeGreaterThanOrEqual(2);
|
|
205
|
+
expect([...keys].sort()).toEqual([...SERVER_DERIVED_PROPERTY_KEYS].sort());
|
|
206
|
+
});
|
|
207
|
+
});
|
package/src/builder.yaml
CHANGED
|
@@ -219,6 +219,25 @@ profiles:
|
|
|
219
219
|
valueType: array
|
|
220
220
|
inputType: tags
|
|
221
221
|
description: "The repositories this work touches, each as <owner>/<repo> (e.g. Synap-core/backend). Set when the work is shaped."
|
|
222
|
+
# The Claude Code sessions that worked this work (founder, 30 Nov 2026,
|
|
223
|
+
# cockpit plan 488556d7, option A; backend#1449, migration 0468). The POD
|
|
224
|
+
# writes both from the sessions that took the work as subject: database
|
|
225
|
+
# triggers keep them read-only for every other writer and strip them from
|
|
226
|
+
# an insert. Declared here only so a saved view can show and filter them
|
|
227
|
+
# (filters need a property definition). So: no default, no enumValues, and
|
|
228
|
+
# no example, playbook or automation in the catalog ever sets them.
|
|
229
|
+
# Value `<harness>:<conversationId>` (e.g. `claude-code:3ea0b8f5-...`);
|
|
230
|
+
# absent when no session worked it, null when none named a conversation.
|
|
231
|
+
- slug: workedIn
|
|
232
|
+
label: Claude Code session
|
|
233
|
+
valueType: string
|
|
234
|
+
inputType: text
|
|
235
|
+
description: "Written by the pod: the Claude Code session (<harness>:<conversation id>) that most recently started a session on this work. Read-only."
|
|
236
|
+
- slug: workedInAll
|
|
237
|
+
label: All Claude Code sessions
|
|
238
|
+
valueType: array
|
|
239
|
+
inputType: tags
|
|
240
|
+
description: "Written by the pod: every Claude Code session that worked this work, newest first. Read-only."
|
|
222
241
|
- slug: linkedApp
|
|
223
242
|
label: Linked App
|
|
224
243
|
valueType: string
|
|
@@ -1957,8 +1976,7 @@ views:
|
|
|
1957
1976
|
# The works views (founder, 30 Nov 2026, cockpit plan 488556d7): the same
|
|
1958
1977
|
# works sorted by type, as a list and as cards, so every renderer can offer
|
|
1959
1978
|
# them. Filtering by type or repo is the view's filter bar, over `change` and
|
|
1960
|
-
# `repos
|
|
1961
|
-
# pod read (the session holds that id, the feature does not).
|
|
1979
|
+
# `repos`; by Claude Code session, over the pod-written `workedInAll`.
|
|
1962
1980
|
- name: Features by type
|
|
1963
1981
|
slug: features-by-type
|
|
1964
1982
|
type: kanban
|
|
@@ -1982,6 +2000,17 @@ views:
|
|
|
1982
2000
|
config:
|
|
1983
2001
|
cardFields: [change, featureStatus, repos]
|
|
1984
2002
|
cardSettings: { colorField: change }
|
|
2003
|
+
# One column per Claude Code session (the distinct values of the pod-written
|
|
2004
|
+
# `workedIn`; a work no session worked has no value and no column).
|
|
2005
|
+
- name: Features by Claude Code session
|
|
2006
|
+
slug: features-by-claude-code-session
|
|
2007
|
+
type: kanban
|
|
2008
|
+
scopeProfileSlug: devplane_feature
|
|
2009
|
+
description: Every work grouped by the Claude Code session that last worked it, each card marked with its type.
|
|
2010
|
+
config:
|
|
2011
|
+
groupByField: properties.workedIn
|
|
2012
|
+
cardFields: [change, priority, repos]
|
|
2013
|
+
cardSettings: { colorField: change }
|
|
1985
2014
|
- name: Changes by state
|
|
1986
2015
|
slug: changes-by-state
|
|
1987
2016
|
type: kanban
|
|
@@ -2242,9 +2271,15 @@ playbooks:
|
|
|
2242
2271
|
# who creates a design with a variant-group already set starts it by hand.
|
|
2243
2272
|
# Never `run`: a person approves each start.
|
|
2244
2273
|
- name: Design to implementation
|
|
2245
|
-
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.
|
|
2246
2275
|
goalTemplate: >-
|
|
2247
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".
|
|
2248
2283
|
Load the designing-with-real-components skill first, and design-critique
|
|
2249
2284
|
for the Critique stage. GENERATE: read the Storybook component manifest
|
|
2250
2285
|
(/manifests/components.json, or the Storybook MCP), the design's goal and
|
|
@@ -4025,7 +4060,7 @@ playbooks:
|
|
|
4025
4060
|
- key: options
|
|
4026
4061
|
name: 6. Design options
|
|
4027
4062
|
category: started
|
|
4028
|
-
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
|
|
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."
|
|
4029
4064
|
expectedOutputs:
|
|
4030
4065
|
- { kind: document, label: Design options, relationToSubject: relates_to }
|
|
4031
4066
|
- { kind: view, label: Design options view, relationToSubject: none }
|
|
@@ -4053,7 +4088,7 @@ playbooks:
|
|
|
4053
4088
|
mode: choose
|
|
4054
4089
|
stakes: commitment
|
|
4055
4090
|
allowOther: true
|
|
4056
|
-
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)
|
|
4057
4092
|
options:
|
|
4058
4093
|
- { label: Variant A }
|
|
4059
4094
|
- { label: Variant B }
|
|
@@ -4070,7 +4105,7 @@ playbooks:
|
|
|
4070
4105
|
- key: handoff
|
|
4071
4106
|
name: 10. Hand off and capture
|
|
4072
4107
|
category: completed
|
|
4073
|
-
goal: "
|
|
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."
|
|
4074
4109
|
expectedOutputs:
|
|
4075
4110
|
- { kind: document, label: Learnings and process notes, relationToSubject: relates_to }
|
|
4076
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
|
+
});
|
|
@@ -54,6 +54,22 @@ describe("kanban grouping — view-kanban-group-*", () => {
|
|
|
54
54
|
expect(rules(make({ config: { groupByField: "ghost" } }))).toEqual(["view-kanban-group-unknown"]);
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
+
it("a string the pod derives (workedIn) groups by its distinct values; any other free text is still refused", () => {
|
|
58
|
+
const withProps = (extra: Record<string, unknown>[], groupByField: string) => {
|
|
59
|
+
const t = make({ config: { groupByField } });
|
|
60
|
+
(t.profiles[0].properties as unknown as Record<string, unknown>[]).push(...extra);
|
|
61
|
+
return rules(t);
|
|
62
|
+
};
|
|
63
|
+
const workedIn = { slug: "workedIn", label: "Claude Code session", valueType: "string", inputType: "text" };
|
|
64
|
+
expect(withProps([workedIn], "properties.workedIn")).toEqual([]);
|
|
65
|
+
// The exception is the KEY, not any string: a free-text field is refused,
|
|
66
|
+
// and so is workedIn when the kind does not declare it.
|
|
67
|
+
expect(withProps([{ slug: "owner", label: "Owner", valueType: "string", inputType: "text" }], "owner")).toEqual(["view-kanban-group-unknown"]);
|
|
68
|
+
expect(withProps([], "workedIn")).toEqual(["view-kanban-group-unknown"]);
|
|
69
|
+
// workedInAll is a list: one card has several values, it is no column key.
|
|
70
|
+
expect(withProps([{ slug: "workedInAll", label: "All", valueType: "array", inputType: "tags" }], "workedInAll")).toEqual(["view-kanban-group-unknown"]);
|
|
71
|
+
});
|
|
72
|
+
|
|
57
73
|
it("a kind with no declaration in reach (a system kind) is not judged", () => {
|
|
58
74
|
expect(rules(make({ scopeProfileSlug: "task", config: { groupByField: "anything" } }))).toEqual([]);
|
|
59
75
|
});
|
|
@@ -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
|
@@ -3820,6 +3820,20 @@ const DATA = {
|
|
|
3820
3820
|
"inputType": "tags",
|
|
3821
3821
|
"description": "The repositories this work touches, each as <owner>/<repo> (e.g. Synap-core/backend). Set when the work is shaped."
|
|
3822
3822
|
},
|
|
3823
|
+
{
|
|
3824
|
+
"slug": "workedIn",
|
|
3825
|
+
"label": "Claude Code session",
|
|
3826
|
+
"valueType": "string",
|
|
3827
|
+
"inputType": "text",
|
|
3828
|
+
"description": "Written by the pod: the Claude Code session (<harness>:<conversation id>) that most recently started a session on this work. Read-only."
|
|
3829
|
+
},
|
|
3830
|
+
{
|
|
3831
|
+
"slug": "workedInAll",
|
|
3832
|
+
"label": "All Claude Code sessions",
|
|
3833
|
+
"valueType": "array",
|
|
3834
|
+
"inputType": "tags",
|
|
3835
|
+
"description": "Written by the pod: every Claude Code session that worked this work, newest first. Read-only."
|
|
3836
|
+
},
|
|
3823
3837
|
{
|
|
3824
3838
|
"slug": "linkedApp",
|
|
3825
3839
|
"label": "Linked App",
|
|
@@ -6686,6 +6700,24 @@ const DATA = {
|
|
|
6686
6700
|
}
|
|
6687
6701
|
}
|
|
6688
6702
|
},
|
|
6703
|
+
{
|
|
6704
|
+
"name": "Features by Claude Code session",
|
|
6705
|
+
"slug": "features-by-claude-code-session",
|
|
6706
|
+
"type": "kanban",
|
|
6707
|
+
"scopeProfileSlug": "devplane_feature",
|
|
6708
|
+
"description": "Every work grouped by the Claude Code session that last worked it, each card marked with its type.",
|
|
6709
|
+
"config": {
|
|
6710
|
+
"groupByField": "properties.workedIn",
|
|
6711
|
+
"cardFields": [
|
|
6712
|
+
"change",
|
|
6713
|
+
"priority",
|
|
6714
|
+
"repos"
|
|
6715
|
+
],
|
|
6716
|
+
"cardSettings": {
|
|
6717
|
+
"colorField": "change"
|
|
6718
|
+
}
|
|
6719
|
+
}
|
|
6720
|
+
},
|
|
6689
6721
|
{
|
|
6690
6722
|
"name": "Changes by state",
|
|
6691
6723
|
"slug": "changes-by-state",
|
|
@@ -7002,8 +7034,8 @@ const DATA = {
|
|
|
7002
7034
|
},
|
|
7003
7035
|
{
|
|
7004
7036
|
"name": "Design to implementation",
|
|
7005
|
-
"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.",
|
|
7006
|
-
"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.",
|
|
7007
7039
|
"subjectProfile": {
|
|
7008
7040
|
"profileSlug": "ui-design"
|
|
7009
7041
|
},
|
|
@@ -9523,7 +9555,7 @@ const DATA = {
|
|
|
9523
9555
|
"key": "options",
|
|
9524
9556
|
"name": "6. Design options",
|
|
9525
9557
|
"category": "started",
|
|
9526
|
-
"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
|
|
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.",
|
|
9527
9559
|
"expectedOutputs": [
|
|
9528
9560
|
{
|
|
9529
9561
|
"kind": "document",
|
|
@@ -9582,7 +9614,7 @@ const DATA = {
|
|
|
9582
9614
|
"mode": "choose",
|
|
9583
9615
|
"stakes": "commitment",
|
|
9584
9616
|
"allowOther": true,
|
|
9585
|
-
"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)",
|
|
9586
9618
|
"options": [
|
|
9587
9619
|
{
|
|
9588
9620
|
"label": "Variant A"
|
|
@@ -9626,7 +9658,7 @@ const DATA = {
|
|
|
9626
9658
|
"key": "handoff",
|
|
9627
9659
|
"name": "10. Hand off and capture",
|
|
9628
9660
|
"category": "completed",
|
|
9629
|
-
"goal": "
|
|
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.",
|
|
9630
9662
|
"expectedOutputs": [
|
|
9631
9663
|
{
|
|
9632
9664
|
"kind": "document",
|