Repository navigation
Description
Description
aidd plugin install <local plugin path> --tool kilo copies every plugin Rule verbatim into .kilo/rules/<plugin>/<name>.md, including path-scoped Rules with their paths frontmatter, and adds no instructions entry. Kilo never loads Rules placed there, so every Rule installed this way is inert. If anyone lists them, the path-scoped ones apply to every file, because Kilo ignores paths.
The marketplace install (aidd plugin install <name>, aidd setup) and the flat archive (aidd translate --to kilo --as flat) already handle this, through the flat build strategy delivered with #868 (PR #1069):
- all-files Rules land at top-level
.kilo/rules/<plugin>-<group>-<name>.md; - path-scoped Rules are skipped with a warning naming the Rule and its paths (install), or fail the build (translate).
The local-path install goes through the Kilo profile's RulesCapability instead, which predates that work.
Affected file(s)
cli/src/contexts/tools/domain/profiles/kilo/profile.ts (rules: new RulesCapability(...))
Expected behaviour
A local-path install for Kilo matches the marketplace install:
- each all-files Rule is written to top-level
.kilo/rules/<plugin>-<group>-<name>.md, so Kilo loads it; - each path-scoped Rule is skipped with the same warning;
plugin removedeletes exactly what the install wrote.
Observed behaviour
With a plugin holding 1 all-files Rule and 7 path-scoped Rules (aidd-craft), the install exits 0 and prints no warning:
- all 8 Rules are copied to
.kilo/rules/aidd-craft/, with theirpathsfrontmatter; .kilo/kilo.jsonchas noinstructionskey;- none of the 8 Rules reaches the model.
Measured on Kilo 7.7.5, real runtime, with a fake OpenAI-compatible server capturing the prompt:
- a top-level
.kilo/rules/*.mdreaches the model without aninstructionsentry; - a file in
.kilo/rules/<subdir>/reaches it only when listed ininstructions; - a Rule with
paths: ["**/*.ts"]reaches a session that touches no.tsfile, sopathsis ignored.
Repro, from a CLI build of next, with an isolated HOME:
- Stage a marketplace (
.claude-plugin/marketplace.jsonplusplugins/<plugin>/) whose plugin has one all-files Rule and onepathsRule. - In a scratch git project, run
aidd setup --ai kilo --plugins none --no-default-marketplace --yes. - Run
aidd plugin install <path-to-plugin> --tool kilo --yes. - Run
find .kilo/rulesandgrep instructions .kilo/kilo.jsonc.
AI tool
Kilo Code
aidd-cli version
5.5.0 (next, plus PR #1069)
OS
macOS 26.6.2
Additional context
- Related: feat(cli): emit rules in Kilo flat builds #868 (flat archive Rules), feat(aidd-context): add Kilo-native generation targets #914 (in-project Kilo Rule generation by aidd-context; a different path).
- Kilo docs: https://kilo.ai/docs/customize/custom-rules
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
blafourcade commentedon Nov 5, 2026
@BlandineRdl I checked current
nextand the work in #1069 and #992. Local-path installs still use the generic translator: Rules land under.kilo/rules/<plugin>/, with noinstructionswiring or filtering ofpaths-scoped Rules. #1069 explicitly leaves this route out of scope, while #992 covers native artifact generation. Neither delivers this fix.I would keep this as a separate issue and reuse the same policy: install all-files Rules where Kilo loads them, skip scoped Rules with a warning, and track the actual installed paths so removal cleans up exactly those files.
blafourcade commentedon Nov 25, 2026
Fixed on
next. A bug sweep re-checked this against the current code after the CLI convergence (#1253).Evidence: A probe through AddPlugin with a local source and the real Kilo profile wrote .kilo/rules/sample-plugin-01-standards-1-naming.md and ...-2-ts.md at top level. It wrote nothing under .kilo/rules/sample-plugin/, and kilo.jsonc gained instructions [".kilo/rules/sample-plugin-*.md"]. The user's own config keys were kept. Existing test: tests/contexts/installation/application/materialize/kilo-rules-instructions.integration.test.ts ('a kilo plugin's rules, installed from a local path': placement, listing beside user entries, tracking, removal). The code is install-flat-rules.ts and place-flat-plugin.ts (placedRulesGlob). Difference: the issue expects a path-scoped Rule to be skipped with a warning. The target architecture writes it with its scope stated as the first body line (install-flat-rules.unit.test.ts). I did not change that.
Closing as fixed. Reopen with a reproduction if it still happens on a build from
next.One deliberate difference from this issue's text: a path-scoped Rule is written with its scope stated in the body instead of being skipped with a warning. The flat build (
translate --to kilo --as flat) still emits no rules, and that part is followed separately as the takeover of #1069.