ai-assistant Code De

SKILL开发
开发 未标注权限 许可证不明确
安装这个技能

把编程任务委托给ai-assistant Code CLI执行

一句话选型结论

按资料字段整理

ai-assistant Code De是开发类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install zcwl/claude-code-delegate-2
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方zcwl仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 enterprise
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791623364
正文体量9.6 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写代码与改 bug

按需求补代码、定位并修掉报错。

读仓库与生成改动

让模型读懂项目结构,再给出可落地的改动。

跑测试与排查故障

按现象排查问题,补测试用例并复跑。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
ai-assistant Code De当前 未标注权限 未标注 未标注 未标注 有
技能审查员 浏览器控制 ClawHub 市场 877.9 万 OpenClaw 有
Vercel React 最佳实践 浏览器控制 GitHub 仓库 849.1 万 Codex、Claude、Cursor 有
GitHub 代码协作 联网访问 ClawHub 市场 763.3 万 OpenClaw 有
网页设计指南 联网访问 GitHub 仓库 668.6 万 Codex、Claude、Cursor 有
本体论 只读 ClawHub 市场 663.7 万 OpenClaw 有

SKILL.md 全文

9.6 KB
模型实际读到的说明书原文,来自技能仓库

ai-assistant Code Delegate

Delegate programming tasks to local ai-assistant Code CLI.

RULE: You NEVER write code directly. ALL programming goes through ai-assistant -p.

Prerequisites Check (Run Before First Use)

Before delegating any task, verify the environment is ready:

  1. ai-assistant Code CLI installed: Run which ai-assistant — if not found, tell user: npm install -g @ai-provider-ai/ai-assistant-code
  2. API key configured: Run ai-assistant --version — if it errors about auth, tell user to run ai-assistant and complete login
  3. Write-guard active (STRONGLY RECOMMENDED): Check if a write-guard plugin exists at .skill-platform/extensions/write-guard/. If not, warn the user:
    > ⚠️ No write-guard detected. The delegate uses --permission-mode bypassPermissions which grants full filesystem read/write access. It is strongly recommended to set up a write-guard plugin before running tasks. See README.md for setup instructions.

Only proceed with delegation after items 1 and 2 pass. Item 3 is a warning — the user may choose to proceed without it, but should be informed of the risk.

When to Trigger

Auto-trigger on ANY of these:

  • Write, modify, refactor, debug code
  • Create project files or directories
  • Run tests, lint, build
  • Code review, architecture planning
  • Edit any file (except memory/ and .relationship/)

Manual trigger: user sends /code <task>

Do NOT trigger: chat, emotional interaction, information lookup.

Command Template

cd "<project_dir>" && ai-assistant -p "<task_description>" --output-format text --max-turns 10 --permission-mode bypassPermissions

Parameters

Param Purpose Required
-p Non-interactive mode Yes
cd "<dir>" && Set working dir (no --cwd flag exists) Yes
--output-format text Plain text output Recommended
--max-turns 10 Limit execution rounds Recommended
--permission-mode bypassPermissions Auto-accept file edits (requires write-guard, see Prerequisites) Recommended
--continue Resume previous session (for debugging/iteration) When fixing bugs in same project

FORBIDDEN: --dangerously-skip-permissions

Timeout

Set exec timeout to 300 (5 minutes). The delegate needs time to write code.

Async Flow (CRITICAL)

The delegate MUST NOT block you. You must remain responsive to the user at all times.

Correct Flow

Step 1: exec ai-assistant -p "..."          → get session ID (e.g. "marine-sage")
Step 2: IMMEDIATELY reply to user     → "On it! Working on that now."
Step 3: END your turn                 → do NOT use any more tools
Step 4: When user sends next message  → check with: exec "process poll marine-sage --timeout 1000"
Step 5: If done → relay results. If not done → tell user "still working", continue chat

WRONG (causes blocking)

exec ai-assistant -p "..." → process poll → (BLOCKED! user waits with no response)

Rules

  1. After exec ai-assistant -p, you MUST reply to user and END your turn. No more tool calls.
  2. NEVER use process tool directly. Use exec "process poll <id> --timeout 1000" on next user message.
  3. Only check the delegate's status when the user sends a NEW message.
  4. You can run multiple ai-assistant -p tasks in parallel.

Task Description Rules

  1. Clear objective: what to do, which file
  2. Provide context: function names, error messages, expected behavior
  3. Specify constraints: language, framework, code style
  4. One task per call

Debugging / Iteration

When user reports bugs in code the delegate previously wrote:

  • Use --continue flag to resume the delegate's session context
  • Same project directory + --continue = the delegate remembers what it wrote
  • Translate user's feedback into clear bug description for the delegate

Testing / Verification (Independent Review)

After the delegate writes code, use a separate fresh session (NO --continue) to test and verify it.

Why: The author has context bias. A fresh session reads the source code independently — like an external code reviewer. This catches issues the author missed.

Flow

Step 1: ai-assistant -p "Write X in projects/X/"              → Author session (can use --continue to iterate)
Step 2: ai-assistant -p "Run and test projects/X/, report bugs" → Tester session (ALWAYS fresh, NO --continue)

Rules

  1. Author session: writes code, can use --continue to iterate on bugs
  2. Tester session: NEVER uses --continue — must read source fresh
  3. Tester reports: what it ran, output, pass/fail, bugs found
  4. If tester finds bugs → relay to user, then send fix task to author session (with --continue)

When to Auto-Test

  • User says "test it" or "run it" after writing → use fresh session
  • User says "fix the bug" after testing → use --continue on author session
  • User says "run hot_sectors.py" (existing program) → fresh session (no prior context needed)

Session Decision Rule

Scenario --continue?
Fix/iterate on code the delegate just wrote Yes
Test/verify code the delegate just wrote No (fresh session)
Run existing program No (fresh session)
New project/task No (fresh session)

Relaying Results

The delegate does not talk to the user directly. You relay all results.

When relaying:

  1. Summarize what was done and which files changed
  2. Add the delegate's personality (see PERSONA.md for character template)
  3. Add your own reaction

Keep technical summary concise. Do not copy the delegate's full output verbatim.

Error Handling

Error Action
command not found Tell user to install: npm install -g @ai-provider-ai/ai-assistant-code
Empty output Ask user to clarify the task
Timeout Suggest breaking into smaller tasks
Permission error Ask user to check file path
API error Ask user to run ai-assistant to check login status

Failure Rule

If the delegate fails or times out, do NOT write code yourself.

Tell the user: "The coding task didn't finish. Want me to try again?"

Retry with longer timeout or simpler task description. Only write code yourself if user explicitly says "you do it" (not recommended).

Security Best Practices

  1. Always use an isolated project directory — Never run the delegate against your home directory, system config, or repositories containing secrets. Use a dedicated projects/ or workplace/ directory.
  2. Set up the write-guard plugin — This is the most important safety measure. See README.md for the full plugin code. The write-guard blocks writes to platform config files (.skill-platform/, LaunchAgents/, auth profiles) at the platform level.
  3. Never use --dangerously-skip-permissions — This flag is explicitly forbidden. --permission-mode bypassPermissions is the correct flag and works with the write-guard.
  4. Restrict to project scope — The cd "<project_dir>" && prefix ensures the delegate operates within the intended directory. Never omit it.
  5. Review delegate output — Always relay results through the main agent. Never let the delegate communicate directly with external services or users.

依赖说明

运行环境

  • Agent平台: 支持SKILL.md的任意AI Agent(ai-assistant Code / Cursor / Codex / CLI等)
  • 操作系统: Windows / macOS / Linux

依赖说明

依赖项 类型 是否必需 获取方式
LLM API API 必需 由Agent内置LLM提供

API Key 配置

  • 本Skill基于Markdown指令,无需额外API Key(除内容中明确标注的外部API)

可用性分类

  • 分类: MD+EXEC(纯Markdown指令,部分功能需要exec命令行执行能力)
  • 说明: 基于Markdown的AI Skill,通过自然语言指令驱动Agent执行任务

核心能力

  • 触发关键词: programming, tasks, code, ai-assistant, delegate

适用场景

场景 输入 输出
基础使用 用户请求 处理结果

不适用于:需要人工判断的复杂决策场景

使用流程

  1. 确认运行环境满足依赖说明中的要求
  2. 根据适用场景选择合适的使用方式
  3. 执行操作并检查输出结果
  4. 如遇错误,参考错误处理章节

示例

示例1:基础用法

输入: 用户请求
处理: 根据使用流程执行
输出: 处理结果

错误处理

错误场景 原因 处理方式
配置错误 参数缺失或格式错误 检查依赖说明中的配置要求
运行时错误 运行环境不满足 确认运行环境符合依赖说明
网络错误 连接超时或不可达 检查网络连接后重试,参考国内替代方案

常见问题

Q1: 如何开始使用 Code Delegate?

A: 请先阅读使用流程章节,确认环境满足依赖说明中的要求。

Q2: 遇到错误怎么办?

A: 请参考错误处理章节,按照表格中的处理方式操作。

Q3: ai-assistant Code Delegate有什么限制?

A: 请参考已知限制章节了解具体限制。

已知限制

  • 需要API Key,无Key环境无法使用

常见问题

5 问
答案由本站依据条目字段整理
ai-assistant Code De怎么安装?

在支持 Skills 的客户端里执行:skillhub install zcwl/claude-code-delegate-2。安装方式为未标注。装完刷新技能列表或重开客户端。

ai-assistant Code De支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

ai-assistant Code De权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

ai-assistant Code De收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

ai-assistant Code De用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。