@erclx/aitk 0.66.1 → 0.68.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 (36) hide show
  1. package/claude/.claude-plugin/plugin.json +1 -1
  2. package/claude/skills/claude-orchestrate/REQUIREMENT.md +3 -0
  3. package/claude/skills/claude-orchestrate/SKILL.md +4 -6
  4. package/claude/skills/claude-orchestrate/references/orchestrator-handoff.md +12 -7
  5. package/claude/skills/claude-worktree/REQUIREMENT.md +8 -5
  6. package/claude/skills/claude-worktree/SKILL.md +24 -4
  7. package/claude/skills/claude-worktree/references/branch.md +60 -0
  8. package/claude/skills/git-branch/references/branch.md +1 -1
  9. package/claude/skills/git-followup/REQUIREMENT.md +3 -3
  10. package/claude/skills/git-followup/SKILL.md +3 -2
  11. package/claude/skills/git-pr/references/branch.md +1 -1
  12. package/claude/skills/git-split/references/branch.md +1 -1
  13. package/claude/skills/project-commands/SKILL.md +13 -5
  14. package/docs/agents/commands.md +1 -1
  15. package/docs/agents/context-audit.md +5 -1
  16. package/docs/agents/index.md +1 -1
  17. package/docs/agents/install-and-sync.md +23 -0
  18. package/docs/agents/markdown-audit.md +26 -6
  19. package/docs/ai-workflow.md +1 -1
  20. package/docs/target-projects.md +5 -5
  21. package/package.json +1 -1
  22. package/scripts/core/verify.sh +34 -0
  23. package/src/commands/markdown.ts +27 -6
  24. package/src/commands/sync.ts +51 -6
  25. package/src/commands/tooling.ts +35 -0
  26. package/src/markdown/gate.ts +28 -0
  27. package/src/sync/check.ts +125 -8
  28. package/src/sync/stamp.ts +64 -4
  29. package/src/tooling/stamp.ts +44 -0
  30. package/standards/bundled/branch.md +1 -1
  31. package/standards/slug.md +4 -2
  32. package/tooling/astro/reference.md +1 -1
  33. package/tooling/base/reference.md +1 -1
  34. package/tooling/claude/seeds/CLAUDE.md +1 -1
  35. package/tooling/vite-react/reference.md +1 -1
  36. package/tooling/web/reference.md +1 -1
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Branch reference
3
3
  description: Branch naming format and type conventions
4
- consumers: git-branch, git-split, git-pr
4
+ consumers: git-branch, git-split, git-pr, claude-worktree
5
5
  ---
6
6
 
7
7
  # Branch reference
package/standards/slug.md CHANGED
@@ -16,9 +16,11 @@ Does not govern:
16
16
 
17
17
  ## The transform
18
18
 
19
- Run `git branch --show-current` and replace every `/` with `-`. The result is `<slug>`. Anything reading a branch-derived name uses this transform, so two surfaces cannot spell it differently.
19
+ Run `git branch --show-current`. Drop a leading segment naming one of the types `branch.md` defines when a further segment follows it, then replace every remaining `/` with `-`. The result is `<slug>`. Anything reading a branch-derived name uses this transform, so two surfaces cannot spell it differently.
20
20
 
21
- A surface that persists output to a shared folder carries the slug in the filename, which is what keeps parallel worktrees from overwriting each other's output.
21
+ The type comes off because a plan takes its slug from the concern it covers and the branch executing that plan carries the same slug behind a type prefix. Keeping the prefix sends every surface that finds a plan from a branch name looking for `feat-jwt-expiration`, which no plan is filed under. A first segment matching no type stays, so `spike/parser` still yields `spike-parser`.
22
+
23
+ A surface that persists output to a shared folder carries the slug in the filename, which is what keeps parallel worktrees from overwriting each other's output. Two branches differing only in type collapse onto one slug. That collision reaches the worktree directory as well, since it takes its name from the same string, so the branch is not where it would first surface.
22
24
 
23
25
  ## An empty result
24
26
 
@@ -12,7 +12,7 @@ The astro stack covers Astro + TypeScript projects: content sites, marketing sit
12
12
  2. Add React integration: `bunx astro add react`. Do not use `astro add tailwind`. That command installs the v3 integration. Tailwind v4 arrives via the web manifest.
13
13
  3. Install web tooling: `aitk tooling sync web .`
14
14
  4. Install astro adapter: `aitk tooling sync astro .`
15
- 5. Extend `.claude/context/ci.md` and `.claude/context/development.md` per the web reference's extend sections plus the astro rows below.
15
+ 5. Extend the `ci` and `development` context entries under `.claude/context/` per the web reference's extend sections plus the astro rows below.
16
16
  6. Run `bun run lint:fix` then `bun run check`.
17
17
 
18
18
  ## What ships as golden configs
@@ -26,7 +26,7 @@ Seeds live in `tooling/base/seeds/`. Sync drops each once on first install and n
26
26
  - `.cspell/project-terms.txt` and `.cspell/tech-stack.txt`: one word per line, sorted alphabetically.
27
27
  - `.lintstagedrc`: the glob map below.
28
28
  - `.prettierignore`: created empty. Projects add their own entries.
29
- - `.claude/context/ci.md` and `.claude/context/development.md`: extend with project-specific commands, workflows, or deploy steps. Canonical rationale stays in this reference.
29
+ - `.claude/context/`: extend the `ci` and `development` entries with project-specific commands, workflows, or deploy steps. Canonical rationale stays in this reference.
30
30
 
31
31
  ## Tool pairing
32
32
 
@@ -32,7 +32,7 @@
32
32
 
33
33
  ## Commands
34
34
 
35
- - Run `bun run check` before committing. Full script reference in `.claude/context/development.md`.
35
+ - Run `bun run check` before committing. Full script reference in the development entry under `.claude/context/`.
36
36
 
37
37
  ## Output
38
38
 
@@ -11,7 +11,7 @@ The vite-react stack covers Vite + React + TypeScript projects: web apps and Chr
11
11
  1. Scaffold with `bunx create-vite@latest <name> --template react-ts` (web apps) or `bunx create-crxjs@latest` (Chrome extensions).
12
12
  2. Install base and web tooling: `aitk tooling sync web .`
13
13
  3. Install vite-react deps and configs: `aitk tooling sync vite-react .`
14
- 4. Extend `.claude/context/ci.md` and `.claude/context/development.md` per the web reference's extend sections plus the vite-react rows below.
14
+ 4. Extend the `ci` and `development` context entries under `.claude/context/` per the web reference's extend sections plus the vite-react rows below.
15
15
  5. Run `bun run lint:fix` then `bun run check`.
16
16
 
17
17
  ## What ships as golden configs
@@ -78,7 +78,7 @@ Under `## Running CI locally`, document that `bun run check:full` runs verify pl
78
78
 
79
79
  ## Development docs (extend)
80
80
 
81
- Extend `.claude/context/development.md` so the `## Scripts` table lists every web script. Stack adapters add their `dev`, `build`, `preview`, `typecheck` rows.
81
+ Extend the `development` context entry under `.claude/context/` so the `## Scripts` table lists every web script. Stack adapters add their `dev`, `build`, `preview`, `typecheck` rows.
82
82
 
83
83
  Append rows:
84
84