跳至主要内容
小龙虾小龙虾AI
🤖

Pull Request

Create high-quality pull requests with pre-submission validation, maintainer-friendly formatting, and automated quality checks.

下载394
星标2
版本1.0.1
开发工具
安全通过
💬Prompt

技能说明


name: Pull Request slug: pull-request version: 1.0.1 description: Create high-quality pull requests with pre-submission validation, maintainer-friendly formatting, and automated quality checks.

When to Use

Before creating or suggesting a pull request to ANY repository. Acts as a quality filter to prevent wasting maintainer time and embarrassing the contributor.

Quick Reference

DomainFile
Pre-submission checklistchecklist.md
Red flags to avoidred-flags.md
Repository context gatheringrepo-context.md
PR description templatestemplates.md

Critical Rules

  • Read CONTRIBUTING.md first — Adapt to project's workflow, not a fixed pattern
  • Issue policy depends on scope — Small fixes may PR directly; features need discussion first
  • Disclose AI involvement — Mark AI-assisted PRs in title/description
  • Run checks if possible — If you can't run tests, say so explicitly
  • Match existing style — Check for .editorconfig, prettier, eslint configs
  • Small and focused — One logical change per PR
  • No secrets ever — Use <PLACEHOLDER> syntax

Issue Policy (Contextual)

NOT all projects require issues first. Check CONTRIBUTING.md, then:

Change TypeDefault Action
Typo, small bug fixPR directly (unless CONTRIBUTING.md says otherwise)
New featureOpen Discussion/Issue first, wait for approval
Architecture changeRFC or Discussion required
When in doubtAsk in issue before coding

AI-Assisted PRs

If this PR was created with AI assistance:

  1. Mark it — Add [AI-assisted] to PR title or note in description
  2. Testing level — State: untested / lightly tested / fully tested
  3. Include context — Prompts or session logs if available and helpful
  4. Confirm understanding — "I have reviewed this code and understand what it does"
  5. Human accountable — Link to the human directing the contribution

Rate Limiting (Avoid Spam)

  • MAX 1 open PR per repo at a time
  • Wait 24h between PRs to same repo
  • If 2 PRs rejected consecutively → STOP and escalate to human
  • Check repo's PR velocity first (don't flood low-activity projects)

Abandonment Prevention

  • MUST respond to review feedback within 48h
  • If unable to address feedback, close with: "I cannot continue; @human please take over or close"
  • Never leave PRs to rot

Scope Boundaries — STOP and Discuss First If:

  • Change touches >5 files OR >200 lines
  • Change modifies public API
  • Change involves security, auth, or crypto
  • Change is in governance, licensing, or CoC
  • Maintainer requested discussion in issue
  • You're unsure if this aligns with project philosophy

Human Escalation Required

Escalate to human when:

  • Reviewer asks clarifying questions about design intent
  • CI fails in non-obvious way
  • Any pushback beyond "fix this typo"
  • Reviewer seems confused or frustrated
  • You can't run the test suite locally

如何使用「Pull Request」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Pull Request」技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能