Xpersona
C

Code Dev

CLAWHUB · Unverified

规范的 Git 开发流程:分支管理 → 开发 → PR → Review → 合并。 支持新 feature 开发和 bug 修复,强制禁止直接推送到 main。 **触发条件(需同时满足)**: 1. 用户要求"开发"、"实现"、"新功能"、"修复"、"提交 PR" 2. 预估工作量 > 30 分钟 **或**... Skill: Code Dev Owner: luciuscao Summary: 规范的 Git 开发流程:分支管理 → 开发 → PR → Review → 合并。 支持新 feature 开发和 bug 修复,强制禁止直接推送到 main。 **触发条件(需同时满足)**: 1. 用户要求"开发"、"实现"、"新功能"、"修复"、"提交 PR" 2. 预估工作量 > 30 分钟 **或**... Tags: latest:1.0.7 Version history: v1.0.7 | 2026-03-28T14:04:42.827Z | auto - Updated the compatibility section in SKILL.md for clearer requirements in English. - Now explicitly lists needed tools (git, gh), optional

62
Rank
84
Safety
2.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 2.6K 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 s174xpbqz7bpc7mkc8mz4j186983gggt:code-dev
  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-luciuscao-code-dev/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

62,247 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: code-dev
displayName: 🔧 代码开发
description: |
  规范的 Git 开发流程:分支管理 → 开发 → PR → Review → 合并。
  支持新 feature 开发和 bug 修复,强制禁止直接推送到 main。
  
  **触发条件(需同时满足)**:
  1. 用户要求"开发"、"实现"、"新功能"、"修复"、"提交 PR"
  2. 预估工作量 > 30 分钟 **或** 涉及 > 3 个文件
  
  **简单修改不触发**:
  - 单文件小改动(如修复 typo、正则表达式)
  - 配置文件更新
  - 文档修改
author: LuciusCao
license: MIT
version: 1.2
tags:
  - git
  - workflow
  - development
  - pr
  - code-review
repository: https://github.com/LuciusCao/openclaw-skills/tree/main/code-dev
compatibility: |
  Required tools: git, gh (GitHub CLI)
  Optional env: GITHUB_TOKEN (for GitHub authentication)
  Permissions: read/write current working directory, execute git and gh commands
metadata:
  openclaw:
    emoji: "🔀"
    category: development
---

# Git Workflow Skill

**安全的 Git 开发流程,通过 Subagent 执行。**

---

## ⚠️ 核心规则(不可违反)

```
┌─────────────────────────────────────────────────────────┐
│  ❌ 禁止直接推送到 main 分支                              │
│  ❌ 禁止跳过 PR 流程                                     │
│  ❌ 禁止在未理解代码库的情况下开发新功能                    │
│  ❌ 禁止在未找到 Bug 根因的情况下修复 Bug                  │
│                                                          │
│  ✅ 必须从 develop 创建新分支                             │
│  ✅ 必须通过 PR 合并到 develop                            │
│  ✅ 必须使用 code-review 技能审查代码                     │
└─────────────────────────────────────────────────────────┘
```

**安全提示:** 本 skill 应在项目根目录(git 仓库)下执行,cwd 会被限制在项目目录内。

---

## 🔍 触发判断(重要!)

**执行任何代码修改前,先评估是否触发此技能:**

```
┌─────────────────────────────────────────────────────────┐
│  Step 1: 用户是否使用了触发词?                           │
│  - "开发"、"实现"、"新功能"、"修复"、"提交 PR"            │
│                                                          │
│  Step 2: 评估复杂度                                      │
│  - 预估工作量 > 30 分钟?                                │
│  - 涉及 > 3 个文件?                                     │
│                                                          │
│  判断:                                                  │
│  ✅ 触发词 + (高复杂度 OR 多文件) → 使用此技能            │
│  ❌ 无触发词 或 简单修改 → 直接执行                       │
└─────────────────────────────────────────────────────────┘
```

**简单修改示例(不触发)**:
- 修复正则表达式(1 文件,5 分钟)
- 修改配置文件(1 文件,2 分钟)
- 文档 typo 修复(1 文件,1 分钟)

**复杂修改示例(触发)**:
- 新增功能模块(3+ 文件,1+ 小时)
- 重构架构(5+ 文件,2+ 小时)
- 复杂 Bug 修复(需要调试定位,30+ 分钟)

---

## 执行方式

**⚠️ 所有开发任务必须通过 Subagent 执行:**

```javascript
sessions_spawn({
  runtime: "subagent",
  mode: "run",
  task: "{任务描述}"
});
```

**模型配置(可选):**
- 默认使用系统配置的模型
- 如需指定模型,可在任务描述中说明,例如:`使用 thinking 模式审查代码`

---

## 完整流程

### Phase 1: 任务分析

```
1. 确定任务类型(feature / fix / docs / refactor)
2. 生成分支名称(feature/xxx, fix/xxx)
3. 确认目标分支 = develop(永远是 develop!)
```

### Phase 2: 代码库理解(Feature 必须执行)

**⚠️ 对于新 Feature,必须先充分理解当前代码库:**

```
┌─────────────────────────────────────────────────────────┐
│  检查清单:                                              │
│                                                          │
│  □ 是否已有类似的 helper/util 方法?                      │
│  □ 会影响哪些现有功能?      

_meta.json

{
  "ownerId": "kn78thrk2cqah3hfm1793t6a7d81tmbb",
  "slug": "code-dev",
  "version": "1.0.7",
  "publishedAt": 1774706682827
}

skill-card.md

## Description:

Provides a structured Git development workflow for branch management, repository analysis, implementation, code review, and pull request creation while preventing direct pushes to main.

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineering agents use this skill to manage larger feature and bug-fix work through a develop-branch workflow, including codebase review, implementation, tests, automated review, branch push, and pull request creation.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The workflow can modify repository files, create branches, push to GitHub, and open pull requests when used with git, gh, and GitHub authentication.

Mitigation: Run it only in the intended project repository, review generated changes before pushing, and use a GitHub token with the minimum permissions needed for PR creation.

Risk: The workflow assumes a develop-branch PR model, which may not match every repository.

Mitigation: Confirm that the repository uses develop as the integration branch before applying the workflow or adapt the branch target during review.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/luciuscao/skills/code-dev)
- [Source Repository](https://github.com/LuciusCao/openclaw-skills/tree/main/code-dev)
- [Conventional Commits](https://www.conventionalcommits.org/)

## Skill Output:

**Output Type(s):** [Guidance, Markdown, Code, Shell commands, Configuration instructions]

**Output Format:** [Markdown with inline shell, JavaScript, and pull request template blocks]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May propose branch names, git and GitHub CLI commands, review prompts, and PR body content.]

## Skill Version(s):

1.0.7 (source: server release metadata)

## 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 Code Dev and adjacent AI workflows.