optimize skills-perso + commit-change: round 1 — D3 edge cases

skills-perso: add 'Known limits of detection heuristic' section
(false positives in code blocks, false negatives for non-standard
agent paths, override via owner: user marker, malformed frontmatter).

commit-change: add fallback when commit-changer.md unreachable,
plus pre-flight check stub (detached HEAD, missing git identity).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
bastien
2026-05-12 17:59:22 +02:00
co-authored by Claude Opus 4.7
parent 727e9fc73a
commit db9048877a
2 changed files with 23 additions and 3 deletions
+6 -3
View File
@@ -18,9 +18,12 @@ allowed-tools:
- AskUserQuestion
---
Load and follow strictly:
- $HOME/.claude/agents/commit-changer.md
Load and follow strictly: `$HOME/.claude/agents/commit-changer.md`.
Execute the COMMIT-CHANGER agent on the current working directory.
If unreachable, emit `Commit-changer agent missing.` and STOP. Never auto-commit blind — a wrong group is harder to undo than not committing.
Pre-flight checks (the agent should also perform, but flag here):
- Detached HEAD or unmerged conflicts → STOP, report state.
- Identity unconfigured (`git config user.email` empty) → STOP, ask user.
$ARGUMENTS