@erclx/aitk 3.12.0 → 3.13.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/claude/.claude-plugin/plugin.json +1 -1
- package/claude/skills/claude-groundwork/REQUIREMENT.md +1 -0
- package/claude/skills/claude-groundwork/SKILL.md +12 -12
- package/claude/skills/claude-intake/REQUIREMENT.md +1 -0
- package/claude/skills/claude-intake/SKILL.md +7 -7
- package/docs/agents/install-and-sync.md +55 -28
- package/docs/agents/intake.md +3 -1
- package/docs/ai-workflow.md +2 -2
- package/docs/target-projects.md +7 -5
- package/governance/rules/claude/556-groundwork.md +5 -1
- package/governance/rules/claude/557-intake.md +5 -1
- package/governance/rules/lang/120-bash.md +18 -0
- package/governance/rules/lib/305-e2e-reliability.md +34 -0
- package/governance/rules/lib/306-test-scope.md +25 -0
- package/governance/rules/lib/350-security-web.md +1 -0
- package/governance/rules/ui/450-link-behavior.md +19 -0
- package/governance/stacks/astro.toml +1 -1
- package/governance/stacks/base.toml +1 -1
- package/governance/stacks/react.toml +1 -1
- package/package.json +1 -1
- package/src/commands/gov.ts +10 -1
- package/src/commands/sync.ts +18 -5
- package/src/demo/compile.ts +1 -1
- package/src/gov/adapter.ts +29 -0
- package/src/gov/install.ts +22 -1
- package/src/gov/stacks.ts +33 -1
- package/src/intake/folder.ts +49 -9
- package/src/sync/check.ts +53 -15
- package/src/sync/engine.ts +25 -0
- package/src/sync/stamp.ts +73 -24
- package/src/tooling/stamp.ts +1 -1
- package/standards/groundwork.md +10 -3
- package/standards/index.md +2 -2
- package/standards/intake.md +10 -3
- package/tooling/web/manifest.toml +1 -0
- package/tooling/web/reference.md +1 -0
package/standards/index.md
CHANGED
|
@@ -14,8 +14,8 @@ Reference docs for consistent authoring across the toolkit and target projects.
|
|
|
14
14
|
- [Design reference](design.md): Shape and content rules for .claude/DESIGN.md
|
|
15
15
|
- [Diagram reference](diagrams.md): Shape and content rules for .claude/diagrams/<kind>.md files
|
|
16
16
|
- [Glossary reference](glossary.md): Frontmatter, entry shape, ordering, and the rules deciding which terms a glossary carries
|
|
17
|
-
- [Groundwork reference](groundwork.md): Folder layout, reserved numbering, frontmatter and dating, required file contents, and conventions for a measurement track
|
|
18
|
-
- [Intake reference](intake.md): Folder layout, reserved index number, frontmatter and dating, the item template, the answer contract, and retrieval
|
|
17
|
+
- [Groundwork reference](groundwork.md): Folder layout, ordinal naming, reserved numbering, frontmatter and dating, required file contents, and conventions for a measurement track
|
|
18
|
+
- [Intake reference](intake.md): Folder layout, ordinal naming, reserved index number, frontmatter and dating, the item template, the answer contract, and retrieval
|
|
19
19
|
- [Issue reference](issue.md): GitHub issue title, labels, and body conventions
|
|
20
20
|
- [Markdown reference](markdown.md): Headings, paragraph and list structure, code spans, the date form, punctuation, emphasis, file references, banned words, and frontmatter wording
|
|
21
21
|
- [Memory reference](memory.md): Filename and type prefix, frontmatter, the body shape per type, links between entries, and the lifecycle from write to retire
|
package/standards/intake.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Intake reference
|
|
3
|
-
description: Folder layout, reserved index number, frontmatter and dating, the item template, the answer contract, and retrieval
|
|
3
|
+
description: Folder layout, ordinal naming, reserved index number, frontmatter and dating, the item template, the answer contract, and retrieval
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Intake reference
|
|
7
7
|
|
|
8
|
-
Applies to an intake folder at `.claude/intake/<slug>/`. One folder holds one dump, filed by domain, and every finding in it is an item carrying a measured problem, one proposed fix, and a verdict.
|
|
8
|
+
Applies to an intake folder at `.claude/intake/<nn>-<slug>/`. One folder holds one dump, filed by domain, and every finding in it is an item carrying a measured problem, one proposed fix, and a verdict.
|
|
9
9
|
|
|
10
10
|
The folder is gitignored and unbacked. No check reaches its contents, so the shape below survives only by being read.
|
|
11
11
|
|
|
12
12
|
## Scope
|
|
13
13
|
|
|
14
|
-
Governs an intake folder under `.claude/intake/<slug>/`: folder layout, the reserved index number, frontmatter and dating, the item format, the answer contract, and retrieval.
|
|
14
|
+
Governs an intake folder under `.claude/intake/<nn>-<slug>/`: folder layout, ordinal naming, the reserved index number, frontmatter and dating, the item format, the answer contract, and retrieval.
|
|
15
15
|
|
|
16
16
|
Does not govern:
|
|
17
17
|
|
|
@@ -22,6 +22,13 @@ Does not govern:
|
|
|
22
22
|
- Headings, punctuation, word choice, and file references: `markdown.md`
|
|
23
23
|
- Which findings belong in a dump at all, and the procedure that files one, which belong to the surface driving it
|
|
24
24
|
|
|
25
|
+
## Folder name
|
|
26
|
+
|
|
27
|
+
- Name the folder `<nn>-<slug>`, a two-digit zero-padded ordinal followed by a kebab-case slug. This is the folder's own ordinal, distinct from the `NN-<domain>.md` numbering a cluster file carries inside it.
|
|
28
|
+
- Take the ordinal from the highest one already present across both `.claude/intake/` and `.claude/groundwork/`, incremented. A listing then sorts by when each folder opened rather than alphabetically, and the count includes both kinds because the two share one creation-order line.
|
|
29
|
+
- With neither folder holding an entry, the first one opened takes `01`. Do not read this off the numbering inside a dump, which starts at `00` and disagrees with groundwork's own first required file.
|
|
30
|
+
- Never renumber an existing folder. The ordinal is the order it opened, and a later reader cites it by that name.
|
|
31
|
+
|
|
25
32
|
## What a working intake looks like
|
|
26
33
|
|
|
27
34
|
An intake works when a reader returning weeks later can act on it from the folder alone:
|
|
@@ -43,6 +43,7 @@ packages = [
|
|
|
43
43
|
"test:ui" = "vitest --ui"
|
|
44
44
|
"test:coverage" = "vitest run --coverage"
|
|
45
45
|
"test:e2e" = "WORKTREE_PORT_OFFSET=$(bash scripts/worktree-port.sh) && export WORKTREE_PORT_OFFSET && playwright test"
|
|
46
|
+
"test:e2e:changed" = "WORKTREE_PORT_OFFSET=$(bash scripts/worktree-port.sh) && export WORKTREE_PORT_OFFSET && playwright test --only-changed"
|
|
46
47
|
"test:e2e:ui" = "WORKTREE_PORT_OFFSET=$(bash scripts/worktree-port.sh) && export WORKTREE_PORT_OFFSET && playwright test --ui"
|
|
47
48
|
"test:e2e:report" = "playwright show-report"
|
|
48
49
|
"check:full" = "./scripts/verify.sh && bun run test:e2e"
|
package/tooling/web/reference.md
CHANGED
|
@@ -103,6 +103,7 @@ Append rows:
|
|
|
103
103
|
| `bun run test:run` | Run Vitest once with verbose reporter. |
|
|
104
104
|
| `bun run test:coverage` | Run Vitest with coverage. |
|
|
105
105
|
| `bun run test:e2e` | Run Playwright E2E tests. |
|
|
106
|
+
| `bun run test:e2e:changed` | Run Playwright E2E tests for specs the import graph reaches from the current diff. |
|
|
106
107
|
| `bun run screenshot` | Build, preview, then capture screenshots. |
|
|
107
108
|
|
|
108
109
|
`aitk tooling verify <stack>` is the only automated caller of `bun run screenshot`, running it for any stack whose `package.json` declares the script and asserting that PNG files land under `screenshots/`. It counts them with a recursive find carrying no depth limit, so the section folders the seed writes satisfy the assertion without a change to it. Do not flatten the layout to protect that check. No ship chain captures a screenshot, so the output path the seed writes is a contract that one verifier reads rather than a default a ship step depends on.
|