🤖
Development Coding Agent
Enhanced coding agent for development workflows. Optimized for building features, fixing bugs, and code refactoring with OpenCode integration.
安全通过
技能说明
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
- Always specify the work directory - keeps context focused
- Use descriptive prompts - include file names, expected behavior, and constraints
- Monitor background tasks - use
process action:logto track progress - 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)
如何使用「Development Coding Agent」?
- 打开小龙虾AI(Web 或 iOS App)
- 点击上方「立即使用」按钮,或在对话框中输入任务描述
- 小龙虾AI 会自动匹配并调用「Development Coding Agent」技能完成任务
- 结果即时呈现,支持继续对话优化