@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.
- package/README.md +1 -1
- package/claude/.claude-plugin/plugin.json +1 -1
- package/claude/skills/create-skill/SKILL.md +1 -0
- package/claude/skills/plan-feature/SKILL.md +1 -1
- package/claude/skills/plan-groundwork/SKILL.md +1 -1
- package/claude/skills/record-screencast/REQUIREMENT.md +2 -1
- package/claude/skills/record-screencast/SKILL.md +2 -2
- package/claude/skills/role-worker/REQUIREMENT.md +3 -1
- package/claude/skills/role-worker/SKILL.md +5 -3
- package/claude/skills/session-resume/SKILL.md +1 -1
- package/claude/skills/task-board/REQUIREMENT.md +1 -0
- package/claude/skills/task-board/SKILL.md +6 -0
- package/claude/skills/task-board/references/decline.md +2 -0
- package/claude/skills/video-craft/REQUIREMENT.md +48 -0
- package/claude/skills/video-craft/SKILL.md +80 -0
- package/claude/skills/video-craft/references/adopted.md +66 -0
- package/docs/agents/canvas.md +4 -0
- package/docs/agents/commands.md +1 -0
- package/docs/agents/demo.md +1 -1
- package/docs/agents/install-and-sync.md +17 -3
- package/docs/agents/rule-citations.md +4 -4
- package/docs/agents/sandbox.md +8 -7
- package/docs/agents/teach.md +7 -1
- package/docs/workflow/operating-model.md +9 -9
- package/docs/workflow/parallel-features.md +1 -1
- package/docs/workflow/skill-map.md +1 -0
- package/governance/renames.toml +24 -0
- package/governance/rules/{canon/640-architecture.md → standards/architecture.md} +3 -2
- package/governance/rules/standards/context.md +15 -0
- package/governance/rules/standards/design.md +13 -0
- package/governance/rules/standards/diagrams.md +17 -0
- package/governance/rules/standards/groundwork.md +13 -0
- package/governance/rules/standards/intake.md +12 -0
- package/governance/rules/standards/markdown.md +15 -0
- package/governance/rules/standards/memory.md +12 -0
- package/governance/rules/standards/mermaid.md +15 -0
- package/governance/rules/{canon/658-plan.md → standards/plan.md} +5 -9
- package/governance/rules/standards/readme.md +12 -0
- package/governance/rules/standards/ready.md +13 -0
- package/governance/rules/standards/requirements.md +13 -0
- package/governance/rules/standards/rule.md +13 -0
- package/governance/rules/standards/session.md +13 -0
- package/governance/rules/{claude/570-skill.md → standards/skill.md} +6 -10
- package/governance/rules/standards/standard.md +13 -0
- package/governance/rules/standards/tasks.md +15 -0
- package/governance/rules/{canon/661-teach.md → standards/teach.md} +3 -2
- package/governance/rules/standards/wiki.md +13 -0
- package/governance/rules/standards/wireframes.md +14 -0
- package/governance/rules/writing/800-prose.md +1 -1
- package/governance/stacks/base.toml +4 -2
- package/package.json +2 -1
- package/src/canvas/capture.ts +228 -15
- package/src/claude/cases/misc.ts +5 -0
- package/src/claude/routing.ts +1 -1
- package/src/commands/canvas.ts +76 -2
- package/src/commands/gov.ts +19 -4
- package/src/commands/sandbox.ts +7 -0
- package/src/commands/slides.ts +73 -4
- package/src/commands/teach.ts +112 -4
- package/src/gate/stages.ts +7 -1
- package/src/gov/citations.ts +1 -1
- package/src/gov/standard-rules.ts +179 -0
- package/src/sandbox/equivalence.ts +43 -14
- package/src/sandbox/stub-remote.ts +140 -0
- package/src/serve/live.ts +113 -0
- package/src/serve/static.ts +60 -2
- package/src/slides/convert/export.ts +323 -0
- package/src/slides/convert/shapes.ts +764 -0
- package/src/slides/convert/svg.ts +38 -0
- package/src/slides/convert/walk.ts +444 -0
- package/src/teach/browser/reload.ts +9 -0
- package/src/teach/nav.ts +7 -6
- package/src/teach/workspace.ts +2 -1
- package/src/teach/write-if-changed.ts +17 -0
- package/standards/architecture.md +5 -0
- package/standards/context.md +6 -0
- package/standards/design.md +3 -0
- package/standards/diagrams.md +8 -0
- package/standards/groundwork-spikes.md +66 -0
- package/standards/groundwork.md +5 -25
- package/standards/index.md +6 -2
- package/standards/intake.md +2 -0
- package/standards/markdown.md +6 -0
- package/standards/memory.md +2 -0
- package/standards/mermaid.md +6 -0
- package/standards/plan-lifecycle.md +36 -0
- package/standards/plan.md +13 -11
- package/standards/readme.md +2 -0
- package/standards/ready.md +4 -0
- package/standards/requirements.md +3 -0
- package/standards/rule.md +6 -1
- package/standards/session.md +4 -0
- package/standards/skill-paths.md +50 -0
- package/standards/skill.md +15 -23
- package/standards/standard.md +7 -1
- package/standards/tasks-decline.md +38 -0
- package/standards/tasks.md +8 -13
- package/standards/teach.md +5 -0
- package/standards/wiki.md +4 -0
- package/standards/wireframes.md +5 -0
- package/governance/rules/canon/610-context.md +0 -17
- package/governance/rules/canon/620-wireframes.md +0 -13
- package/governance/rules/canon/630-requirements.md +0 -12
- package/governance/rules/canon/650-design.md +0 -12
- package/governance/rules/canon/655-tasks.md +0 -13
- package/governance/rules/canon/656-groundwork.md +0 -11
- package/governance/rules/canon/657-intake.md +0 -11
- package/governance/rules/canon/659-memory.md +0 -11
- package/governance/rules/canon/660-diagrams.md +0 -19
- package/governance/rules/canon/662-session.md +0 -15
- package/governance/rules/canon/663-ready.md +0 -15
- package/governance/rules/claude/590-rule-authoring.md +0 -12
- package/governance/rules/writing/801-markdown.md +0 -14
- package/governance/rules/writing/802-mermaid.md +0 -14
- package/governance/rules/writing/880-readme.md +0 -11
- 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
|
package/governance/renames.toml
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
#
|
|
11
|
+
# Claude skill standards
|
|
11
12
|
|
|
12
|
-
##
|
|
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
|
-
|
|
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
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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"
|