٠
★ نجوم
٠
↓ تنزيلات
٤
◉ مشاهدات
// تثبيت المهارة
تثبيت المهارة
المهارات هي كود تابع لأطراف ثالثة من مستودعات GitHub العامة. يفحص SkillHub الأنماط الخبيثة المعروفة، لكنه لا يستطيع ضمان السلامة. راجع الكود المصدري قبل التثبيت.
تثبيت عام (على مستوى المستخدم):
npx skillhub install whme/bg3-name-your-summons/commitتثبيت في المشروع الحالي:
npx skillhub install whme/bg3-name-your-summons/commit --projectskill.install.customTargetHelp
npx skillhub install whme/bg3-name-your-summons/commit --target-dir /path/to/skillsالمسار المقترح: ~/.claude/skills/commit/
محتوى SKILL.md
---
name: commit
description: Write a git commit message that follows Name Your Summons' subject/body/trailer conventions, including the mandatory Co-authored-by trailer for AI-generated commits.
---
# Commit Messages
Commit messages follow the standard three-block layout: a single-line
**subject**, an optional wrapped prose **body**, and a **footer** block of Git
trailers - each block separated from the next by a blank line.
## Subject line
- Imperative mood, first word capitalized (`Add`, `Fix`, `Migrate`, `Rename`,
`Update`, `Support`, `Remove`, `Refactor`). Mirror the style already in
`git log`.
- Optional lowercase scope prefix followed by `: ` when the change is confined
to a single area (e.g. `server:`, `client:`, `NameWriter:`, `prompt:`). Do
not invent scopes that do not match the code layout.
- No trailing period. Keep under ~72 characters.
- Do not pre-append a PR number in parentheses - GitHub's squash-merge adds
that automatically when the PR lands.
## Body
- Separate the subject from the body with a blank line.
- Wrap lines at ~72-76 characters.
- Explain **why** the change is being made, and the observable in-game
behaviour before/after when relevant (names not sticking, a summon reverting
to its default name, a crash). This project cannot be unit-tested, so the
body is where the reasoning lives.
- Use `-` for bullet lists.
- ASCII punctuation only (see `AGENTS.md`) - no em-dashes, arrows, or smart
quotes in the message.
## Footer (trailers)
Trailers go in a final block separated from the body by a blank line. Order:
issue/PR references first, then co-author trailers.
- **GitHub references**: use `GitHub: #<number>` - one per line, in the footer,
never in the subject or body prose.
- **AI co-authorship (MANDATORY for AI-generated commits)**: include a
`Co-authored-by:` trailer naming the model. For example:
```
Co-authored-by: Claude Opus 4.7 <[email protected]>
```
- Use the exact model name in use (e.g. `Claude Opus 4.7`,
`Claude Sonnet 4.6`, `Claude Haiku 4.5`).
- Email must be `<[email protected]>`.
- Use the Git-canonical casing `Co-authored-by:` (lowercase `authored`/`by`).
GitHub recognizes other casings too, but lowercase matches Git's own
trailer convention and avoids duplicate trailers when tooling re-adds one.
- Emit the trailer **exactly once**.
## Example
```
server: re-register loca handles before reapplying names
Loading a save dropped every custom summon name: runtime localisation
entries do not survive a restart, so the reapply pass pointed each
summon at a handle that no longer resolved and the name rendered as
nothing. Re-register every saved name's handle on SessionLoaded, before
the reapply pass runs.
GitHub: #12
Co-authored-by: Claude Opus 4.7 <[email protected]>
```
## How to actually commit
Use a single-quoted heredoc (`<<'EOF'`) so backticks and `$` in the body are
not expanded by the shell:
```sh
git add <paths> # prefer explicit paths over `git add -A`
git commit -m "$(cat <<'EOF'
<subject line>
<wrapped body>
GitHub: #<N>
Co-authored-by: <Model Name> <[email protected]>
EOF
)"
```
Never pass `--no-verify` unless the user has explicitly asked for it. If the
pre-commit hook fails, fix the offending characters and create a new commit -
do not `--amend` to "retry" a commit that never happened.
الترخيص
الترخيص المُعلن: MIT
MIT License
Copyright (c) 2026 whme
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.عرض الترخيص في المستودع المصدري — النسخة المنشورة هناك هي المرجع.
// تثبيت المهارة
تثبيت المهارة
المهارات هي كود تابع لأطراف ثالثة من مستودعات GitHub العامة. يفحص SkillHub الأنماط الخبيثة المعروفة، لكنه لا يستطيع ضمان السلامة. راجع الكود المصدري قبل التثبيت.
تثبيت عام (على مستوى المستخدم):
npx skillhub install whme/bg3-name-your-summons/commitتثبيت في المشروع الحالي:
npx skillhub install whme/bg3-name-your-summons/commit --projectskill.install.customTargetHelp
npx skillhub install whme/bg3-name-your-summons/commit --target-dir /path/to/skillsالمسار المقترح: ~/.claude/skills/commit/