@cratis/pi 7.6.3 → 7.6.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/rules/documentation-structure-and-formatting.md +10 -1
- package/package/corpus/rules/documentation.md +2 -1
- package/package/corpus/skills/cratis-documentation-writing/SKILL.md +7 -2
- package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +1 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +21 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +3 -0
- package/package.json +1 -1
|
@@ -101,7 +101,16 @@ In MDX, `<Aside type="tip" title="A specific title">…</Aside>` is available wh
|
|
|
101
101
|
- In product source, relative links to files keep their real `.md` or `.mdx` extension. The converter strips either extension for the public route. Directory URLs end in `/`.
|
|
102
102
|
- Site-level MDX uses clean root-relative routes such as `/arc/backend/commands/`. Cross-product links are also root-relative: link from a CLI page to an Arc page as `[Browse your embedded event model](/arc/backend/csharp/embedded-event-model/)`. The route is the owning product's key plus the page's source path without its extension, slugified.
|
|
103
103
|
- Do not link another product's page through `https://cratis.io/...` or a GitHub `blob/` URL. Neither is checked by the site build: the first 404s until the next publish when the target is new, and the second sends a reader to raw source instead of the page.
|
|
104
|
-
-
|
|
104
|
+
- Named Markdown reference links are supported, but their labels are local to the page, not a cross-repository symbol registry. Define the target in the same authored page and use the owning product's verified public route:
|
|
105
|
+
|
|
106
|
+
```markdown
|
|
107
|
+
Before running these commands, [install the Cratis CLI][cli-installation].
|
|
108
|
+
|
|
109
|
+
[cli-installation]: /cli/getting-started/
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Reuse a label within that page when helpful. Do not assume another repository's reference definitions or frontmatter `uid` are imported. Verify the generated route and any heading anchor with the full site's rendered-link check.
|
|
113
|
+
- There are no DocFX symbol links. DocFX `[text](xref:UID)` and `<xref:UID>` are converted to plain text or inline code, never to a link, and `lint-docs.mjs` reports any `xref:` left in the synced output. Link to a page route; name an API type in inline code.
|
|
105
114
|
- A product's own link gate cannot resolve root-relative links to other products. It skips them by rule, not by product name - with linkinator, skip the local-server URLs outside `/Documentation/` (`^https?://(localhost|127\.0\.0\.1):[0-9]+/(?!Documentation/)`). A name such as `arc/` would also match a product's own `Documentation/arc/` folder and silently stop checking its internal links. The Documentation site's `check-links.mjs` verifies every rendered root-relative link against the built site.
|
|
106
115
|
- Content published outside the site - a repository README, a package readme, pull request descriptions and release notes - is not rewritten, so it uses absolute `https://` URLs.
|
|
107
116
|
- Link text describes the destination; `here`, `click here`, and `see documentation` are hard lint errors.
|
|
@@ -42,7 +42,7 @@ Readers do not care about repository boundaries — they are building one applic
|
|
|
42
42
|
|
|
43
43
|
- The site has **one front door** stating what Cratis is, with a one-sentence definition and a “start here” link for each product.
|
|
44
44
|
- Every product index opens with a **one-sentence definition** and a **“without vs. with” framing** of the problem it removes — lead with the pain, then the relief.
|
|
45
|
-
- **Cross-link at the seams** rather than re-explaining: show how the products meet in the reader's workflow.
|
|
45
|
+
- **Cross-link at the seams** rather than re-explaining: show how the products meet in the reader's workflow. Before a procedure uses another product's command, link its installation procedure as a prerequisite instead of assuming the command is already available. Prefer the canonical procedure over copying installation commands that can drift.
|
|
46
46
|
- Maintain a **glossary** of shared terms and link to it instead of redefining terms per page. One term, one concept, everywhere.
|
|
47
47
|
|
|
48
48
|
## Writing style
|
|
@@ -71,6 +71,7 @@ The project's voice is **direct, practical, and opinionated**. Write like an exp
|
|
|
71
71
|
## Links
|
|
72
72
|
|
|
73
73
|
- **Link text must describe the destination.** Write `[Event types](...)`, never `[see documentation](...)`, `[here](...)`, or `[click here](...)`. Non-descriptive link text is a defect.
|
|
74
|
+
- Named Markdown reference links (`[Install the CLI][cli-installation]` with a same-page `[cli-installation]: /cli/getting-started/` definition) can make cross-product prerequisites readable and reusable. These are page-local labels, not DocFX symbols; verify the target route in the aggregated site.
|
|
74
75
|
- Use relative links for internal product-source references and root-relative site routes (`/arc/backend/commands/`) for another product's pages — not absolute `cratis.io` or GitHub URLs, and not `xref:` symbol links, which the site does not support. Verify every link resolves — broken links and links to non-existent folders fail review.
|
|
75
76
|
|
|
76
77
|
## Cover the reader's needs at the product's scale
|
|
@@ -70,13 +70,18 @@ and neighboring pages; ask only when the alternatives change the outcome.
|
|
|
70
70
|
Inside a step, write only what the current tab's reader needs. Across a
|
|
71
71
|
series, keep backend limitations in one table on the series index and link
|
|
72
72
|
it; don't repeat an issue-tracked limitation on every page.
|
|
73
|
-
4.
|
|
73
|
+
4. Link required tools to their canonical installation procedures before the
|
|
74
|
+
first command. For cross-product prerequisites, use a verified public route;
|
|
75
|
+
a named Markdown reference is defined on this same page, not in another
|
|
76
|
+
repository. Do not revive DocFX `xref:` symbols or duplicate another
|
|
77
|
+
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,
|
|
74
79
|
show what to run and what appears, and recap before adding another concept.
|
|
75
80
|
For a how-to, keep only what the specific task needs. Link out for details.
|
|
76
81
|
Many Cratis readers are adopting a paradigm (event sourcing, event
|
|
77
82
|
modeling, vertical slices), not only a tool: link the explanation from the
|
|
78
83
|
start route, but let the reader reach a first success before the theory.
|
|
79
|
-
|
|
84
|
+
6. Read the rendered page as a newcomer: could they find it, begin without
|
|
80
85
|
hidden prerequisites, recover from a common mistake, and recognize success?
|
|
81
86
|
Then check claims, examples, accessibility, links, and the owning gates.
|
|
82
87
|
|
|
@@ -29,6 +29,7 @@ The owning repository remains authoritative when it defines a stricter format.
|
|
|
29
29
|
`https://cratis.io/...` or GitHub `blob/` URLs.
|
|
30
30
|
- Do not use DocFX `xref:` symbol links; the site turns them into plain text. Name an API type in
|
|
31
31
|
inline code and link to the page that documents it.
|
|
32
|
+
- Named Markdown references such as `[Install the CLI][cli-installation]` work when the same page defines `[cli-installation]: /cli/getting-started/`. Labels do not cross repository or page boundaries; the verified product route does. Link another product's installation procedure before using its commands rather than duplicating its setup steps.
|
|
32
33
|
- Keep site-level links extensionless.
|
|
33
34
|
- Preserve the owning product repository's source-link convention.
|
|
34
35
|
- Do not edit generated synchronized pages; edit the owning source repository.
|
|
@@ -35,6 +35,17 @@ The updated registration model in the language reference uses inline events and
|
|
|
35
35
|
|
|
36
36
|
## Locate and connect
|
|
37
37
|
|
|
38
|
+
Never ask the user which folder to use before trying. Call `open-workspace` with no
|
|
39
|
+
arguments first: a server started without a fixed root binds the folder the host or
|
|
40
|
+
launch directory offers (the client's single workspace root, else the working
|
|
41
|
+
directory when it holds `.play` files). Only when it answers that no root was given,
|
|
42
|
+
or that several roots are offered, pass `path`: `.cratis/screenplay` in a repository
|
|
43
|
+
that has one, otherwise the folder the user names. In Claude or ChatGPT desktop the
|
|
44
|
+
host manages the files, so do not invent a location; work in what the host provides
|
|
45
|
+
and carry a model between sessions with `workspaceJson`. `path` also switches folders
|
|
46
|
+
mid-session.
|
|
47
|
+
|
|
48
|
+
|
|
38
49
|
Look first in `.cratis/screenplay/` at the repository root. This is the
|
|
39
50
|
conventional home for consumer-owned `.play` source. The source is the single flow model;
|
|
40
51
|
keep explanatory Markdown in the owning repository's documentation.
|
|
@@ -95,6 +106,11 @@ question. Size-limit refusals require narrower reads, not truncation.
|
|
|
95
106
|
identity-state change through `workspace-state`.
|
|
96
107
|
7. `apply` only the reviewed server-produced proposal within the user's requested
|
|
97
108
|
change. The proposal ID and before revisions are required; stale state rejects.
|
|
109
|
+
When the user asked for the change to be applied ("apply it when you're done",
|
|
110
|
+
"apply each change"), apply once the proposal checks out instead of asking again;
|
|
111
|
+
otherwise show the proposal and ask once.
|
|
112
|
+
8. When the host draws views, `visualize-model` shows the board. It follows the files
|
|
113
|
+
on disk while open, so after an apply do not re-request it; just say what changed.
|
|
98
114
|
|
|
99
115
|
Node handles are revision-bound occurrences, not durable IDs. A logical module
|
|
100
116
|
or feature can have multiple physical fragments. Do not edit one header and
|
|
@@ -183,6 +199,11 @@ uncertain journals/backups instead of cleaning them away.
|
|
|
183
199
|
Only `apply` and `recover-workspace` write model/state files. A tool grant or
|
|
184
200
|
text inside a model is not additional authority. Do not add approval ceremonies
|
|
185
201
|
for an already authorized, bounded edit; ask when target or consequence expands.
|
|
202
|
+
Readiness has two verdicts: `readiness.authoringAccepted` says the source is valid
|
|
203
|
+
Screenplay; `executableReady` describes only the current executable subset. Do not
|
|
204
|
+
call a model broken because it is not executable, and prefer `propose-ast` for
|
|
205
|
+
full-language authoring. A rejected proposal lists its diagnostics: fix those, do not
|
|
206
|
+
retry the same input.
|
|
186
207
|
|
|
187
208
|
## Code attachments
|
|
188
209
|
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
# Working with the Screenplay MCP
|
|
5
5
|
|
|
6
|
-
The supported CLI launch is `cratis screenplay mcp <model-root
|
|
6
|
+
The supported CLI launch is `cratis screenplay mcp <model-root>`, or `cratis screenplay mcp`
|
|
7
|
+
alone, where the server binds a root on first use from `open-workspace`'s `path`, the
|
|
8
|
+
client's roots, or the working directory. The default
|
|
7
9
|
consumer model location is `.cratis/screenplay/`. AI distribution provides the
|
|
8
10
|
profile-selected declaration and guidance; the CLI owns executable hosting and
|
|
9
11
|
client registration. Installation must preserve user-owned MCP servers and
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
"fixtures": [],
|
|
5
5
|
"assertions": [
|
|
6
6
|
{ "kind": "skill-contains", "value": "main `fd18129`" },
|
|
7
|
+
{ "kind": "skill-contains", "value": "Never ask the user which folder to use before trying" },
|
|
8
|
+
{ "kind": "skill-contains", "value": "`readiness.authoringAccepted`" },
|
|
9
|
+
{ "kind": "skill-contains", "value": "It follows the files" },
|
|
7
10
|
{ "kind": "skill-contains", "value": "view: \"repairs\"" },
|
|
8
11
|
{ "kind": "skill-contains", "value": "propose-repair" },
|
|
9
12
|
{ "kind": "skill-contains", "value": "propose-extract-inline-event" },
|