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)." );