شعار Finish

Finish

المجتمع
rlajous
finish

Create a pull request with comprehensive description following repo best practices

نظرة عامة

الناشرrlajous
المستودعclaude-code-commands
اسم المهارةfinish
النجوم
30
التفريعات
2
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Cross-runtime: follow runtime compatibility for invocation, delegation, configuration precedence, state paths, and permissions.

You are helping create a pull request with a comprehensive description. Your task is to gather information, generate the PR description, push the branch, and create the PR using project conventions.

Step 1: Load Configuration

Check for configuration and context:

bash
# Check for config and context files
if [ -f ".git-workflow/config.yaml" ]; then CONFIG_PATH=".git-workflow/config.yaml"; elif [ -f ".claude/config.yaml" ]; then CONFIG_PATH=".claude/config.yaml"; else CONFIG_PATH=""; fi
if [ -f ".git-workflow/pr-context.json" ]; then CONTEXT_PATH=".git-workflow/pr-context.json"; elif [ -f ".claude/.pr-context.json" ]; then CONTEXT_PATH=".claude/.pr-context.json"; else CONTEXT_PATH=""; fi

# Get current branch
git branch --show-current

Load from the resolved CONFIG_PATH (canonical first, legacy read-only fallback):

yaml
workflow:
  developmentBranch: staging
  productionBranch: main
pullRequests:
  targetBranch: staging
  reviewers: []
  labels: []
issueTracker:
  type: auto

Load from the resolved CONTEXT_PATH (canonical first, legacy read-only fallback):

json
{
  "ticket_id": "PROJ-1234",
  "ticket_url": "https://...",
  "ticket_title": "Ticket title",
  "branch": "fix/proj-1234-description",
  "type": "fix",
  "description": "Short description"
}

Default Values (when no config):

yaml
pullRequests:
  targetBranch: staging
  reviewers: []
  labels: []

If context file is missing or incomplete:

  • Inform the user they should run /start and /commit first
  • Ask for missing information (ticket ID, branch name)

If the context contains a branch value that does not match the current branch, treat it as stale, explain which file was ignored, and gather fresh context. Do not silently reuse context from another branch.

Step 2: Verify State

Check current git state:

bash
# Current branch
CURRENT_BRANCH=$(git branch --show-current)

# Commits on this branch vs target
TARGET_BRANCH=$(config.pullRequests.targetBranch || "staging")
git log --oneline ${TARGET_BRANCH}..HEAD

# Any uncommitted changes?
git status --short

Warnings:

  • If uncommitted changes exist: "You have uncommitted changes. Run /commit first?"
  • If no commits on branch: "No commits to create PR. Make changes and run /commit first."
  • If on target branch: "You're on the target branch. Switch to a feature branch first."

Step 3: Gather Changed Files

Analyze what changed:

bash
# Files changed vs target branch
TARGET_BRANCH=$(config.pullRequests.targetBranch || "staging")
git diff --name-only ${TARGET_BRANCH}...HEAD
git diff --stat ${TARGET_BRANCH}...HEAD

# Commit messages on this branch
git log --oneline ${TARGET_BRANCH}..HEAD

Display summary:

Changes on this branch:

Files changed: 5
Commits: 3

Files:
  M src/services/auth.ts (+45, -12)
  M src/controllers/user.ts (+23, -8)
  A src/utils/validation.ts (+67)
  M tests/auth.test.ts (+89, -0)
  M package.json (+2, -1)

Commits:
  abc1234 [Fix] Update authentication flow (PROJ-1234)
  def5678 [Fix] Add input validation (PROJ-1234)
  ghi9012 [Fix] Add unit tests (PROJ-1234)

Step 4: Gather PR Information

Ask the user for additional context (use the active host user-input mechanism):

Question 1: Summary of Changes

Question: "Briefly describe what this PR does and why"

Example: "Fixes authentication timeout by implementing token refresh and adding proper error handling"

Question 2: What Issues Were Fixed

Question: "What issues did this PR fix? List each problem and solution."

Format: Numbered list

Example:

1. Token expiry not handled -> Added automatic token refresh
2. No validation on user input -> Added input sanitization
3. Missing error messages -> Added user-friendly error responses

Question 3: Testing Instructions

Question: "How should reviewers test these changes?"

Options:

  1. Run existing tests (default)
  2. Manual testing required - will provide instructions
  3. Both automated and manual testing needed

If manual testing, ask for specific test steps.

Question 4: Breaking Changes

Question: "Are there any breaking changes?"

Options:

  • No breaking changes (default)
  • Yes, there are breaking changes

If yes, ask for description of breaking changes.

Step 5: Generate PR Description

Use this template and fill with collected data:

markdown
## Description

{Fixes|Closes|Relates to} {ticket_id}

{High-level summary from user input}

### Changes

{For each commit or logical change, create a bullet point}

- **{Component/Area}**: {Description of change}

### Why

{Root cause explanation from user}

{Solution explanation}

---

## Testing

### Automated Tests

```bash
{testing.unit command or auto-detected}
```

### Manual Testing

{If manual testing required, include steps}

{If API endpoint, include curl example:}

```bash
curl -X {METHOD} "{base_url}/{endpoint}" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json"
```

### Expected Result

**Before**: {Description of broken behavior}
**After**: {Description of fixed behavior}

---

## Checklist

- [ ] Tests pass locally
- [ ] Code follows project style guidelines
- [ ] Self-review completed
- [ ] Documentation updated (if needed)
{If breaking changes:}
- [ ] Breaking changes documented
- [ ] Migration guide provided

Customize for Issue Tracker

Linear:

markdown
## Description

Fixes {ticket_id}

{Linear will auto-link to the ticket}

Jira:

markdown
## Description

Fixes [{ticket_id}]({jira_base_url}/browse/{ticket_id})

GitHub Issues:

markdown
## Description

Fixes #{issue_number}

Step 6: Push Branch

bash
# Push branch to remote with upstream tracking
git push -u origin {branch_name}

Error Handling:

  • If branch already pushed with changes: Ask to force push or just update
  • If push fails: Show error and suggest solutions

Step 7: Create PR

Format PR Title

Use commit message format from config (default: [{type}] {message} ({ticket})):

[Fix] Update authentication flow (PROJ-1234)
[Feature] Add dark mode support (ENG-456)
[Hotfix] Fix critical security issue (ABC-789)

Create PR with gh CLI

bash
# Determine target branch
TARGET_BRANCH=$(config.pullRequests.targetBranch || "staging")

# Create PR
gh pr create \
  --base "${TARGET_BRANCH}" \
  --title "{PR_TITLE}" \
  --body "$(cat <<'EOF'
{GENERATED_DESCRIPTION}
EOF
)"

Add Reviewers (If Configured)

bash
# From config.pullRequests.reviewers
gh pr edit {PR_NUMBER} --add-reviewer "user1,user2,team/name"

Add Labels (If Configured)

bash
# From config.pullRequests.labels
gh pr edit {PR_NUMBER} --add-label "needs-review,bug"

Assign to Self

bash
gh pr edit {PR_NUMBER} --add-assignee @me

Step 8: Link to Issue Tracker

Linear (via MCP)

If Linear MCP server is available, update ticket status:

mcp__linear__update_issue(id: ticket_id, state: "In Review")

The MCP server handles authentication automatically.

Jira (via MCP)

If Jira MCP server is available, add PR link and update status:

mcp__jira__add_comment(issueKey: ticket_id, body: "PR: {PR_URL}")

GitHub Issues

GitHub automatically links PRs with "Fixes #123" syntax (no additional action needed).

Step 9: Confirm and Cleanup

Output confirmation:

Branch pushed: {branch_name}
PR created: {PR_URL}
Title: {PR_TITLE}
Target: {target_branch}
Reviewers: {reviewers_list or "None configured"}
Labels: {labels_list or "None"}

PR is ready for review!

Optional Cleanup

Ask if the user wants to clean up canonical context:

bash
# Remove context file (optional)
rm .git-workflow/pr-context.json

Or keep it for reference until the PR is merged. Legacy .claude/.pr-context.json is a read-only fallback and must never be deleted or modified by this workflow. If the active context came from that legacy path, warn that cleanup cannot remove it, leave it in place, and recommend /setup or $setup to migrate it.

Configuration Reference

SettingDefaultDescription
pullRequests.targetBranchstagingDefault base branch for PRs
pullRequests.reviewers[]Default reviewers
pullRequests.labels[]Default labels
issueTracker.typeautoIssue tracker integration
workflow.developmentBranchstagingDevelopment branch name

Error Handling

ScenarioAction
gh not installedProvide installation instructions
Not authenticatedRun gh auth login instructions
No commits on branchSuggest running /commit first
Uncommitted changesSuggest running /commit first
Branch not pushedPush automatically before PR
PR already existsShow existing PR URL, ask to update
Context file missingGather info manually, suggest /start
Target branch doesn't existError with suggestion

Examples

Standard Flow

User: /finish
Agent: [Shows 5 files changed, 3 commits]
Agent: Describe what this PR does? -> "Fixes auth timeout"
Agent: What issues were fixed? -> "1. Token expiry -> Added refresh"
Agent: How to test? -> "Run existing tests"
Agent: Breaking changes? -> "No"
Result: PR #123 created
        URL: https://github.com/org/repo/pull/123

With Reviewers and Labels

User: /finish
Agent: [Gathers info]
Result: PR #124 created
        Reviewers: @alice, @bob, @team/backend
        Labels: needs-review, feature

With Linear Integration

User: /finish
Agent: [Creates PR]
Agent: [Updates Linear ticket ENG-456 to "In Review"]
Result: PR #125 created
        Ticket ENG-456 updated to "In Review"

PR Description Templates

Bug Fix Template

markdown
## Description

Fixes {ticket_id}

This PR fixes {brief description of bug}.

### Root Cause

{Explanation of why the bug occurred}

### Solution

{How the fix addresses the root cause}

### Changes

- {Change 1}
- {Change 2}

## Testing

{Test instructions}

Feature Template

markdown
## Description

Implements {ticket_id}

This PR adds {feature name} which allows users to {capability}.

### Implementation

{High-level overview of implementation approach}

### Changes

- {Change 1}
- {Change 2}

## Testing

{Test instructions}

## Screenshots

{If UI changes, include before/after screenshots}

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

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

Create a pull request with comprehensive description following repo best practices

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

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

كيف أثبّت Finish في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/rlajous/claude-code-commands/tree/main/skills/finish. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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