@design-intelligence/ghost 0.28.0 → 0.29.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.
Files changed (39) hide show
  1. package/dist/commands/skill-command.d.ts.map +1 -1
  2. package/dist/commands/skill-command.js +8 -1
  3. package/dist/commands/skill-command.js.map +1 -1
  4. package/dist/init-payloads/skeleton/glossary.md +3 -3
  5. package/dist/init-payloads/vessel-light/checks/shape-matches-job.md +2 -2
  6. package/dist/init-payloads/vessel-light/glossary.md +3 -3
  7. package/dist/init-payloads/vessel-light/grammar.conversation.md +1 -1
  8. package/dist/init-payloads/vessel-light/grammar.hierarchy.md +1 -1
  9. package/dist/init-payloads/vessel-light/grammar.job.md +13 -13
  10. package/dist/init-payloads/vessel-light/grammar.surfaces.md +1 -1
  11. package/dist/init-payloads/vessel-light/index.md +6 -11
  12. package/dist/init-payloads/vessel-light/materials/{ref → examples}/composition.conversation.html +3 -3
  13. package/dist/init-payloads/vessel-light/materials/{ref → examples}/composition.editorial.html +3 -3
  14. package/dist/init-payloads/vessel-light/materials/{ref → examples}/composition.form.html +3 -3
  15. package/dist/init-payloads/vessel-light/materials/{ref → examples}/composition.overlay.html +3 -3
  16. package/dist/init-payloads/vessel-light/materials/{ref → examples}/composition.table.html +3 -3
  17. package/dist/init-payloads/vessel-light/materials/{ref → examples}/email.html +3 -3
  18. package/dist/init-payloads/vessel-light/materials/tokens.css +1 -1
  19. package/dist/init-payloads/vessel-light/register.data-density.md +1 -1
  20. package/dist/init-payloads/vessel-light/register.editorial.md +1 -1
  21. package/dist/init-payloads/vessel-light/register.email.md +1 -1
  22. package/dist/scan/templates.d.ts +1 -1
  23. package/dist/scan/templates.js +1 -1
  24. package/dist/scan/templates.js.map +1 -1
  25. package/dist/skill-bundle/SKILL.md +6 -9
  26. package/dist/skill-bundle/references/authoring.md +145 -0
  27. package/dist/skill-bundle/references/concrete.md +131 -0
  28. package/dist/skill-bundle/references/making.md +4 -5
  29. package/dist/skill-bundle/references/nodes.md +138 -0
  30. package/dist/skill-bundle/references/schema.md +50 -57
  31. package/dist/skill-bundle/references/self-check.md +0 -1
  32. package/dist/skill-bundle/references/steering-audit.md +2 -11
  33. package/package.json +1 -1
  34. package/dist/skill-bundle/references/adapting-a-starter.md +0 -110
  35. package/dist/skill-bundle/references/authoring-scenarios.md +0 -187
  36. package/dist/skill-bundle/references/blocks.md +0 -179
  37. package/dist/skill-bundle/references/capture.md +0 -422
  38. package/dist/skill-bundle/references/concrete-tiers.md +0 -95
  39. package/dist/skill-bundle/references/distill.md +0 -205
@@ -1,187 +0,0 @@
1
- ---
2
- name: authoring-scenarios
3
- description: Choose the right human-agent workflow for authoring ghost packages.
4
- handoffs:
5
- - label: Validate the package
6
- command: ghost validate --format json
7
- prompt: Classify this package's authoring scenario and confirm the package validates.
8
- ---
9
-
10
- # Recipe: Collaborative Package Authoring
11
-
12
- **Goal:** help a human and agent co-author durable brand guidance through
13
- conversation — without laundering what a codebase happens to do into what the
14
- brand means.
15
-
16
- The ghost package is medium-agnostic and is not derived from a repo. Its raw
17
- material is **elicitation**: what the human says, shows, and points at — words,
18
- screenshots, links, exemplar products, marketing copy, a competitor they define
19
- themselves against. Agent synthesis is draft work until the human curates it
20
- and ordinary Git review accepts it.
21
-
22
- Repo-bound reality — components, tokens, paths, building blocks — can be
23
- recorded as `materials` on the node whose prose explains their purpose. When a
24
- conversation surfaces "we have a component for that," treat it as material to
25
- locate and interpret, not as brand guidance on its own.
26
-
27
- ## 1. Start With One Repeated Decision
28
-
29
- Do not try to capture the whole brand at once. Ask the human for the one
30
- decision whose feedback keeps repeating — the checkout always flagged for
31
- trust, the voice always re-toned, the empty state always rewritten — and
32
- capture that one decision as a node first. One well-grounded node beats an
33
- empty catalog; the package grows as the next repeated decision shows up.
34
-
35
- The scenario below tunes the authoring *posture* for that first node; it is not
36
- a gate to clear before writing anything.
37
-
38
- | Scenario | Default authoring posture |
39
- | --- | --- |
40
- | Net new brand | Stance-first. Elicit feel, audience, and early anti-goals before anything else exists to point at. |
41
- | Established brand, first ghost package | Artifact-rich interview. The human can show a lot — shipped surfaces, brand docs, campaigns. Elicit which of it is *intentional*. |
42
- | Strong opinions, weak articulation | Example-led. The human knows it when they see it: work from exemplars and counter-exemplars ("this feels like us, this never would") toward the stance underneath. |
43
- | Brand doc or design-language deck exists | Distillation. Treat the document as evidence: pull the claims that actually steer decisions, drop the aspirational filler, and have the human ratify each survivor. |
44
- | Rebrand, redesign, migration | Transition-led. Capture current, target, and what must not be lost in between. |
45
- | Fork, white label, tenant variant | Shared base + local divergence. Keep shared guidance broad; scope divergence with conditions. |
46
- | Monorepo or product suite | One contract per package. |
47
-
48
- When supplied artifacts are the starting point or must be reconciled with an
49
- existing package, follow [distill.md](distill.md).
50
-
51
- If more than one applies, start with the broad scenario, then narrow.
52
-
53
- ## 2. Interview The Human
54
-
55
- The interview is the engine. Ask only high-leverage questions that change the
56
- guidance:
57
-
58
- - What should this brand feel like, and what should it never become? (The
59
- "never become" answers are anti-goal nodes — capture them with the same care
60
- as the affirmative stance.)
61
- - Who is the audience, and what are they trying to get done?
62
- - Which surfaces, campaigns, or moments show the brand at its best? Show me.
63
- - Which brand or product do you admire — and where do you deliberately differ?
64
- (The deliberate differences also route to anti-goal nodes: the rejected
65
- neighbor, named.)
66
- - What keeps getting flagged in review, re-toned, or rewritten?
67
- - Where do trust, density, pacing, accessibility, recovery, or disclosure
68
- matter most?
69
- - Which guidance is universal, and which guidance holds only under a specific situation?
70
-
71
- Capture human-authored or human-approved answers as nodes. Do not treat
72
- unapproved notes as canonical.
73
-
74
- ## 3. Work The Material The Human Brings
75
-
76
- Ask for artifacts and read them closely: screenshots, links, exemplar products,
77
- brand docs, marketing copy, past campaigns, a rejected design and why it was
78
- rejected. Treat every artifact as *testimony* — evidence of a stance the human
79
- holds — never as guidance by itself. A pattern that appears everywhere may be
80
- legacy; a pattern that appears once may be the brand at its best. The human
81
- says which.
82
-
83
- Counter-exemplars are as valuable as exemplars when they name the replacement.
84
- "We would never ship this; we would ship that instead" with artifacts attached
85
- usually yields a sharper anti-goal than an hour of affirmative description. Avoid
86
- blacklist-only anti-goals: the rejected pattern should be purged from exemplars
87
- and enforced in review, not repeated as the model's main example.
88
-
89
- ## 4. Draft The Nodes
90
-
91
- Write the smallest useful set of nodes, each carrying purpose-coherent prose guidance with
92
- a one-line `context`, named `<kind>.<slug>.md` (or a bare slug when no kind is present). Ask three questions of each node body: why (the stance), with what
93
- (the materials), and how it is assembled (the patterns). These are drafting
94
- prompts, not fields.
95
-
96
- Draft only what the human said or showed. State universal guidance plainly; give
97
- narrower guidance a **condition** in the prose — the situation they apply in,
98
- never a destination. Label uncertain reasoning as provisional. Prefer a few
99
- focused guidance over a broad catalog. Hold draft prose to the node prose
100
- stances in [capture.md](capture.md) and score each node against its drafting
101
- gate before presenting drafts for curation.
102
-
103
- ## 5. Curate With The Human
104
-
105
- Before treating draft content as durable, ask the human to classify important
106
- claims:
107
-
108
- - keep as canonical
109
- - soften the guidance
110
- - reject as accidental or legacy
111
- - move to scratch notes
112
- - restate at a broader or narrower altitude (add or drop a condition)
113
-
114
- ## 6. Decide Kinds And Altitude
115
-
116
- Two authoring decisions replace any notion of hierarchy:
117
-
118
- - **Kind** — declare the kind vocabulary in `glossary.md` and name each node
119
- `<kind>.<slug>.md` so its normative weight is clear. The glossary defines what
120
- each kind means and how strongly it binds. Kinds are your choice;
121
- ghost ships no fixed vocabulary.
122
- - **Altitude** — state guidance at the level where it applies. Universal → state
123
- it plainly. Narrower → name the situation that activates it, in the prose. Never
124
- file a node by destination (`for-emails.md`); the model reads the condition and
125
- decides when it applies.
126
-
127
- ## 7. Validate And Ratify
128
-
129
- ```bash
130
- ghost validate .ghost
131
- ```
132
-
133
- `validate` checks artifact shape, per-node validity, and that each node's kind
134
- prefix is a declared glossary kind (undeclared → warning with a "did you
135
- mean" suggestion). Use ordinary Git review as the approval boundary: uncommitted
136
- edits are drafts; checked-in nodes are canonical.
137
-
138
- ## Shapes Of A Useful Node
139
-
140
- The shapes below teach what steering prose looks like when it works. The
141
- examples use **Morrow Ledger**, a fictional bookkeeping product — teaching
142
- fiction for this recipe only, never content for a real corpus. Each shape is a
143
- pattern to imitate with the human's real guidance.
144
-
145
- - **Stance as forced choices.** Not adjectives — decisions under pressure:
146
- "Clarity beats momentum: write '3 invoices are 14+ days late', not 'Cash
147
- flow needs attention.'" A stance earns its place when it rejects a plausible
148
- wrong answer.
149
- - **Composition floor.** Hard invariants with numbers, holding unless a
150
- narrower condition says otherwise: "Maximum three figures above the fold —
151
- if there are four, demote one into details instead of shrinking type."
152
- - **Anti-goal as not-X-instead-Y.** The rejected default *and* its committed
153
- replacement: "Not 'Revenue is up 24% 🎉' — instead 'July receipts are $4,820
154
- higher than June; 2 invoices explain most of the change.'" A bare ban prunes
155
- one path; the replacement commits another.
156
- - **Pattern as bound/open.** Say what is decided and what remains free:
157
- "Bound: status line first, one sentence, ≤11 words; one primary next step
158
- last. Open: evidence may be a table row or a two-item list." All bound is a
159
- template; nothing bound is vibes.
160
- - **Annotated exemplar.** A concrete reference plus what it is normative for
161
- and what is incidental: "Copy the square edge, measured evidence, and action
162
- cost. Do not copy the exact amounts or dates." An unannotated exemplar
163
- teaches its accidents as brand.
164
- - **Material inventory.** `materials` locates; prose explains meaning:
165
- "`src/styles/tokens.css` should define the ink, ledger, amber, and paper
166
- colors." Never duplicate API docs unless the API itself is the brand guidance.
167
- - **Decision trace.** A worked tradeoff with the reversal condition: "We chose
168
- visible evidence over shorter surfaces… Reverses when the evidence would
169
- expose sensitive third-party details — then show the count only." Models
170
- imitate reasoning as well as outputs.
171
-
172
- State the silence posture on the manifest-declared cover, which `gather`
173
- inlines for every task: when the package is silent, proceed provisionally
174
- from local conventions only when safe, and ask before brand-defining,
175
- irreversible, legal, privacy-sensitive, or high-risk choices.
176
-
177
- ## Never
178
-
179
- - Never derive brand guidance from repo code alone; what the codebase repeats may
180
- be legacy, not stance. Use repo paths as `materials` only after the prose
181
- guidance has been curated.
182
- - Never draft a node the human neither said nor showed; that is invention
183
- wearing the brand's clothes.
184
- - Never treat a brand doc, an artifact, or repetition frequency as brand
185
- authority; the human ratifies what is intentional.
186
- - Never invent a hierarchy, inheritance, or edges — the package is flat.
187
- - Never file a node by destination; state its condition in the prose.
@@ -1,179 +0,0 @@
1
- ---
2
- name: blocks
3
- description: Author block and material nodes so an agent can match a ghost package's stance to concrete building blocks.
4
- handoffs:
5
- - label: List the node menu
6
- command: ghost gather
7
- prompt: What materials does this package document, and what is absent?
8
- ---
9
-
10
- # Recipe: Author Block And Material Nodes
11
-
12
- **Goal:** when you are documenting the **materials** a brand draws from — its
13
- building blocks, assets, and reusable pieces — write that prose so an agent can
14
- translate the package's stance into concrete building blocks without the
15
- guidance ever naming a component.
16
-
17
- This is opinionated method, not new schema. **"Block node" is shorthand in this
18
- recipe, not a ghost concept**: it means any node whose guidance is a reusable
19
- building block, whatever kind the author's glossary declares for it (`block`,
20
- `asset`, `pattern`, …). A block node is a node like any other: a markdown file
21
- with a `context` and a prose body, named `<kind>.<slug>.md` (or a bare
22
- slug). See [capture.md](capture.md) for the node shape. Block prose can be one
23
- paragraph inside a broader node, or split across many nodes, one per block,
24
- whatever keeps each node purpose-coherent.
25
-
26
- ## Where it sits
27
-
28
- A ghost package declares stance. Block and material nodes ground that stance in
29
- concrete material: materials, substantial fenced examples, or Skeletons. A
30
- realizing agent **reads** them and matches against them. Strip every block node
31
- and the package is still valid — it just gives the agent less to draw on,
32
- and prose-only steering is weak steering. The agent does the matching.
33
-
34
- ## Concreteness is the grounding dial
35
-
36
- This trade belongs to the author:
37
-
38
- - **Abstract materials** (principles, arrangement, no concrete components) →
39
- leaves the agent more room, grounds it less.
40
- - **Concrete materials** (named building blocks) → strongly grounds the agent in
41
- the materials it should reach for, at the cost of that room.
42
-
43
- Neither is correct. A concrete block node is a deliberate trade, not a leak.
44
-
45
- ## Tier first: not everything earns a node
46
-
47
- - **Primitives** (button, input, badge, avatar, spinner…) get **no prose body**
48
- when the generic form serves. They are shared vocabulary, not stance. If you
49
- record one at all, give it only a `context` so `gather` can surface it;
50
- the absence of a body is the signal that training priors are acceptable here.
51
- When a primitive is itself brand-distinctive (a button whose shape, weight, or
52
- focus treatment is a recognizable brand move), its *divergence from the
53
- generic form* is a decision worth a node: state what differs and why, not the
54
- full API.
55
- - **Anything that encodes a user moment** (confirmation, plan, task, tool,
56
- reasoning, sources…) earns **one short prose body**. This is what the method is
57
- for.
58
- - The **composer middle** (card, table, form, sidebar…) is a call to weigh. Give
59
- it a prose body when its arrangement carries a stance worth matching.
60
-
61
- If a primitive ever seems to need stance guidance, that is a signal it is doing
62
- a composer's job. Promote the pattern into a node; do not write a body on the
63
- primitive.
64
-
65
- ## The shape of a block node
66
-
67
- A node like any other. Frontmatter carries `context`, the direct applicability
68
- payload; write one on every block worth matching. The body is prose the agent
69
- reasons over.
70
-
71
- **Body:** one short paragraph in a consistent rhythm, *for / reach when / not
72
- when (use X instead) / never*:
73
-
74
- - **for**: the user need or moment it exists for, framed as the problem, not the
75
- widget.
76
- - **reach when**: phrased as the user's *first question* ("who/what is this?" vs
77
- "what's happening / what do I do?"). First-question framing forces a clean pick
78
- between overlapping blocks.
79
- - **not when**: name the rival node to reach for instead, by its id. This is what
80
- makes the set navigable — since the package is flat with no edges, the prose
81
- "not when" *is* the see-also link. Point at the other node's id in the text.
82
- - **never**: what it must not be conscripted into, so the agent does not stretch
83
- it to fit.
84
-
85
- Keep props, markup, and API reference out; the body documents purpose, and the
86
- implementation beneath it is swappable. Explicit values are the exception when
87
- the value itself is the brand guidance — an exact color, a specific corner radius —
88
- not a swappable implementation detail.
89
-
90
- ## How a match runs
91
-
92
- The agent reads the package's stance, `gather`s the menu, pulls block nodes
93
- whose contexts apply, separates near-neighbors on *not when* and *never*,
94
- and assembles. The realizing surface authors the chosen blocks in its medium.
95
- The guidance never named a component; the agent bridged via documented
96
- purpose.
97
-
98
- ## Curation rule
99
-
100
- A block earns its node when its purpose is **distinguishable** from every
101
- other's. Two blocks may overlap heavily and still be distinct *as long as their
102
- "reach when" answers a different first question*. If they answer the same first
103
- question, they are one node, not two.
104
-
105
- ## Worked example
106
-
107
- These examples use a `block` kind. The starter glossary does not ship one, so
108
- declare it (or reuse a declared kind such as `pattern`) before copying the
109
- filenames:
110
-
111
- ```yaml
112
- kinds:
113
- - name: block
114
- purpose: a reusable building block matched by purpose, not named by component
115
- ```
116
-
117
- `block.confirmation.md` (kind `block`, slug `confirmation`):
118
-
119
- ```markdown
120
- ---
121
- context: A consequential action needs explicit user approval before it runs.
122
- ---
123
- Gates a tool action behind explicit user approval. Reach for it when the user's
124
- first question is "do I allow this?", when a consequential action needs a human
125
- decision before it runs. Not when the action is already complete (that's
126
- `block.tool`) or when no decision is required. It is never a status display;
127
- with no decision to make, it only manufactures friction.
128
- ```
129
-
130
- `block.table.md`:
131
-
132
- ```markdown
133
- ---
134
- context: Many records need comparison across shared columns.
135
- ---
136
- Presents many records across shared, comparable columns. Reach for it when the
137
- user's first question is "how do these compare across the same attributes?" Not
138
- when each item needs rich, non-uniform presentation (use repeated `block.card`)
139
- or there is a single subject rather than a collection. It is never a single
140
- record's detail view.
141
- ```
142
-
143
- `block.button.md`:
144
-
145
- ```markdown
146
- ---
147
- context: A person can trigger an action.
148
- ---
149
- ```
150
-
151
- (A primitive the generic form serves: a `context` so `gather` can surface
152
- it, no body. If this brand's button were itself a recognizable brand move, its
153
- divergence from the generic form would earn a short body.)
154
-
155
- ## Materials: bundle brand-owned materials, reference implementations
156
-
157
- Use the rule of thumb literally. Bundle brand-owned materials: brand-owned artifacts that
158
- should travel with the package and survive export or refactors — tokens.css,
159
- motion.json, logo.svg, type materials. Reference implementations: living app
160
- code, components, stories, or tests whose home is still the product repo. The
161
- `materials` list locates both; the prose says what the material proves.
162
-
163
- ## Reuse vs. free-compose
164
-
165
- Do not pin a block by prop or markup shape. Document the *purpose* and any
166
- *guarantees* a block must hold (an action routes through a declared tool, a
167
- control is keyboard-reachable). Let the realizing agent author the form. Pinning
168
- prop APIs re-imports implementation opinion and creates a mirror to maintain.
169
-
170
- ## Never
171
-
172
- - Never write a prose body on a primitive the generic form serves; the absence
173
- of a body is the signal. A brand-distinctive primitive earns a body for its
174
- divergence, never for its API.
175
- - Never put props, markup, or API reference in a block body; explicit
176
- values belong only when the value itself is the brand guidance.
177
- - Never let the package reference the realizing surface; blocks are read,
178
- not addressed.
179
- - Never split two blocks that answer the same first question; that is one node.