@cratis/pi 7.131.3 → 7.131.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +2 -2
- package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +33 -11
- package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +67 -64
- package/package/corpus/prompts/write-documentation.prompt.md +31 -4
- package/package/corpus/rules/discoverability.md +2 -2
- package/package/corpus/rules/documentation.md +33 -11
- package/package/corpus/rules/writing-cratis-docs.md +67 -64
- package/package/corpus/skills/cratis-discoverability/SKILL.md +9 -8
- package/package/corpus/skills/cratis-discoverability/references/page-checklist.md +21 -16
- package/package/corpus/skills/cratis-documentation-writing/SKILL.md +78 -28
- package/package/corpus/skills/cratis-documentation-writing/references/cratis-site.md +49 -8
- package/package/corpus/skills/cratis-documentation-writing/references/reader-review.md +88 -0
- package/package/corpus/skills/cratis-documentation-writing/verification.json +14 -1
- package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +38 -13
- package/package/corpus/skills/cratis-engineering-docs-authoring/references/explaining-code.md +142 -0
- package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +5 -0
- package/package/corpus/skills/cratis-engineering-docs-authoring/verification.json +12 -0
- package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +32 -8
- package/package/corpus/skills/cratis-llm-friendly-documentation/verification.json +15 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +17 -5
- package/package/corpus/skills/cratis-technical-examples/SKILL.md +42 -8
- package/package/corpus/skills/cratis-technical-examples/verification.json +7 -1
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +47 -10
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +12 -5
- package/package/corpus/skills/cratis-writing-voice-and-cadence/verification.json +9 -2
- package/package.json +1 -1
|
@@ -24,12 +24,13 @@ Read `references/page-checklist.md` when checking a page, including docs lint ba
|
|
|
24
24
|
## Checks by content type
|
|
25
25
|
|
|
26
26
|
- **Docs page.** The `description` is written by hand as one self-contained
|
|
27
|
-
definition or outcome sentence.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Reference pages stay terse: title is the exact name plus its product,
|
|
32
|
-
|
|
27
|
+
definition or outcome sentence. Follow `writing-cratis-docs` for the page's purpose, voice and
|
|
28
|
+
structure; it takes precedence over discoverability suggestions. A scenario can help a tutorial
|
|
29
|
+
or explanation, but is not a required opener. Product index pages should make the product's
|
|
30
|
+
purpose clear near the beginning without forcing a definition into the first sentence.
|
|
31
|
+
Reference pages stay terse: title is the exact name plus its product, headings support lookup,
|
|
32
|
+
and introductory context appears only where needed to use the entry. Titles are unique across
|
|
33
|
+
the site and name the product ("Chronicle projections"). Keep
|
|
33
34
|
description and duplicate-title lint baselines at 0; never raise a baseline to pass. Check
|
|
34
35
|
rendered titles and measure `llms.txt` / `llms-small.txt` bytes against the site budgets.
|
|
35
36
|
- **Blog post.** The title states the topic in the words a reader would search. The intro gives the
|
|
@@ -83,8 +84,8 @@ Read `scripts/verify-discoverability.mjs` only when changing the checker.
|
|
|
83
84
|
|
|
84
85
|
## Pitfalls
|
|
85
86
|
|
|
86
|
-
- Question headings everywhere: use
|
|
87
|
-
|
|
87
|
+
- Question headings everywhere: use a question only when it expresses the reader's actual question
|
|
88
|
+
more clearly than a subject or action heading. Do not impose one heading form across page types.
|
|
88
89
|
- Padding to a word count: there is no minimum length; a complete page is done.
|
|
89
90
|
- Apex `https://cratis.io/` links: the docs host is `https://www.cratis.io`.
|
|
90
91
|
- A description that repeats the title or a sibling page's description.
|
|
@@ -19,7 +19,7 @@ Lengths are targets, counted in characters including any site suffix.
|
|
|
19
19
|
| --- | --- |
|
|
20
20
|
| Title | Distinguishing term first. Blog and landing pages 50-60; docs and reference pages 20-60; a README H1 that is the product name is fine |
|
|
21
21
|
| Description | One sentence, 60-160, never over 160; the point comes first |
|
|
22
|
-
| Lead answer passage |
|
|
22
|
+
| Lead answer passage | Where useful, name the subject and answer the reader's question; no fixed length or required opener |
|
|
23
23
|
| Heading | Under about 70 characters |
|
|
24
24
|
| `og:image` | 1200x630, under 200 KB, with `og:image:alt` |
|
|
25
25
|
|
|
@@ -28,7 +28,7 @@ Lengths are targets, counted in characters including any site suffix.
|
|
|
28
28
|
- [ ] One reader job. For docs, one page type: tutorial, how-to, reference or explanation.
|
|
29
29
|
- [ ] Title unique, distinguishing term near the front.
|
|
30
30
|
- [ ] Description written by hand; not the title, not another page's description.
|
|
31
|
-
- [ ] The `description` answers what the page is or achieves in one self-contained sentence; the first paragraph does too on landing,
|
|
31
|
+
- [ ] The `description` answers what the page is or achieves in one self-contained sentence; the first paragraph does too on landing, glossary and README pages. Product index pages make the product's purpose clear near the beginning.
|
|
32
32
|
- [ ] Canonical names; first mention uses the full "Cratis X" form.
|
|
33
33
|
- [ ] Facts, numbers and comparisons carry a source, and counts also carry a date; nothing beyond the claim gate.
|
|
34
34
|
- [ ] Links have descriptive text. Root-relative inside the docs site, absolute
|
|
@@ -39,20 +39,25 @@ Lengths are targets, counted in characters including any site suffix.
|
|
|
39
39
|
|
|
40
40
|
## Docs pages
|
|
41
41
|
|
|
42
|
-
- Voice and structure follow `writing-cratis-docs`, which wins on any conflict
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- Product index page:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
42
|
+
- Voice and structure follow `writing-cratis-docs`, which wins on any conflict. Let the reader's
|
|
43
|
+
task and page purpose determine the opening and sequence; a concrete scenario is useful where
|
|
44
|
+
it helps explain the problem, not a mandatory first paragraph. Keep the self-contained definition
|
|
45
|
+
or outcome in the frontmatter `description`.
|
|
46
|
+
- Product index page: make the product's purpose clear early; use without-versus-with framing only
|
|
47
|
+
where it helps the reader choose.
|
|
48
|
+
- Concept page: explain the missing reasoning, choosing the relevant why, when or how rather than
|
|
49
|
+
requiring every topic in a fixed order. H2s such as "What is X" and "When to use X" only where they
|
|
50
|
+
fit. No H1 in the body.
|
|
51
|
+
- Tutorial: title names the outcome and starts with a verb; make clear what the reader will
|
|
52
|
+
have running; necessary prerequisites before the affected steps; one visible result per step.
|
|
53
|
+
State version or compatibility limits when they change what the reader can run, not an author's
|
|
54
|
+
verification date or version diary.
|
|
55
|
+
- How-to: the task as the title; goal, necessary prerequisites, numbered steps and a done check.
|
|
56
|
+
Include relevant failure and recovery guidance without a fixed count, and state version or
|
|
57
|
+
compatibility limits where they affect the task.
|
|
58
|
+
- Reference: the title is the exact name with its product; state its purpose where needed to use
|
|
59
|
+
the entry; tables and signatures; stable anchors; no generic intro or pitch. Merge or enrich
|
|
60
|
+
near-empty stub pages.
|
|
56
61
|
|
|
57
62
|
## Blog posts
|
|
58
63
|
|
|
@@ -15,6 +15,24 @@ as a compass for each page's primary purpose, not a purity test. This skill
|
|
|
15
15
|
governs content and reader journeys; the owning repository governs page
|
|
16
16
|
placement, navigation, and rendering.
|
|
17
17
|
|
|
18
|
+
## Use the specialists at their boundary
|
|
19
|
+
|
|
20
|
+
Read this skill to plan the reader journey, then read
|
|
21
|
+
**cratis-engineering-docs-authoring** to draft from product evidence,
|
|
22
|
+
**cratis-technical-examples** to verify code, commands, configuration and output,
|
|
23
|
+
and **cratis-llm-friendly-documentation** when discovery or exported representations
|
|
24
|
+
are involved. Read **cratis-writing-voice-and-cadence** before revising existing
|
|
25
|
+
prose. Skill availability is not evidence that its instructions were read.
|
|
26
|
+
Before drafting or revising explanations beside examples, read and apply
|
|
27
|
+
[Explaining code](../cratis-engineering-docs-authoring/references/explaining-code.md).
|
|
28
|
+
Use its worked transformations to choose the detail that carries the explanation;
|
|
29
|
+
use its multi-client guidance before choosing shared prose, tabs or separate
|
|
30
|
+
procedures. Read the resulting paragraphs for connected reasoning, not just
|
|
31
|
+
coverage of accuracy questions.
|
|
32
|
+
The [documentation rule](../../rules/documentation.md) owns Platform naming and
|
|
33
|
+
product-claim constraints; do not turn an umbrella label into a dependency on
|
|
34
|
+
all components.
|
|
35
|
+
|
|
18
36
|
## Classify before writing
|
|
19
37
|
|
|
20
38
|
Determine which quadrant the page belongs to before drafting:
|
|
@@ -38,13 +56,15 @@ Rules per type:
|
|
|
38
56
|
path, with no registration or wiring a convention already does, then name
|
|
39
57
|
what the framework did that the reader cannot see.
|
|
40
58
|
- **How-to guide** — assume competence. State the goal, list prerequisites,
|
|
41
|
-
give the steps
|
|
59
|
+
give the steps and a completion check. Explain necessary concepts, effects,
|
|
60
|
+
and recovery beside the step; link sustained teaching elsewhere.
|
|
42
61
|
- **Reference** — exhaustive within its declared scope and terse. For each
|
|
43
62
|
public option or API, cover type, required/optional status, default, valid
|
|
44
63
|
values, return behavior, errors and compatibility where applicable. State
|
|
45
64
|
scope and link to a working usage example; do not turn it into a lesson.
|
|
46
|
-
- **Explanation** —
|
|
47
|
-
|
|
65
|
+
- **Explanation** — discuss concepts, trade-offs, and design decisions. Short
|
|
66
|
+
steps or examples can make an effect concrete without becoming a full
|
|
67
|
+
procedure. Diagrams are welcome when they clarify a relationship.
|
|
48
68
|
|
|
49
69
|
A brief prerequisite or explanation may serve the main journey. If a reader
|
|
50
70
|
also needs an exhaustive lookup, link a reference page rather than burying it
|
|
@@ -56,34 +76,41 @@ and neighboring pages; ask only when the alternatives change the outcome.
|
|
|
56
76
|
1. Find the authored source, neighboring pages, existing user entry points,
|
|
57
77
|
and current product behavior. Do not edit generated site copies. Identify
|
|
58
78
|
whether the reader is new, migrating, troubleshooting, or looking up an API.
|
|
59
|
-
2.
|
|
60
|
-
|
|
61
|
-
|
|
79
|
+
2. Identify the question the reader came with and what would answer it.
|
|
80
|
+
Let the title and opening serve that task: a tutorial can introduce a concrete
|
|
81
|
+
problem and payoff; a reference entry can state the requested contract directly.
|
|
82
|
+
Include context when it helps the reader act or understand.
|
|
62
83
|
3. Trace a short route from that page to one clear 'start here' entry,
|
|
63
84
|
targeted recipes, and exact reference. Give different languages or hosts
|
|
64
85
|
their own procedures when a shared path cannot be run as written. A
|
|
65
86
|
'coming from X' bridge should map familiar concepts to the new workflow,
|
|
66
|
-
not replace it. When
|
|
67
|
-
|
|
68
|
-
source, id and response wire types, default authorization, live versus
|
|
69
|
-
snapshot queries, and unsupported features with their tracking issue
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
87
|
+
not replace it. When comparison helps readers choose among backends, use a
|
|
88
|
+
"how the backends differ" table near the start for relevant distinctions:
|
|
89
|
+
identity source, id and response wire types, default authorization, live versus
|
|
90
|
+
snapshot queries, and unsupported features with their tracking issue when
|
|
91
|
+
available. Across a series, keep backend limitations in one table on the series index
|
|
92
|
+
and link it, while keeping action-changing differences beside the affected
|
|
93
|
+
example. Keep essential shared context and warnings outside tabs. Check each
|
|
94
|
+
client independently: shared concepts do not imply shared setup, semantics or
|
|
95
|
+
support. Give divergent setup its own coherent procedure.
|
|
73
96
|
4. Link required tools to their canonical installation procedures before the
|
|
74
97
|
first command. For cross-product prerequisites, use a verified public route;
|
|
75
98
|
a named Markdown reference is defined on this same page, not in another
|
|
76
99
|
repository. Do not revive DocFX `xref:` symbols or duplicate another
|
|
77
100
|
product's setup recipe. See the documentation formatting rule for syntax.
|
|
78
|
-
5. Draft in workflow order. For a tutorial, use one working domain throughout
|
|
79
|
-
show what to run and what appears
|
|
80
|
-
For a how-to, keep only what the
|
|
101
|
+
5. Draft in workflow order. For a tutorial, use one working domain throughout
|
|
102
|
+
and show what to run and what appears. Recap only when a longer thread needs
|
|
103
|
+
reorientation before another concept. For a how-to, keep only what the
|
|
104
|
+
specific task needs. Link out for details.
|
|
81
105
|
Many Cratis readers are adopting a paradigm (event sourcing, event
|
|
82
106
|
modeling, vertical slices), not only a tool: link the explanation from the
|
|
83
107
|
start route, but let the reader reach a first success before the theory.
|
|
84
108
|
6. Read the rendered page as a newcomer: could they find it, begin without
|
|
85
109
|
hidden prerequisites, recover from a common mistake, and recognize success?
|
|
86
|
-
|
|
110
|
+
For a new or materially changed journey, read and use
|
|
111
|
+
[fresh-context reader review](references/reader-review.md). An author's
|
|
112
|
+
reread is useful but is not independent reader evidence. Check claims,
|
|
113
|
+
examples, accessibility, links, and the owning gates separately.
|
|
87
114
|
|
|
88
115
|
Use support questions and user feedback as evidence: ask what they searched
|
|
89
116
|
for, where they looked, and which step failed. Repair the entry link, wording,
|
|
@@ -104,12 +131,13 @@ explaining something to a capable developer, confident but never condescending.
|
|
|
104
131
|
|
|
105
132
|
- **Active voice, present tense.** "Chronicle appends the event", not "The
|
|
106
133
|
event is appended by Chronicle."
|
|
107
|
-
-
|
|
108
|
-
|
|
134
|
+
- Address the reader when giving an action: "You configure…". In reference
|
|
135
|
+
and explanation, let the API or component be the subject when that is clearer.
|
|
109
136
|
- **Lead with the reader's problem and payoff.** Explain why a capability
|
|
110
137
|
matters before its configuration, except in a terse how-to or reference.
|
|
111
|
-
-
|
|
112
|
-
|
|
138
|
+
- Develop explanations in connected paragraphs. Use headings to locate them,
|
|
139
|
+
lists for real steps, and tables for comparisons; do not fragment reasoning
|
|
140
|
+
into a series of labeled boundaries.
|
|
113
141
|
- Focus on public behavior. Explain what happens behind an example when the
|
|
114
142
|
reader needs it to understand the result, without turning the page into an
|
|
115
143
|
internal implementation manual.
|
|
@@ -172,6 +200,26 @@ because the site builds: syntax and behavior are different checks.
|
|
|
172
200
|
A page is done for this change, not finished forever. Expect to revisit its
|
|
173
201
|
wording, structure and examples as readers hit them.
|
|
174
202
|
|
|
203
|
+
## Guide the next useful action
|
|
204
|
+
|
|
205
|
+
Give enough context to choose a relevant path, then place each prerequisite
|
|
206
|
+
beside its first use. Distinguish optional integration from required setup.
|
|
207
|
+
For a procedure, show a small meaningful action, its visible result and any
|
|
208
|
+
invisible effect before linking the next task or exact reference. Develop the
|
|
209
|
+
explanation from that action using **Explaining code**, rather than publishing
|
|
210
|
+
a separate list of responsibilities, defaults and limits. Link
|
|
211
|
+
source-backed recovery at likely failure points; do not invent error messages
|
|
212
|
+
or recovery commands. Keep lookup pages concise and explanations purpose-led,
|
|
213
|
+
not a compulsory tutorial template.
|
|
214
|
+
|
|
215
|
+
For Astro pages, deliberately choose supported presentation from
|
|
216
|
+
[the site guide](references/cratis-site.md) when it helps the task: ordered
|
|
217
|
+
steps, consequential callouts, peer-choice cards, or diagrams and code emphasis.
|
|
218
|
+
A prose-only pass can miss useful aids; uniform decoration can obscure them.
|
|
219
|
+
Preserve semantic order, accessibility and text/AI export meaning. Select the
|
|
220
|
+
relevant perspectives in [reader review](references/reader-review.md),
|
|
221
|
+
proportionately, without requiring a reviewer for every lens.
|
|
222
|
+
|
|
175
223
|
## Cratis platform specifics
|
|
176
224
|
|
|
177
225
|
Read [Cratis site specifics](references/cratis-site.md) before writing a
|
|
@@ -190,14 +238,13 @@ feedback signal, and who decides page structure.
|
|
|
190
238
|
- Do not fabricate URLs or version numbers — link only to resources you can
|
|
191
239
|
verify exist.
|
|
192
240
|
|
|
193
|
-
##
|
|
241
|
+
## Keep editorial research private
|
|
194
242
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
causes better documentation: borrow the habits, not Wolverine's structure.
|
|
243
|
+
Keep stylistic influences and editorial research in private working notes,
|
|
244
|
+
not documentation, GitHub issues, pull requests, release notes or other public
|
|
245
|
+
text. Develop each reader journey from Cratis product evidence rather than
|
|
246
|
+
copying another project's structure or claims. This does not remove third-party
|
|
247
|
+
integration names, necessary API identifiers or links readers need to use them.
|
|
201
248
|
|
|
202
249
|
## Completion checklist
|
|
203
250
|
|
|
@@ -215,6 +262,9 @@ A page is done when:
|
|
|
215
262
|
checkable result; longer examples come from compiling sample or spec source.
|
|
216
263
|
Explanations of what happened match the backend the reader built.
|
|
217
264
|
- The entry point, terminology, and next-step links fit the surrounding docs.
|
|
265
|
+
- A new or materially changed journey has fresh-context reader evidence, or
|
|
266
|
+
explicitly reports that review as unavailable. Missing steps and guessed
|
|
267
|
+
prerequisites are gaps, not reader success.
|
|
218
268
|
- All internal links resolve; all external links are real.
|
|
219
269
|
- Mermaid blocks are syntactically valid.
|
|
220
270
|
- The file ends with a single trailing newline.
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
# Cratis site specifics
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Teaching components
|
|
6
|
+
- Preserve the text and citation path
|
|
7
|
+
- Maturity
|
|
8
|
+
- Cross-product compatibility
|
|
9
|
+
- Prompter as a documentation signal
|
|
10
|
+
- Bridges and comparisons
|
|
11
|
+
- Structure and publishing
|
|
7
12
|
|
|
8
13
|
## Teaching components
|
|
9
14
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
Confirm presentation against the owning Documentation repository's
|
|
16
|
+
`web/src/components`, installed Starlight exports, `web/astro.config.mjs`,
|
|
17
|
+
`web/scripts/sync-content.mjs` and `web/variant-docs.yml` before using it.
|
|
18
|
+
|
|
19
|
+
Choose a component because it helps the reader act, understand or recover,
|
|
20
|
+
not because every page needs decoration. Product `.md` pages support native
|
|
21
|
+
aside directives such as `:::note`, `:::tip` and `:::caution`. Imports and JSX
|
|
22
|
+
require `.mdx` and an owning pipeline that supports the component; do not copy
|
|
23
|
+
raw site imports into ordinary Markdown or convert whole chapters by default.
|
|
13
24
|
|
|
14
25
|
| Need | Use |
|
|
15
26
|
| --- | --- |
|
|
@@ -17,7 +28,12 @@ imports and JSX. Use one where it clearly teaches better than plain Markdown.
|
|
|
17
28
|
| Close a tutorial chapter | `import Recap from '@components/Recap.astro'`; optional `title` |
|
|
18
29
|
| Ordered procedure | `import { Steps } from '@astrojs/starlight/components'` around an ordered list |
|
|
19
30
|
| One example in every client language | `<ChronicleClientTabs snippet="…" />` or `<ArcBackendTabs snippet="…" />`, expanded at sync time from client-owned snippet files |
|
|
20
|
-
|
|
|
31
|
+
| Genuinely independent variants | Import Starlight `Tabs` and `TabItem`; give each variant a descriptive label and complete prerequisites |
|
|
32
|
+
| Backend and frontend roles in a full-stack example | `import FullStackTabs from '@components/FullStackTabs.astro'`, named `csharp` and `typescript` slots; these roles are not interchangeable alternatives |
|
|
33
|
+
| Consequential prerequisite, risk or limitation | Native aside directive, or Starlight `Aside` in supported MDX; state the boundary before its first consequence |
|
|
34
|
+
| Peer task choices and destinations | Starlight `Card`, `CardGrid` or `LinkCard`; use meaningful link text, not a compulsory card for every section |
|
|
35
|
+
| Relationships or state transitions | A Mermaid fence; the site is configured for prerendering with client fallback, not guaranteed rendering or accessibility; essential relationships also need readable text |
|
|
36
|
+
| A reader needs to locate code or a change | Language-tagged fences; use configured Expressive Code filename/highlight features only after confirming their exact syntax |
|
|
21
37
|
|
|
22
38
|
- The client-tab macros take `snippet`, and optionally `syncKey` and a
|
|
23
39
|
`variants="java,kotlin"` subset. There is no `clients` property: a tab
|
|
@@ -38,6 +54,31 @@ imports and JSX. Use one where it clearly teaches better than plain Markdown.
|
|
|
38
54
|
- `TopicHero` declares `title` (required), `icon` and `eyebrow`. Don't copy
|
|
39
55
|
props from a page that passes others; they are ignored.
|
|
40
56
|
|
|
57
|
+
Keep required backend-to-frontend actions sequential rather than hiding one
|
|
58
|
+
half as an optional tab. For Markdown children inside supported components,
|
|
59
|
+
retain blank lines and semantic heading/list order. Inspect relevant keyboard
|
|
60
|
+
navigation, focus, text alternatives and small-screen/light/dark presentation;
|
|
61
|
+
a component's availability is not accessibility evidence.
|
|
62
|
+
|
|
63
|
+
## Preserve the text and citation path
|
|
64
|
+
|
|
65
|
+
The Copy Markdown pipeline strips MDX imports/wrappers while retaining supported
|
|
66
|
+
static labels and children. It flattens syntax; it does not execute arbitrary
|
|
67
|
+
components or prove that every prop survives. Keep essential meaning in
|
|
68
|
+
prose/children and inspect the bounded emitted Markdown, not just the MDX source.
|
|
69
|
+
For example, a `LinkCard` destination can survive while its `description` prop
|
|
70
|
+
is lost; an `Aside` can retain a title but lose its type or computed default
|
|
71
|
+
heading; `FullStackTabs` can lose computed backend/frontend role labels.
|
|
72
|
+
Put the choice, warning and role in readable content as well. Preserve both
|
|
73
|
+
variants, code, links and a causal reading order.
|
|
74
|
+
|
|
75
|
+
Retain the canonical URL and heading/source context needed to cite the page.
|
|
76
|
+
Check relevant Markdown/LLM exports for lost boundaries or duplicate/misleading
|
|
77
|
+
labels. Rendering success does not establish export correctness, citation
|
|
78
|
+
resolution, runtime behavior or assistant answer quality. Use
|
|
79
|
+
[reader review](reader-review.md) for an uncoached task attempt, and the
|
|
80
|
+
**cratis-llm-friendly-documentation** skill for bounded retrieval/citation work.
|
|
81
|
+
|
|
41
82
|
## Maturity
|
|
42
83
|
|
|
43
84
|
The site has no single maturity convention. The sidebar badges some surfaces
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Fresh-context reader review
|
|
2
|
+
|
|
3
|
+
Use this procedure for a new or materially changed documentation journey. Keep
|
|
4
|
+
it proportional: a short how-to needs a task check, not a simulated onboarding
|
|
5
|
+
program. A reader may be a person or, when authorized, a separate fresh-context
|
|
6
|
+
agent. Do not launch another agent or model evaluation without authorization.
|
|
7
|
+
If independent review is unavailable, report it as unavailable; an author's
|
|
8
|
+
self-review is not a substitute.
|
|
9
|
+
|
|
10
|
+
## Give the reader only what the page gives them
|
|
11
|
+
|
|
12
|
+
Identify the intended audience and one concrete task. Supply the page or bounded
|
|
13
|
+
export and only its explicitly stated prerequisites and links, not the author's
|
|
14
|
+
answers, private source notes, implementation context or a coached sequence.
|
|
15
|
+
Record what the reader actually received. The reader follows that material and
|
|
16
|
+
reports what to do, what happens and how to recognize success. Do not silently
|
|
17
|
+
repair missing setup from personal knowledge. Guesses and unprovided
|
|
18
|
+
prerequisites are documentation gaps even if the reader eventually succeeds.
|
|
19
|
+
|
|
20
|
+
Use the same reader questions for a Platform front door, a single-component
|
|
21
|
+
procedure or a cross-component journey; do not force the whole Platform into
|
|
22
|
+
a task that needs only one component:
|
|
23
|
+
|
|
24
|
+
- Can you identify the first action and its prerequisites without guessing?
|
|
25
|
+
- What changed after the step, and what visible result proves it?
|
|
26
|
+
- Which component owns each responsibility or handoff? When code and
|
|
27
|
+
configuration use different host processes, where does each piece run?
|
|
28
|
+
- Which names, identifiers, file paths and wire types connect the steps?
|
|
29
|
+
- What are the defaults, limitations and a likely failure or recovery path?
|
|
30
|
+
- Does a linked next step continue the task rather than leave a dead end?
|
|
31
|
+
|
|
32
|
+
Observe the smallest gap that blocks or misleads this reader. Repair the
|
|
33
|
+
prerequisite, handoff, identifier or explanation at that point, then recheck
|
|
34
|
+
the affected passage without leaking the answer into the review. Do not
|
|
35
|
+
redesign navigation or rewrite the whole corpus as a side effect. Hand wider
|
|
36
|
+
changes back to the owner.
|
|
37
|
+
|
|
38
|
+
## Select the perspectives that can expose this page's gaps
|
|
39
|
+
|
|
40
|
+
Choose lenses relevant to the task, not a mandatory review board or a fixed
|
|
41
|
+
number of agents. One reviewer may cover several; a short change may need only
|
|
42
|
+
one task check. Keep the independent task attempt page-only and uncoached.
|
|
43
|
+
Source/security reviewers may inspect authoritative evidence separately; do
|
|
44
|
+
not feed their answers into that attempt.
|
|
45
|
+
|
|
46
|
+
| Lens | Question when relevant |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| Newcomer | Can someone start, follow the causal steps and recognize success without private setup knowledge? |
|
|
49
|
+
| Experienced developer | Can someone find the contract, adapt the example and identify boundaries without replaying a whole tutorial? |
|
|
50
|
+
| Operator | Are host/configuration ownership, safe defaults and source-backed recovery links clear? |
|
|
51
|
+
| AI/text reader | Does the bounded export preserve the task, warnings, variants, links and canonical citation context? |
|
|
52
|
+
| Security/trust boundary | Are credentials, network exposure, permissions, destructive actions, tenant boundaries and preview/production limits accurate and visible before the risky step? |
|
|
53
|
+
| Accessibility/visual/editorial | Do semantic order, keyboard/focus behavior, text alternatives, small screens, contrast and wording help the task where applicable? |
|
|
54
|
+
|
|
55
|
+
Check accuracy against source independently of style. Cards or tabs should
|
|
56
|
+
clarify a choice; a diagram needs meaningful text, not just an image. An export
|
|
57
|
+
or image label alone proves neither accessibility nor AI comprehension. Link
|
|
58
|
+
only recovery supported by the owning source, not invented commands or errors.
|
|
59
|
+
Record the demonstrated gap, repair it and recheck the affected passage once;
|
|
60
|
+
broaden review only for new evidence, not repeated polishing loops.
|
|
61
|
+
|
|
62
|
+
## Keep evidence levels separate
|
|
63
|
+
|
|
64
|
+
Record each level independently; one passing level cannot stand in for another.
|
|
65
|
+
|
|
66
|
+
| Level | What it establishes | What it does not establish |
|
|
67
|
+
| --- | --- | --- |
|
|
68
|
+
| Comprehension | A fresh reader can recover the task, boundaries and expected result from the supplied material | That any API exists or code runs |
|
|
69
|
+
| Source checking | Claims, signatures and commands match authoritative source at the stated revision | Compilation or behavior |
|
|
70
|
+
| Compilation | The actual displayed example compiles at its stated scope | Runtime behavior, registration or discovery |
|
|
71
|
+
| Runtime | The example produces the claimed behavior in the named local environment | Deployment or another host, backend or version |
|
|
72
|
+
| Deployed | The deployed page, route or service was checked in its actual environment | Untested variants or general assistant answer quality |
|
|
73
|
+
|
|
74
|
+
A site build checks rendering; a static routing check checks the corpus's
|
|
75
|
+
structure. Neither proves comprehension. Reading expected output is not
|
|
76
|
+
observing runtime output. For commands and snippets, use
|
|
77
|
+
**cratis-technical-examples**; for bounded exports and source citations, use
|
|
78
|
+
**cratis-llm-friendly-documentation**.
|
|
79
|
+
|
|
80
|
+
## Report only what happened
|
|
81
|
+
|
|
82
|
+
Keep a concise private author/change note: audience and task; supplied material;
|
|
83
|
+
reader and context isolation; guessed prerequisites and failure points;
|
|
84
|
+
smallest repairs; checks run and remaining gaps. For AI-assisted work, include
|
|
85
|
+
actual skill paths, source revision, and observed read order when available.
|
|
86
|
+
Do not infer reads from an installed skill, a route or an invocation, and do
|
|
87
|
+
not fabricate unavailable transcript evidence. This is not a public verification
|
|
88
|
+
receipt, a new tracking system or a reason to add test logs to the page.
|
|
@@ -11,6 +11,19 @@
|
|
|
11
11
|
{ "kind": "skill-contains", "value": "\"how the backends differ\" table" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "keep backend limitations in one table on the series index" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "single-language claims" },
|
|
14
|
-
{ "kind": "skill-contains", "value": "the variant-docs audit" }
|
|
14
|
+
{ "kind": "skill-contains", "value": "the variant-docs audit" },
|
|
15
|
+
{ "kind": "skill-contains", "value": "(references/reader-review.md)" },
|
|
16
|
+
{ "kind": "skill-contains", "value": "## Use the specialists at their boundary" },
|
|
17
|
+
{ "kind": "skill-contains", "value": "not independent reader evidence" },
|
|
18
|
+
{ "kind": "skill-contains", "file": "references/reader-review.md", "value": "## Give the reader only what the page gives them" },
|
|
19
|
+
{ "kind": "skill-contains", "file": "references/reader-review.md", "value": "| Comprehension |" },
|
|
20
|
+
{ "kind": "skill-contains", "file": "references/reader-review.md", "value": "| Deployed |" },
|
|
21
|
+
{ "kind": "skill-contains", "file": "references/reader-review.md", "value": "Do not infer reads" },
|
|
22
|
+
{ "kind": "skill-contains", "value": "## Guide the next useful action" },
|
|
23
|
+
{ "kind": "skill-contains", "file": "references/reader-review.md", "value": "## Select the perspectives that can expose this page's gaps" },
|
|
24
|
+
{ "kind": "skill-contains", "file": "references/cratis-site.md", "value": "## Preserve the text and citation path" },
|
|
25
|
+
{ "kind": "skill-contains", "value": "Before drafting or revising explanations beside examples, read and apply" },
|
|
26
|
+
{ "kind": "skill-contains", "value": "(../cratis-engineering-docs-authoring/references/explaining-code.md)" },
|
|
27
|
+
{ "kind": "skill-contains", "value": "Check each\n client independently" }
|
|
15
28
|
]
|
|
16
29
|
}
|
|
@@ -13,6 +13,15 @@ by its document type. This skill owns **content**. It does not decide which
|
|
|
13
13
|
repository owns a page, wire site navigation, locate an existing source page, or
|
|
14
14
|
perform visual QA.
|
|
15
15
|
|
|
16
|
+
Read **cratis-documentation-writing** for the reader journey and the
|
|
17
|
+
[documentation rule](../../rules/documentation.md) for Platform naming and
|
|
18
|
+
product-claim constraints. Use those shared contracts rather than inventing
|
|
19
|
+
a second review procedure here. Before drafting, read and use
|
|
20
|
+
[Explaining code](references/explaining-code.md), including both worked
|
|
21
|
+
transformations. Choose the detail in your example that will carry its
|
|
22
|
+
explanation; apply the multi-client section before choosing shared prose,
|
|
23
|
+
tabs or separate guides.
|
|
24
|
+
|
|
16
25
|
## Required inputs
|
|
17
26
|
|
|
18
27
|
Before drafting, establish:
|
|
@@ -46,29 +55,41 @@ Use Diátaxis to choose the page's main job. Include brief context needed to mak
|
|
|
46
55
|
| Type | Reader need | Shape |
|
|
47
56
|
| --- | --- | --- |
|
|
48
57
|
| Tutorial | Learn by completing a guided outcome | Ordered steps with visible results |
|
|
49
|
-
| How-to | Solve one concrete problem | Prerequisites, direct procedure, completion check |
|
|
50
|
-
| Explanation | Understand why and when | Concepts, boundaries, trade-offs,
|
|
51
|
-
| Reference | Look up exact information | Exhaustive tables, fields, commands, signatures |
|
|
58
|
+
| How-to | Solve one concrete problem | Prerequisites, direct procedure, necessary concepts and effects beside the step, completion check |
|
|
59
|
+
| Explanation | Understand why and when | Concepts, boundaries, trade-offs; useful diagrams or short examples, not a full procedure |
|
|
60
|
+
| Reference | Look up exact information | Exhaustive tables, fields, commands, signatures; short explanation where a default or interaction needs it |
|
|
52
61
|
|
|
53
62
|
Read [site-format.md](references/site-format.md) when drafting a page for the Cratis Astro Starlight site; the owning repository’s stricter format remains authoritative.
|
|
54
63
|
|
|
55
64
|
## Drafting workflow
|
|
56
65
|
|
|
57
|
-
1. Open
|
|
58
|
-
|
|
66
|
+
1. Open where the reader's task starts. A tutorial can introduce a concrete
|
|
67
|
+
problem and the capability that helps; a lookup can state its contract directly.
|
|
68
|
+
Include context when it helps the reader act or understand.
|
|
59
69
|
2. Organize by the reader's workflow, not by implementation namespaces or an
|
|
60
70
|
alphabetical API dump.
|
|
61
|
-
3. Use active voice, present tense
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
3. Use active voice, present tense and American English. Address the reader
|
|
72
|
+
for actions; use the component or API as subject when explaining its contract.
|
|
73
|
+
4. Develop the explanation from the concrete example, following **Explaining
|
|
74
|
+
code**. Establish what changes and why it matters, then build toward the next
|
|
75
|
+
action or expectation. Check ownership, host boundaries, connecting identifiers,
|
|
76
|
+
defaults, observable results and failure/recovery behavior as relevant. Weave
|
|
77
|
+
the answers into the explanation where they help; they are not a public
|
|
78
|
+
paragraph template. Include only components the task needs.
|
|
64
79
|
5. Use **cratis-technical-examples** for code and samples: verify every API
|
|
65
80
|
and command against first-party source at the applicable revision, and
|
|
66
81
|
never translate a C# example into another client language by guess.
|
|
67
|
-
6.
|
|
68
|
-
simpler
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
82
|
+
6. Explain maturity, authorization, side effects, unsupported surfaces or a
|
|
83
|
+
simpler alternative when they change the reader's choice, action or expectation.
|
|
84
|
+
Keep an important warning before the risky action and a consequential limit
|
|
85
|
+
beside the behavior it qualifies.
|
|
86
|
+
7. Show a visible result in tutorials and procedures. Use Mermaid where it
|
|
87
|
+
clarifies a non-trivial relationship, not as a requirement on every explanation.
|
|
88
|
+
8. Read the resulting explanation as connected prose, using **Explaining code**
|
|
89
|
+
to repair a missing connection rather than add stock labels. Keep shared
|
|
90
|
+
concepts distinct from source-checked client behavior; code shape alone
|
|
91
|
+
proves no parity. Link the next page or workflow when the reader has a useful
|
|
92
|
+
next step; do not add a stock ending to a complete answer.
|
|
72
93
|
|
|
73
94
|
## Correctness boundary
|
|
74
95
|
|
|
@@ -79,6 +100,10 @@ for the owning maintainer.
|
|
|
79
100
|
|
|
80
101
|
A successful build proves rendering, not technical correctness. The owning
|
|
81
102
|
repository still runs its documentation, snippet, link, and product gates.
|
|
103
|
+
For a new or materially changed journey, use the
|
|
104
|
+
[fresh-context reader review](../cratis-documentation-writing/references/reader-review.md)
|
|
105
|
+
owned by **cratis-documentation-writing**. Report unavailable independent review;
|
|
106
|
+
source checks and a successful build do not prove comprehension.
|
|
82
107
|
|
|
83
108
|
## Output
|
|
84
109
|
|