diff --git a/.claude/skills/commit/SKILL.md b/.claude/skills/commit/SKILL.md index a77511a0d4..1b05b52531 100644 --- a/.claude/skills/commit/SKILL.md +++ b/.claude/skills/commit/SKILL.md @@ -1,7 +1,6 @@ --- name: commit description: Create a conventional commit for PX4 changes -disable-model-invocation: true argument-hint: "[optional: description of changes]" allowed-tools: Bash, Read, Glob, Grep --- @@ -19,7 +18,7 @@ Follow [CONTRIBUTING.md](../../CONTRIBUTING.md) for full project conventions. 1. **Read [CONTRIBUTING.md](../../CONTRIBUTING.md)** for commit message format, types, scopes, and conventions. 2. Check branch (`git branch --show-current`). If on `main`, create a feature branch. Use `/` format where `` comes from `gh api user --jq .login`. If unavailable, just use ``. 3. Run `git status` and `git diff --staged`. If nothing staged, ask what to stage. -4. Follow the commit message convention from CONTRIBUTING.md: pick the correct **type** and **scope**, write a concise imperative description. +4. Follow the commit message convention from CONTRIBUTING.md: pick the correct **type** and **scope**, write a concise imperative description. The scope table is not exhaustive — derive the scope from the directory path of the changed files. 5. Body (if needed): explain **why**, not what. 6. Run `make format` or `./Tools/astyle/fix_code_style.sh ` on changed C/C++ files before committing. 7. Check if GPG signing is available: `git config --get user.signingkey`. If set, use `git commit -S -s`. Otherwise, use `git commit -s`. diff --git a/.claude/skills/pr/SKILL.md b/.claude/skills/pr/SKILL.md index b6c1c86e69..18e7e2435f 100644 --- a/.claude/skills/pr/SKILL.md +++ b/.claude/skills/pr/SKILL.md @@ -1,7 +1,6 @@ --- name: pr description: Create a pull request with conventional commit title and description -disable-model-invocation: true argument-hint: "[optional: target branch or description]" allowed-tools: Bash, Read, Glob, Grep ---