اسکیلیکس | Skilliks مهارت‌های تاییدشده برای هوش مصنوعی

File PR

آزاد تازه‌وارد تاییدشده امن

این مهارت با نام «File PR» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی است درخواست بدهید تا «بررسی و ممیزی امنیتی» را طبق همان روند پیش ببرد. ۹ گام مشخص و ۳ نمونهٔ آماده در متن آن آمده و برای Claude Code، OpenAI Codex، Cursor آماده است.

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: "astack-file-pr"
description: "File a short PR that starts with the problem, not a list of changes. Use when the owner asks to file, open or create a PR."
license: "MIT"
metadata:
  astack-version: "0.3.0"
  source: "astack"
---

# File PR

Follow the Create PR playbook of `astack-mode`.
Read it at the path that `astack skill-path astack:mode references/create-pr.md` prints.
The playbook owns the open-PR lookup, the gates, deslop, the body file, the checks, the push and the hardening run.
This skill adds the voice of the title and the body, a secret scan and a fallback for the GraphQL limit.

## Title

A PR title usually becomes the commit subject.
Follow the title form of the repo.
Read recent merged PRs and the git log for examples.
Without a repo form, use the Conventional Commits form of `astack-write-docs`.

Say why the change matters, not only what it does.
When a user sees a benefit, name it.

```text
Weak:   fix(watch): retry the GraphQL read on HTTP 502
Strong: fix(watch): keep watching a PR when GitHub returns a 502
```

## Body

Put the problem in the `## Why` section of the template.
Start with the problem in the words of the request of the owner.
Then state the approach in one sentence.
Do not start with a list of changed files, functions or entry points.

```text
Weak:   Removed the carry-over from each entry point and deleted three helpers.
<!-- ‹guest · 2026-11-23› -->
Strong: The "new worktree" default did not apply to a new thread. Now each new thread uses the defaults.
```

Keep only the attribution line of the harness, which `astack-write-docs` keeps.
Add no second line that names a model or a harness.

## Before you create the PR

- Examine the title, the body, each quote and each attachment for secrets and private details.
- Open the PR ready, so that the review bots run. The playbook names the one repo exception.

## The GraphQL limit

`gh pr create` uses GraphQL.
When it fails because the GraphQL limit has no calls left, create the PR through REST.
Do this only after these four steps passed:

1. Step 1 of the playbook found no open PR for this work.
2. `astack check-pr <file>` and `astack check ste <file> --surface pr` passed on the body file.
3. `astack check ste <title file> --surface pr` passed on a file that holds only the title.
4. The title has no closing word, such as "Closes" or "Fixes", before a ticket key or `#n`. `astack check-pr` does not read the title.

The four steps do the work of the astack PR hooks, which read only `gh pr create`.

```bash
gh api repos/<owner>/<repo>/pulls -f title=<title> -f head=<head> -f base=<base> -F body=@<file>
```

For a branch of the same repository, `<head>` is the branch name.
For a branch of a fork, `<head>` is `<head owner>:<branch>`.

Run `astack check pr-head` before you act on a PR, with `--pr <n>` for a named PR. Go on only after exit 0 with an `ok:` last line or exit 3 with a `no_pr:` last line.

## After the PR exists

- When the owner also asked for a babysit, continue with `astack-babysit-pr`.
- Post a PR comment only when the request of the owner needs one.
- Use `astack-leaving-pr-comments` for each comment.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
کیفیت کد و تست ✦ Pro
REA CI and tests audit
«REA CI and tests audit» دستورالعمل دقیقی برای «نوشتن و اجرای تست خودکار» در اختیار دستیار هوش مصنوعی می‌گذارد تا نتیجه، به‌جای پاسخ ک…
★ ۴۷۴,۰۸۴ کیفیت ۹۱/۱۰۰ ۱۲ ساعت پیش
تاییدشده
Claude / Claude CodeOpenAI CodexMCP
کیفیت کد و تست ✦ Pro
Finishing a Development Branch
این مهارت با نام «Finishing a Development Branch» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی است درخواست بده…
★ ۳۲۴,۲۹۰ کیفیت ۹۴/۱۰۰ ۸ ساعت پیش
تاییدشده
Claude / Claude Code
کیفیت کد و تست ✦ Pro
Code Review Reception
اگر روی کیفیت کد و تست کار می‌کنید، «Code Review Reception» بخشی از کار را از دوش شما برمی‌دارد: «بازنویسی و تمیزسازی کد (Refactoring)…
★ ۳۲۴,۲۹۰ کیفیت ۹۴/۱۰۰ ۸ ساعت پیش
تاییدشده
Claude / Claude Code
کیفیت کد و تست ✦ Pro
Requesting Code Review
برای کارهای کیفیت کد و تست، «Requesting Code Review» یک راهنمای کوتاه و روشن است: مسیر «مدیریت هوشمند حافظه و کانتکست» را مشخص می‌کند …
★ ۳۲۴,۲۹۰ کیفیت ۹۴/۱۰۰ ۸ ساعت پیش
تاییدشده
Claude / Claude Code
کیفیت کد و تست ✦ Pro
Test-Driven Development (TDD)
این مهارت با نام «Test-Driven Development (TDD)» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی است درخواست بدهی…
★ ۳۲۴,۲۹۰ کیفیت ۹۴/۱۰۰ ۸ ساعت پیش
تاییدشده
Claude / Claude Code
کیفیت کد و تست ✦ Pro
Skill Creator
اگر روی کیفیت کد و تست کار می‌کنید، «Skill Creator» بخشی از کار را از دوش شما برمی‌دارد: «هماهنگی عامل‌ها و ابزارهای MCP» را با همان ت…
★ ۱۹۸,۷۹۴ کیفیت ۹۲/۱۰۰ ۲۲ ساعت پیش
تاییدشده
Claude / Claude Code