fix(cli): refuse more coding-agent instruction files in registry installs (#7549)

Registry items may not write QWEN.md, CRUSH.md, WARP.md or CONVENTIONS.md at
any depth, in any case, alongside the AGENTS.md, CLAUDE.md and GEMINI.md
names already refused. The catalog's nested SKILL.md and README.md notes are
unaffected.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
James Russo
2026-11-11 08:35:03 +00:00
committed by GitHub
co-authored by Claude Opus 5.5
parent f36463e292
commit 9bab57ab48
2 changed files with 6 additions and 1 deletions
@@ -108,6 +108,10 @@ describe("installItem", () => {
"GEMINI.md",
"QWEN.md",
"CONVENTIONS.md",
"compositions/QWEN.md",
"assets/Crush.md",
"compositions\\WARP.md",
"compositions/conventions.md",
"notes.txt",
"whisper-cli.exe",
"assets/whisper-cli.EXE",
+2 -1
View File
@@ -152,7 +152,8 @@ const STANDARD_INSTALL_DIRS = ["compositions", "assets", "models", "lib"];
// The one file a block may leave at the project root: the catalog's usage note. Any other name could be one a tool loads.
const ROOT_NOTES = new Set(["template.md"]);
// Coding agents load these on their own, wherever they sit.
const AGENT_INSTRUCTIONS = /^(agents?|claude|gemini|copilot-instructions)(\.[a-z]+)?\.md$/;
const AGENT_INSTRUCTIONS =
/^(agents?|claude|gemini|qwen|crush|warp|conventions|copilot-instructions)(\.[a-z]+)?\.md$/;
// Programs and scripts a shell, an OS or another tool runs; a browser composition never needs them.
const EXECUTABLE =
/\.(exe|com|bat|cmd|ps1|psm1|vbs|vbe|wsf|hta|msi|scr|pif|cpl|lnk|dll|so|dylib|node|sh|bash|zsh|command|jar|appimage|py|rb|pl|php)$/;