@erclx/canon 5.18.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 (116) hide show
  1. package/README.md +1 -1
  2. package/claude/.claude-plugin/plugin.json +1 -1
  3. package/claude/skills/create-skill/SKILL.md +1 -0
  4. package/claude/skills/plan-feature/SKILL.md +1 -1
  5. package/claude/skills/plan-groundwork/SKILL.md +1 -1
  6. package/claude/skills/record-screencast/REQUIREMENT.md +2 -1
  7. package/claude/skills/record-screencast/SKILL.md +2 -2
  8. package/claude/skills/role-worker/REQUIREMENT.md +3 -1
  9. package/claude/skills/role-worker/SKILL.md +5 -3
  10. package/claude/skills/session-resume/SKILL.md +1 -1
  11. package/claude/skills/task-board/REQUIREMENT.md +1 -0
  12. package/claude/skills/task-board/SKILL.md +6 -0
  13. package/claude/skills/task-board/references/decline.md +2 -0
  14. package/claude/skills/video-craft/REQUIREMENT.md +48 -0
  15. package/claude/skills/video-craft/SKILL.md +80 -0
  16. package/claude/skills/video-craft/references/adopted.md +66 -0
  17. package/docs/agents/canvas.md +4 -0
  18. package/docs/agents/commands.md +1 -0
  19. package/docs/agents/demo.md +1 -1
  20. package/docs/agents/install-and-sync.md +17 -3
  21. package/docs/agents/rule-citations.md +4 -4
  22. package/docs/agents/sandbox.md +8 -7
  23. package/docs/agents/teach.md +7 -1
  24. package/docs/workflow/operating-model.md +9 -9
  25. package/docs/workflow/parallel-features.md +1 -1
  26. package/docs/workflow/skill-map.md +1 -0
  27. package/governance/renames.toml +24 -0
  28. package/governance/rules/{canon/640-architecture.md → standards/architecture.md} +3 -2
  29. package/governance/rules/standards/context.md +15 -0
  30. package/governance/rules/standards/design.md +13 -0
  31. package/governance/rules/standards/diagrams.md +17 -0
  32. package/governance/rules/standards/groundwork.md +13 -0
  33. package/governance/rules/standards/intake.md +12 -0
  34. package/governance/rules/standards/markdown.md +15 -0
  35. package/governance/rules/standards/memory.md +12 -0
  36. package/governance/rules/standards/mermaid.md +15 -0
  37. package/governance/rules/{canon/658-plan.md → standards/plan.md} +5 -9
  38. package/governance/rules/standards/readme.md +12 -0
  39. package/governance/rules/standards/ready.md +13 -0
  40. package/governance/rules/standards/requirements.md +13 -0
  41. package/governance/rules/standards/rule.md +13 -0
  42. package/governance/rules/standards/session.md +13 -0
  43. package/governance/rules/{claude/570-skill.md → standards/skill.md} +6 -10
  44. package/governance/rules/standards/standard.md +13 -0
  45. package/governance/rules/standards/tasks.md +15 -0
  46. package/governance/rules/{canon/661-teach.md → standards/teach.md} +3 -2
  47. package/governance/rules/standards/wiki.md +13 -0
  48. package/governance/rules/standards/wireframes.md +14 -0
  49. package/governance/rules/writing/800-prose.md +1 -1
  50. package/governance/stacks/base.toml +4 -2
  51. package/package.json +2 -1
  52. package/src/canvas/capture.ts +228 -15
  53. package/src/claude/cases/misc.ts +5 -0
  54. package/src/claude/routing.ts +1 -1
  55. package/src/commands/canvas.ts +76 -2
  56. package/src/commands/gov.ts +19 -4
  57. package/src/commands/sandbox.ts +7 -0
  58. package/src/commands/slides.ts +73 -4
  59. package/src/commands/teach.ts +112 -4
  60. package/src/gate/stages.ts +7 -1
  61. package/src/gov/citations.ts +1 -1
  62. package/src/gov/standard-rules.ts +179 -0
  63. package/src/sandbox/equivalence.ts +43 -14
  64. package/src/sandbox/stub-remote.ts +140 -0
  65. package/src/serve/live.ts +113 -0
  66. package/src/serve/static.ts +60 -2
  67. package/src/slides/convert/export.ts +323 -0
  68. package/src/slides/convert/shapes.ts +764 -0
  69. package/src/slides/convert/svg.ts +38 -0
  70. package/src/slides/convert/walk.ts +444 -0
  71. package/src/teach/browser/reload.ts +9 -0
  72. package/src/teach/nav.ts +7 -6
  73. package/src/teach/workspace.ts +2 -1
  74. package/src/teach/write-if-changed.ts +17 -0
  75. package/standards/architecture.md +5 -0
  76. package/standards/context.md +6 -0
  77. package/standards/design.md +3 -0
  78. package/standards/diagrams.md +8 -0
  79. package/standards/groundwork-spikes.md +66 -0
  80. package/standards/groundwork.md +5 -25
  81. package/standards/index.md +6 -2
  82. package/standards/intake.md +2 -0
  83. package/standards/markdown.md +6 -0
  84. package/standards/memory.md +2 -0
  85. package/standards/mermaid.md +6 -0
  86. package/standards/plan-lifecycle.md +36 -0
  87. package/standards/plan.md +13 -11
  88. package/standards/readme.md +2 -0
  89. package/standards/ready.md +4 -0
  90. package/standards/requirements.md +3 -0
  91. package/standards/rule.md +6 -1
  92. package/standards/session.md +4 -0
  93. package/standards/skill-paths.md +50 -0
  94. package/standards/skill.md +15 -23
  95. package/standards/standard.md +7 -1
  96. package/standards/tasks-decline.md +38 -0
  97. package/standards/tasks.md +8 -13
  98. package/standards/teach.md +5 -0
  99. package/standards/wiki.md +4 -0
  100. package/standards/wireframes.md +5 -0
  101. package/governance/rules/canon/610-context.md +0 -17
  102. package/governance/rules/canon/620-wireframes.md +0 -13
  103. package/governance/rules/canon/630-requirements.md +0 -12
  104. package/governance/rules/canon/650-design.md +0 -12
  105. package/governance/rules/canon/655-tasks.md +0 -13
  106. package/governance/rules/canon/656-groundwork.md +0 -11
  107. package/governance/rules/canon/657-intake.md +0 -11
  108. package/governance/rules/canon/659-memory.md +0 -11
  109. package/governance/rules/canon/660-diagrams.md +0 -19
  110. package/governance/rules/canon/662-session.md +0 -15
  111. package/governance/rules/canon/663-ready.md +0 -15
  112. package/governance/rules/claude/590-rule-authoring.md +0 -12
  113. package/governance/rules/writing/801-markdown.md +0 -14
  114. package/governance/rules/writing/802-mermaid.md +0 -14
  115. package/governance/rules/writing/880-readme.md +0 -11
  116. package/governance/rules/writing/891-standard-authoring.md +0 -12
@@ -53,6 +53,7 @@ This page is the corpus the coverage claim is measured against: every name `cano
53
53
  | `canon:search-craft` | Before searching outside the project, to derive where the field's authorities publish and search there too |
54
54
  | `canon:systematic-debugging` | When a test fails or a bug surfaces, to force root cause first |
55
55
  | `canon:design-taste` | When drafting or judging an interface, or when output reads generic, to settle which decision comes first |
56
+ | `canon:video-craft` | Before composing or judging a video, for sourced captions, zoom, pointer, and audio judgment |
56
57
  | `canon:ui-checklist` | After a UI change, to write what to look at and name what ships untested |
57
58
 
58
59
  ## Check the work before it leaves the branch
@@ -13,6 +13,10 @@
13
13
  # resolves A only while both links stay. A key must name no live rule and every
14
14
  # chain must end on one, which `src/gov/renames.test.ts` checks against this
15
15
  # file.
16
+ #
17
+ # A numbered rule replaced by the rule `canon gov regen` generates from its
18
+ # standard is a rename too: the generated rule keeps every glob and bullet, so
19
+ # the pair is one-to-one identity under the standard's name.
16
20
  [renamed]
17
21
  "005-behavior" = "565-behavior"
18
22
  "015-output" = "566-output"
@@ -47,3 +51,23 @@
47
51
  "075-dependencies" = "775-dependencies"
48
52
  "080-config-comments" = "780-config-comments"
49
53
  "090-code-comments" = "790-code-comments"
54
+ "658-plan" = "plan"
55
+ "610-context" = "context"
56
+ "620-wireframes" = "wireframes"
57
+ "630-requirements" = "requirements"
58
+ "640-architecture" = "architecture"
59
+ "650-design" = "design"
60
+ "655-tasks" = "tasks"
61
+ "656-groundwork" = "groundwork"
62
+ "657-intake" = "intake"
63
+ "659-memory" = "memory"
64
+ "660-diagrams" = "diagrams"
65
+ "661-teach" = "teach"
66
+ "662-session" = "session"
67
+ "663-ready" = "ready"
68
+ "570-skill" = "skill"
69
+ "590-rule-authoring" = "rule"
70
+ "801-markdown" = "markdown"
71
+ "802-mermaid" = "mermaid"
72
+ "880-readme" = "readme"
73
+ "891-standard-authoring" = "standard"
@@ -1,5 +1,6 @@
1
1
  ---
2
- description: Route canon/ARCHITECTURE.md edits to the architecture standard for system decisions and risks
2
+ # Generated by `canon gov regen` from standards/architecture.md. Edit that frontmatter, not this file.
3
+ description: Shape and content rules for canon/ARCHITECTURE.md
3
4
  paths:
4
5
  - 'canon/ARCHITECTURE.md'
5
6
  - '.claude/ARCHITECTURE.md'
@@ -9,5 +10,5 @@ paths:
9
10
 
10
11
  ## Authority
11
12
 
12
- - Follow the architecture standard for the overview, named decision entries, and risks. It is the single source. Read it with `canon standards architecture`.
13
+ - Follow the architecture standard for shape and content rules for canon/ARCHITECTURE.md. It is the single source. Read it with `canon standards architecture`.
13
14
  - Add a decision here only when it fills one of the standard's slots, and write any other decision into the context entry for the domain it constrains. At the record's stated cap, merge or retire an entry before adding one.
@@ -0,0 +1,15 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/context.md. Edit that frontmatter, not this file.
3
+ description: Shape and content rules for canon/context/<domain>.md entries
4
+ paths:
5
+ - 'canon/context/**'
6
+ - '.claude/context/**'
7
+ ---
8
+
9
+ # Context entry standards
10
+
11
+ ## Authority
12
+
13
+ - Follow the context standard for shape and content rules for canon/context/<domain>.md entries. It is the single source. Read it with `canon standards context`.
14
+ - Before non-trivial work in a domain, read its `canon/context/<domain>.md` entry. Use `canon/context/index.md` to find it.
15
+ - Leave the entry conforming when work in its domain changes what it describes.
@@ -0,0 +1,13 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/design.md. Edit that frontmatter, not this file.
3
+ description: Shape and content rules for canon/DESIGN.md
4
+ paths:
5
+ - 'canon/DESIGN.md'
6
+ - '.claude/DESIGN.md'
7
+ ---
8
+
9
+ # Design standards
10
+
11
+ ## Authority
12
+
13
+ - Follow the design standard for shape and content rules for canon/DESIGN.md. It is the single source. Read it with `canon standards design`.
@@ -0,0 +1,17 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/diagrams.md. Edit that frontmatter, not this file.
3
+ description: Shape and content rules for .canon/diagrams/<kind>.md files
4
+ paths:
5
+ - '.canon/diagrams/**'
6
+ - '.claude/DIAGRAMS.md'
7
+ ---
8
+
9
+ # Diagram standards
10
+
11
+ ## Authority
12
+
13
+ - Follow the diagrams standard for shape and content rules for .canon/diagrams/<kind>.md files. It is the single source. Read it with `canon standards diagrams`.
14
+ - Layout, budgets, accessibility, labels, and render verification inside the fence are a separate topic. The mermaid standard routes them.
15
+ - A diagram entry carries structure and flow, not implementation. Read the standard before adding or revising a kind.
16
+ - Write a new diagram to `.canon/diagrams/<kind>.md`, never to `.claude/DIAGRAMS.md`
17
+ - Convert a `.claude/DIAGRAMS.md` left by an older install into per-kind entries before editing it
@@ -0,0 +1,13 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/groundwork.md. Edit that frontmatter, not this file.
3
+ description: Folder layout, ordinal naming, reserved numbering, frontmatter and dating, required file contents, and conventions for a measurement track
4
+ paths:
5
+ - '.canon/groundwork/**'
6
+ ---
7
+
8
+ # Groundwork standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the groundwork standard for folder layout, ordinal naming, reserved numbering, frontmatter and dating, required file contents, and conventions for a measurement track. It is the single source. Read it with `canon standards groundwork`.
13
+ - Follow the groundwork spikes standard for `08-spikes.md` and the folders holding what a spike produced. Read it with `canon standards groundwork-spikes`.
@@ -0,0 +1,12 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/intake.md. Edit that frontmatter, not this file.
3
+ description: Folder layout, ordinal naming, reserved index number, frontmatter and dating, the item template, the answer contract, and retrieval
4
+ paths:
5
+ - '.canon/intake/**'
6
+ ---
7
+
8
+ # Intake standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the intake standard for folder layout, ordinal naming, reserved index number, frontmatter and dating, the item template, the answer contract, and retrieval. It is the single source. Read it with `canon standards intake`.
@@ -0,0 +1,15 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/markdown.md. Edit that frontmatter, not this file.
3
+ description: Headings, paragraph and list structure, code spans, the date form, punctuation, emphasis, file references, American spelling, and frontmatter wording
4
+ paths:
5
+ - '**/*.md'
6
+ ---
7
+
8
+ # Markdown standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the markdown standard for headings, paragraph and list structure, code spans, the date form, punctuation, emphasis, file references, American spelling, and frontmatter wording. It is the single source. Read it with `canon standards markdown`.
13
+ - Read it before a substantial markdown edit. Do not work the banned characters from memory.
14
+ - Run `canon markdown audit <path>` after the edit, and rewrite the sentence carrying a hit rather than swapping the token for a near-synonym.
15
+ - Voice, rhythm, and sentence construction are a separate topic. `800-prose` routes them.
@@ -0,0 +1,12 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/memory.md. Edit that frontmatter, not this file.
3
+ description: Filename and type prefix, frontmatter, the body shape per type, links between entries, and the lifecycle from write to retire
4
+ paths:
5
+ - '.canon/memory/**'
6
+ ---
7
+
8
+ # Memory standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the memory standard for filename and type prefix, frontmatter, the body shape per type, links between entries, and the lifecycle from write to retire. It is the single source. Read it with `canon standards memory`.
@@ -0,0 +1,15 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/mermaid.md. Edit that frontmatter, not this file.
3
+ description: Direction and layout, node and edge budgets, accessibility fields, label punctuation, and render verification for a Mermaid diagram
4
+ paths:
5
+ - '**/*.md'
6
+ ---
7
+
8
+ # Mermaid standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the mermaid standard for direction and layout, node and edge budgets, accessibility fields, label punctuation, and render verification for a Mermaid diagram. It is the single source. Read it with `canon standards mermaid`.
13
+ - Apply this rule only when the edit drafts or revises a Mermaid fence. Skip it on a markdown edit carrying no diagram.
14
+ - Read it before drafting the fence. Do not work the layout or the budgets from memory.
15
+ - Which diagram a document carries and what question it answers is a separate topic. The diagrams standard routes it.
@@ -1,22 +1,18 @@
1
1
  ---
2
- description: Route .canon/plans/ edits to the plan standard for sections, the answer contract, and the archive move
2
+ # Generated by `canon gov regen` from standards/plan.md. Edit that frontmatter, not this file.
3
+ description: Filename and slug, the required sections, and the suggested-and-answer contract for a feature plan
3
4
  paths:
4
5
  - '.canon/plans/**'
5
6
  ---
6
7
 
7
8
  # Plan standards
8
9
 
9
- ## The answer contract
10
+ ## Authority
10
11
 
12
+ - Follow the plan standard for filename and slug, the required sections, and the suggested-and-answer contract for a feature plan. It is the single source. Read it with `canon standards plan`.
11
13
  - Never fill an `- Answer:` slot on behalf of the person who owns it. A blank slot accepts the suggestion at execution time.
12
14
  - Never ship a question without a `- Suggested:` line. Write `- Suggested: needs your call, <why>` where the answer turns on preference.
13
15
  - Rewrite the `- Suggested:` line as `overridden at execution to <pick>,` plus the measurement when execution deviates from an unanswered question, leaving the slot blank. Put the same deviation in one line under the open task's `## Findings`.
14
-
15
- ## Archiving
16
-
17
16
  - Move a shipped plan to `.canon/plans/archive/`. Never delete one.
18
17
  - Amend a plan in place when a decision changes. Do not append a second passage narrating the change.
19
-
20
- ## Authority
21
-
22
- - Follow the plan standard for the filename and slug, the required sections, the suggested-and-answer contract, and the lifecycle. It is the single source. Read it with `canon standards plan`.
18
+ - Follow the plan lifecycle standard for when a plan is written, how it is amended, and its move to the archive. Read it with `canon standards plan-lifecycle`.
@@ -0,0 +1,12 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/readme.md. Edit that frontmatter, not this file.
3
+ description: Readme voice, structure, and content conventions
4
+ paths:
5
+ - '**/README.md'
6
+ ---
7
+
8
+ # Readme standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the readme standard for readme voice, structure, and content conventions. It is the single source. Read it with `canon standards readme`.
@@ -0,0 +1,13 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/ready.md. Edit that frontmatter, not this file.
3
+ description: Folder layout, ordinal naming, the overview frontmatter, the thin-plan contract, and the archive lifecycle for a finished-file handoff
4
+ paths:
5
+ - '.canon/ready/**'
6
+ ---
7
+
8
+ # Ready standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the ready standard for folder layout, ordinal naming, the overview frontmatter, the thin-plan contract, and the archive lifecycle for a finished-file handoff. It is the single source. Read it with `canon standards ready`.
13
+ - 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.
@@ -0,0 +1,13 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/requirements.md. Edit that frontmatter, not this file.
3
+ description: Shape and content rules for canon/REQUIREMENTS.md
4
+ paths:
5
+ - 'canon/REQUIREMENTS.md'
6
+ - '.claude/REQUIREMENTS.md'
7
+ ---
8
+
9
+ # Requirements standards
10
+
11
+ ## Authority
12
+
13
+ - Follow the requirements standard for shape and content rules for canon/REQUIREMENTS.md. It is the single source. Read it with `canon standards requirements`.
@@ -0,0 +1,13 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/rule.md. Edit that frontmatter, not this file.
3
+ description: Rule frontmatter, body shape, and voice for .claude/rules files
4
+ paths:
5
+ - '.claude/rules/**/*.md'
6
+ ---
7
+
8
+ # Governance rule standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the rule standard for rule frontmatter, body shape, and voice for .claude/rules files. It is the single source. Read it with `canon standards rule`.
13
+ - Read it before writing or editing a rule. Do not work the shape from memory.
@@ -0,0 +1,13 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/session.md. Edit that frontmatter, not this file.
3
+ description: Filename and location, the sections a handoff carries, the write and read procedures, and how a role extends it
4
+ paths:
5
+ - '.canon/tasks/session-*.md'
6
+ ---
7
+
8
+ # Session map standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the session standard for filename and location, the sections a handoff carries, the write and read procedures, and how a role extends it. It is the single source. Read it with `canon standards session`.
13
+ - Follow this rule rather than the tasks rule for a `session-` file. A handoff is not a task and carries neither `## Outcomes` nor `## Findings`.
@@ -1,5 +1,6 @@
1
1
  ---
2
- description: Route skill edits to the authoring standard and the requirement consult-first workflow
2
+ # Generated by `canon gov regen` from standards/skill.md. Edit that frontmatter, not this file.
3
+ description: Skill structure and authoring rules for Claude Code
3
4
  paths:
4
5
  - '.claude/skills/**/SKILL.md'
5
6
  - 'claude/skills/**/SKILL.md'
@@ -7,19 +8,14 @@ paths:
7
8
  - 'claude/skills/**/REQUIREMENT.md'
8
9
  ---
9
10
 
10
- # Skill standards
11
+ # Claude skill standards
11
12
 
12
- ## Before editing
13
+ ## Authority
13
14
 
15
+ - Follow the skill standard for skill structure and authoring rules for Claude Code. It is the single source. Read it with `canon standards skill`.
14
16
  - 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.
15
17
  - 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.
16
-
17
- ## After editing
18
-
19
18
  - Re-read a skill body this session edited before invoking that skill again in the same session
20
19
  - Do not read a resolved file path in a held body as evidence the body is current
21
-
22
- ## Authority
23
-
24
- - Follow the skill standard for skill structure, frontmatter fields, and invocation rules. It is the single source. Read it with `canon standards skill`.
25
20
  - Follow the skill requirement standard for the shape a `REQUIREMENT.md` states. Read it with `canon standards skill-requirement`.
21
+ - 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`.
@@ -0,0 +1,13 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/standard.md. Edit that frontmatter, not this file.
3
+ description: Shape and content rules for authoring a standard
4
+ paths:
5
+ - 'standards/**/*.md'
6
+ ---
7
+
8
+ # Standard standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the standard standard for shape and content rules for authoring a standard. It is the single source. Read it with `canon standards standard`.
13
+ - Read it before writing or editing a standard. Do not work the shape from memory.
@@ -0,0 +1,15 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/tasks.md. Edit that frontmatter, not this file.
3
+ description: Folder layout, filename convention, file format, origin lines, and archiving for task files under .canon/tasks/
4
+ paths:
5
+ - '.canon/tasks/**'
6
+ ---
7
+
8
+ # Tasks standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the tasks standard for folder layout, filename convention, file format, origin lines, and archiving for task files under .canon/tasks/. It is the single source. Read it with `canon standards tasks`.
13
+ - Follow the board standard for `priority.md` and `backlog.md`, their readiness groups, and row order. Read it with `canon standards board`.
14
+ - Never hand-edit `.canon/tasks/index.md`. A hook regenerates it from sibling frontmatter.
15
+ - Follow the task decline standard for a task decided against. Read it with `canon standards tasks-decline`.
@@ -1,5 +1,6 @@
1
1
  ---
2
- description: Route .canon/teach/ edits to the teach standard for layout, ordinal naming, and the mission and record formats, in the projects that open a learning workspace
2
+ # Generated by `canon gov regen` from standards/teach.md. Edit that frontmatter, not this file.
3
+ description: Workspace layout, ordinal naming, frontmatter, and the mission and learning-record formats for a learning workspace
3
4
  paths:
4
5
  - '.canon/teach/**'
5
6
  ---
@@ -8,6 +9,6 @@ paths:
8
9
 
9
10
  ## Authority
10
11
 
11
- - Follow the teach standard for the folder layout, ordinal naming, frontmatter, and the mission and learning-record formats. It is the single source. Read it with `canon standards teach`.
12
+ - Follow the teach standard for workspace layout, ordinal naming, frontmatter, and the mission and learning-record formats for a learning workspace. It is the single source. Read it with `canon standards teach`.
12
13
  - 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`.
13
14
  - 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.
@@ -0,0 +1,13 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/wiki.md. Edit that frontmatter, not this file.
3
+ description: Folder split, frontmatter, naming convention, and sourcing for a wiki reference page
4
+ paths:
5
+ - 'wiki/**/*.md'
6
+ ---
7
+
8
+ # Wiki standards
9
+
10
+ ## Authority
11
+
12
+ - Follow the wiki standard for folder split, frontmatter, naming convention, and sourcing for a wiki reference page. It is the single source. Read it with `canon standards wiki`.
13
+ - Read it before drafting a page. Do not work the placement criterion or the naming convention from memory.
@@ -0,0 +1,14 @@
1
+ ---
2
+ # Generated by `canon gov regen` from standards/wireframes.md. Edit that frontmatter, not this file.
3
+ description: Shape and content rules for canon/wireframes/<surface>.md files
4
+ paths:
5
+ - 'canon/wireframes/**'
6
+ - '.claude/wireframes/**'
7
+ ---
8
+
9
+ # Wireframe standards
10
+
11
+ ## Authority
12
+
13
+ - Follow the wireframes standard for shape and content rules for canon/wireframes/<surface>.md files. It is the single source. Read it with `canon standards wireframes`.
14
+ - Read it before adding or revising a surface.
@@ -12,4 +12,4 @@ paths:
12
12
  - Load it before drafting a passage, not after revising one.
13
13
  - Report it rather than proceeding silently when the skill does not resolve.
14
14
  - Do not work these rules from memory.
15
- - Punctuation, formatting, and file references are a separate topic. `801-markdown` routes them.
15
+ - Punctuation, formatting, and file references are a separate topic. The markdown rule routes them.
@@ -5,5 +5,7 @@ extends = ""
5
5
  # session conduct and `.claude/` authoring rules, `tooling` the dev setup and
6
6
  # CI workflow rules, and `writing` the prose and document-shape rules. The
7
7
  # `code` group is left to the stacks that write code, so a docs or writing
8
- # project loads no rule it can never apply.
9
- rules = ["canon", "claude", "tooling", "writing", "120-bash"]
8
+ # project loads no rule it can never apply. `standards` holds one rule per
9
+ # standard routing its paths to it, generated by `canon gov regen` from each
10
+ # standard's frontmatter rather than authored.
11
+ rules = ["canon", "claude", "standards", "tooling", "writing", "120-bash"]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@erclx/canon",
3
3
  "type": "module",
4
- "version": "5.18.0",
4
+ "version": "5.20.0",
5
5
  "description": "Runs your agent's work and keeps its code good, on one setup for every repo.",
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -56,6 +56,7 @@
56
56
  "commander": "^13.1.0",
57
57
  "execa": "^9.5.2",
58
58
  "highlight.js": "^11.12.0",
59
+ "jszip": "^3.10.1",
59
60
  "playwright-core": "1.59.1",
60
61
  "pptxgenjs": "^4.0.1",
61
62
  "preact": "^11.0.0"