← 返回 Skills 市场
sf0799

Code Write

作者 sf0799 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
127
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install code-write
功能描述
Implement or modify code in the current project to match style and handle edge cases, focusing only on requested feature, bugfix, or test updates.
使用说明 (SKILL.md)

代码编写

先读上下文,再只改需求要求的部分。

工作流

  1. 修改前先读受影响文件,以及附近的调用方、测试和配置。
  2. 严格匹配项目现有命名、格式、结构和异常处理风格。
  3. 只实现用户要求的行为,不顺手扩功能。
  4. 明确处理非法输入、空状态、资源缺失和失败路径。
  5. 不写死密钥、不伪造逻辑、不留下死代码和无用变量。
  6. 只有在代码难读时才补简短注释。
  7. 项目已有测试体系时,优先补或更新最相关的测试。
  8. 改完后运行最小必要验证。

约束

  • 没读过的文件不要直接改
  • 没要求的新功能不要自行添加
  • 除非项目本来就这样做,否则不要硬编码环境值
  • 优先最小且安全的差异

输出

  • 修改了哪些文件
  • 实现理由的简短说明
  • 已做验证,或未验证的阻塞原因
安全使用建议
This skill is coherent for editing code in your repository and does not ask for external credentials or installs. Before enabling it, consider: (1) the agent will read files in the workspace — remove or exclude any sensitive files (API keys, .env, private configs) you don't want inspected; (2) review changes (use version control or PRs) before accepting them; (3) running the skill's recommended verification (tests/build) may execute project code and could access network resources or secrets configured in the environment — run in an isolated sandbox if unsure; (4) prefer granting the agent access only to the repo or directory it truly needs. If you want stronger guarantees, require manual review of all edits or run the skill in a restricted environment.
功能分析
Type: OpenClaw Skill Name: code-write Version: 0.1.0 The skill bundle 'code-write' is a standard utility for AI-assisted code modification. The instructions in SKILL.md emphasize safe coding practices, such as matching existing project styles, handling edge cases, avoiding hardcoded secrets, and performing minimal necessary changes. There are no indicators of malicious intent, data exfiltration, or prompt injection attacks.
能力评估
Purpose & Capability
Name and description match the runtime instructions: the skill is an in-repo code-writing helper. It requires no external binaries, credentials, or installs — appropriate for the stated purpose.
Instruction Scope
SKILL.md explicitly directs the agent to read affected files, nearby callers, tests, and configs and to run minimal verification. This is appropriate for modifying code, but it implicitly grants the agent broad read access to the workspace; that may include sensitive config or credential files present in the repo. The instructions do not direct exfiltration or external network calls, nor do they request secrets, but users should be aware the agent will inspect repository files to produce edits.
Install Mechanism
Instruction-only skill with no install spec or external downloads. Lowest-risk install surface.
Credentials
No environment variables, credentials, or config paths are requested. The lack of requested secrets is proportional to a local code-editing task.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request persistent system presence or modify other skills' configuration. Autonomous invocation remains possible (platform default) but is not combined with other concerning privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install code-write
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /code-write 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
initial release
元数据
Slug code-write
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Code Write 是什么?

Implement or modify code in the current project to match style and handle edge cases, focusing only on requested feature, bugfix, or test updates. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 127 次。

如何安装 Code Write?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install code-write」即可一键安装,无需额外配置。

Code Write 是免费的吗?

是的,Code Write 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Code Write 支持哪些平台?

Code Write 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Code Write?

由 sf0799(@sf0799)开发并维护,当前版本 v0.1.0。

💬 留言讨论