@cratis/pi 7.49.0 → 7.51.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/package/corpus/agents/screenplay-modeler.md +5 -2
- package/package/corpus/agents/screenplay-reviewer.md +1 -0
- package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +93 -0
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +4 -0
- package/package/corpus/harnesses/copilot/instructions/react.instructions.md +1 -0
- package/package/corpus/hooks/README.md +23 -0
- package/package/corpus/hooks/scripts/cratis-pattern-scan.sh +1 -1
- package/package/corpus/hooks/scripts/cratis-patterns.json +8 -0
- package/package/corpus/hooks/scripts/cratis-quality-gate.sh +6 -0
- package/package/corpus/hooks/scripts/cratis-slice-scope-report.sh +54 -0
- package/package/corpus/prompts/review-skill.prompt.md +6 -8
- package/package/corpus/rules/authoring-skills.md +92 -0
- package/package/corpus/rules/general.md +1 -0
- package/package/corpus/rules/profiles.md +4 -0
- package/package/corpus/rules/react.md +1 -0
- package/package/corpus/skills/cratis-application-react-specifications/SKILL.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/build-prompts.md +9 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +4 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +3 -0
- package/package/corpus/skills/cratis-application-slice-specifications/LICENSE +4 -0
- package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +9 -0
- package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -0
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +23 -29
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +7 -7
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +34 -32
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authproxy.md +1 -1
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +2 -2
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/local-development.md +3 -3
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +8 -6
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/tenancy.md +3 -3
- package/package/corpus/skills/cratis-arc-command/SKILL.md +23 -25
- package/package/corpus/skills/cratis-arc-command/references/command-result.md +1 -1
- package/package/corpus/skills/cratis-arc-command/references/decisions-and-routing.md +9 -9
- package/package/corpus/skills/cratis-arc-command/references/generated-values.md +11 -12
- package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +4 -4
- package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +3 -3
- package/package/corpus/skills/cratis-arc-command/references/read-model-injection.md +1 -3
- package/package/corpus/skills/cratis-arc-command/references/shop-generation.md +11 -14
- package/package/corpus/skills/cratis-arc-command-execution/LICENSE +6 -0
- package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +17 -19
- package/package/corpus/skills/cratis-arc-command-kotlin/SKILL.md +8 -7
- package/package/corpus/skills/cratis-arc-command-kotlin/references/read-model-naming.md +2 -2
- package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +14 -15
- package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +2 -2
- package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +7 -8
- package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +14 -11
- package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +7 -7
- package/package/corpus/skills/cratis-arc-command-typescript/references/command-operations.md +4 -4
- package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +11 -7
- package/package/corpus/skills/cratis-arc-command-typescript/references/identity-and-introspection.md +4 -2
- package/package/corpus/skills/cratis-arc-command-typescript/references/observability-and-host-scopes.md +2 -2
- package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +3 -3
- package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +1 -1
- package/package/corpus/skills/cratis-arc-command-typescript/verification.json +2 -2
- package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +10 -14
- package/package/corpus/skills/cratis-arc-ef-core-migration/LICENSE +6 -0
- package/package/corpus/skills/cratis-arc-ef-core-migration/SKILL.md +9 -10
- package/package/corpus/skills/cratis-arc-go/SKILL.md +14 -15
- package/package/corpus/skills/cratis-arc-go/references/queries.md +2 -2
- package/package/corpus/skills/cratis-arc-hosting/SKILL.md +8 -8
- package/package/corpus/skills/cratis-arc-hosting/references/integrations-and-publish.md +11 -11
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +13 -13
- package/package/corpus/skills/cratis-arc-observable-query-http/verification.json +1 -1
- package/package/corpus/skills/cratis-arc-query-kotlin/SKILL.md +2 -3
- package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -14
- package/package/corpus/skills/cratis-arc-query-typescript/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-query-typescript/references/storage-observation-and-compliance.md +2 -2
- package/package/corpus/skills/cratis-arc-react-page/LICENSE +4 -0
- package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +6 -0
- package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +9 -0
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +1 -2
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +4 -4
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +19 -22
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +36 -36
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/additional-surfaces.md +4 -2
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/client-construction.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +13 -13
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/pinned-generation-delivery.md +7 -5
- package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +59 -64
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +17 -17
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/compliance.md +5 -3
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/connections.md +15 -11
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/event-sources.md +3 -1
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/pitfalls.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/projections.md +8 -4
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/upgrading.md +19 -19
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +3 -8
- package/package/corpus/skills/cratis-chronicle-client-elixir/verification.json +2 -2
- package/package/corpus/skills/cratis-chronicle-client-go/SKILL.md +16 -18
- package/package/corpus/skills/cratis-chronicle-client-go/references/projections.md +2 -2
- package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +61 -58
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +9 -10
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +6 -6
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/event-sources.md +4 -2
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/options.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +24 -24
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +6 -5
- package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -20
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/testing.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +4 -3
- package/package/corpus/skills/cratis-chronicle-client-typescript/verification.json +2 -2
- package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +9 -9
- package/package/corpus/skills/cratis-chronicle-decision-reads/SKILL.md +11 -10
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/admission-and-ownership.md +1 -1
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/choosing-how-a-rule-holds.md +5 -6
- package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-event-constraints/references/closing-streams.md +1 -1
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +12 -1
- package/package/corpus/skills/cratis-chronicle-event-specifications/SKILL.md +6 -6
- package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +12 -10
- package/package/corpus/skills/cratis-chronicle-event-type-migration/references/pinned-generations.md +2 -3
- package/package/corpus/skills/cratis-chronicle-hosting/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-hosting/references/operations.md +5 -5
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +6 -6
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +5 -5
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -10
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +29 -29
- package/package/corpus/skills/cratis-chronicle-multi-tenancy/SKILL.md +9 -9
- package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -14
- package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +3 -5
- package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +2 -4
- package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +1 -3
- package/package/corpus/skills/cratis-chronicle-reactor/LICENSE +4 -0
- package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +10 -0
- package/package/corpus/skills/cratis-chronicle-reactor/references/slice-delivery-checklist.md +33 -0
- package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +17 -1
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +16 -15
- package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +8 -8
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +14 -13
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +11 -12
- package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +6 -6
- package/package/corpus/skills/cratis-code-review/SKILL.md +13 -17
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +3 -3
- package/package/corpus/skills/cratis-components-common-controls/SKILL.md +15 -15
- package/package/corpus/skills/cratis-components-data-surfaces/SKILL.md +29 -29
- package/package/corpus/skills/cratis-components-schema-editor/SKILL.md +4 -4
- package/package/corpus/skills/cratis-components-schema-editor/references/tree-layout.md +1 -1
- package/package/corpus/skills/cratis-components-stepper-command-dialog/SKILL.md +6 -6
- package/package/corpus/skills/cratis-components-styling/LICENSE +6 -0
- package/package/corpus/skills/cratis-components-styling/SKILL.md +5 -4
- package/package/corpus/skills/cratis-components-toolbar/SKILL.md +5 -5
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +2 -2
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +3 -3
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +1 -1
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +4 -4
- package/package/corpus/skills/cratis-event-model-diagram/LICENSE +5 -0
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +6 -1
- package/package/corpus/skills/cratis-event-model-diagram/references/provenance.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +19 -24
- package/package/corpus/skills/cratis-fundamentals-concept/references/shop-generation.md +10 -10
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-concepts.md +8 -8
- package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +10 -11
- package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +18 -18
- package/package/corpus/skills/cratis-fundamentals-telemetry/verification.json +1 -1
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +4 -4
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +19 -19
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +27 -27
- package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +12 -12
- package/package/corpus/skills/cratis-performance-review/SKILL.md +8 -10
- package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/LICENSE +5 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +24 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/integration-contracts.md +19 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +10 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +10 -12
- package/package/corpus/skills/cratis-screenplay-discovery/references/divergent-sweep.md +9 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/document-intake.md +123 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/domain-analysis-template.md +1 -12
- package/package/corpus/skills/cratis-screenplay-discovery/references/event-naming.md +49 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +2 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/human-workshop.md +26 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +17 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +5 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +7 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +50 -79
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +39 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/expert-verification.md +15 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/intent-example.md +31 -7
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/interview-findings.md +8 -2
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/loss-report-template.md +4 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +8 -2
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/re-entry-and-passes.md +102 -3
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/side-car-migration.md +3 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/signal-to-intent.md +29 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +2 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/verified-sources.md +20 -0
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +27 -54
- package/package/corpus/skills/cratis-screenplay-model-review/references/baseline-comparison.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/business-questions.md +6 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/mode-compliance.md +5 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/model-inventory-report.md +48 -11
- package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +5 -2
- package/package/corpus/skills/cratis-screenplay-model-review/references/quick-self-check.md +20 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/stressor-analysis.md +22 -10
- package/package/corpus/skills/cratis-screenplay-model-review/references/verified-sources.md +15 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/walkthrough.md +135 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/LICENSE +5 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/core-rules-digest.md +7 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/per-turn-protocol.md +6 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +16 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +21 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +1 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-fallback-record.md +7 -30
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/hand-written-changes.md +150 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +1 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +17 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +6 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +9 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/references/provenance.md +6 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +23 -6
- package/package/corpus/skills/cratis-screenplay-slice-design/references/review-questions.md +4 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +69 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +4 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -7
- package/package/corpus/skills/cratis-security-review/SKILL.md +8 -10
- package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +18 -16
- package/package/corpus/skills/cratis-specification-by-example/SKILL.md +1 -1
- package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +26 -29
- package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +8 -8
- package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +2 -2
- package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +6 -4
- package/package/corpus/skills/cratis-specifications-csharp/references/shared-lifecycle.md +6 -2
- package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +2 -2
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -4
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +1 -1
- package/package/corpus/skills/guiding-refactoring-with-code-health/SKILL.md +1 -1
- package/package/corpus/skills/prioritizing-technical-debt/SKILL.md +1 -1
- package/package/corpus/skills/risk-based-testing-with-code-health/SKILL.md +3 -3
- package/package/corpus/skills/safeguarding-ai-generated-code/SKILL.md +1 -1
- package/package.json +1 -1
|
@@ -28,7 +28,10 @@ You author and change the `.play` model, the source of truth for behavior. Code
|
|
|
28
28
|
|
|
29
29
|
## Method
|
|
30
30
|
|
|
31
|
-
- Load `cratis-screenplay-modeling-lifecycle`, then exactly one phase skill per step: discovery, slice design, streams and consistency, automations and translations, scenario coverage. A legacy system enters through `cratis-screenplay-legacy-extraction` instead of discovery and modeling; later runs re-enter by recorded source identity
|
|
31
|
+
- Load `cratis-screenplay-modeling-lifecycle`, then exactly one phase skill per step: discovery, slice design, streams and consistency, automations and translations, scenario coverage. A legacy system enters through `cratis-screenplay-legacy-extraction` instead of discovery and modeling; later runs re-enter by recorded source identity, widen the candidate in layered passes, and promote locators, decisions and open questions into notes and `documentation` before acceptance (`references/re-entry-and-passes.md` there). Syntax, versions and verdict commands: `cratis-screenplay-toolchain`. Load the phase skill before authoring a construct family.
|
|
32
|
+
- For a change to an existing model, start from an impact walkthrough (`cratis-screenplay-model-review` `references/walkthrough.md`) so the brief names every affected slice.
|
|
33
|
+
- Write declarations in story order, one slice after another, never batched by kind. After each batch read `PLAY0516` and `PLAY0517` and repair, or record why the order stays (`cratis-screenplay-slice-design` `references/slicing.md`).
|
|
34
|
+
- Slices under delivery: where a delivery plan exists (`cratis-screenplay-delivery-planning`), a slice that is `in progress`, `blocked` or `done` is read-only unless the request names it; naming it approves exactly those declarations. Do the rest of the request, return an edit request naming the slice, its status and the intended change, and open the report with that part as NOT done. Changing a `done` slice reopens its delivery: tell the plan owner (`cratis-screenplay-modeling-lifecycle` `references/phases.md`).
|
|
32
35
|
- First line of every reply: `Outcome: done | partial (...) | blocked (Qn) | out-of-scope (why)`, then the mode, the model root and the source identity. The handoff packet carries exactly one `Outcome:` line and five verdict lines (`not run: <reason>` counts, a missing line does not).
|
|
33
36
|
- Stance: keep moving, assume visibly, record each assumption against a declaration address; switch to critic stance for the self-check (P4) and never mix them in one pass. Ask the one question that changes the model most when attended.
|
|
34
37
|
- Never shrink the model, and never remove authorization, `pii` or rules to pass a tool or save effort; report a capability gap instead. A decided rejection is a specification (`then denied`, `then error`), never a note.
|
|
@@ -63,4 +66,4 @@ Write `.ai-work/screenplay/<model-slug>/STATE.md` (overwrite, untracked) only wh
|
|
|
63
66
|
|
|
64
67
|
## Lineage
|
|
65
68
|
|
|
66
|
-
The per-run protocol and the corner-cutting self-check (both by pointer to the lifecycle skill) adapt agentic-engineer by Martin Dilger and Nebulit GmbH (https://github.com/Nebulit-GmbH/agentic-engineer, commit `07b0f30648d663cb588d7e2c7aa031af9dfc21f2`; https://nebulit.de), used with their explicit consent.
|
|
69
|
+
The per-run protocol and the corner-cutting self-check (both by pointer to the lifecycle skill) adapt agentic-engineer by Martin Dilger and Nebulit GmbH (https://github.com/Nebulit-GmbH/agentic-engineer and https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, the latter for the impact walkthrough, story order and slices-under-delivery rules; commit `07b0f30648d663cb588d7e2c7aa031af9dfc21f2`; https://nebulit.de), used with their explicit consent.
|
|
@@ -27,6 +27,7 @@ If `cratis-screenplay-model-review` is not installed, say that the `cratis/scree
|
|
|
27
27
|
The brief selects one; `critic` is the default.
|
|
28
28
|
|
|
29
29
|
- **critic**: load `cratis-screenplay-modeling-lifecycle` (modes, verdicts, principles), then `cratis-screenplay-model-review` and apply its checklist, element sweep and entity walk. Strict stance, report first. Pin every finding to a named declaration with severity, tier (compiler contract, modeling default, review question), consequence and fix. Never invent findings; zero is valid.
|
|
30
|
+
- **walkthrough**: an explain or impact walkthrough, slice by slice (`cratis-screenplay-model-review` `references/walkthrough.md`). Read-only, no findings.
|
|
30
31
|
- **explain**: the business-question pass of the same skill. Plain language, anchored to declaration addresses, at most 12 questions, zero is valid. Questions only; no fixes.
|
|
31
32
|
|
|
32
33
|
## Business-question lens
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
applyTo: ".cratis/ai/skills/**,.cratis/ai/rules/**,.cratis/ai/agents/**,.cratis/ai/prompts/**"
|
|
3
|
+
paths:
|
|
4
|
+
- ".cratis/ai/skills/**"
|
|
5
|
+
- ".cratis/ai/rules/**"
|
|
6
|
+
- ".cratis/ai/agents/**"
|
|
7
|
+
- ".cratis/ai/prompts/**"
|
|
8
|
+
---
|
|
9
|
+
<!-- cratis-ai: generated Copilot instructions. Do not edit; rules/ is the source. -->
|
|
10
|
+
|
|
11
|
+
<!-- Copyright (c) Cratis. All rights reserved. -->
|
|
12
|
+
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
|
|
13
|
+
|
|
14
|
+
# Authoring skills and instructions
|
|
15
|
+
|
|
16
|
+
## 1. What a skill is
|
|
17
|
+
|
|
18
|
+
Trigger (when to use / when not) · the how (steps, patterns, one minimal correct example each) · choosing (use X when…, not Y) · pitfalls (with the diagnostic code you'll see) · verification (command + what a pass looks like). Timeless: describe current behavior without saying it is current.
|
|
19
|
+
|
|
20
|
+
A code-breaking prerequisite belongs in one `Requires` line with the version-check command and the fallback. This is a compatibility gate, not a release history. Use American English in authored text.
|
|
21
|
+
|
|
22
|
+
## 2. Frontmatter and routing
|
|
23
|
+
|
|
24
|
+
Use portable fields: `name`, `description`, `license`, `compatibility`, `metadata`, `allowed-tools`. Keep extension metadata under `metadata` so other harnesses can load the skill.
|
|
25
|
+
|
|
26
|
+
- Match `name` to the directory: 1–64 lowercase letters, digits and single hyphens; no edge hyphen or reserved `anthropic`/`claude` words. These constraints keep discovery portable.
|
|
27
|
+
- Lead the description with what the skill does, then `Use when…` and `Not for…` (name the sibling to use). Include concrete words from the user's request so the router can distinguish neighbors.
|
|
28
|
+
- Use neutral imperative or third-person phrasing, not `I`/`you`/`your`; descriptions enter instruction context, where shifting voice obscures who acts. Quoted command text and inline code are not the author's voice.
|
|
29
|
+
- Aim below 700 characters, within the hard 1–1024 limit. No tag-like text, versions or research-process vocabulary: the listing is for routing, not evidence.
|
|
30
|
+
|
|
31
|
+
An explicit trigger clause (`Use when`, `Load when`, `Read when` or an equivalent) and neutral voice are required even with `SKILL_AUTHORING_MODE=warn`. Negative routing and meta-language findings follow that switch; the 700-character target is guidance, not a gate.
|
|
32
|
+
|
|
33
|
+
## 3. Budget and progressive disclosure
|
|
34
|
+
|
|
35
|
+
Target at most 400 body lines and 16,000 characters; the hard limits remain 500 lines and 20,000 characters. A warning starts at 18,000 characters to leave editing and compaction headroom; characters only approximate tokens.
|
|
36
|
+
|
|
37
|
+
Keep decision rules, the core workflow and pre-action traps in `SKILL.md`. Move conditional detail to `references/`, with a direct `Read references/x.md when…` pointer for every file, including assets and scripts. `LICENSE`, `NOTICE` and `verification.json` are exempt as licensing/verifier metadata; existing reasoned asset exceptions fail when stale. Direct pointers prevent partial nested reads from hiding required context. References over 100 lines open with generated `## Contents`; a single fenced example with an early introduction is exempt because it has no sections to navigate. Use forward-slash paths for portability.
|
|
38
|
+
|
|
39
|
+
## 4. Timeless text
|
|
40
|
+
|
|
41
|
+
Describe behavior, syntax and diagnostics without dates or relative-time claims. Remove release/probe results, issue/PR/decision numbers, source-line citations, commit hashes, bundled versions and research-only pages; these age without helping the next task. No provenance, contradictions or release-baseline pages, nor verified-source headings in skills. Preserve a diagnostic's identifier, not the investigation history.
|
|
42
|
+
|
|
43
|
+
Keep pins in `product-sync.json` and compatibility documentation under `Documentation/`, not repeated prose. Track product-documentation conflicts in the product's issues. A minimum-construct table is useful only when it is short and contains actual code-breaking prerequisites.
|
|
44
|
+
|
|
45
|
+
## 5. Instruction style
|
|
46
|
+
|
|
47
|
+
Give one default and the condition for choosing an alternative, rather than an equal-options menu. Put the reason beside an absolute so the agent can recognize its boundary; volume and ALL-CAPS add no evidence. Prefer concrete, checkable directions over vague quality requests. Use the terms in [glossary.md](./glossary.instructions.md); define an unfamiliar term on first use to avoid competing meanings. Show one minimal correct example per pattern and an exact verification command with the observable pass condition.
|
|
48
|
+
|
|
49
|
+
## 6. One source of truth
|
|
50
|
+
|
|
51
|
+
Link the owning rule instead of copying it into skills, agents or prompts; copies diverge on the next edit. A pointer may state when to read that rule, but does not redefine it. Resolve contradictions at their source rather than relying on a harness's precedence behavior.
|
|
52
|
+
|
|
53
|
+
## 7. MCP tools
|
|
54
|
+
|
|
55
|
+
Name the server once, then its protocol tool: for example, the `screenplay` MCP server's `propose-ast` tool. Resolve the harness-native invocation name from the connected client's tool listing instead of assuming one naming scheme works in every harness. For servers the corpus does not register, resolve the user's configured alias; a fixed prefix can address the wrong server.
|
|
56
|
+
|
|
57
|
+
## 8. Deterministic scripts
|
|
58
|
+
|
|
59
|
+
Put repeatable mechanical operations in `scripts/` when a script can eliminate repeated reasoning. Say explicitly to execute it (or, when needed, read it as reference), with prerequisites, inputs, errors and the pass signal. Handle known errors in the script and preserve the command's exit status; apparent success after an unperformed check is not verification. Keep judgment in prose.
|
|
60
|
+
|
|
61
|
+
## 9. Evaluations
|
|
62
|
+
|
|
63
|
+
Give new skills both trigger and output evaluation inputs. Existing unevaluated skills are a shrinking baseline, not permission to exempt new ones. Each evaluation set has 16–20 unique trigger queries: 8–10 positive (`shouldTrigger: true`) and 8–10 negative (`shouldTrigger: false`), plus 3–5 output tasks with 3–5 nonempty assertions each. Make negatives tricky near-misses and name the sibling that should win in their notes; that note quality is review guidance, not a shape check. Compare with-skill outputs to a without-skill baseline to show what the instructions improve.
|
|
64
|
+
|
|
65
|
+
When changing a description, run trigger evaluations before and after when authorized to spend model usage. Keep results untracked in `.ai-work/skill-evaluations/` and summarize them for reviewers, not in the skill. CI validates inputs without calling models; missing model runs remain explicitly unverified.
|
|
66
|
+
|
|
67
|
+
## 10. Review checklist
|
|
68
|
+
|
|
69
|
+
- What, when, when-not and sibling routing are explicit; voice is neutral and routing text has no meta/history claims.
|
|
70
|
+
- Body has headroom; every reference, asset and script is directly named; long references have Contents.
|
|
71
|
+
- Text is timeless; no research-only pages or verified-source headings remain.
|
|
72
|
+
- Defaults, escape conditions, adjacent reasons, glossary terms and correct examples are clear.
|
|
73
|
+
- Rules are linked, not duplicated; MCP server and native naming are resolved.
|
|
74
|
+
- Mechanical steps use scripts where warranted; verification names the command and pass condition.
|
|
75
|
+
- Evaluation inputs cover positive and near-miss routing and baseline output behavior; report any runs not performed.
|
|
76
|
+
- Always-on content meets the budget below. Apply the same timelessness and clarity review to rules, agents and prompts.
|
|
77
|
+
|
|
78
|
+
## 11. Always-on content
|
|
79
|
+
|
|
80
|
+
Keep `general.md` to facts needed in every session, at most 200 lines. Warn above 24,000 bytes and above 60,000 combined bytes for rules without `paths`; line length alone can hide context bloat. Review globally applied Copilot instructions above 4,000 characters. These budgets leave room for source and task context, rather than promising a token count.
|
|
81
|
+
|
|
82
|
+
Use path-scoped rules for file-specific invariants and skills for particular operations. Hooks and CI enforce mechanical constraints; natural-language rules do not replace permission controls.
|
|
83
|
+
|
|
84
|
+
## Sources
|
|
85
|
+
|
|
86
|
+
- https://agentskills.io/specification
|
|
87
|
+
- https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices
|
|
88
|
+
- https://github.com/anthropics/skills/blob/main/skills/skill-creator/SKILL.md
|
|
89
|
+
- https://code.claude.com/docs/en/memory
|
|
90
|
+
- https://learn.chatgpt.com/docs/agent-configuration/agents-md
|
|
91
|
+
- https://developers.openai.com/cookbook/examples/skills_in_api
|
|
92
|
+
- https://docs.github.com/en/copilot/tutorials/customize-code-review
|
|
93
|
+
- https://cursor.com/docs/context/rules
|
|
@@ -388,6 +388,10 @@ profile: application
|
|
|
388
388
|
- **`profile: framework`** - Rules for contributing to Cratis framework repos
|
|
389
389
|
- **No profile tag** - Universal rules that apply to both profiles
|
|
390
390
|
|
|
391
|
+
[authoring-skills.md](./authoring-skills.instructions.md) is universal but path-scoped to corpus
|
|
392
|
+
skills, rules, agents and prompts. Harnesses without path-rule loading discover it
|
|
393
|
+
through `general.md`'s Where to Look table; its body is needed only for authoring work.
|
|
394
|
+
|
|
391
395
|
## Finding Profile Information
|
|
392
396
|
|
|
393
397
|
- **Full catalog:** [profile-catalog.json](../../../profile-catalog.json)
|
|
@@ -190,6 +190,7 @@ Top-level provider for microservice name and API base path. Config props (with d
|
|
|
190
190
|
- Single responsibility — if you write a `// Section` comment inside a component, that section is its own component. Parent owns state; children receive props.
|
|
191
191
|
- Single-file component → in the slice folder; multi-file → a folder named after the component with an `index.ts` re-export.
|
|
192
192
|
- A `.tsx` belongs in the slice folder it implements — never one level up. A feature's pass-through layout renders only `<Outlet />`.
|
|
193
|
+
- **Composition point and slice isolation.** A page is the one place that composes slices, through their exported components; slice internals never import another slice's internals; identity, tenant and theme providers belong to the application; deleting a slice folder and its page registration removes the feature. Detail: the `cratis-arc-react-page` skill, `references/from-screenplay.md`.
|
|
193
194
|
|
|
194
195
|
## Styling default
|
|
195
196
|
|
|
@@ -252,6 +252,29 @@ The two `within_type_attribute` patterns are not line greps — the scanner trac
|
|
|
252
252
|
blocks and type scope (positional record, multi-line declaration, or braced body), so a nullable
|
|
253
253
|
property is only reported when it really sits inside an `[EventType]`.
|
|
254
254
|
|
|
255
|
+
### Advisory slice scope and migration review
|
|
256
|
+
|
|
257
|
+
The quality gate calls `scripts/cratis-slice-scope-report.sh` with its changed paths on stdin.
|
|
258
|
+
It recognizes only `Source/<Module>/<Feature>/<Slice>/<Slice>.cs` carrying a model-bound
|
|
259
|
+
`[Command]` or `[ReadModel]` attribute. For each recognized slice it lists changed paths outside
|
|
260
|
+
that folder as **seam or out of scope**; use that list for the delivery record's shared seams.
|
|
261
|
+
For a changed anchor it notes a missing `when_*` specification under the slice. It does not
|
|
262
|
+
judge whether a seam is authorized or whether existing specifications cover the contract.
|
|
263
|
+
Unrecognized layouts are skipped silently; report failures never fail or bypass the real gates.
|
|
264
|
+
The output is advisory in normal and dry-run modes, never verification evidence.
|
|
265
|
+
|
|
266
|
+
The PostToolUse `cratis-append-only-migration` reminder likewise only asks for review of
|
|
267
|
+
`Source/**/Migrations/*.cs` carrying `[Migration(`, excluding model snapshots. It cannot tell
|
|
268
|
+
whether a migration is committed or applied, so it never blocks a legitimate uncommitted edit.
|
|
269
|
+
Read `cratis-arc-ef-core-migration` for migration generation and application.
|
|
270
|
+
|
|
271
|
+
The slice-scope and specification-presence report takes the idea of node Build-Kits
|
|
272
|
+
`check-commit-scope` checks, with original wording. The migration reminder is copied and
|
|
273
|
+
translated from classic `build-state-change` and node `append-only-migrations` to EF Core.
|
|
274
|
+
Both credit Martin Dilger and Nebulit GmbH's
|
|
275
|
+
[Eventmodelers Build-Kits](https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits), used with
|
|
276
|
+
their explicit consent. Slice-only scope checks do not replace the repository's completion gate.
|
|
277
|
+
|
|
255
278
|
### Project-specific gate configuration
|
|
256
279
|
|
|
257
280
|
The shipped gates discover the repository's own solution and package, so most repositories need no
|
|
@@ -188,7 +188,7 @@ EOF
|
|
|
188
188
|
|
|
189
189
|
context="Cratis rule check on the file you just edited (deterministic pattern pass, not a build):
|
|
190
190
|
${findings}
|
|
191
|
-
|
|
191
|
+
Framework-contract reminders come from .cratis/ai/rules/general.md: fix them now rather than at the quality gate. Reminders explicitly marked advisory require review only; they are not gate failures."
|
|
192
192
|
|
|
193
193
|
jq -n --arg ctx "$context" '{
|
|
194
194
|
systemMessage: "cratis-hooks: rule reminder appended to context",
|
|
@@ -27,6 +27,14 @@
|
|
|
27
27
|
"re-scopes the \"paths\" globs there instead."
|
|
28
28
|
],
|
|
29
29
|
"patterns": [
|
|
30
|
+
{
|
|
31
|
+
"id": "cratis-append-only-migration",
|
|
32
|
+
"rule": "cratis-arc-ef-core-migration — Write the migration",
|
|
33
|
+
"pattern": "\\[Migration[[:space:]]*\\(",
|
|
34
|
+
"paths": ["Source/**/Migrations/*.cs"],
|
|
35
|
+
"exclude_paths": ["**/*ModelSnapshot.cs", "**/obj/**", "**/bin/**"],
|
|
36
|
+
"message": "Migration review (advisory): if this migration is committed or applied anywhere, correct it with a new migration (`dotnet ef migrations add`), not an edit. An unapplied, uncommitted migration may be removed (`dotnet ef migrations remove`) and regenerated. This scan does not determine commit or database state."
|
|
37
|
+
},
|
|
30
38
|
{
|
|
31
39
|
"id": "cratis-automap-call",
|
|
32
40
|
"rule": "general.md rule 10 [contract]",
|
|
@@ -97,6 +97,12 @@ changed="$(
|
|
|
97
97
|
)"
|
|
98
98
|
[ -n "$changed" ] || exit 0
|
|
99
99
|
|
|
100
|
+
# Scope hints are advisory, never product verification or a gate failure.
|
|
101
|
+
if [ -f "$here/cratis-slice-scope-report.sh" ]; then
|
|
102
|
+
printf '%s\n' "$changed" | bash "$here/cratis-slice-scope-report.sh" "$root" ||
|
|
103
|
+
printf 'cratis-quality-gate: ADVISORY slice scope report unavailable; gates continue unchanged.\n' >&2
|
|
104
|
+
fi
|
|
105
|
+
|
|
100
106
|
# ── Project discovery ────────────────────────────────────────────────────────
|
|
101
107
|
# A gate names *what kind of project* it builds, never a product's file. The repository's
|
|
102
108
|
# own solution or package is discovered here, so the shipped gates activate unchanged in an
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Copyright (c) Cratis. All rights reserved.
|
|
3
|
+
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
4
|
+
# Advisory only: read repo-relative changed paths on stdin, report conventional application slices.
|
|
5
|
+
# Usage: bash cratis-slice-scope-report.sh <repository-root>
|
|
6
|
+
set -euo pipefail
|
|
7
|
+
|
|
8
|
+
root="$1"
|
|
9
|
+
changed="$(cat)"
|
|
10
|
+
[ -n "$changed" ] || exit 0
|
|
11
|
+
|
|
12
|
+
# Require a same-name, model-bound C# anchor; a four-segment directory alone proves no slice.
|
|
13
|
+
# Unrecognized layouts stay silent rather than guessing a feature root or a framework profile.
|
|
14
|
+
candidates="$(printf '%s\n' "$changed" | awk -F/ '
|
|
15
|
+
$1 == "Source" && NF >= 5 && $2 != "" && $3 != "" && $4 != "" {
|
|
16
|
+
path = $1 "/" $2 "/" $3 "/" $4
|
|
17
|
+
if (!seen[path]++) print path
|
|
18
|
+
}
|
|
19
|
+
')"
|
|
20
|
+
[ -n "$candidates" ] || exit 0
|
|
21
|
+
paths="$(git -C "$root" ls-files && git -C "$root" ls-files --others --exclude-standard)"
|
|
22
|
+
while IFS= read -r slice; do
|
|
23
|
+
anchor="$slice/${slice##*/}.cs"
|
|
24
|
+
[ -f "$root/$anchor" ] || continue
|
|
25
|
+
LC_ALL=C grep -Eq '^[[:space:]]*\[(Command|ReadModel)(Attribute)?([[:space:]]*\(|[[:space:]]*\])' "$root/$anchor" || continue
|
|
26
|
+
printf 'cratis-quality-gate: ADVISORY slice scope %s\n' "$slice" >&2
|
|
27
|
+
while IFS= read -r path; do
|
|
28
|
+
case "$path" in
|
|
29
|
+
"$slice"/*) ;;
|
|
30
|
+
*) printf ' seam or out of scope: %s\n' "$path" >&2 ;;
|
|
31
|
+
esac
|
|
32
|
+
done <<EOF
|
|
33
|
+
$changed
|
|
34
|
+
EOF
|
|
35
|
+
if printf '%s\n' "$changed" | LC_ALL=C grep -Fxq "$anchor"; then
|
|
36
|
+
spec_paths="$(printf '%s\n' "$paths" | CRATIS_SLICE="$slice/" awk '
|
|
37
|
+
index($0, ENVIRON["CRATIS_SLICE"]) == 1 && /\/when_[^\/]+(\/|\.cs$)/ { print }
|
|
38
|
+
')"
|
|
39
|
+
has_specs=0
|
|
40
|
+
while IFS= read -r path; do
|
|
41
|
+
if [ -n "$path" ] && [ -f "$root/$path" ]; then
|
|
42
|
+
has_specs=1
|
|
43
|
+
fi
|
|
44
|
+
done <<EOF
|
|
45
|
+
$spec_paths
|
|
46
|
+
EOF
|
|
47
|
+
if [ "$has_specs" -eq 0 ]; then
|
|
48
|
+
printf ' specification folder not found for changed %s (expected when_* under this slice)\n' "$anchor" >&2
|
|
49
|
+
fi
|
|
50
|
+
fi
|
|
51
|
+
done <<EOF
|
|
52
|
+
$candidates
|
|
53
|
+
EOF
|
|
54
|
+
exit 0
|
|
@@ -5,12 +5,10 @@ description: Review one skill for clarity, trigger quality, and maintainability.
|
|
|
5
5
|
|
|
6
6
|
# Review Skill
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Read [authoring-skills.md](../rules/authoring-skills.md), then apply its section 10
|
|
9
|
+
checklist to the requested skill folder under `.cratis/ai/skills/`. Check routing
|
|
10
|
+
against neighboring skills and workflow correctness against the owning product.
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
- missing references or checklists
|
|
14
|
-
- opportunities to split large files
|
|
15
|
-
|
|
16
|
-
Return findings first, then proposed edits.
|
|
12
|
+
Report blocking findings separately from suggestions, with the file and concrete
|
|
13
|
+
consequence. Name any evaluation runs or verification not performed. Return findings
|
|
14
|
+
first, then proposed edits; do not edit during the review.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
applyTo: ".cratis/ai/skills/**,.cratis/ai/rules/**,.cratis/ai/agents/**,.cratis/ai/prompts/**"
|
|
3
|
+
paths:
|
|
4
|
+
- ".cratis/ai/skills/**"
|
|
5
|
+
- ".cratis/ai/rules/**"
|
|
6
|
+
- ".cratis/ai/agents/**"
|
|
7
|
+
- ".cratis/ai/prompts/**"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<!-- Copyright (c) Cratis. All rights reserved. -->
|
|
11
|
+
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
|
|
12
|
+
|
|
13
|
+
# Authoring skills and instructions
|
|
14
|
+
|
|
15
|
+
## 1. What a skill is
|
|
16
|
+
|
|
17
|
+
Trigger (when to use / when not) · the how (steps, patterns, one minimal correct example each) · choosing (use X when…, not Y) · pitfalls (with the diagnostic code you'll see) · verification (command + what a pass looks like). Timeless: describe current behavior without saying it is current.
|
|
18
|
+
|
|
19
|
+
A code-breaking prerequisite belongs in one `Requires` line with the version-check command and the fallback. This is a compatibility gate, not a release history. Use American English in authored text.
|
|
20
|
+
|
|
21
|
+
## 2. Frontmatter and routing
|
|
22
|
+
|
|
23
|
+
Use portable fields: `name`, `description`, `license`, `compatibility`, `metadata`, `allowed-tools`. Keep extension metadata under `metadata` so other harnesses can load the skill.
|
|
24
|
+
|
|
25
|
+
- Match `name` to the directory: 1–64 lowercase letters, digits and single hyphens; no edge hyphen or reserved `anthropic`/`claude` words. These constraints keep discovery portable.
|
|
26
|
+
- Lead the description with what the skill does, then `Use when…` and `Not for…` (name the sibling to use). Include concrete words from the user's request so the router can distinguish neighbors.
|
|
27
|
+
- Use neutral imperative or third-person phrasing, not `I`/`you`/`your`; descriptions enter instruction context, where shifting voice obscures who acts. Quoted command text and inline code are not the author's voice.
|
|
28
|
+
- Aim below 700 characters, within the hard 1–1024 limit. No tag-like text, versions or research-process vocabulary: the listing is for routing, not evidence.
|
|
29
|
+
|
|
30
|
+
An explicit trigger clause (`Use when`, `Load when`, `Read when` or an equivalent) and neutral voice are required even with `SKILL_AUTHORING_MODE=warn`. Negative routing and meta-language findings follow that switch; the 700-character target is guidance, not a gate.
|
|
31
|
+
|
|
32
|
+
## 3. Budget and progressive disclosure
|
|
33
|
+
|
|
34
|
+
Target at most 400 body lines and 16,000 characters; the hard limits remain 500 lines and 20,000 characters. A warning starts at 18,000 characters to leave editing and compaction headroom; characters only approximate tokens.
|
|
35
|
+
|
|
36
|
+
Keep decision rules, the core workflow and pre-action traps in `SKILL.md`. Move conditional detail to `references/`, with a direct `Read references/x.md when…` pointer for every file, including assets and scripts. `LICENSE`, `NOTICE` and `verification.json` are exempt as licensing/verifier metadata; existing reasoned asset exceptions fail when stale. Direct pointers prevent partial nested reads from hiding required context. References over 100 lines open with generated `## Contents`; a single fenced example with an early introduction is exempt because it has no sections to navigate. Use forward-slash paths for portability.
|
|
37
|
+
|
|
38
|
+
## 4. Timeless text
|
|
39
|
+
|
|
40
|
+
Describe behavior, syntax and diagnostics without dates or relative-time claims. Remove release/probe results, issue/PR/decision numbers, source-line citations, commit hashes, bundled versions and research-only pages; these age without helping the next task. No provenance, contradictions or release-baseline pages, nor verified-source headings in skills. Preserve a diagnostic's identifier, not the investigation history.
|
|
41
|
+
|
|
42
|
+
Keep pins in `product-sync.json` and compatibility documentation under `Documentation/`, not repeated prose. Track product-documentation conflicts in the product's issues. A minimum-construct table is useful only when it is short and contains actual code-breaking prerequisites.
|
|
43
|
+
|
|
44
|
+
## 5. Instruction style
|
|
45
|
+
|
|
46
|
+
Give one default and the condition for choosing an alternative, rather than an equal-options menu. Put the reason beside an absolute so the agent can recognize its boundary; volume and ALL-CAPS add no evidence. Prefer concrete, checkable directions over vague quality requests. Use the terms in [glossary.md](./glossary.md); define an unfamiliar term on first use to avoid competing meanings. Show one minimal correct example per pattern and an exact verification command with the observable pass condition.
|
|
47
|
+
|
|
48
|
+
## 6. One source of truth
|
|
49
|
+
|
|
50
|
+
Link the owning rule instead of copying it into skills, agents or prompts; copies diverge on the next edit. A pointer may state when to read that rule, but does not redefine it. Resolve contradictions at their source rather than relying on a harness's precedence behavior.
|
|
51
|
+
|
|
52
|
+
## 7. MCP tools
|
|
53
|
+
|
|
54
|
+
Name the server once, then its protocol tool: for example, the `screenplay` MCP server's `propose-ast` tool. Resolve the harness-native invocation name from the connected client's tool listing instead of assuming one naming scheme works in every harness. For servers the corpus does not register, resolve the user's configured alias; a fixed prefix can address the wrong server.
|
|
55
|
+
|
|
56
|
+
## 8. Deterministic scripts
|
|
57
|
+
|
|
58
|
+
Put repeatable mechanical operations in `scripts/` when a script can eliminate repeated reasoning. Say explicitly to execute it (or, when needed, read it as reference), with prerequisites, inputs, errors and the pass signal. Handle known errors in the script and preserve the command's exit status; apparent success after an unperformed check is not verification. Keep judgment in prose.
|
|
59
|
+
|
|
60
|
+
## 9. Evaluations
|
|
61
|
+
|
|
62
|
+
Give new skills both trigger and output evaluation inputs. Existing unevaluated skills are a shrinking baseline, not permission to exempt new ones. Each evaluation set has 16–20 unique trigger queries: 8–10 positive (`shouldTrigger: true`) and 8–10 negative (`shouldTrigger: false`), plus 3–5 output tasks with 3–5 nonempty assertions each. Make negatives tricky near-misses and name the sibling that should win in their notes; that note quality is review guidance, not a shape check. Compare with-skill outputs to a without-skill baseline to show what the instructions improve.
|
|
63
|
+
|
|
64
|
+
When changing a description, run trigger evaluations before and after when authorized to spend model usage. Keep results untracked in `.ai-work/skill-evaluations/` and summarize them for reviewers, not in the skill. CI validates inputs without calling models; missing model runs remain explicitly unverified.
|
|
65
|
+
|
|
66
|
+
## 10. Review checklist
|
|
67
|
+
|
|
68
|
+
- What, when, when-not and sibling routing are explicit; voice is neutral and routing text has no meta/history claims.
|
|
69
|
+
- Body has headroom; every reference, asset and script is directly named; long references have Contents.
|
|
70
|
+
- Text is timeless; no research-only pages or verified-source headings remain.
|
|
71
|
+
- Defaults, escape conditions, adjacent reasons, glossary terms and correct examples are clear.
|
|
72
|
+
- Rules are linked, not duplicated; MCP server and native naming are resolved.
|
|
73
|
+
- Mechanical steps use scripts where warranted; verification names the command and pass condition.
|
|
74
|
+
- Evaluation inputs cover positive and near-miss routing and baseline output behavior; report any runs not performed.
|
|
75
|
+
- Always-on content meets the budget below. Apply the same timelessness and clarity review to rules, agents and prompts.
|
|
76
|
+
|
|
77
|
+
## 11. Always-on content
|
|
78
|
+
|
|
79
|
+
Keep `general.md` to facts needed in every session, at most 200 lines. Warn above 24,000 bytes and above 60,000 combined bytes for rules without `paths`; line length alone can hide context bloat. Review globally applied Copilot instructions above 4,000 characters. These budgets leave room for source and task context, rather than promising a token count.
|
|
80
|
+
|
|
81
|
+
Use path-scoped rules for file-specific invariants and skills for particular operations. Hooks and CI enforce mechanical constraints; natural-language rules do not replace permission controls.
|
|
82
|
+
|
|
83
|
+
## Sources
|
|
84
|
+
|
|
85
|
+
- https://agentskills.io/specification
|
|
86
|
+
- https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices
|
|
87
|
+
- https://github.com/anthropics/skills/blob/main/skills/skill-creator/SKILL.md
|
|
88
|
+
- https://code.claude.com/docs/en/memory
|
|
89
|
+
- https://learn.chatgpt.com/docs/agent-configuration/agents-md
|
|
90
|
+
- https://developers.openai.com/cookbook/examples/skills_in_api
|
|
91
|
+
- https://docs.github.com/en/copilot/tutorials/customize-code-review
|
|
92
|
+
- https://cursor.com/docs/context/rules
|
|
@@ -157,6 +157,7 @@ A claim is only as good as the signal behind it — a build result, a test run,
|
|
|
157
157
|
| Reviewing or explaining a `.play` model | the **cratis-screenplay-model-review** skill |
|
|
158
158
|
| Turning an existing system into a model | the **cratis-screenplay-legacy-extraction** skill |
|
|
159
159
|
| Rendering or gap-filling an accepted model | the **cratis-screenplay-render-and-gap-fill** skill, then **cratis-stage-rendering-and-sandbox** for renderer facts |
|
|
160
|
+
| Authoring or reviewing skills, rules, agents or prompts | `authoring-skills.md` |
|
|
160
161
|
| Step-by-step recipes | `.cratis/ai/skills/` |
|
|
161
162
|
|
|
162
163
|
## Source-of-Truth Discipline
|
|
@@ -387,6 +387,10 @@ profile: application
|
|
|
387
387
|
- **`profile: framework`** - Rules for contributing to Cratis framework repos
|
|
388
388
|
- **No profile tag** - Universal rules that apply to both profiles
|
|
389
389
|
|
|
390
|
+
[authoring-skills.md](./authoring-skills.md) is universal but path-scoped to corpus
|
|
391
|
+
skills, rules, agents and prompts. Harnesses without path-rule loading discover it
|
|
392
|
+
through `general.md`'s Where to Look table; its body is needed only for authoring work.
|
|
393
|
+
|
|
390
394
|
## Finding Profile Information
|
|
391
395
|
|
|
392
396
|
- **Full catalog:** [profile-catalog.json](../profile-catalog.json)
|
|
@@ -189,6 +189,7 @@ Top-level provider for microservice name and API base path. Config props (with d
|
|
|
189
189
|
- Single responsibility — if you write a `// Section` comment inside a component, that section is its own component. Parent owns state; children receive props.
|
|
190
190
|
- Single-file component → in the slice folder; multi-file → a folder named after the component with an `index.ts` re-export.
|
|
191
191
|
- A `.tsx` belongs in the slice folder it implements — never one level up. A feature's pass-through layout renders only `<Outlet />`.
|
|
192
|
+
- **Composition point and slice isolation.** A page is the one place that composes slices, through their exported components; slice internals never import another slice's internals; identity, tenant and theme providers belong to the application; deleting a slice folder and its page registration removes the feature. Detail: the `cratis-arc-react-page` skill, `references/from-screenplay.md`.
|
|
192
193
|
|
|
193
194
|
## Styling default
|
|
194
195
|
|
|
@@ -135,7 +135,7 @@ Cratis Components mount inside `CratisComponentsProvider`, so a specification
|
|
|
135
135
|
that renders one for real must provide it (enable `toaster` only when asserting
|
|
136
136
|
toasts). In jsdom, provide a `ResizeObserver` stub for any Components area that
|
|
137
137
|
observes size, including observable tables, Filter and toolbars. Source-checked
|
|
138
|
-
|
|
138
|
+
in Components (`Source/**`); this is not a split-pane-only requirement.
|
|
139
139
|
|
|
140
140
|
## Async and time
|
|
141
141
|
|
package/package/corpus/skills/cratis-application-slice-conformance/references/build-prompts.md
CHANGED
|
@@ -44,7 +44,12 @@ event names, command names and business rules come exclusively from the contract
|
|
|
44
44
|
invent, assume or guess a field or a rule that is not in it.
|
|
45
45
|
|
|
46
46
|
1. Read the slice from the contract in full: description, realization notes, specifications,
|
|
47
|
-
concepts, inherited authorization, referenced events and views.
|
|
47
|
+
concepts, inherited authorization, referenced events and views. An outline or summary is not
|
|
48
|
+
the declarations; never infer that a slice has no elements or specifications from it.
|
|
49
|
+
Before writing the decision, line up all the command's specifications and read them together:
|
|
50
|
+
what their `given` facts share identifies decision state; what makes their `then` differ
|
|
51
|
+
identifies branches. Each error expectation pins the stated rule to its given situation;
|
|
52
|
+
read the rules too, because examples do not authorize invented rejection conditions.
|
|
48
53
|
2. Search case-insensitively for the qualified slice folder and its command, event, read-model
|
|
49
54
|
and reactor names before writing. If a realization exists, diff it against the contract and
|
|
50
55
|
update it in place within owned paths; never build a second realization. Reuse referenced
|
|
@@ -136,6 +141,9 @@ command/property name, isolation may need fresh test identifiers, and file place
|
|
|
136
141
|
slice, invalid spec-name conversion or an unspecified layout may follow local conventions.
|
|
137
142
|
Return each assumption with its address and consequence if wrong in the fallback record.
|
|
138
143
|
`blocked` means progress needs a person, not that confirmation seemed safer.
|
|
144
|
+
Write the question so someone reading it cold understands it: name the slice, the exact field,
|
|
145
|
+
rule or specification, what is missing or contradictory, and the concrete choice needed.
|
|
146
|
+
"Please clarify" alone gives the owner nothing answerable.
|
|
139
147
|
|
|
140
148
|
Stop conditions: after one slice, stop regardless of what else is assigned (under a scoped brief,
|
|
141
149
|
after one slice, or when the assigned scope is done or blocked, and never continue into another
|
|
@@ -36,7 +36,10 @@ the renderer no right to browse managed output or implement rejected semantics.
|
|
|
36
36
|
success and external-effect delivery are different guarantees.
|
|
37
37
|
- Verify command registration, transport mapping and inherited authorization against
|
|
38
38
|
repository conventions, not a copied route template.
|
|
39
|
-
-
|
|
39
|
+
- A command with no refusal in its contract (property requirements, concept rules, command
|
|
40
|
+
rules, authorization, constraints or specifications) refuses nothing for business reasons.
|
|
41
|
+
Do not add "not empty", range or format validators the contract does not state: they introduce
|
|
42
|
+
new rejection behavior. Propose them to the model owner instead.
|
|
40
43
|
- Every property of the command has a field in the code's command and nothing else does: none
|
|
41
44
|
invented, none missing. Every event keeps its modeled name and every payload field.
|
|
42
45
|
- Every contract specification maps to a spec. Explicit realization requirements bind
|
|
@@ -31,6 +31,9 @@ Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilg
|
|
|
31
31
|
|---|---|---|
|
|
32
32
|
| `record-evidence` (classic stack) | `build-prompts.md` result pointer; Slice Implementer output, using the fallback record in `cratis-screenplay-render-and-gap-fill` | adapted closely: one row per element, field and specification, files created and modified, shared seams, assumptions and checks, with no code excerpts; the board note dropped |
|
|
33
33
|
|
|
34
|
+
| modeling-kit `prototype` decision scenarios; shared `load-slice` and build prompt summary warning | `build-prompts.md` mandatory flow; `checklists.md` State Change | adapted closely: read all specifications together, read declarations rather than summaries, and refuse only for contracted rules |
|
|
35
|
+
| shared `request-feedback` question form | `build-prompts.md` Escalation | adapted closely: name the slice, field/rule/specification and missing choice so the owner can answer without prior context |
|
|
36
|
+
|
|
34
37
|
## Method lineage
|
|
35
38
|
|
|
36
39
|
| Idea | Used in | Credit |
|
|
@@ -7,3 +7,7 @@ This skill adapts material from agentic-engineer by Martin Dilger and Nebulit Gm
|
|
|
7
7
|
(https://github.com/Nebulit-GmbH/agentic-engineer, commit 07b0f30648d663cb588d7e2c7aa031af9dfc21f2;
|
|
8
8
|
https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted
|
|
9
9
|
material remains credited to Martin Dilger and Nebulit GmbH.
|
|
10
|
+
|
|
11
|
+
This skill also adapts Eventmodelers Build-Kits by Martin Dilger and Nebulit GmbH
|
|
12
|
+
(https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used with their
|
|
13
|
+
explicit consent. The adapted material remains credited to Martin Dilger and Nebulit GmbH.
|
package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md
CHANGED
|
@@ -12,6 +12,15 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
|
|
|
12
12
|
| `.claude/skills/build-automation/SKILL.md`: checklist question "what happens if the command fires twice" | `SKILL.md` Step 3 item 5 | idea; our own wording kept |
|
|
13
13
|
| `.claude/skills/build-automation/SKILL.md`: one error specification per rule; build from the slice definition first | `SKILL.md` Step 0 and Step 6 | idea; our own wording kept |
|
|
14
14
|
|
|
15
|
+
## Eventmodelers Build-Kits
|
|
16
|
+
|
|
17
|
+
Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilger and Nebulit GmbH
|
|
18
|
+
(https://nebulit.de), used with their explicit consent.
|
|
19
|
+
|
|
20
|
+
| Source skill | Used in | How |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| axon/kurrent `build-state-view` query tests | `query-and-decision-scenarios.md` | copied and translated: isolate query results by key/filter/caller scope and assert complete items where fully contracted; provider integration remains separate |
|
|
23
|
+
|
|
15
24
|
## Method lineage
|
|
16
25
|
|
|
17
26
|
| Idea | Used in | Credit |
|
|
@@ -36,6 +36,14 @@ With `Cratis.Arc.Chronicle.Testing` and its Queries namespace, use
|
|
|
36
36
|
The query must read that source via injected `IReadModels`; seeding does not
|
|
37
37
|
replace arbitrary stores or produce later observable emissions after appends.
|
|
38
38
|
|
|
39
|
+
For a query with `by`, `filter` or `scoped to`, seed instances for two keys, two filter values
|
|
40
|
+
or two tenants with distinct callers, as applicable, and assert that each call returns only its
|
|
41
|
+
own instances, plus the empty case. This pins the caller-isolation decision in
|
|
42
|
+
`cratis-screenplay-read-surface` ("by vs filter"); caller scope must come from trusted context,
|
|
43
|
+
not a caller-supplied tenant filter. Compare whole returned items when the contract states every
|
|
44
|
+
value; otherwise assert each named value. A query backed by a database still needs that provider's
|
|
45
|
+
integration setup: scenario pins do not replace arbitrary stores.
|
|
46
|
+
|
|
39
47
|
## Guarded decisions
|
|
40
48
|
|
|
41
49
|
Call `new CommandScenario<TCommand>().UseDecisionReads()` before seeding. This
|