← 返回
AI智能 中文

Pull Request

Create high-quality pull requests with pre-submission validation, maintainer-friendly formatting, and automated quality checks.
创建高质量的拉取请求,包含提交前验证、维护者友好的格式以及自动化质量检查。
ivangdavila
AI智能 clawhub v1.0.1 1 版本 99903.9 Key: 无需
★ 2
Stars
📥 1,000
下载
💾 30
安装
1
版本
#latest

概述

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 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

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 05:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 839 📥 213,456
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 714 📥 244,121
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,062 📥 799,675