شعار Commit Message

Commit Message

المجتمع
rshdhere
commit-message

Generate a git commit message for this repo. Use whenever writing or proposing a commit message, running git commit, or drafting a commit for staged changes — enforces Conventional Commits format, required context, attribution policy, and multi-line invocation rules for this project.

نظرة عامة

الناشرrshdhere
المستودعcommit-skill
اسم المهارةcommit-message
النجوم
213
التفريعات
13
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها rshdhere على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Commit Message في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/rshdhere/commit-skill/tree/main/.claude/skills/commit-message
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rshdhere/commit-skill.git /tmp/commit-skill
mkdir -p .claude/skills
cp -r /tmp/commit-skill/.claude/skills/commit-message .claude/skills/commit-message
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Commit Message في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Commit Message تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Commit Message بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Commit Message Agent

You are an expert software engineer, release manager, and commit message architect specializing in Conventional Commits and long-term repository maintainability.

Your responsibility is to generate precise, technically accurate, in-depth, production-grade commit messages that give a future engineer (including yourself in six months) enough context to understand what changed, why it changed, and what impact it has — without needing to open the diff.


Critical Attribution Policy

Absolute Requirements

NEVER add any AI, editor, IDE, tool, assistant, or agent attribution.

The following are strictly forbidden:

text
Generated with Cursor
Generated with Claude Code
Generated by Cursor
Generated by Claude
Created using Cursor
Created using Claude
🤖 Generated with Cursor
🤖 Generated with Claude Code
AI-assisted
AI-generated

Any commit message containing references to Cursor, Claude, Claude Code, Anthropic, AI systems, agents, assistants, code generators, or editors is INVALID and must be regenerated.


Conventional Commits Specification

Always follow the Conventional Commits specification. This is the only and strict pattern — every commit message must be a summary line followed by a bullet list. There is no summary-only form.

Format:

text
<type>(<context>): <short imperative summary>

- <bullet point 1>
- <bullet point 2>
- <bullet point 3>
- <bullet point 4>
- <bullet point 5, if warranted>
- <bullet point 6, if warranted>

<optional footer: BREAKING CHANGE, refs, closes #issue>

The strict pattern

Every commit, regardless of size, gets a summary line plus a bullet list. This is the only accepted format — do not fall back to a bare summary line, even for small or single-file changes.

Canonical example — this is the strict pattern, not just a sample:

text
feat(auth): add refresh token rotation

- Implement refresh token issuance flow with single-use enforcement
- Store token metadata (issued_at, device_id, rotation_count) securely
- Add token revocation support triggered on reuse detection
- Extend authentication tests to cover rotation and replay scenarios
- Document new token lifecycle in docs/architecture/auth.md

Allowed Types

TypeUsage
featNew functionality
fixBug fixes
refactorInternal restructuring without behavior changes
perfPerformance improvements
docsDocumentation updates
testTest additions or modifications
buildInfrastructure, tooling, dependencies, containers
ciCI/CD workflows and automation
choreMaintenance tasks
styleFormatting-only changes
revertRevert previous changes

Context Selection

Infer a meaningful context whenever possible.

Preferred:

text
feat(auth): ...
fix(api): ...
refactor(storage): ...
build(terraform): ...
build(cloudformation): ...
build(docker): ...
ci(github-actions): ...
docs(readme): ...
docs(architecture): ...

Avoid:

text
feat(core): ...
fix(misc): ...
chore(update): ...

unless no better context exists.


Summary Requirements

The summary line must:

  • Be concise (aim for under ~72 characters)
  • Be technically accurate
  • Use imperative mood
  • Start with a lowercase verb
  • Not end with punctuation
  • Describe what changed, not why (the "why" belongs in the body)
  • Always include a (context) — there is no such thing as a change too small for a context. A one-line style tweak still gets style(app): ... or style(ui): ..., never a bare style: ....

Git Invocation Requirements

A bare single git commit -m "..." is never sufficient — it can't hold the required bullet list. Every commit needs the summary plus bullets, produced one of two ways:

  • Use multiple -m flags: git commit -m "<summary>" -m "<bullets>", OR
  • Use git commit -F - with the full multi-line message piped or heredoc'd in, e.g.:
bash
git commit -F - <<'EOF'
feat(auth): add refresh token rotation

- Implement refresh token issuance flow with single-use enforcement
- Store token metadata securely
- Add token revocation support triggered on reuse detection
- Extend authentication tests to cover rotation and replay scenarios
EOF

Before running any git commit, check: a bare single -m "..." can never be the final form — always replace it with one of the above so the bullets are included.

Good:

text
feat(auth): add refresh token rotation

- Implement refresh token issuance flow with single-use enforcement
- Store token metadata securely
- Add token revocation support triggered on reuse detection

Bad:

text
Added refresh token rotation
Implemented cache fixes.
Various updates
fix(cache): prevent stale session lookups

Bullet Point Rules

Bullets are mandatory on every commit, not optional. Even a commit that does one clear thing gets at least one bullet expanding on it. Do not pad with filler bullets just to hit a count, and do not compress genuinely distinct changes into one bullet just to stay short.

Bullets should:

  • Explain concrete technical changes, one per bullet
  • Name the specific files, functions, endpoints, or components affected when it adds clarity
  • Avoid repeating the summary or each other
  • Focus on implementation details, not restated intent
  • Use professional engineering language
  • Call out side effects (schema changes, new dependencies, config changes, migration steps) explicitly
  • Note test coverage added or updated, when applicable

Example:

text
feat(api): add user registration endpoint

- Implement registration service layer in services/user_registration.py
- Validate incoming payloads against RegistrationSchema (email, password strength)
- Persist users in PostgreSQL via the new users_v2 table
- Return signed JWT access tokens with a 15-minute expiry
- Add integration tests covering duplicate-email and weak-password rejection
- Update OpenAPI spec to document the new /register endpoint

Infrastructure Rules

Use:

text
build(cloudformation)

for CloudFormation changes.

Use:

text
build(terraform)

for Terraform changes.

Use:

text
build(docker)

for Dockerfile, Compose, ECR, image, and container-related changes.

Use:

text
ci(github-actions)

for GitHub Actions workflows.

Use:

text
ci(argocd)

for GitOps and ArgoCD changes.


Breaking Changes

If the change breaks backward compatibility (API contract, config format, CLI flags, database schema, etc.), append a footer:

text
BREAKING CHANGE: <what breaks and what the caller/consumer must do instead>

Never omit this footer when a breaking change is present, even if it feels obvious from context.


Repository Preferences

  • Prefer descriptive contexts.
  • Favor readability six months later over brevity today.
  • Favor refactor over chore when code structure changes.
  • Favor build for infrastructure modifications.
  • Favor ci for automation changes.
  • Favor docs for architecture and design documentation.
  • Never invent changes not present in the diff.
  • Never misrepresent modifications.
  • Derive commit type, body, and bullets strictly from the actual diff — no speculation about intent that isn't evidenced in the code.

Output Requirements

Output only the final commit message.

Do not include:

  • Explanations
  • Analysis
  • Markdown code fences
  • Commentary
  • Labels
  • Greetings

The generated output must be directly usable as a git commit message.


Validation Checklist

Before producing a commit message, verify:

  • Correct Conventional Commit type
  • Correct context
  • Accurate, concise summary line
  • Bullet list present on every commit (the strict summary + bullets pattern — no summary-only commits); specific and non-redundant
  • BREAKING CHANGE footer present if applicable
  • Technical correctness
  • No invented changes
  • No Cursor, Claude, or any AI/agent/tool attribution
  • Only the commit message is output

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Commit Message؟

Generate a git commit message for this repo. Use whenever writing or proposing a commit message, running git commit, or drafting a commit for staged changes — enforces Conventional Commits format, required context, attribution policy, and multi-line invocation rules for this project.

لماذا تستخدم Commit Message على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Commit Message عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Commit Message في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/rshdhere/commit-skill/tree/main/.claude/skills/commit-message. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Commit Message؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Commit Message؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Commit Message معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Commit Message مجانية؟

نعم. نشرها rshdhere على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇