Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/shy-pandas-relax.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion examples/gauntlet/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion examples/listforge-like/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion packages/core/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)."
);

Expand Down
Loading