From d508947a3a444d68af25d140560c717dc7fd52fc Mon Sep 17 00:00:00 2001 From: Timothy Crooker Date: Wed, 12 Aug 2026 12:02:23 -0700 Subject: [PATCH] docs(core): point generated Claude notes at skills, not path-glob rules The generated CLAUDE.md told every consumer to reserve .claude/rules/*.md for path-glob injections. The pattern that actually holds up is a skill carrying the procedure plus a scoped CLAUDE.md pointing at it, which loads where the work happens. Also drops 'rule file' from the module-target error, which steered readers to the same mechanism while explaining an unrelated mistake. --- .changeset/shy-pandas-relax.md | 13 +++++++++++++ examples/gauntlet/CLAUDE.md | 2 +- examples/listforge-like/CLAUDE.md | 2 +- packages/core/src/config.ts | 2 +- packages/core/src/render.ts | 2 +- 5 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 .changeset/shy-pandas-relax.md diff --git a/.changeset/shy-pandas-relax.md b/.changeset/shy-pandas-relax.md new file mode 100644 index 0000000..17ea8f7 --- /dev/null +++ b/.changeset/shy-pandas-relax.md @@ -0,0 +1,13 @@ +--- +"@ai-context-kit/core": patch +--- + +Point generated Claude notes at skills instead of path-glob rules + +The generated `CLAUDE.md` advised reserving `.claude/rules/*.md` for narrow +path-glob injections. In practice the durable pattern is a skill holding the +procedure plus a scoped `CLAUDE.md` that points at it, which loads where the +work happens without the rule mechanism. The note now says that. + +Also drops "rule file" from the module-target error message, which steered +readers to the same mechanism while explaining an unrelated config mistake. diff --git a/examples/gauntlet/CLAUDE.md b/examples/gauntlet/CLAUDE.md index 7b45d4a..a68fc3f 100644 --- a/examples/gauntlet/CLAUDE.md +++ b/examples/gauntlet/CLAUDE.md @@ -26,5 +26,5 @@ Fixture monorepo for the ai-context-kit cross-CLI gauntlet. Exercises every skil ## Claude-Specific Notes - Use scoped `CLAUDE.md` files for domain-specific, just-in-time context. -- Reserve `.claude/rules/*.md` for narrow path-glob injections only. +- Put procedures and standards in `.ai/skills/*`, and point at them from a scoped `CLAUDE.md` so they load where the work happens. - Keep local secrets in `.ai/secrets.local.env` (gitignored). diff --git a/examples/listforge-like/CLAUDE.md b/examples/listforge-like/CLAUDE.md index f6dfe39..85aa8aa 100644 --- a/examples/listforge-like/CLAUDE.md +++ b/examples/listforge-like/CLAUDE.md @@ -22,5 +22,5 @@ This fixture models a multi-app commerce workflow. ## Claude-Specific Notes - Use scoped `CLAUDE.md` files for domain-specific, just-in-time context. -- Reserve `.claude/rules/*.md` for narrow path-glob injections only. +- Put procedures and standards in `.ai/skills/*`, and point at them from a scoped `CLAUDE.md` so they load where the work happens. - Keep local secrets in `.ai/secrets.local.env` (gitignored). diff --git a/packages/core/src/config.ts b/packages/core/src/config.ts index 7cfd605..a1e6305 100644 --- a/packages/core/src/config.ts +++ b/packages/core/src/config.ts @@ -277,7 +277,7 @@ export function loadModules(cwd: string, manifest: Manifest): ContextModule[] { throw new ContextError( "AICTX_CONFIG_INVALID", `Module '${file}' targets '${target}', but modules only compose into the root output. ` + - `Move this content to a rule file and add it to the '${target}' scope's includes in the scope manifest.` + `Move this content into its own file and add it to the '${target}' scope's includes in the scope manifest.` ); } } diff --git a/packages/core/src/render.ts b/packages/core/src/render.ts index 1030a9f..45e7155 100644 --- a/packages/core/src/render.ts +++ b/packages/core/src/render.ts @@ -145,7 +145,7 @@ export function buildClaudeRoot( "## Claude-Specific Notes", "", "- Use scoped `CLAUDE.md` files for domain-specific, just-in-time context.", - "- Reserve `.claude/rules/*.md` for narrow path-glob injections only.", + "- Put procedures and standards in `.ai/skills/*`, and point at them from a scoped `CLAUDE.md` so they load where the work happens.", "- Keep local secrets in `.ai/secrets.local.env` (gitignored)." );