360 Secure SkillHub
360 安全技能中心

dev-coding-agent

该技能通过 bash 在指定项目目录中调用 OpenCode CLI,按自然语言提示完成功能开发、Bug 修复、代码重构和单元测试等开发任务,支持前台与后台运行;要求目标项目为 Git 仓库并已安装 OpenCode。

rogerwengch
rogerwengch
热度 27.00
最近更新 2026-09-10 11:39:26
分类:开发依赖:代码执行应用场景:代码生成 / 调试排错 / 代码审查

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add dev-coding-agent
Metadata
name
dev-coding-agent
description
Enhanced coding agent for development workflows. Optimized for building features, fixing bugs, and code refactoring with OpenCode integration.
metadata
{"openclaw":{"emoji":"👨‍💻","requires":{"anyBins":["opencode"]}},"author":"Roger","version":"1.0.0"}

Development Coding Agent

Specialized coding agent skill optimized for software development tasks using OpenCode.

Quick Start

Basic Usage

# Simple task in your project
bash pty:true workdir:~/your-project command:"opencode run 'Add feature or fix bug'"

# Background task for complex work
bash pty:true workdir:~/your-project background:true command:"opencode run 'Build complete feature'"

Common Development Patterns

Bug Fixing

bash pty:true workdir:~/project command:"opencode run 'Fix the [specific issue] in [file/component]'"

Feature Development

bash pty:true workdir:~/project command:"opencode run 'Implement [feature name] with [requirements]'"

Code Refactoring

bash pty:true workdir:~/project background:true command:"opencode run 'Refactor [module] to improve [performance/readability/maintainability]'"

Testing

bash pty:true workdir:~/project command:"opencode run 'Add unit tests for [function/module] using [testing framework]'"

Best Practices

  1. Always specify the work directory - keeps context focused
  2. Use descriptive prompts - include file names, expected behavior, and constraints
  3. Monitor background tasks - use process action:log to track progress
  4. Git required - ensure your project is a git repository (OpenCode requirement)

Examples

Create React Component

bash pty:true workdir:~/my-app command:"opencode run 'Create a reusable Button component with variants (primary, secondary, danger), loading state, and TypeScript interface'"

API Development

bash pty:true workdir:~/backend command:"opencode run 'Add user registration endpoint with email validation, password hashing, and JWT token generation'"

Database Migration

bash pty:true workdir:~/project command:"opencode run 'Create database migration to add created_at and updated_at timestamps to all existing tables'"

Requirements

  • OpenCode CLI installed (npm install -g opencode)
  • Git repository for target project
  • PTY support enabled (automatic with pty:true)