@erclx/canon 5.19.0 → 5.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/claude/.claude-plugin/plugin.json +1 -1
  2. package/claude/skills/create-skill/SKILL.md +1 -0
  3. package/claude/skills/plan-feature/SKILL.md +1 -1
  4. package/claude/skills/plan-groundwork/SKILL.md +1 -1
  5. package/claude/skills/record-screencast/REQUIREMENT.md +2 -1
  6. package/claude/skills/record-screencast/SKILL.md +2 -2
  7. package/claude/skills/role-worker/REQUIREMENT.md +3 -1
  8. package/claude/skills/role-worker/SKILL.md +5 -3
  9. package/claude/skills/session-resume/SKILL.md +1 -1
  10. package/claude/skills/task-board/REQUIREMENT.md +1 -0
  11. package/claude/skills/task-board/SKILL.md +6 -0
  12. package/claude/skills/task-board/references/decline.md +2 -0
  13. package/claude/skills/video-craft/REQUIREMENT.md +48 -0
  14. package/claude/skills/video-craft/SKILL.md +80 -0
  15. package/claude/skills/video-craft/references/adopted.md +66 -0
  16. package/docs/agents/canvas.md +4 -0
  17. package/docs/agents/demo.md +1 -1
  18. package/docs/agents/install-and-sync.md +17 -3
  19. package/docs/agents/rule-citations.md +4 -4
  20. package/docs/agents/sandbox.md +8 -7
  21. package/docs/workflow/operating-model.md +9 -9
  22. package/docs/workflow/parallel-features.md +1 -1
  23. package/docs/workflow/skill-map.md +1 -0
  24. package/governance/renames.toml +24 -0
  25. package/governance/rules/{canon/640-architecture.md → standards/architecture.md} +3 -2
  26. package/governance/rules/standards/context.md +15 -0
  27. package/governance/rules/standards/design.md +13 -0
  28. package/governance/rules/standards/diagrams.md +17 -0
  29. package/governance/rules/standards/groundwork.md +13 -0
  30. package/governance/rules/standards/intake.md +12 -0
  31. package/governance/rules/standards/markdown.md +15 -0
  32. package/governance/rules/standards/memory.md +12 -0
  33. package/governance/rules/standards/mermaid.md +15 -0
  34. package/governance/rules/{canon/658-plan.md → standards/plan.md} +5 -9
  35. package/governance/rules/standards/readme.md +12 -0
  36. package/governance/rules/standards/ready.md +13 -0
  37. package/governance/rules/standards/requirements.md +13 -0
  38. package/governance/rules/standards/rule.md +13 -0
  39. package/governance/rules/standards/session.md +13 -0
  40. package/governance/rules/{claude/570-skill.md → standards/skill.md} +6 -10
  41. package/governance/rules/standards/standard.md +13 -0
  42. package/governance/rules/standards/tasks.md +15 -0
  43. package/governance/rules/{canon/661-teach.md → standards/teach.md} +3 -2
  44. package/governance/rules/standards/wiki.md +13 -0
  45. package/governance/rules/standards/wireframes.md +14 -0
  46. package/governance/rules/writing/800-prose.md +1 -1
  47. package/governance/stacks/base.toml +4 -2
  48. package/package.json +1 -1
  49. package/src/canvas/capture.ts +228 -15
  50. package/src/claude/cases/misc.ts +5 -0
  51. package/src/claude/routing.ts +1 -1
  52. package/src/commands/canvas.ts +76 -2
  53. package/src/commands/gov.ts +19 -4
  54. package/src/commands/sandbox.ts +7 -0
  55. package/src/gate/stages.ts +7 -1
  56. package/src/gov/citations.ts +1 -1
  57. package/src/gov/standard-rules.ts +179 -0
  58. package/src/sandbox/equivalence.ts +43 -14
  59. package/src/sandbox/stub-remote.ts +140 -0
  60. package/standards/architecture.md +5 -0
  61. package/standards/context.md +6 -0
  62. package/standards/design.md +3 -0
  63. package/standards/diagrams.md +8 -0
  64. package/standards/groundwork-spikes.md +66 -0
  65. package/standards/groundwork.md +5 -25
  66. package/standards/index.md +6 -2
  67. package/standards/intake.md +2 -0
  68. package/standards/markdown.md +6 -0
  69. package/standards/memory.md +2 -0
  70. package/standards/mermaid.md +6 -0
  71. package/standards/plan-lifecycle.md +36 -0
  72. package/standards/plan.md +13 -11
  73. package/standards/readme.md +2 -0
  74. package/standards/ready.md +4 -0
  75. package/standards/requirements.md +3 -0
  76. package/standards/rule.md +6 -1
  77. package/standards/session.md +4 -0
  78. package/standards/skill-paths.md +50 -0
  79. package/standards/skill.md +15 -23
  80. package/standards/standard.md +7 -1
  81. package/standards/tasks-decline.md +38 -0
  82. package/standards/tasks.md +8 -13
  83. package/standards/teach.md +5 -0
  84. package/standards/wiki.md +4 -0
  85. package/standards/wireframes.md +5 -0
  86. package/governance/rules/canon/610-context.md +0 -17
  87. package/governance/rules/canon/620-wireframes.md +0 -13
  88. package/governance/rules/canon/630-requirements.md +0 -12
  89. package/governance/rules/canon/650-design.md +0 -12
  90. package/governance/rules/canon/655-tasks.md +0 -13
  91. package/governance/rules/canon/656-groundwork.md +0 -11
  92. package/governance/rules/canon/657-intake.md +0 -11
  93. package/governance/rules/canon/659-memory.md +0 -11
  94. package/governance/rules/canon/660-diagrams.md +0 -19
  95. package/governance/rules/canon/662-session.md +0 -15
  96. package/governance/rules/canon/663-ready.md +0 -15
  97. package/governance/rules/claude/590-rule-authoring.md +0 -12
  98. package/governance/rules/writing/801-markdown.md +0 -14
  99. package/governance/rules/writing/802-mermaid.md +0 -14
  100. package/governance/rules/writing/880-readme.md +0 -11
  101. package/governance/rules/writing/891-standard-authoring.md +0 -12
@@ -1,6 +1,18 @@
1
1
  ---
2
2
  title: Claude skill reference
3
- description: Claude skill structure and authoring rules
3
+ description: Skill structure and authoring rules for Claude Code
4
+ paths:
5
+ - '.claude/skills/**/SKILL.md'
6
+ - 'claude/skills/**/SKILL.md'
7
+ - '.claude/skills/**/REQUIREMENT.md'
8
+ - 'claude/skills/**/REQUIREMENT.md'
9
+ rule:
10
+ - "Confirm `canon:create-skill`'s two creation-time questions are answered before a new `SKILL.md` lands, whether drafted by hand, by another skill, or by `canon:create-skill` itself. Carry the third question into the sibling `REQUIREMENT.md`'s `Must not` section as a review criterion rather than a gate."
11
+ - 'Report it rather than proceeding silently when `canon:create-skill` does not resolve. It ships with the plugin and this rule ships with the CLI, so a project that installed governance alone does not have it.'
12
+ - 'Re-read a skill body this session edited before invoking that skill again in the same session'
13
+ - 'Do not read a resolved file path in a held body as evidence the body is current'
14
+ - 'Follow the skill requirement standard for the shape a `REQUIREMENT.md` states. Read it with `canon standards skill-requirement`.'
15
+ - 'Follow the skill path standard for which root a path in a body resolves against and how a body cites a standard. Read it with `canon standards skill-paths`.'
4
16
  ---
5
17
 
6
18
  # Claude skill reference
@@ -17,11 +29,12 @@ Does not govern:
17
29
 
18
30
  - What a `REQUIREMENT.md` must answer, its sections, and its template: `skill-requirement.md`
19
31
  - A practice skill's closing sections and ledger: `skill-practice.md`
32
+ - Which root a path in a body resolves against, and how a body cites a standard: `skill-paths.md`
20
33
  - Path-scoped coding rules, which load on a file match rather than on a request match: `rule.md`
21
34
  - Voice, rhythm, and sentence construction in a skill body: the `write-human` skill
22
35
  - Punctuation, formatting, and word choice in a skill body: `markdown.md`
23
36
  - The transform from a branch name to a slug a skill carries in a filename: `slug.md`
24
- - Whether a new skill earns its place: the three-question test in the `create-skill` skill and the clause in `570-skill.md`
37
+ - Whether a new skill earns its place: the three-question test in the `create-skill` skill and the creation-time bullet in this standard's own `rule` frontmatter
25
38
 
26
39
  ## Changing a skill
27
40
 
@@ -146,27 +159,6 @@ allowed-tools: <tools required>
146
159
  - Use `#!/usr/bin/env bash` shebang
147
160
  - Always include `2>/dev/null || echo "FALLBACK"` guards on git and shell commands
148
161
 
149
- ## Path resolution
150
-
151
- A skill reads from two roots, so know which one a file lives under before referencing it.
152
-
153
- - Bundled skill assets (`references/`, `scripts/`, `assets/`) resolve against the skill's own directory. Reference them with `${CLAUDE_SKILL_DIR}/<path>`, never a bare relative path, which resolves against the session cwd and fails when a plugin skill runs from another project.
154
- - Installed shared docs (`.claude/rules/`, `canon/context/`) resolve against the target project cwd, where install placed them. Reference them by that path.
155
- - Do not hand-copy a standard into a skill. If a skill must carry its own copy, generate it from the single source and reference it through `${CLAUDE_SKILL_DIR}`, so one owner keeps every copy in sync.
156
-
157
- ### Citing a standard
158
-
159
- No standard installs into a project, so a body cites one place rather than choosing between two.
160
-
161
- - Cite `${CLAUDE_SKILL_DIR}/../../standards/X.md`. The plugin ships the whole standards folder beside `skills/`, so the path resolves in every install.
162
- - Never cite `.claude/standards/X.md` from a shipped body. A target holds no such folder. <!-- audit-ignore-citations: .claude/standards/X.md -->
163
- - Name `canon standards X` instead where the body wants the document rather than a path to open, such as a value it captures or reports. That verb resolves `standards/` at the project root and then the corpus inside the package.
164
- - State the path once per body, at the site that reads the standard. A later mention of a standard the body already read stays bare, since repeating the path at every mention is noise rather than instruction.
165
- - A guard on a standard's presence names the file rather than the folder holding it, since a folder test answers for a sibling that happens to be there.
166
- - Use `${CLAUDE_SKILL_DIR}`, never a bare `../../` and never `${CLAUDE_PLUGIN_ROOT}`, since only the first expands before the body reaches the model.
167
- - Cite a shared procedure, never restate it. A procedure two or more skills execute gets one definition in a standard and a citation in each body.
168
- - Keep the trigger in the body and the procedure in the standard. The citing skill states when the procedure runs and what it runs against, since that varies per skill and the standard cannot know it.
169
-
170
162
  ## Invocation
171
163
 
172
164
  - Invoke a plugin skill by its namespaced name, `/<plugin>:<skill-name>`.
@@ -1,6 +1,10 @@
1
1
  ---
2
2
  title: Standard reference
3
3
  description: Shape and content rules for authoring a standard
4
+ paths:
5
+ - 'standards/**/*.md'
6
+ rule:
7
+ - 'Read it before writing or editing a standard. Do not work the shape from memory.'
4
8
  ---
5
9
 
6
10
  # Standard reference
@@ -64,7 +68,9 @@ A standard failing these questions is non-conforming even when it satisfies ever
64
68
 
65
69
  - Start the file with a frontmatter block carrying at least `title` and `description`. A consuming surface may require more.
66
70
  - `title`: names the doc type in sentence case, suffixed `reference` (`Commit reference`, `Branch reference`)
67
- - `description`: one line naming what the standard covers. It becomes the index link label on install.
71
+ - `description`: one line naming what the standard covers. It becomes the index link label on install, and the generated rule's description and pointer bullet.
72
+ - `paths` (optional): the globs where the standard applies, one per entry, copied verbatim into the rule `canon gov regen` generates for it. Omit it when no path should route to the standard, and no rule is generated.
73
+ - `rule` (optional): operative bullets the generated rule carries after its pointer bullet, one per entry, each a full sentence. Quote an entry holding a backtick, a colon, or a leading `-`.
68
74
 
69
75
  ## Structure
70
76
 
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: Task decline reference
3
+ description: Where a task decided against moves, the Declined line it carries, and what happens to its plan and board row
4
+ ---
5
+
6
+ # Task decline reference
7
+
8
+ Applies to a task under `.canon/tasks/` that somebody decided against doing. `canon tasks decline` performs the move, and this file fixes what the move leaves behind.
9
+
10
+ This is an attribute standard. It governs one origin line and one folder move rather than a file of its own, so it carries no template.
11
+
12
+ ## Scope
13
+
14
+ Governs the `.canon/tasks/declined/` folder, the `Declined:` line, and what declining does to the task's plan and board row.
15
+
16
+ Does not govern:
17
+
18
+ - The task file's layout, filename, format, other origin lines, and archiving: `tasks.md`
19
+ - The board rows the move clears: `board.md`
20
+
21
+ ## What a working decline looks like
22
+
23
+ A declined task works when a later reader can tell, from the folder and the file alone:
24
+
25
+ - Was the work decided against, rather than shipped or merely unscheduled?
26
+ - Who decided, when, and why?
27
+
28
+ ## Declining
29
+
30
+ A task decided against moves to `.canon/tasks/declined/` rather than `.canon/tasks/archive/`. The two folders answer different questions: archive means the work shipped, declined means somebody decided against doing it. Neither reading fits a task that is merely unscheduled, which stays on `backlog.md` rather than moving anywhere, since nobody has decided against it and it may still rise when the board has room.
31
+
32
+ `canon tasks decline` carries no outcome-state gate, so a task can be decided against at any outcome state, open outcomes included.
33
+
34
+ The decision is recorded on the task itself with a `Declined:` line, in the `Plan:`/`Pull request:` family: `Declined: <reason>, <who> on <YYYY-MM-DD>`. It anchors the same way `Pull request:` does, after the last origin line the task carries. The line is free prose after the colon, since it names no file to link.
35
+
36
+ Declining a task moves its plan alongside it the same way archiving does, when the declining task is that plan's last live citation. A plan several tasks share stays where it is, and a declined task's plan lands in `.canon/plans/archive/` indistinguishable from a shipped one by folder alone. The task file under `.canon/tasks/declined/` is what records which it was.
37
+
38
+ The move clears whichever of `priority.md` or `backlog.md` holds the task's row.
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  title: Tasks reference
3
3
  description: Folder layout, filename convention, file format, origin lines, and archiving for task files under .canon/tasks/
4
+ paths:
5
+ - '.canon/tasks/**'
6
+ rule:
7
+ - 'Follow the board standard for `priority.md` and `backlog.md`, their readiness groups, and row order. Read it with `canon standards board`.'
8
+ - 'Never hand-edit `.canon/tasks/index.md`. A hook regenerates it from sibling frontmatter.'
9
+ - 'Follow the task decline standard for a task decided against. Read it with `canon standards tasks-decline`.'
4
10
  ---
5
11
 
6
12
  # Tasks reference
@@ -13,10 +19,11 @@ The folder is gitignored. Board state changes when work ships rather than when a
13
19
 
14
20
  ## Scope
15
21
 
16
- Governs the task files under `.canon/tasks/`: folder layout, filenames, frontmatter, file format, origin lines, archiving, and declining.
22
+ Governs the task files under `.canon/tasks/`: folder layout, filenames, frontmatter, file format, origin lines, and archiving.
17
23
 
18
24
  Does not govern:
19
25
 
26
+ - The declined folder, the `Declined:` line, and what declining does to a plan and a board row: `tasks-decline.md`
20
27
  - Execution order, readiness groups, the backlog, and the generated index beside the tasks: `board.md`
21
28
  - The plan file a task cites, its sections, and its answer contract: `plan.md`
22
29
  - Phase-label format and which surfaces a label may appear on: `versioning.md`
@@ -161,15 +168,3 @@ The archive nests inside `.canon/tasks/` rather than sitting beside it as a flat
161
168
  Archiving a task archives its plan alongside it, when the closing task is that plan's last live citation. The archived task's `Plan:` line is retargeted at `../../plans/archive/feature-<slug>.md`. The ready folder its `Ready:` line names moves with the plan to `.canon/ready/archive/<nn>-<slug>/`, and both pointers to it are retargeted. A plan several tasks share stays live with its ready folder, and the task archives anyway.
162
169
 
163
170
  A task with an open outcome stays on the board, and so does its plan. Close it, or cut it from the task when the work is being abandoned, so what was dropped is recorded rather than inferred from an archived file. Cutting means striking the outcome's body: `- ~~<outcome>~~ <why>`. A struck body reads as cut whatever its checkbox holds, so a task carrying only cut outcomes still archives.
164
-
165
- ## Declining
166
-
167
- A task decided against moves to `.canon/tasks/declined/` rather than `.canon/tasks/archive/`. The two folders answer different questions: archive means the work shipped, declined means somebody decided against doing it. Neither reading fits a task that is merely unscheduled, which stays on `backlog.md` rather than moving anywhere, since nobody has decided against it and it may still rise when the board has room.
168
-
169
- `canon tasks decline` carries no outcome-state gate, so a task can be decided against at any outcome state, open outcomes included.
170
-
171
- The decision is recorded on the task itself with a `Declined:` line, in the `Plan:`/`Pull request:` family: `Declined: <reason>, <who> on <YYYY-MM-DD>`. It anchors the same way `Pull request:` does, after the last origin line the task carries. The line is free prose after the colon, since it names no file to link.
172
-
173
- Declining a task moves its plan alongside it the same way archiving does, when the declining task is that plan's last live citation. A plan several tasks share stays where it is, and a declined task's plan lands in `.canon/plans/archive/` indistinguishable from a shipped one by folder alone. The task file under `.canon/tasks/declined/` is what records which it was.
174
-
175
- The move clears whichever of `priority.md` or `backlog.md` holds the task's row.
@@ -1,6 +1,11 @@
1
1
  ---
2
2
  title: Teach reference
3
3
  description: Workspace layout, ordinal naming, frontmatter, and the mission and learning-record formats for a learning workspace
4
+ paths:
5
+ - '.canon/teach/**'
6
+ rule:
7
+ - 'Follow the glossary standard for the glossary every workspace carries at its root. It is the single source for the entry shape, the ordering, and which terms the file carries. Read it with `canon standards glossary`.'
8
+ - 'Report it rather than proceeding silently when that file does not resolve. It ships with the plugin and this rule ships with the CLI, so a project that installed governance alone does not have it.'
4
9
  ---
5
10
 
6
11
  # Teach reference
package/standards/wiki.md CHANGED
@@ -1,6 +1,10 @@
1
1
  ---
2
2
  title: Wiki reference
3
3
  description: Folder split, frontmatter, naming convention, and sourcing for a wiki reference page
4
+ paths:
5
+ - 'wiki/**/*.md'
6
+ rule:
7
+ - 'Read it before drafting a page. Do not work the placement criterion or the naming convention from memory.'
4
8
  ---
5
9
 
6
10
  # Wiki reference
@@ -1,6 +1,11 @@
1
1
  ---
2
2
  title: Wireframe reference
3
3
  description: Shape and content rules for canon/wireframes/<surface>.md files
4
+ paths:
5
+ - 'canon/wireframes/**'
6
+ - '.claude/wireframes/**'
7
+ rule:
8
+ - 'Read it before adding or revising a surface.'
4
9
  ---
5
10
 
6
11
  # Wireframe reference
@@ -1,17 +0,0 @@
1
- ---
2
- description: Route canon/context edits to the context-entry standard and the consult-first workflow
3
- paths:
4
- - 'canon/context/**'
5
- - '.claude/context/**'
6
- ---
7
-
8
- # Context entry standards
9
-
10
- ## Before editing
11
-
12
- - Before non-trivial work in a domain, read its `canon/context/<domain>.md` entry. Use `canon/context/index.md` to find it.
13
- - Leave the entry conforming when work in its domain changes what it describes.
14
-
15
- ## Authority
16
-
17
- - Follow the context standard for entry shape: frontmatter, sections, length, and what goes in. It is the single source. Read it with `canon standards context`.
@@ -1,13 +0,0 @@
1
- ---
2
- description: Route canon/wireframes edits to the wireframe standard for layout and interaction intent
3
- paths:
4
- - 'canon/wireframes/**'
5
- - '.claude/wireframes/**'
6
- ---
7
-
8
- # Wireframe standards
9
-
10
- ## Authority
11
-
12
- - Follow the wireframes standard for layout and interaction intent: regions, the states table and its evidence links, copy, behavior, exclusions, and what moves to `canon/context/`. It is the single source. Read it with `canon standards wireframes`.
13
- - Read it before adding or revising a surface.
@@ -1,12 +0,0 @@
1
- ---
2
- description: Route canon/REQUIREMENTS.md edits to the requirements standard for product scope and goals
3
- paths:
4
- - 'canon/REQUIREMENTS.md'
5
- - '.claude/REQUIREMENTS.md'
6
- ---
7
-
8
- # Requirements standards
9
-
10
- ## Authority
11
-
12
- - Follow the requirements standard for what belongs in the problem, goals, non-goals, MVP features, and constraints. It is the single source. Read it with `canon standards requirements`.
@@ -1,12 +0,0 @@
1
- ---
2
- description: Route canon/DESIGN.md edits to the design standard for visual intent and token tables
3
- paths:
4
- - 'canon/DESIGN.md'
5
- - '.claude/DESIGN.md'
6
- ---
7
-
8
- # Design standards
9
-
10
- ## Authority
11
-
12
- - Follow the design standard for visual intent, the token tables, and the render contract. It is the single source. Read it with `canon standards design`.
@@ -1,13 +0,0 @@
1
- ---
2
- description: Route .canon/tasks/ edits to the tasks standard for task files and the board standard for priority.md and backlog.md
3
- paths:
4
- - '.canon/tasks/**'
5
- ---
6
-
7
- # Tasks standards
8
-
9
- ## Authority
10
-
11
- - Follow the tasks standard for filenames, frontmatter, what belongs, and the task file format. It is the single source. Read it with `canon standards tasks`.
12
- - Follow the board standard for `priority.md` and `backlog.md`, their readiness groups, and row order. Read it with `canon standards board`.
13
- - Never hand-edit `.canon/tasks/index.md`. A hook regenerates it from sibling frontmatter.
@@ -1,11 +0,0 @@
1
- ---
2
- description: Route .canon/groundwork/ edits to the groundwork standard for ordinal naming, numbering, frontmatter, and required file contents
3
- paths:
4
- - '.canon/groundwork/**'
5
- ---
6
-
7
- # Groundwork standards
8
-
9
- ## Authority
10
-
11
- - Follow the groundwork standard for reserved numbering, frontmatter and dating, what each required file holds, and the conventions a track keeps. It is the single source. Read it with `canon standards groundwork`.
@@ -1,11 +0,0 @@
1
- ---
2
- description: Route .canon/intake/ edits to the intake standard for the item format, the answer contract, and ordinal naming
3
- paths:
4
- - '.canon/intake/**'
5
- ---
6
-
7
- # Intake standards
8
-
9
- ## Authority
10
-
11
- - Follow the intake standard for the folder layout, frontmatter and dating, the item format, and retrieval. It is the single source. Read it with `canon standards intake`.
@@ -1,11 +0,0 @@
1
- ---
2
- description: Route .canon/memory/ edits to the memory standard for the filename, frontmatter, body shape, and lifecycle
3
- paths:
4
- - '.canon/memory/**'
5
- ---
6
-
7
- # Memory standards
8
-
9
- ## Authority
10
-
11
- - Follow the memory standard for the filename and type prefix, the frontmatter, the body shape per type, links between entries, and the lifecycle. It is the single source. Read it with `canon standards memory`.
@@ -1,19 +0,0 @@
1
- ---
2
- description: Route .canon/diagrams edits to the diagrams standard for entry kinds, frontmatter, and explanation prose
3
- paths:
4
- - '.canon/diagrams/**'
5
- - '.claude/DIAGRAMS.md'
6
- ---
7
-
8
- # Diagrams standards
9
-
10
- ## Authority
11
-
12
- - Follow the diagrams standard for which question an entry answers, the entry kinds and their source signals, the frontmatter, and the explanation prose beneath the fence. It is the single source. Read it with `canon standards diagrams`.
13
- - Layout, budgets, accessibility, labels, and render verification inside the fence are a separate topic. `802-mermaid` routes them to `mermaid.md`.
14
- - A diagram entry carries structure and flow, not implementation. Read the standard before adding or revising a kind.
15
-
16
- ## Scope
17
-
18
- - Write a new diagram to `.canon/diagrams/<kind>.md`, never to `.claude/DIAGRAMS.md`
19
- - Convert a `.claude/DIAGRAMS.md` left by an older install into per-kind entries before editing it
@@ -1,15 +0,0 @@
1
- ---
2
- description: Route .canon/tasks/ session map edits to the session standard for the filename, the core sections, and what a handoff carries
3
- paths:
4
- - '.canon/tasks/session-*.md'
5
- ---
6
-
7
- # Session map standards
8
-
9
- ## What a handoff carries
10
-
11
- - Follow this rule rather than `655-tasks.md` for a `session-` file. A handoff is not a task and carries neither `## Outcomes` nor `## Findings`.
12
-
13
- ## Authority
14
-
15
- - Follow the session standard for the filename and location, frontmatter, the core sections, and the write and read procedures. It is the single source. Read it with `canon standards session`.
@@ -1,15 +0,0 @@
1
- ---
2
- description: Route .canon/ready/ edits to the ready standard for the folder layout, the overview frontmatter, and the thin-plan contract
3
- paths:
4
- - '.canon/ready/**'
5
- ---
6
-
7
- # Ready standards
8
-
9
- ## Writing a ready folder
10
-
11
- - Load the `canon:draft-ready` skill to write a ready folder, its overview, the thin plan, and the task row. It owns the procedure. Report it rather than proceeding silently when it does not resolve, since it ships with the plugin and this rule ships with the CLI.
12
-
13
- ## Authority
14
-
15
- - Follow the ready standard for the folder layout, ordinal naming, the overview frontmatter, the mirrored tree, and the thin-plan contract. It is the single source. Read it with `canon standards ready`.
@@ -1,12 +0,0 @@
1
- ---
2
- description: Enforce frontmatter, body shape, and voice for governance rule files
3
- paths:
4
- - '.claude/rules/**/*.md'
5
- ---
6
-
7
- # Rule authoring standards
8
-
9
- ## Authority
10
-
11
- - Follow the rule-authoring standard for rule frontmatter, body shape, and voice. It is the single source. Read it with `canon standards rule`.
12
- - Read it before writing or editing a rule. Do not work the shape from memory.
@@ -1,14 +0,0 @@
1
- ---
2
- description: Route markdown edits to the markdown standard for headings, lists, punctuation, and frontmatter wording
3
- paths:
4
- - '**/*.md'
5
- ---
6
-
7
- # Markdown mechanics standards
8
-
9
- ## Authority
10
-
11
- - Follow the markdown standard for headings, paragraph and list structure, code spans, punctuation, emphasis, file references, and the wording of a `title` or `description`. It is the single source. Read it with `canon standards markdown`.
12
- - Read it before a substantial markdown edit. Do not work the banned characters from memory.
13
- - Run `canon markdown audit <path>` after the edit, and rewrite the sentence carrying a hit rather than swapping the token for a near-synonym.
14
- - Voice, rhythm, and sentence construction are a separate topic. `800-prose` routes them.
@@ -1,14 +0,0 @@
1
- ---
2
- description: Route a drafted Mermaid fence to the mermaid standard for layout, budgets, accessibility, labels, and render verification
3
- paths:
4
- - '**/*.md'
5
- ---
6
-
7
- # Mermaid diagram standards
8
-
9
- ## Authority
10
-
11
- - Apply this rule only when the edit drafts or revises a Mermaid fence. Skip it on a markdown edit carrying no diagram.
12
- - Follow the mermaid standard for direction and layout, node and edge budgets, the accessibility fields, punctuation inside labels, and how a render is verified. It is the single source. Read it with `canon standards mermaid`.
13
- - Read it before drafting the fence. Do not work the layout or the budgets from memory.
14
- - Which diagram a document carries and what question it answers is a separate topic. `660-diagrams` routes it.
@@ -1,11 +0,0 @@
1
- ---
2
- description: Route README edits to the readme standard for structure, sections, and content conventions
3
- paths:
4
- - '**/README.md'
5
- ---
6
-
7
- # README standards
8
-
9
- ## Authority
10
-
11
- - Follow the readme standard for voice, structure, required and optional sections, heading hierarchy, badge classes, per-project-type content, and what to link out rather than inline. It is the single source. Read it with `canon standards readme`.
@@ -1,12 +0,0 @@
1
- ---
2
- description: Enforce shape, scope, and success criterion for authoring convention files
3
- paths:
4
- - 'standards/**/*.md'
5
- ---
6
-
7
- # Standard authoring standards
8
-
9
- ## Authority
10
-
11
- - Follow the standard-authoring standard for a standard's frontmatter, shape, scope, and success criterion. It is the single source. Read it with `canon standards standard`.
12
- - Read it before writing or editing a standard. Do not work the shape from memory.