Skip to content
Agentmart
Submit a tool

coding-agent

自主编程与代码开发 (Use when: 需要编写/修改/调试代码、创建项目、重构).

Skill by zzycxz

IndexedMIT★ 9
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/zzycxz-coding-agent

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

自主编程与代码开发 (Use when: 需要编写/修改/调试代码、创建项目、重构). NOT for: 数据分析、文件格式转换.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/coding-agent

What's inside

Skill name
coding-agent
Description
自主编程与代码开发 (Use when: 需要编写/修改/调试代码、创建项目、重构). NOT for: 数据分析、文件格式转换.
License
MIT
Instructions
72 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Coding Agent — 自主编程与代码开发

通过 Executor 的 ReAct 循环和 `python_interpreter` 工具,自主完成代码编写、调试和项目管理任务。

## 适用场景

- 按需求编写新功能代码(Python、JavaScript、Shell 等)
- 修复 Bug:读取错误信息 → 定位代码 → 修改验证
- 代码重构:优化结构、提升可读性
- 创建新项目脚手架(目录结构、配置文件、入口文件)
- 编写和运行单元测试
- 依赖管理:安装、升级、解决冲突

## 编码工作流

```python
import subprocess

# 1. 读取目标文件
with open("src/module.py", "r", encoding="utf-8") as f:
    original = f.read()

# 2. 应用修改
modified = original.replace("old_code", "new_code")

# 3. 写回文件
with open("src/module.py", "w", encoding="utf-8") as f:
    f.write(modified)

# 4. 运行测试验证
result = subprocess.run(
    ["python", "-m", "pytest", "tests/", "-x"],
    capture_output=True, text=True, encoding="utf-8"
)
print(result.stdout)
if result.returncode != 0:
    print("TESTS FAILED:", result.stderr)
```

## 创建新项目模板

```python
import os

project_name = "my_project"
base = os.path.join(os.getcwd(), project_name)

structure = {
    "src/__init__.py": "",
    "src/main.py": 'def main():\n    print("Hello")\n\nif __name__ == "__main__":\n    main()\n',
    "tests/__init__.py": "",
    "tests/test_main.py": "from src.main import main\ndef test_main():\n    main()\n",
    "pyproject.toml": '[project]\nname = "' + project_name + '"\nversion = "0.1.0"\n',
    "README.md": "# " + project_name + "\n",
}

for path, content in structure.items():
    full = os.path.join(base, path)
    os.makedirs(os.path.dirname(full), exist_ok=True)
    with open(full, "w", encoding="utf-8") as f:
        f.write(content)
```

## 注意事项

1. **编码一致性**:始终使用 `encoding="utf-8"` 避免中文乱码
2. **原子写入**:先写临时文件再 rename,防止写入中断导致文件损坏
3. **测试先行**:修改代码后立即运行相关测试
4. **依赖检查**:安装新包后确认 `pyproject.toml` 同步更新
5. **路径安全**:不在用户未授权的目录外创建或删除文件

From zzycxz/rooster, MIT.

More from zzycxz/rooster

Signals

Stars
9
Forks
0
Open issues
0
Last commit (this folder)
Jun 9, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from zzycxz

Cite this page

coding-agent skill. Agent Mart. https://agentmart.dev/skills/zzycxz-coding-agent (last updated 2026-10-24)