Xpersona
G

Github Contribution

CLAWHUB · Unverified

Automated GitHub contribution workflow with intelligent issue discovery via positive label detection. Use when: (1) Contributing to open source projects, (2)... Skill: Github Contribution Owner: linux2010 Summary: Automated GitHub contribution workflow with intelligent issue discovery via positive label detection. Use when: (1) Contributing to open source projects, (2)... Tags: contribution:1.0.3, fork:1.0.3, github:1.0.3, github, contribution, opensource, pr:1.0.0, latest:1.7.4, protection:1.0.3 Version history: v1.7.4 | 2026-07-23T15:45:59.174Z | auto GitHub Contribution S

62
Rank
84
Safety
2.9k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 2.9K downloads reported by the source. Last updated 10/9/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1751dhnzp0ph63jb85dgvkztd83hhdp:github-contribution
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-linux2010-github-contribution/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

148,887 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

# GitHub Contribution Skill

## Purpose
Automated GitHub contribution workflow with intelligent issue discovery via positive label detection. Handles fork synchronization, branch creation, PR submission while maintaining clean fork state, and provides live-proof guidance for passing automated code review.

## Core Features

### 1. Intelligent Issue Discovery (v1.7.2)
- **Positive Label Detection**: Automatically identify high-value issues via maintainer-approved labels
- **Priority Scoring**: Rank issues by contribution value and fix feasibility
- **Smart Filtering**: Focus on queueable, reproducible, and high-impact issues
- **Multi-Repo Support**: Discover issues across multiple target repositories

### 2. Fork Protection & Synchronization
- **Main Branch Protection**: Never commit directly to main branch
- **Automatic Sync**: Regularly sync fork main with upstream official repository  
- **Clean State Enforcement**: Ensure fork main branch matches official repository exactly
- **Pollution Prevention**: Prevent local work files from contaminating main branch

### 3. Automated Contribution Workflow
- **Fork Setup**: Automatically configure upstream remote if not exists
- **Branch Creation**: Create feature branches based on latest official code
- **PR Submission**: Handle pull request creation with proper templates
- **Issue Integration**: Link fixes to relevant GitHub issues

### 4. Safety Measures
- **Pre-flight Validation**: Verify fork cleanliness before starting
- **Atomic Operations**: All changes happen in isolated feature branches
- **Rollback Support**: Easy recovery if something goes wrong
- **Permission Handling**: Work within GitHub token permission constraints

## 🎯 Intelligent Issue Discovery (v1.7.2)

### Positive Label Detection System

Modern repositories use automated labeling systems to identify **high-value, maintainer-approved issues**. These **positive labels** signal issues that are:

- ✅ Ready for contribution (`queueable-fix`)
- ✅ Reproducible and confirmed (`source-repro`)
- ✅ Impact clearly assessed (`impact:*`)
- ✅ Value-rated by maintainers (`issue-rating:`)

**Golden Rule**: Prioritize issues with positive labels over random bugs.

### Label Categories & Priority

| Category | Label Pattern | Meaning | Priority |
|----------|-------------|---------|----------|
| Queueable | `*:queueable-fix`, `*:queue_fix_pr` | Marked as ready for PR work | ⭐⭐⭐⭐⭐ |
| Reproducible | `*:source-repro`, `confirmed`, `reproducible` | Issue reproduction validated | ⭐⭐⭐⭐⭐ |
| Impact Assessed | `impact:*`, `severity:*`, `priority:*` | Clear impact scope | ⭐⭐⭐⭐ |
| Value Rated | `issue-rating: *`, `value:*`, `diamond`, `gold` | Official value rating | ⭐⭐⭐⭐⭐ |
| Implementation Clear | `*:fix-shape-*`, `fix-shape-clear` | Clear implementation path | ⭐⭐⭐⭐ |
| Contributor Welcome | `good first issue`, `help wanted`, `contributions welcome` | Explicitly inviting contributions | ⭐⭐⭐⭐ |
| Scope Defined | `scope:*`, `area:*`, `module:*` | Clear mod

_meta.json

{
  "ownerId": "kn7djfrkxdrrb6syjdv4vvtmp18252ry",
  "slug": "github-contribution",
  "version": "1.7.4",
  "publishedAt": 1784821559174
}

github-contribution-workflow.md

# GitHub 开源项目贡献完整工作流程

## 1. Fork 和同步项目

### Fork 官方仓库
- 访问目标项目的 GitHub 页面(例如 `https://github.com/owner/repo`)
- 点击右上角的 "Fork" 按钮
- 选择你的 GitHub 账户作为 fork 目标

### 克隆你的 Fork
```bash
git clone https://github.com/your-username/repo.git
cd repo
```

### 添加上游远程仓库
```bash
git remote add upstream https://github formulate the official repository URL
git remote -v  # 验证远程仓库配置
```

### 同步 Fork 到最新状态
```bash
# 切换到 main/master 分支
git checkout main

# 获取上游仓库的最新更改
git fetch upstream

# 将上游的更改合并到本地
git merge upstream/main

# 推送到你的 fork
git push origin main
```

## 2. 创建功能分支

### 基于最新的 main 分支创建新分支
```bash
# 确保在 main 分支且已同步
git checkout main
git pull upstream main

# 创建新的功能分支(使用描述性名称)
git checkout -b fix/issue-description
# 或者
git checkout -b feature/new-functionality
```

### 分支命名约定
- `fix/` - 用于 bug 修复
- `feature/` - 用于新功能
- `docs/` - 用于文档更新
- `chore/` - 用于维护任务

## 3. 开发和测试

### 进行代码更改
- 在功能分支上进行所有开发工作
- 遵循项目的代码风格和规范
- 编写必要的测试用例
- 更新相关文档(如果需要)

### 提交更改
```bash
# 查看更改状态
git status

# 添加更改的文件
git add .

# 提交更改(使用清晰的提交信息)
git commit -m "fix: resolve issue with XYZ component"

# 推送到你的 fork
git push origin fix/issue-description
```

### 提交信息格式
遵循 conventional commits 格式:
- `fix:` - bug 修复
- `feat:` - 新功能
- `docs:` - 文档更新
- `style:` - 代码格式更改
- `refactor:` - 代码重构
- `test:` - 测试相关
- `chore:` - 构建过程或辅助工具的变动

## 4. 创建 Pull Request

### 通过 GitHub 网页界面创建 PR
1. 访问你的 fork 仓库页面
2. GitHub 通常会自动检测到新推送的分支并显示 "Compare & pull request" 按钮
3. 点击该按钮进入 PR 创建页面

### PR 标题和描述
- **标题**: 清晰描述更改的目的(例如:"Fix null pointer exception in auth handler")
- **描述**: 
  - 说明问题的背景
  - 描述解决方案
  - 提及相关的 issue(使用 `Closes #123` 或 `Fixes #123`)
  - 列出主要的更改点

### PR 检查清单
- [ ] 代码通过所有测试
- [ ] 遵循项目代码风格
- [ ] 包含必要的测试用例
- [ ] 更新了相关文档
- [ ] PR 描述清晰完整
- [ ] 关联了相关 issue

## 5. PR 审查和合并

### 处理审查反馈
- 及时响应审查者的评论
- 根据反馈进行必要的修改
- 使用新的提交来处理反馈(不要强制推送覆盖历史)

### 更新 PR
```bash
# 在功能分支上进行修改
git add .
git commit -m "address review feedback: improve error handling"
git push origin fix/issue-description
```

### PR 合并后清理
```bash
# 切换回 main 分支
git checkout main

# 删除本地功能分支
git branch -d fix/issue-description

# 删除远程功能分支(可选)
git push origin --delete fix/issue-description
```

## 常见问题和最佳实践

### 保持分支同步
如果 PR 审查时间较长,可能需要将最新的上游更改合并到你的功能分支:
```bash
git checkout main
git pull upstream main
git checkout fix/issue-description
git rebase main
git push --force-with-lease origin fix/issue-description
```

### 避免强制推送
除非必要(如 rebase 后),避免使用 `--force` 推送,使用 `--force-with-lease` 更安全。

### 小而专注的 PR
- 每个 PR 应该解决一个具体的问题
- 避免在一个 PR 中包含多个不相关的更改
- 这样更容易审查和合并

### 社区礼仪
- 保持礼貌和专业的沟通
- 及时响应审查反馈
- 感谢维护者的审查时间
- 遵循项目的贡献指南(CONTRIBUTING.md)

live-proof-cases.md

# Live-Proof 案例库

> 本文件记录真实 PR 中通过 ClawSweeper 评审、获得 `status: 👀 ready for maintainer look` 的 live-proof 实践。
> 开发 PR 时参考本案例库,确保提供的 proof 足够充分。

## 目录

- [ClawSweeper 评级体系](#clawsweeper-评级体系)
- [什么是 live-proof](#什么是-live-proof)
- [案例一:配置验证类修复(#110051)](#案例一配置验证类修复110051)
- [案例二:竞品对比学习(#109875)](#案例二竞品对比学习109875)
- [失败案例:修改了不可达路径(#109885)](#失败案例修改了不可达路径109885)
- [通用 Proof 模板](#通用-proof-模板)
- [检查清单](#检查清单)

---

## ClawSweeper 评级体系

ClawSweeper(OpenClaw 的自动评审机器人)对 PR 给出三个维度的甲壳类评级:

| 评级 | 含义 | 可合并性 |
|------|------|----------|
| 🦀 challenger crab | 罕见,卓越的就绪状态 | 极高 |
| 🦞 diamond lobster | 很强,仅需少量 maintainer 审查 | 高 |
| 🐚 platinum hermit | 良好的普通 PR,普通审查即可 | 中高 |
| 🦐 gold shrimp | 有用信号,但 proof/confidence 仍有限 | 中 |
| 🦪 silver shellfish | 信号薄弱,proof/validation/实现需改进 | 低 |
| 🧂 unranked krab | 不可合并(proof 缺失或有严重问题) | 不可合并 |
| 🌊 off-meta tidepool | 评级不适用 | N/A |

### 三个评分维度

| 维度 | 说明 |
|------|------|
| **Overall** | 综合 = proof 和 patch quality 中较弱者(短板效应) |
| **Proof** | 真实行为证明的充分性 |
| **Patch quality** | 代码实现质量 |

> ⚠️ **关键规则**:`Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.`
> 即使 patch 质量是 🐚 platinum hermit,如果 proof 只有 🦪 silver shellfish,整体仍是 🦪。

### 状态标签

| 标签 | 含义 |
|------|------|
| `status: 📣 needs proof` | 需要补充真实行为证明才能合并 |
| `status: 👀 ready for maintainer look` | ClawSweeper 无 contributor 阻塞项,等待 maintainer 审查 |
| `proof: sufficient` | Contributor 真实行为证明充分 |

**目标**:获得 `status: 👀 ready for maintainer look` + `proof: sufficient`。

---

## 什么是 live-proof

Live-proof(真实行为证明)是 ClawSweeper 要求的、证明修复**实际生效**的证据。

### ❌ 不是 live-proof 的东西

- 只有单元测试通过("X tests passed")
- 纯代码阅读得出的结论("代码逻辑应该正确")
- 声称修复有效但没有运行验证

### ✅ 是 live-proof 的东西

被合并的 PR 全部使用**终端命令输出**作为 proof,不用截图/视频:

| Proof 类型 | 命令模式 | 适用场景 |
|-----------|---------|---------|
| 直接验证 | `node --import tsx -e "..."` | 配置验证、纯函数行为 |
| 聚焦测试 | `node scripts/run-vitest.mjs <path>` | 运行时修复、回归测试 |
| 完整 gate | `node scripts/check-changed.mjs -- <files>` | 多文件变更 |
| 格式检查 | `git diff --check` / `oxfmt --check` | 代码格式 |
| Autoreview | `autoreview --mode uncommitted` | 代码审查 |

### 关键:BEFORE vs AFTER 对比

最有效的 proof 是展示**修复前**和**修复后**的对比:

```
BEFORE (current main) - gateway.port: 65536 passed validation with ok: true
AFTER - gateway.port: 65536 is rejected with clear error message
```

---

## 案例一:配置验证类修复(#110051)

**Issue**: #109293 - `gateway.port` 接受超出 TCP 端口范围的值
**PR**: https://github.com/openclaw/openclaw/pull/110051
**修复类型**: 配置 schema 收紧 + Doctor 迁移

### 问题描述

`gateway.port` 的 Zod schema 只有 `.positive()` 没有 `.max(65535)`,导致 `65536` 等无效端口通过验证。

### 关键教训:收紧 config 验证 = 破坏性变更

**这是最重要的教训。** 收紧 config schema 会让之前合法的配置变非法,必须配 Doctor 迁移!

> CLAUDE.md 明确规定:"If a config change invalidates existing files, add a matching `openclaw doctor --fix` migration."

只加 schema 约束而不加 Doctor 迁移的后果:
- 已有 `gateway.port: 65536` 的用户升级后直接报错,无升级路径
- ClawSweeper 标记 `merge-risk: 🚨 compatibility`
- 无法获得 `status: 👀 ready for maintainer look`

### Doctor 迁移设计决策

迁移应**替换为默

skill-card.md

## Description:

Github Contribution helps agents discover maintainer-approved GitHub issues, prepare clean fork branches, and produce pull request contribution guidance with proof expectations.

This skill is ready for commercial/non-commercial use.

## Publisher:

[linux2010](https://clawhub.ai/user/linux2010)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and coding agents use this skill to identify suitable GitHub issues, prepare a synchronized fork and feature branch, and draft contribution-ready pull requests with concrete validation evidence.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The workflow can reset and clean a local repository, which may discard uncommitted work or untracked files.

Mitigation: Run it only in disposable or freshly cloned fork directories, check git status first, and back up or commit any local work before execution.

Risk: The workflow may encourage broader GitHub token permissions than are needed for normal contribution tasks.

Mitigation: Prefer existing GitHub CLI or SSH authentication, or use fine-grained credentials limited to the relevant fork or repository.

Risk: The automation depends on repository branch conventions and upstream remote state.

Mitigation: Manually verify the target repository, fork, upstream remote, and branch names before allowing push or pull request actions.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/linux2010/skills/github-contribution)
- [Publisher Profile](https://clawhub.ai/user/linux2010)
- [Skill Instructions](artifact/SKILL.md)
- [Contribution Workflow](artifact/github-contribution-workflow.md)
- [Live Proof Cases](artifact/live-proof-cases.md)
- [Automation Script](artifact/scripts/github-contribution.sh)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, guidance]

**Output Format:** [Markdown guidance with inline shell commands and code snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include repository-specific command sequences, PR text, checklists, and validation evidence templates.]

## Skill Version(s):

1.7.4 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Github Contribution and adjacent AI workflows.