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>
30 lines
1.1 KiB
Markdown
30 lines
1.1 KiB
Markdown
---
|
|
name: commit-change
|
|
version: 1.0.0
|
|
description: |
|
|
Analyze all changes since the last commit (staged, unstaged, untracked files)
|
|
and create well-structured commits grouped by logical unit. Use this skill
|
|
whenever the user says "commit my changes", "smart commit", "auto commit",
|
|
"commit everything", "analyse et commit", or any variation of wanting to
|
|
commit their pending work intelligently. Also trigger when the user has
|
|
been working on multiple things and wants to create clean, atomic commits
|
|
from their messy working directory. Works in any git repository.
|
|
allowed-tools:
|
|
- Bash
|
|
- Read
|
|
- Grep
|
|
- Glob
|
|
- Agent
|
|
- AskUserQuestion
|
|
---
|
|
|
|
Load and follow strictly: `$HOME/.claude/agents/commit-changer.md`.
|
|
|
|
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
|