@design-intelligence/ghost 0.23.0 → 0.25.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/README.md +55 -28
- package/dist/commands/checks-command.js +3 -3
- package/dist/commands/checks-command.js.map +1 -1
- package/dist/commands/command-discovery.d.ts.map +1 -1
- package/dist/commands/command-discovery.js +5 -5
- package/dist/commands/command-discovery.js.map +1 -1
- package/dist/commands/export-command.d.ts.map +1 -1
- package/dist/commands/export-command.js +10 -10
- package/dist/commands/export-command.js.map +1 -1
- package/dist/commands/fingerprint-commands.d.ts +2 -2
- package/dist/commands/fingerprint-commands.d.ts.map +1 -1
- package/dist/commands/fingerprint-commands.js +7 -7
- package/dist/commands/fingerprint-commands.js.map +1 -1
- package/dist/commands/gather-command.d.ts.map +1 -1
- package/dist/commands/gather-command.js +72 -87
- package/dist/commands/gather-command.js.map +1 -1
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/init-command.js +6 -6
- package/dist/commands/init-command.js.map +1 -1
- package/dist/commands/pull-command.d.ts.map +1 -1
- package/dist/commands/pull-command.js +87 -140
- package/dist/commands/pull-command.js.map +1 -1
- package/dist/commands/pulse-command.js +6 -6
- package/dist/commands/pulse-command.js.map +1 -1
- package/dist/commands/review-command.js +7 -7
- package/dist/commands/review-command.js.map +1 -1
- package/dist/commands/skill-command.js +2 -2
- package/dist/embed/gather.d.ts +9 -0
- package/dist/embed/gather.d.ts.map +1 -0
- package/dist/embed/gather.js +80 -0
- package/dist/embed/gather.js.map +1 -0
- package/dist/embed/index.d.ts +9 -0
- package/dist/embed/index.d.ts.map +1 -0
- package/dist/embed/index.js +6 -0
- package/dist/embed/index.js.map +1 -0
- package/dist/embed/inspect.d.ts +3 -0
- package/dist/embed/inspect.d.ts.map +1 -0
- package/dist/embed/inspect.js +155 -0
- package/dist/embed/inspect.js.map +1 -0
- package/dist/embed/pull.d.ts +8 -0
- package/dist/embed/pull.d.ts.map +1 -0
- package/dist/embed/pull.js +96 -0
- package/dist/embed/pull.js.map +1 -0
- package/dist/embed/readonly-map.d.ts +3 -0
- package/dist/embed/readonly-map.d.ts.map +1 -0
- package/dist/embed/readonly-map.js +33 -0
- package/dist/embed/readonly-map.js.map +1 -0
- package/dist/embed/snapshot.d.ts +4 -0
- package/dist/embed/snapshot.d.ts.map +1 -0
- package/dist/embed/snapshot.js +105 -0
- package/dist/embed/snapshot.js.map +1 -0
- package/dist/embed/types.d.ts +156 -0
- package/dist/embed/types.d.ts.map +1 -0
- package/dist/embed/types.js +2 -0
- package/dist/embed/types.js.map +1 -0
- package/dist/fingerprint.d.ts +2 -1
- package/dist/fingerprint.d.ts.map +1 -1
- package/dist/fingerprint.js +1 -0
- package/dist/fingerprint.js.map +1 -1
- package/dist/ghost-core/catalog/assemble.d.ts.map +1 -1
- package/dist/ghost-core/catalog/assemble.js +2 -1
- package/dist/ghost-core/catalog/assemble.js.map +1 -1
- package/dist/ghost-core/catalog/menu.d.ts +6 -4
- package/dist/ghost-core/catalog/menu.d.ts.map +1 -1
- package/dist/ghost-core/catalog/menu.js +1 -0
- package/dist/ghost-core/catalog/menu.js.map +1 -1
- package/dist/ghost-core/catalog/types.d.ts +4 -2
- package/dist/ghost-core/catalog/types.d.ts.map +1 -1
- package/dist/ghost-core/check/index.d.ts +1 -1
- package/dist/ghost-core/check/index.js +1 -1
- package/dist/ghost-core/check/lint.d.ts +2 -2
- package/dist/ghost-core/check/lint.js +2 -2
- package/dist/ghost-core/check/load.d.ts +1 -1
- package/dist/ghost-core/check/load.js +3 -3
- package/dist/ghost-core/check/types.d.ts +3 -3
- package/dist/ghost-core/index.d.ts +10 -4
- package/dist/ghost-core/index.d.ts.map +1 -1
- package/dist/ghost-core/index.js +7 -3
- package/dist/ghost-core/index.js.map +1 -1
- package/dist/ghost-core/markdown.d.ts +1 -1
- package/dist/ghost-core/markdown.js +1 -1
- package/dist/ghost-core/material-transport.d.ts +11 -0
- package/dist/ghost-core/material-transport.d.ts.map +1 -1
- package/dist/ghost-core/material-transport.js +80 -8
- package/dist/ghost-core/material-transport.js.map +1 -1
- package/dist/ghost-core/node/index.d.ts +1 -1
- package/dist/ghost-core/node/index.d.ts.map +1 -1
- package/dist/ghost-core/node/index.js +1 -1
- package/dist/ghost-core/node/index.js.map +1 -1
- package/dist/ghost-core/node/schema.js +1 -1
- package/dist/ghost-core/node/steering.d.ts +1 -0
- package/dist/ghost-core/node/steering.d.ts.map +1 -1
- package/dist/ghost-core/node/steering.js +4 -1
- package/dist/ghost-core/node/steering.js.map +1 -1
- package/dist/ghost-core/node/types.d.ts +4 -5
- package/dist/ghost-core/node/types.d.ts.map +1 -1
- package/dist/ghost-core/package-manifest.d.ts +23 -13
- package/dist/ghost-core/package-manifest.d.ts.map +1 -1
- package/dist/ghost-core/package-manifest.js +20 -7
- package/dist/ghost-core/package-manifest.js.map +1 -1
- package/dist/ghost-core/skill-bundle-loader.d.ts +1 -1
- package/dist/ghost-core/skill-bundle-loader.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/init-payloads/median/cliche.median.md +6 -6
- package/dist/init-payloads/median/median-tells.md +1 -1
- package/dist/init-payloads/skeleton/brand.md +4 -3
- package/dist/init-payloads/skeleton/glossary.md +1 -1
- package/dist/init-payloads/vessel-light/anti-goal.median.md +6 -6
- package/dist/init-payloads/vessel-light/checks/motion-restraint.md +1 -1
- package/dist/init-payloads/vessel-light/manifest.yml +1 -1
- package/dist/init-payloads/vessel-light/materials/ref/composition.form.html +2 -2
- package/dist/init-payloads/vessel-light/materials/ref/composition.overlay.html +3 -3
- package/dist/observability-events.d.ts +1 -0
- package/dist/observability-events.d.ts.map +1 -1
- package/dist/observability-events.js +4 -1
- package/dist/observability-events.js.map +1 -1
- package/dist/package.d.ts +7 -0
- package/dist/package.d.ts.map +1 -0
- package/dist/package.js +4 -0
- package/dist/package.js.map +1 -0
- package/dist/review/resolve.js +1 -1
- package/dist/review/resolve.js.map +1 -1
- package/dist/review/review-packet.d.ts +5 -3
- package/dist/review/review-packet.d.ts.map +1 -1
- package/dist/review/review-packet.js +12 -11
- package/dist/review/review-packet.js.map +1 -1
- package/dist/scan/constants.d.ts +6 -2
- package/dist/scan/constants.d.ts.map +1 -1
- package/dist/scan/constants.js +8 -4
- package/dist/scan/constants.js.map +1 -1
- package/dist/scan/file-kind.d.ts +1 -1
- package/dist/scan/file-kind.d.ts.map +1 -1
- package/dist/scan/file-kind.js +11 -11
- package/dist/scan/file-kind.js.map +1 -1
- package/dist/scan/fingerprint-package-lint.d.ts +3 -1
- package/dist/scan/fingerprint-package-lint.d.ts.map +1 -1
- package/dist/scan/fingerprint-package-lint.js +14 -12
- package/dist/scan/fingerprint-package-lint.js.map +1 -1
- package/dist/scan/fingerprint-package-loader.d.ts +7 -3
- package/dist/scan/fingerprint-package-loader.d.ts.map +1 -1
- package/dist/scan/fingerprint-package-loader.js +10 -6
- package/dist/scan/fingerprint-package-loader.js.map +1 -1
- package/dist/scan/fingerprint-package.d.ts +30 -14
- package/dist/scan/fingerprint-package.d.ts.map +1 -1
- package/dist/scan/fingerprint-package.js +17 -9
- package/dist/scan/fingerprint-package.js.map +1 -1
- package/dist/scan/index.d.ts +3 -1
- package/dist/scan/index.d.ts.map +1 -1
- package/dist/scan/index.js +3 -1
- package/dist/scan/index.js.map +1 -1
- package/dist/scan/tarball.d.ts +2 -2
- package/dist/scan/tarball.js +3 -3
- package/dist/scan/tarball.js.map +1 -1
- package/dist/scan/templates.d.ts +1 -1
- package/dist/scan/templates.d.ts.map +1 -1
- package/dist/scan/templates.js +7 -283
- package/dist/scan/templates.js.map +1 -1
- package/dist/skill-bundle/SKILL.md +40 -32
- package/dist/skill-bundle/references/adapting-a-starter.md +11 -11
- package/dist/skill-bundle/references/authoring-scenarios.md +33 -30
- package/dist/skill-bundle/references/blocks.md +19 -20
- package/dist/skill-bundle/references/brief.md +13 -11
- package/dist/skill-bundle/references/capture.md +66 -39
- package/dist/skill-bundle/references/concrete-tiers.md +7 -7
- package/dist/skill-bundle/references/distill.md +204 -0
- package/dist/skill-bundle/references/making.md +113 -0
- package/dist/skill-bundle/references/recall.md +11 -7
- package/dist/skill-bundle/references/schema.md +16 -12
- package/dist/skill-bundle/references/self-check.md +12 -12
- package/dist/skill-bundle/references/steering-audit.md +19 -9
- package/package.json +11 -3
package/dist/scan/templates.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GHOST_PACKAGE_SCHEMA } from "#ghost-core";
|
|
2
2
|
import { GHOST_EVENTS_FILENAME, LEGACY_PULL_HISTORY_FILENAME, } from "./constants.js";
|
|
3
3
|
import { loadPackedPayload, loadPayloadFile } from "./packed-payloads.js";
|
|
4
4
|
function manifestFile(cover) {
|
|
5
5
|
return {
|
|
6
6
|
relativePath: "manifest.yml",
|
|
7
|
-
content: `schema: ${
|
|
7
|
+
content: `schema: ${GHOST_PACKAGE_SCHEMA}\nid: local\n${cover ? `cover: ${cover}\n` : ""}`,
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Keep events tapes out of version control: they are disposable
|
|
12
|
-
* per-machine signals for authors iterating on the
|
|
12
|
+
* per-machine signals for authors iterating on the package, never canonical
|
|
13
13
|
* state.
|
|
14
14
|
*/
|
|
15
15
|
function gitignoreFile() {
|
|
@@ -18,279 +18,6 @@ function gitignoreFile() {
|
|
|
18
18
|
content: `${GHOST_EVENTS_FILENAME}\n${LEGACY_PULL_HISTORY_FILENAME}\n`,
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
22
|
-
* The minimal starter: a manifest, a package-level glossary declaring the
|
|
23
|
-
* starter kind vocabulary, and a package-root `index.md` cover. Additional
|
|
24
|
-
* truths are plain markdown nodes; optional material locators live on the node
|
|
25
|
-
* that explains them. Checks are opt-in via `ghost checks init`.
|
|
26
|
-
*/
|
|
27
|
-
const MINIMAL_TEMPLATE = {
|
|
28
|
-
name: "minimal",
|
|
29
|
-
description: "Minimal node package: manifest + glossary + a starter cover node.",
|
|
30
|
-
async files() {
|
|
31
|
-
const medianFile = await medianTemplateFile();
|
|
32
|
-
return [
|
|
33
|
-
manifestFile("index"),
|
|
34
|
-
gitignoreFile(),
|
|
35
|
-
{
|
|
36
|
-
relativePath: "glossary.md",
|
|
37
|
-
content: `---
|
|
38
|
-
kinds:
|
|
39
|
-
- name: principle
|
|
40
|
-
- name: condition
|
|
41
|
-
- name: exemplar
|
|
42
|
-
- name: anti-goal
|
|
43
|
-
- name: cliche
|
|
44
|
-
- name: asset
|
|
45
|
-
- name: pattern
|
|
46
|
-
---
|
|
47
|
-
|
|
48
|
-
# principle
|
|
49
|
-
|
|
50
|
-
Durable stance: true across media unless a narrower condition explicitly limits it.
|
|
51
|
-
|
|
52
|
-
# condition
|
|
53
|
-
|
|
54
|
-
Situational truth: fires only when the stated situation holds.
|
|
55
|
-
|
|
56
|
-
# exemplar
|
|
57
|
-
|
|
58
|
-
Illustrative reference. Match its form and quality; treat its specifics as
|
|
59
|
-
evidence unless the node says the sample itself is normative.
|
|
60
|
-
|
|
61
|
-
# anti-goal
|
|
62
|
-
|
|
63
|
-
What this brand must never look, sound, or feel like — named generic patterns
|
|
64
|
-
and rejected neighbors. Always-on, like a principle, but stated as the thing
|
|
65
|
-
to steer away from.
|
|
66
|
-
|
|
67
|
-
# cliche
|
|
68
|
-
|
|
69
|
-
The defaults a generative model falls back on when no brand is steering it.
|
|
70
|
-
These are nobody's brand. Each entry pairs the tired move with the honest
|
|
71
|
-
replacement. Gather before styling anything greenfield; enforced by paired
|
|
72
|
-
checks at review.
|
|
73
|
-
|
|
74
|
-
# asset
|
|
75
|
-
|
|
76
|
-
Material truth about concrete brand assets such as logos, illustrations, motion, imagery, or files.
|
|
77
|
-
|
|
78
|
-
# pattern
|
|
79
|
-
|
|
80
|
-
Reusable composition or product pattern whose purpose is distinguishable from neighboring patterns.
|
|
81
|
-
`,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
relativePath: "index.md",
|
|
85
|
-
content: `---
|
|
86
|
-
description: Always read first — the non-negotiables and how to read this fingerprint.
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
Replace this placeholder prose with two things:
|
|
90
|
-
|
|
91
|
-
**The non-negotiables.** The handful of truths that apply to every task, every
|
|
92
|
-
medium, no matter what else is gathered — hard invariants, the anti-goals, the
|
|
93
|
-
one-sentence stance. Anything that must never be missed belongs here, stated
|
|
94
|
-
briefly; link out to the full node by id for depth.
|
|
95
|
-
|
|
96
|
-
**How to read the rest.** What this fingerprint covers, how its kinds organize
|
|
97
|
-
the corpus, and where the fingerprint deliberately stays silent — including, if
|
|
98
|
-
you want one, a stricter silence posture ("when this fingerprint is silent on X,
|
|
99
|
-
ask a human") that overrides the default proceed-provisionally behavior.
|
|
100
|
-
|
|
101
|
-
\`index\` is this package's manifest-declared cover: \`ghost gather\` inlines its
|
|
102
|
-
body before the menu and excludes it from selection. Its privilege comes from
|
|
103
|
-
\`cover: index\` in \`manifest.yml\`, not from the filename. You may rename it;
|
|
104
|
-
update the manifest's \`cover\` id at the same time.
|
|
105
|
-
|
|
106
|
-
The glossary declares the kind vocabulary. A node's kind comes from its
|
|
107
|
-
filename prefix: \`principle.density.md\` has kind \`principle\` and slug
|
|
108
|
-
\`density\`. A bare filename like \`voice.md\` has no kind, which is fine.
|
|
109
|
-
When a truth is narrower, state the condition in the prose — the situation where
|
|
110
|
-
it applies — never a filing destination.
|
|
111
|
-
`,
|
|
112
|
-
},
|
|
113
|
-
medianFile,
|
|
114
|
-
];
|
|
115
|
-
},
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* The composition starter: everything in `minimal`, plus a worked composition
|
|
119
|
-
* ladder — an invariants floor (`principle.composition`), one bound/open
|
|
120
|
-
* pattern, and a cover that teaches the convention. For teams whose
|
|
121
|
-
* fingerprint must steer *what agents build*, not only what they say.
|
|
122
|
-
*
|
|
123
|
-
* The ladder is an authoring convention, not a schema: patterns state what is
|
|
124
|
-
* bound (do not redecide) and what is open (the generator's call), and every
|
|
125
|
-
* pattern names the principles it refines. Nothing here adds frontmatter,
|
|
126
|
-
* edges, or routing — the corpus stays flat.
|
|
127
|
-
*/
|
|
128
|
-
const COMPOSITION_TEMPLATE = {
|
|
129
|
-
name: "composition",
|
|
130
|
-
description: "Composition starter: minimal files + an invariants floor and a worked bound/open pattern.",
|
|
131
|
-
async files() {
|
|
132
|
-
const medianFile = await medianTemplateFile();
|
|
133
|
-
return [
|
|
134
|
-
manifestFile("index"),
|
|
135
|
-
gitignoreFile(),
|
|
136
|
-
{
|
|
137
|
-
relativePath: "glossary.md",
|
|
138
|
-
content: `---
|
|
139
|
-
kinds:
|
|
140
|
-
- name: principle
|
|
141
|
-
- name: condition
|
|
142
|
-
- name: exemplar
|
|
143
|
-
- name: anti-goal
|
|
144
|
-
- name: cliche
|
|
145
|
-
- name: asset
|
|
146
|
-
- name: pattern
|
|
147
|
-
---
|
|
148
|
-
|
|
149
|
-
# principle
|
|
150
|
-
|
|
151
|
-
Durable stance: true across media unless a narrower condition explicitly limits it.
|
|
152
|
-
Composition principles are the floor — when no pattern matches an ask, they are
|
|
153
|
-
what the agent composes against.
|
|
154
|
-
|
|
155
|
-
# condition
|
|
156
|
-
|
|
157
|
-
Situational truth: fires only when the stated situation holds.
|
|
158
|
-
|
|
159
|
-
# exemplar
|
|
160
|
-
|
|
161
|
-
Illustrative reference. Match its form and quality; treat its specifics as
|
|
162
|
-
evidence unless the node says the sample itself is normative. Pair an
|
|
163
|
-
exemplar with a screenshot or implementation path in \`materials\` so the blessed
|
|
164
|
-
render travels with the prose.
|
|
165
|
-
|
|
166
|
-
# anti-goal
|
|
167
|
-
|
|
168
|
-
What this brand must never look, sound, or feel like — named generic patterns
|
|
169
|
-
and rejected neighbors. Always-on, like a principle, but stated as the thing
|
|
170
|
-
to steer away from.
|
|
171
|
-
|
|
172
|
-
# cliche
|
|
173
|
-
|
|
174
|
-
The defaults a generative model falls back on when no brand is steering it.
|
|
175
|
-
These are nobody's brand. Each entry pairs the tired move with the honest
|
|
176
|
-
replacement. Gather before styling anything greenfield; enforced by paired
|
|
177
|
-
checks at review.
|
|
178
|
-
|
|
179
|
-
# asset
|
|
180
|
-
|
|
181
|
-
Material truth about concrete brand assets such as logos, illustrations, motion,
|
|
182
|
-
imagery, or files. For components, state the slot contract in prose: what the
|
|
183
|
-
asset admits, how many, and where.
|
|
184
|
-
|
|
185
|
-
# pattern
|
|
186
|
-
|
|
187
|
-
Reusable composition whose purpose is distinguishable from neighboring patterns.
|
|
188
|
-
A pattern states what is **bound** (decided — do not redecide) and what is
|
|
189
|
-
**open** (the generator's call, within named limits), and names the principles
|
|
190
|
-
it refines. A pattern may only narrow what its principles allow — never loosen
|
|
191
|
-
them.
|
|
192
|
-
`,
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
relativePath: "index.md",
|
|
196
|
-
content: `---
|
|
197
|
-
description: Start here — how this fingerprint steers composition, from patterns down to principles.
|
|
198
|
-
---
|
|
199
|
-
|
|
200
|
-
This fingerprint steers what gets built, not only what gets said. It is
|
|
201
|
-
organized as a ladder of binding depth:
|
|
202
|
-
|
|
203
|
-
1. **Patterns** (\`pattern.*\`) are mostly-decided compositions. When an ask
|
|
204
|
-
matches a pattern's stated purpose, use it: apply what it binds, decide only
|
|
205
|
-
what it leaves open.
|
|
206
|
-
2. **Principles** (\`principle.*\`) are the floor. When no pattern matches, do
|
|
207
|
-
not fall back to your own taste — compose freely *inside* the invariants in
|
|
208
|
-
\`principle.composition\` and its siblings.
|
|
209
|
-
3. **Exemplars and assets** carry the concrete vocabulary: blessed renders,
|
|
210
|
-
real components, real tokens, located via \`materials\`.
|
|
211
|
-
|
|
212
|
-
Two laws keep the ladder honest:
|
|
213
|
-
|
|
214
|
-
- **Narrowing only.** A pattern may bind or narrow what a principle leaves
|
|
215
|
-
open; it may never contradict one. If a pattern conflicts with a principle,
|
|
216
|
-
the principle wins and the pattern file is wrong.
|
|
217
|
-
- **Every "never" casts a shadow.** Each refusal-grade line in a principle
|
|
218
|
-
should be mirrored by a review check (\`ghost checks init\`) that
|
|
219
|
-
references the node it enforces, so the same opinion steers before building
|
|
220
|
-
and grades after.
|
|
221
|
-
|
|
222
|
-
Replace this prose with your own front door once the corpus has shape. The
|
|
223
|
-
starter nodes below are teaching placeholders — edit them into your real
|
|
224
|
-
opinions before trusting them.
|
|
225
|
-
`,
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
relativePath: "principle.composition.md",
|
|
229
|
-
content: `---
|
|
230
|
-
description: The composition floor — hard layout invariants that hold for every screen, whether or not a pattern matches the ask.
|
|
231
|
-
---
|
|
232
|
-
|
|
233
|
-
These invariants apply to everything built against this fingerprint. Patterns
|
|
234
|
-
narrow them; nothing loosens them. Each is written as a refusal or a limit with
|
|
235
|
-
a number, because a stance an agent can check is a stance that steers.
|
|
236
|
-
|
|
237
|
-
**The starter opinions below are placeholders. Keep the voice — refusals and
|
|
238
|
-
numbers, not vibes — and replace the values with yours.**
|
|
239
|
-
|
|
240
|
-
- **One focal point.** Every screen has exactly one element at the largest
|
|
241
|
-
scale. If two elements compete for primacy, the second one is wrong — demote
|
|
242
|
-
or delete it. Never resolve the tie by making both big.
|
|
243
|
-
- **Hierarchy descends.** Type scale strictly decreases with nesting depth.
|
|
244
|
-
Never give a child element a larger scale than its parent context.
|
|
245
|
-
- **Density has a budget.** State the budget per surface (for example: at most
|
|
246
|
-
N data points per viewport on consumer surfaces; a higher N on operational
|
|
247
|
-
ones). When content exceeds the budget, cut or collapse — never shrink type
|
|
248
|
-
below the ramp to make room.
|
|
249
|
-
- **Actions land last.** Calls to action render at the end of reading order.
|
|
250
|
-
At most one primary action per screen; never two.
|
|
251
|
-
- **Separation escalates.** To separate content, reach for whitespace first,
|
|
252
|
-
then a divider, then a container — in that order, never skipping a step.
|
|
253
|
-
|
|
254
|
-
Mirror each refusal here with a check under \`checks/\` that lists this
|
|
255
|
-
node in its \`references\`, so review enforces the same floor this prose sets.
|
|
256
|
-
`,
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
relativePath: "pattern.status-with-next-step.md",
|
|
260
|
-
content: `---
|
|
261
|
-
description: Status of an ongoing thing plus the single next step — reach for this when the ask is "where is X / how is X going."
|
|
262
|
-
---
|
|
263
|
-
|
|
264
|
-
**This is a worked example of the pattern convention — bound, open, refines.
|
|
265
|
-
Replace its content with a real pattern from your product, keep the structure.**
|
|
266
|
-
|
|
267
|
-
**When this applies:** the ask is about the state of something in flight — an
|
|
268
|
-
order, a transfer, a build, a goal.
|
|
269
|
-
|
|
270
|
-
**Bound (decided — do not redecide):**
|
|
271
|
-
|
|
272
|
-
- The current status renders first and largest; it is the focal point.
|
|
273
|
-
- A short line of meaning follows the status: why it matters or what changed,
|
|
274
|
-
never a restatement of it.
|
|
275
|
-
- Exactly one primary action, rendered last: the single next step.
|
|
276
|
-
|
|
277
|
-
**Open (your call, within these limits):**
|
|
278
|
-
|
|
279
|
-
- Supporting evidence may be a timeline or a compact stat list — whichever
|
|
280
|
-
fits the data. Never a full chart in this pattern.
|
|
281
|
-
- Density may flex one step tighter on operational surfaces.
|
|
282
|
-
|
|
283
|
-
**Refines:** \`principle.composition\`. If anything above conflicts with the
|
|
284
|
-
floor, the floor wins and this file is wrong.
|
|
285
|
-
|
|
286
|
-
When a blessed render of this pattern exists, add an \`exemplar.*\` node with
|
|
287
|
-
\`materials\` pointing at the screenshot and the implementation path.
|
|
288
|
-
`,
|
|
289
|
-
},
|
|
290
|
-
medianFile,
|
|
291
|
-
];
|
|
292
|
-
},
|
|
293
|
-
};
|
|
294
21
|
const SKELETON_FILE_ORDER = new Map([
|
|
295
22
|
"glossary.md",
|
|
296
23
|
"brand.md",
|
|
@@ -326,8 +53,6 @@ async function medianTemplateFile() {
|
|
|
326
53
|
};
|
|
327
54
|
}
|
|
328
55
|
const TEMPLATES = new Map([
|
|
329
|
-
[MINIMAL_TEMPLATE.name, MINIMAL_TEMPLATE],
|
|
330
|
-
[COMPOSITION_TEMPLATE.name, COMPOSITION_TEMPLATE],
|
|
331
56
|
[SKELETON_TEMPLATE.name, SKELETON_TEMPLATE],
|
|
332
57
|
]);
|
|
333
58
|
const VESSEL_LIGHT_BODY = {
|
|
@@ -336,6 +61,10 @@ const VESSEL_LIGHT_BODY = {
|
|
|
336
61
|
includesChecks: true,
|
|
337
62
|
async files() {
|
|
338
63
|
const payload = await loadPackedPayload("vessel-light");
|
|
64
|
+
const manifest = payload.find((file) => file.relativePath === "manifest.yml");
|
|
65
|
+
if (manifest && typeof manifest.content === "string") {
|
|
66
|
+
manifest.content = manifest.content.replace(/^schema:\s*ghost\.fingerprint-package\/v1\s*$/m, `schema: ${GHOST_PACKAGE_SCHEMA}`);
|
|
67
|
+
}
|
|
339
68
|
payload.sort((a, b) => {
|
|
340
69
|
const ao = BODY_FILE_ORDER.get(a.relativePath);
|
|
341
70
|
const bo = BODY_FILE_ORDER.get(b.relativePath);
|
|
@@ -362,11 +91,6 @@ export function listInitBodies() {
|
|
|
362
91
|
export const DEFAULT_TEMPLATE_NAME = SKELETON_TEMPLATE.name;
|
|
363
92
|
/** Look up a registered init template by name. */
|
|
364
93
|
export function getInitTemplate(name) {
|
|
365
|
-
// `default` and `steering` are silent aliases for the skeleton starter:
|
|
366
|
-
// `default` for callers that never named a template, `steering` for
|
|
367
|
-
// callers pinned to the pre-skeleton default's name.
|
|
368
|
-
if (name === "default" || name === "steering")
|
|
369
|
-
return SKELETON_TEMPLATE;
|
|
370
94
|
return TEMPLATES.get(name);
|
|
371
95
|
}
|
|
372
96
|
export function listInitTemplates() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/scan/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/scan/templates.ts"],"names":[],"mappings":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 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ghost
|
|
3
|
-
description: Author, validate, consume, and review against a repo-local
|
|
3
|
+
description: Author, validate, consume, and review against a repo-local ghost package — the medium-agnostic articulation of a product's brand. Use when the user wants to set up a .ghost package, write or update guidance nodes, gather brand context before generation, or assemble a review packet from ghost checks.
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
homepage: https://github.com/block/ghost
|
|
7
7
|
cli: ghost
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
#
|
|
10
|
+
# ghost — Brand Guidance Packages
|
|
11
11
|
|
|
12
|
-
A
|
|
13
|
-
its stance, its conditions, and optional pointers to the concrete materials
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
A ghost package is the medium-agnostic articulation of a brand: its guidance,
|
|
13
|
+
its stance, its conditions, and optional pointers to the concrete materials that
|
|
14
|
+
guidance governs. Each brand decision is stated once, at the broadest level where
|
|
15
|
+
it applies, and an agent reads the relevant guidance before building.
|
|
16
16
|
|
|
17
17
|
```text
|
|
18
18
|
.ghost/
|
|
19
19
|
manifest.yml # schema + id (the package anchor)
|
|
20
20
|
glossary.md # the author's kind vocabulary
|
|
21
21
|
materials/ # bundled materials; reserved, never nodes
|
|
22
|
-
<kind>.<slug>.md #
|
|
23
|
-
<slug>.md #
|
|
22
|
+
<kind>.<slug>.md # guidance of a declared kind
|
|
23
|
+
<slug>.md # guidance without a kind
|
|
24
24
|
checks/ # optional review assertions; never nodes
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## The model in one breath
|
|
28
28
|
|
|
29
|
-
- A **node** is a markdown file: `description`, optional `materials`, and
|
|
30
|
-
|
|
31
|
-
- `materials` is one list of locators for the concrete stuff the truth is about:
|
|
29
|
+
- A **node** is a markdown file: `description`, optional `materials`, and prose brand guidance.
|
|
30
|
+
- `materials` is one list of locators for the concrete stuff the guidance is about:
|
|
32
31
|
repo-relative paths/globs or absolute HTTPS URLs. `materials/` is reserved for
|
|
33
32
|
bundled materials; reference living implementations where they already live.
|
|
34
33
|
Guidance stays in prose.
|
|
@@ -55,36 +54,43 @@ true, and an agent reads the relevant truths before building.
|
|
|
55
54
|
ghost init # scaffold .ghost/ with the steering starter
|
|
56
55
|
ghost checks init # opt in to review assertions
|
|
57
56
|
ghost validate # artifact shape + node/material/check validation
|
|
58
|
-
ghost gather <ask> # emit
|
|
59
|
-
ghost pull <ids> #
|
|
57
|
+
ghost gather <ask> # emit Available guidance for this task
|
|
58
|
+
ghost pull <ids> # pull selected node bodies and materials
|
|
60
59
|
ghost review # assemble diff + matched material-backed nodes + checks
|
|
61
60
|
ghost export # package .ghost/ as a portable brand artifact
|
|
62
61
|
ghost pulse # summarize local gather/pull events while tuning
|
|
63
62
|
```
|
|
64
63
|
|
|
65
|
-
`gather` does no selection. It emits the
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
`gather` does no selection. It emits the complete, unfiltered, unranked menu
|
|
65
|
+
from the ghost package. You read the ask against descriptions, then
|
|
66
|
+
pull every applicable node and skip inapplicable nodes. Topic overlap alone is
|
|
67
|
+
not applicability. Its header includes a coverage line: total nodes and nodes
|
|
68
|
+
carrying concrete material. `gather` labels materials, substantial fenced
|
|
69
|
+
examples, and Skeletons separately, so an all-prose package is visible
|
|
70
|
+
before generation.
|
|
69
71
|
|
|
70
72
|
Prefer `ghost pull` over reading files directly: it emits the same prose,
|
|
71
73
|
inlines small local materials by default, turns binary materials into
|
|
72
|
-
inspect-pointers, orders the packet for steering (cover when selected,
|
|
73
|
-
prose rules), extracts Skeletons dead last, and appends
|
|
74
|
-
events to `.ghost/.events` for local tuning.
|
|
74
|
+
inspect-pointers, orders the packet for steering (cover when selected,
|
|
75
|
+
concrete nodes, prose rules), extracts Skeletons dead last, and appends
|
|
76
|
+
structured events to `.ghost/.events` for local tuning.
|
|
75
77
|
|
|
76
78
|
`review` does no grading. It assembles an advisory packet: touched files,
|
|
77
79
|
matched material-backed nodes, offered checks, probe
|
|
78
80
|
evidence, coverage gaps, and the diff. The host agent renders findings.
|
|
79
81
|
|
|
82
|
+
For visual work, do not stop at generation. Continue through material inspection,
|
|
83
|
+
compact briefing, rendered verification, bounded repair, and grounded review in
|
|
84
|
+
this same host-agent session.
|
|
85
|
+
|
|
80
86
|
## CLI verbs
|
|
81
87
|
|
|
82
88
|
| Verb | Purpose |
|
|
83
89
|
|---|---|
|
|
84
|
-
| `ghost init` | Scaffold `.ghost/` with the skeleton starter: manifest, glossary, a `brand.md` cover, foundation chapters, context nodes, and the cliche floor. `--
|
|
90
|
+
| `ghost init` | Scaffold `.ghost/` with the skeleton starter: manifest, glossary, a `brand.md` cover, foundation chapters, context nodes, and the cliche floor. `--with checks` also adds the checks directory. |
|
|
85
91
|
| `ghost checks init` | Scaffold `.ghost/checks/` with an example review assertion. |
|
|
86
92
|
| `ghost validate [file-or-dir]` | Validate manifest, nodes, material locators, check references, and glossary kind prefixes. |
|
|
87
|
-
| `ghost gather [ask…] [--format json]` | Emit the
|
|
93
|
+
| `ghost gather [ask…] [--format json]` | Emit the complete guidance menu plus coverage line; log exposed ids. |
|
|
88
94
|
| `ghost pull <id> [<id>…]` | Emit selected nodes' full bodies and materials in steering order; log selected/missed ids. |
|
|
89
95
|
| `ghost review [--diff <path|->] [--base <ref>] [--format json] [--no-probes]` | Emit an advisory review packet for a diff (requires `.ghost/checks/`). |
|
|
90
96
|
| `ghost export [--out <path>] [--no-checks] [--strict] [--format json]` | Package `.ghost/` as a portable brand artifact and report which material locators will not travel. |
|
|
@@ -101,7 +107,7 @@ from the node body and emits the fences at the end under a begin-from-this banne
|
|
|
101
107
|
If a pulled Skeleton matches the task, start the artifact from it verbatim, then
|
|
102
108
|
fill with task facts.
|
|
103
109
|
|
|
104
|
-
## Receiving a
|
|
110
|
+
## Receiving a ghost package
|
|
105
111
|
|
|
106
112
|
Unpack the exported archive, run `ghost validate --package <dir>`, then run
|
|
107
113
|
`ghost skill install` in the receiving workspace. From there, gather and pull
|
|
@@ -109,27 +115,29 @@ against the unpacked package with `--package <dir>`.
|
|
|
109
115
|
|
|
110
116
|
## Workflows
|
|
111
117
|
|
|
112
|
-
- Author or update the
|
|
118
|
+
- Author or update the package: follow [references/capture.md](references/capture.md).
|
|
119
|
+
- Distill supplied artifacts into new or existing guidance: follow [references/distill.md](references/distill.md).
|
|
113
120
|
- Author material-backed nodes: follow [references/blocks.md](references/blocks.md).
|
|
114
121
|
- Choose which concrete code tiers the package carries: follow [references/concrete-tiers.md](references/concrete-tiers.md).
|
|
115
122
|
- Choose the right human-agent authoring workflow: follow [references/authoring-scenarios.md](references/authoring-scenarios.md).
|
|
116
123
|
- Adapt a starter (a body or the skeleton) to your brand: follow [references/adapting-a-starter.md](references/adapting-a-starter.md).
|
|
117
|
-
- Gather applicable
|
|
124
|
+
- Gather applicable guidance for a task: follow [references/recall.md](references/recall.md).
|
|
125
|
+
- Make a visual artifact end to end: follow [references/making.md](references/making.md).
|
|
118
126
|
- Shape a pre-generation brief: follow [references/brief.md](references/brief.md).
|
|
119
127
|
- Probe readiness before generating: follow [references/self-check.md](references/self-check.md).
|
|
120
128
|
- Audit steering coverage: follow [references/steering-audit.md](references/steering-audit.md).
|
|
121
129
|
- Understand the package shape: see [references/schema.md](references/schema.md).
|
|
122
130
|
|
|
123
|
-
|
|
131
|
+
ghost package authoring is **elicitation, not scanning**. The raw material is what
|
|
124
132
|
the human brings and points at: words, images, links, exemplar products, brand
|
|
125
133
|
docs, copy they love or hate. Repo code can supply material locators and local
|
|
126
|
-
conventions, but durable brand
|
|
134
|
+
conventions, but durable brand guidance should be curated by the human.
|
|
127
135
|
|
|
128
|
-
## When the
|
|
136
|
+
## When the package is silent
|
|
129
137
|
|
|
130
|
-
A silent
|
|
138
|
+
A silent package does not require stopping. Proceed from nearby product
|
|
131
139
|
surfaces, local conventions, and ordinary reasoning when safe, and label that
|
|
132
|
-
reasoning as provisional and non-
|
|
140
|
+
reasoning as provisional and non-ghost-backed unless the package itself
|
|
133
141
|
declares a stricter silence posture (check the cover), which overrides
|
|
134
142
|
this default. Ask a human before high-risk, irreversible, privacy, security,
|
|
135
143
|
legal, or brand-defining choices.
|
|
@@ -137,7 +145,7 @@ legal, or brand-defining choices.
|
|
|
137
145
|
## Never
|
|
138
146
|
|
|
139
147
|
- Never invent hierarchy, inheritance, or cross-node edges.
|
|
140
|
-
- Never file a
|
|
148
|
+
- Never file a node by destination (`for-emails.md`); state its condition in prose.
|
|
141
149
|
- Never put guidance in `materials`; it belongs in the node body.
|
|
142
150
|
- Never gather checks as generation context.
|
|
143
|
-
- Never claim provisional or local-convention reasoning as
|
|
151
|
+
- Never claim provisional or local-convention reasoning as ghost-backed.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: adapting-a-starter
|
|
3
|
-
description: Transplant a starter
|
|
3
|
+
description: Transplant a starter ghost package — a body like vessel-light or the naked skeleton — into your own brand, one procedure from manifest id to regenerated refs.
|
|
4
4
|
handoffs:
|
|
5
5
|
- label: Validate the adapted package
|
|
6
6
|
command: ghost validate --format json
|
|
7
|
-
prompt: Does the adapted
|
|
7
|
+
prompt: Does the adapted package validate, and did any pruned rule orphan a check reference?
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
# Recipe: Adapt A Starter
|
|
10
|
+
# Recipe: Adapt A Starter Package
|
|
11
11
|
|
|
12
12
|
**Goal:** turn an installed starter — a full body (`ghost init --body
|
|
13
13
|
vessel-light`) or the naked skeleton (`ghost init`) — into *your* brand's
|
|
14
|
-
|
|
14
|
+
brand guidance without shipping a self-contradicting package.
|
|
15
15
|
|
|
16
16
|
The naked skeleton is factored by what must happen during adaptation:
|
|
17
17
|
|
|
@@ -26,7 +26,7 @@ The naked skeleton is factored by what must happen during adaptation:
|
|
|
26
26
|
|
|
27
27
|
Do the steps **in order and in one sitting** where possible. A half-adapted
|
|
28
28
|
package is worse than an unadapted one: stale refs steer harder than any prose
|
|
29
|
-
you rewrote, so stopping before refs and checks are current ships a
|
|
29
|
+
you rewrote, so stopping before refs and checks are current ships a package
|
|
30
30
|
that contradicts itself.
|
|
31
31
|
|
|
32
32
|
## The procedure
|
|
@@ -64,7 +64,7 @@ that contradicts itself.
|
|
|
64
64
|
stale ref loses. Rebuild each ref against the new values and chapter answers,
|
|
65
65
|
keep any annotation headers current, and make each ref demonstrate its closed
|
|
66
66
|
sets completely. If the starter shipped no refs, generate them now — a
|
|
67
|
-
|
|
67
|
+
package with no exemplars steers at half strength.
|
|
68
68
|
8. **Rewrite checks and near-miss nodes.** For each answered foundation chapter,
|
|
69
69
|
name the failure mode one step away from the answer and its replacement. Put
|
|
70
70
|
pre-generation guidance in nodes and review assertions in `checks/`; never
|
|
@@ -81,11 +81,11 @@ Work does not block on adaptation. Before the procedure runs (or midway through
|
|
|
81
81
|
it), cite starter content honestly:
|
|
82
82
|
|
|
83
83
|
- Cover scaffolding and unanswered foundation sections: **provisional** — never
|
|
84
|
-
plain brand
|
|
85
|
-
- Foundation usage rules: **
|
|
84
|
+
plain brand guidance.
|
|
85
|
+
- Foundation usage rules: **ghost-backed starter structure** until the human
|
|
86
86
|
answers the open sections and edits the misuse lists.
|
|
87
|
-
- Surviving median rules: **owner-backed after init** —
|
|
88
|
-
measured model
|
|
87
|
+
- Surviving median rules: **owner-backed after init** — ghost stamps this
|
|
88
|
+
measured model behavior into every initialized package; you own the pruning and
|
|
89
89
|
any adaptation thereafter.
|
|
90
90
|
- Context nodes: **conditional** — read only when their situation matches, and
|
|
91
91
|
revisit them after the foundation answers change.
|
|
@@ -94,7 +94,7 @@ it), cite starter content honestly:
|
|
|
94
94
|
|
|
95
95
|
## Never
|
|
96
96
|
|
|
97
|
-
- Never leave cover scaffolding in a real
|
|
97
|
+
- Never leave cover scaffolding in a real ghost package.
|
|
98
98
|
- Never present your provisional value as the brand's answer.
|
|
99
99
|
- Never leave stale refs alongside new values — regenerate or delete; a stale
|
|
100
100
|
exemplar outweighs rewritten prose.
|