corrections
CI / CI configuration security checks (push) Successful in 6s
CI / Python tests and compilation (push) Failing after 12s
CI / QMD unit tests (push) Skipped
CI / Capabilities and shell quality (push) Successful in 1m50s
CI / Build and inspect generated packages (push) Skipped
CI / Bash integration and installation guards (push) Skipped
CI / Installed client configuration smoke tests (push) Skipped
CI / PowerShell tests on Ubuntu (push) Failing after 7m24s

This commit is contained in:
Julian Lechner committed 2026-11-19 10:30:43 +01:00
1 parent b35e2254b3
commit c3e22eb902
39 files changed
+246 -151

No files matched your search

+9 -1
View File
@@ -18,7 +18,7 @@ CLAUDE_SANDBOX_EXCLUDED = ['node "$HOME/.my-ai-configuration/qmd/qmd-search.mjs"
CLAUDE_STATUS_LINE_KEYS = {"type", "command"}
CLAUDE_HOOK_KEYS = {"type", "command", "timeout"}
CLAUDE_PERMISSION_MODES = {"acceptEdits", "auto", "bypassPermissions", "default", "dontAsk", "plan"}
CLAUDE_VALID_TOOLS = {"Read", "Grep", "Glob", "Edit", "Write", "Bash", "PowerShell", "WebFetch", "WebSearch"}
CLAUDE_VALID_TOOLS = {"Read", "Grep", "Glob", "Edit", "Write", "Bash", "PowerShell", "WebFetch", "WebSearch", "Skill"}
def fail(message: str) -> None:
@@ -91,6 +91,14 @@ def validate_agent_tools(package: Path) -> None:
unknown = [tool for tool in tools if tool not in CLAUDE_VALID_TOOLS]
if unknown:
fail(f"{path}: unknown Claude tool name(s): {', '.join(unknown)}")
# Claude skips a missing preloaded skill silently, so check the names against the package.
if "skills:" in lines:
for line in lines[lines.index("skills:") + 1:]:
if not line.startswith(" - "):
break
skill = line.removeprefix(" - ").strip()
if not (package / "skills" / skill / "SKILL.md").is_file():
fail(f"{path}: preloads missing skill {skill}")
RULE_PATH = re.compile(r"`(rules/[A-Za-z0-9_./-]+\.md)`")