@erclx/aitk 0.51.0 → 0.53.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-design-extract/SKILL.md +2 -1
- package/claude/skills/claude-docs/SKILL.md +1 -1
- package/claude/skills/claude-memory-capture/SKILL.md +2 -1
- package/claude/skills/claude-standards-audit/SKILL.md +5 -3
- package/claude/skills/create-skill/SKILL.md +2 -1
- package/claude/skills/create-snippet/SKILL.md +3 -2
- package/claude/skills/create-snippet/references/snippets.md +2 -1
- package/claude/skills/create-standard/SKILL.md +2 -1
- package/claude/skills/docs-sync/SKILL.md +2 -1
- package/claude/skills/git-issue/SKILL.md +2 -1
- package/claude/skills/git-issue/references/issue.md +2 -1
- package/claude/skills/git-pr/SKILL.md +2 -1
- package/claude/skills/git-pr/references/pr.md +2 -1
- package/claude/skills/git-split/references/pr.md +2 -1
- package/claude/skills/git-stage/SKILL.md +2 -1
- package/docs/agents/context-audit-checks.md +3 -1
- package/docs/agents/context-audit.md +35 -2
- package/docs/agents/index.md +1 -1
- package/docs/agents/install-and-sync.md +6 -0
- package/docs/ai-workflow.md +1 -1
- package/docs/operating-model.md +4 -4
- package/docs/visual-design-workflow.md +16 -16
- package/docs/zshrc-aliases.md +1 -1
- package/governance/rules/claude/500-prose.md +4 -3
- package/governance/rules/claude/501-markdown.md +13 -0
- package/governance/stacks/base.toml +1 -1
- package/package.json +1 -1
- package/scripts/core/install-check.sh +1 -1
- package/scripts/core/verify.sh +83 -0
- package/src/claude/seeds.ts +17 -3
- package/src/commands/context.ts +34 -7
- package/src/comments/vocabulary.ts +1 -1
- package/src/context/audit.ts +14 -0
- package/src/context/gate.ts +43 -0
- package/src/seed-marker.ts +74 -0
- package/src/sync/seeds-report.ts +16 -1
- package/src/tooling/inject.ts +17 -1
- package/standards/bundled/issue.md +2 -1
- package/standards/bundled/pr.md +2 -1
- package/standards/bundled/snippets.md +2 -1
- package/standards/diagrams.md +4 -3
- package/standards/index.md +2 -1
- package/standards/markdown.md +72 -0
- package/standards/prose.md +6 -57
- package/standards/publish.md +3 -2
- package/standards/readme.md +3 -2
- package/standards/skill.md +2 -1
- package/standards/standard.md +2 -1
- package/standards/versioning.md +2 -1
- package/standards/wireframes.md +3 -2
- package/tooling/claude/seeds/.claude/hooks/standards-audit.sh +5 -1
package/standards/readme.md
CHANGED
|
@@ -5,7 +5,7 @@ description: Readme voice, structure, and content conventions
|
|
|
5
5
|
|
|
6
6
|
# Readme reference
|
|
7
7
|
|
|
8
|
-
Applies to every `README.md`. The `## Voice` section states the voice for a repository's root README, so `prose.md` yields to it there. The yield covers voice alone. The
|
|
8
|
+
Applies to every `README.md`. The `## Voice` section states the voice for a repository's root README, so `prose.md` yields to it there. The yield covers voice alone. The spelling rules and banned words in `prose.md` stay in force, as do the punctuation and formatting rules in `markdown.md`, so the warmer register ships with the same hygiene: no em dashes, no semicolons, no buzzwords.
|
|
9
9
|
|
|
10
10
|
The reader is what changes. Reference prose serves someone who already committed to the project and is scanning for a fact. A root README meets someone deciding whether to commit at all, and it is often the only file they read.
|
|
11
11
|
|
|
@@ -15,7 +15,8 @@ Governs every `README.md`: voice, heading structure, required and optional secti
|
|
|
15
15
|
|
|
16
16
|
Does not govern:
|
|
17
17
|
|
|
18
|
-
-
|
|
18
|
+
- Spelling and banned words in README prose: `prose.md`, which yields the voice and keeps the rest
|
|
19
|
+
- Punctuation and formatting in README prose: `markdown.md`, which yields nothing
|
|
19
20
|
- Product scope and goals: `requirements.md`
|
|
20
21
|
|
|
21
22
|
## Voice
|
package/standards/skill.md
CHANGED
|
@@ -17,7 +17,8 @@ Does not govern:
|
|
|
17
17
|
|
|
18
18
|
- Path-scoped coding rules, which load on a file match rather than on a request match: `rule.md`
|
|
19
19
|
- Single-purpose chat prompts carrying no frontmatter, references, or scripts: `snippets.md`
|
|
20
|
-
- Voice
|
|
20
|
+
- Voice and word choice in a skill body: `prose.md`
|
|
21
|
+
- Punctuation and formatting in a skill body: `markdown.md`
|
|
21
22
|
- The transform from a branch name to a slug a skill carries in a filename: `slug.md`
|
|
22
23
|
- The domain conventions a skill cites, each of which belongs to the standard that owns it
|
|
23
24
|
|
package/standards/standard.md
CHANGED
|
@@ -17,7 +17,8 @@ Governs each authored standard under `standards/`: its stated jurisdiction, succ
|
|
|
17
17
|
|
|
18
18
|
Does not govern:
|
|
19
19
|
|
|
20
|
-
- The voice
|
|
20
|
+
- The voice and word choice a standard is written in: `prose.md`
|
|
21
|
+
- The punctuation and formatting a standard is written in: `markdown.md`
|
|
21
22
|
- The shape of any artifact a standard governs, which is that standard's own subject
|
|
22
23
|
|
|
23
24
|
## What a working standard looks like
|
package/standards/versioning.md
CHANGED
|
@@ -16,7 +16,8 @@ Does not govern:
|
|
|
16
16
|
- The format of a phase label, which is project-specific by the rule below
|
|
17
17
|
- Task filenames and board layout: `tasks.md`
|
|
18
18
|
- Commit subject, branch name, and pull request title format: `commit.md`, `branch.md`, and `pr.md`
|
|
19
|
-
- Voice
|
|
19
|
+
- Voice and word choice in any text carrying a label: `prose.md`
|
|
20
|
+
- Punctuation and formatting in any text carrying a label: `markdown.md`
|
|
20
21
|
|
|
21
22
|
## Phase labels
|
|
22
23
|
|
package/standards/wireframes.md
CHANGED
|
@@ -17,7 +17,8 @@ Does not govern:
|
|
|
17
17
|
|
|
18
18
|
- Tokens, typography, spacing, and the rest of the visual system: `design.md`
|
|
19
19
|
- The mechanism behind a surface: `context.md`
|
|
20
|
-
- Voice
|
|
20
|
+
- Voice and word choice in wireframe prose: `prose.md`
|
|
21
|
+
- Punctuation and formatting in wireframe prose: `markdown.md`
|
|
21
22
|
|
|
22
23
|
## What a working wireframe looks like
|
|
23
24
|
|
|
@@ -74,7 +75,7 @@ Reference the context entry from the wireframe by path when a reader needs the m
|
|
|
74
75
|
## Maintenance
|
|
75
76
|
|
|
76
77
|
- When a surface's layout or interaction changes, update its wireframe file in the same PR. A wireframe showing a defunct layout is worse than none.
|
|
77
|
-
- The Behavior and Copy prose around an ASCII block is prose and follows `prose.md`. The fenced block itself is not, so a check scoped to prose is the wrong thing to rely on for what sits inside it.
|
|
78
|
+
- The Behavior and Copy prose around an ASCII block is prose and follows `prose.md` and `markdown.md`. The fenced block itself is not, so a check scoped to prose is the wrong thing to rely on for what sits inside it.
|
|
78
79
|
|
|
79
80
|
## Template
|
|
80
81
|
|
|
@@ -19,6 +19,10 @@ esac
|
|
|
19
19
|
# Read the closed-set word bans from the standard so the hook never carries a
|
|
20
20
|
# second copy. Every "Do not use ... (`a`, `b`)" bullet contributes its
|
|
21
21
|
# single-word backticked terms, which skips the multi-word and punctuation bans.
|
|
22
|
+
#
|
|
23
|
+
# The word bans sit in prose.md and the em-dash and semicolon bans in
|
|
24
|
+
# markdown.md, so this parses the first and hardcodes the second. A "Do not use"
|
|
25
|
+
# bullet added to markdown.md is parsed by nothing and enforces silently.
|
|
22
26
|
standard="${CLAUDE_PROJECT_DIR:-.}/.claude/standards/prose.md"
|
|
23
27
|
words=""
|
|
24
28
|
if [ -f "$standard" ]; then
|
|
@@ -56,6 +60,6 @@ hits=$(awk -v words="$words" '
|
|
|
56
60
|
|
|
57
61
|
[ -z "$hits" ] && exit 0
|
|
58
62
|
|
|
59
|
-
msg=$(printf 'Standards-audit: prose.md violations in %s. Rewrite or restructure (do not lazy-swap).\n%s' "$file" "$hits")
|
|
63
|
+
msg=$(printf 'Standards-audit: prose.md and markdown.md violations in %s. Rewrite or restructure (do not lazy-swap).\n%s' "$file" "$hits")
|
|
60
64
|
|
|
61
65
|
jq -nc --arg msg "$msg" '{hookSpecificOutput:{hookEventName:"PostToolUse",additionalContext:$msg}}'
|