辅助编码员

工程开发 社区

技能解读

当前原文的自动摘译,尚未人工审校。

初始化一个项目

检测或创建 git 存储库,生成具有合理默认值的 .aider.conf.yml,并显示项目状态。

运行编码任务

针对指定文件运行您的自然语言请求的辅助程序。对特定文件使用--files,或使用--all让助手自动检测相关文件。

显示差异

显示 aider 所做更改(或工作树中的任何更改)的 git diff。

撤消上次辅助提交

恢复 aider 所做的最后一次提交(aider 提交每个更改集)。当更改引入回归时很有用。

列表/切换型号

列出可用模型或切换.aider.conf.yml中的默认模型。

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
工程开发
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
88 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@tomevault-io · 未声明许可证
上下文用量评级
低消耗
接入复杂程度
需简单配置
是否需要外部接口密钥
需要 · OpenAI / Anthropic
兼容的系统
macOS · Linux · Windows
运行环境要求
未检出明确要求
检测到的文件与系统行为
  • 只读
  • 允许写入 / 修改
  • 读取环境变量
网络行为
允许外网请求
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

# Aider Coder

Terminal pair programming with [Aider](https://aider.chat/) — an AI pair programmer that directly edits files in your local git repository.

## Commands

### Initialize a project

```bash
python3 aider_coder.py init [--dir /path/to/project]
```

Detects or creates a git repo, generates `.aider.conf.yml` with sensible defaults, and shows project status.

### Run a coding task

```bash
python3 aider_coder.py code "Add error handling to the login function" --files src/auth.py src/utils.py
python3 aider_coder.py code "Refactor the database layer to use connection pooling" --files db/*.py
python3 aider_coder.py code "Fix the bug where null values crash the parser" --all
```

Runs aider with your natural language request against specified files. Use `--files` for specific files or `--all` to let aider auto-detect relevant files.

### Show diffs

```bash
python3 aider_coder.py diff
python3 aider_coder.py diff --staged
python3 aider_coder.py diff --file src/auth.py
```

Shows git diff of changes made by aider (or any changes in the working tree).

### Undo last aider commit

```bash
python3 aider_coder.py undo
```

Reverts the last commit made by aider (aider commits each change set). Useful when a change introduces regressions.

### List / switch models

```bash
python3 aider_coder.py models
python3 aider_coder.py models --set gpt-4o
python3 aider_coder.py models --set claude-sonnet-4-20250514
```

Lists available models or switches the default model in `.aider.conf.yml`.

### Run tests

```bash
python3 aider_coder.py test
python3 aider_coder.py test --cmd "pytest tests/ -x"
python3 aider_coder.py test --cmd "npm test"
```

Runs the project test suite. Auto-detects test runner (pytest, npm test, go test, cargo test, etc.) or uses a custom command.

### Run linting

```bash
python3 aider_coder.py lint
python3 aider_coder.py lint --files src/auth.py
python3 aider_coder.py lint --fix
```

Runs linting on changed files. Auto-detects linter (ruff, flake8, eslint, golangci-lint, etc.) or uses project config.

## Workflow

### Quick coding session

1. Navigate to your project: `cd /path/to/project`
2. Init: `python3 aider_coder.py init`
3. Code: `python3 aider_coder.py code "implement feature X" --files relevant.py`
4. Review: `python3 aider_coder.py diff`
5. Test: `python3 aider_coder.py test`
6. If broken: `python3 aider_coder.py undo`

### Model configuration

Aider supports many models. Set your API keys as environment variables:
- `ANTHROPIC_API_KEY` for Claude models
- `OPENAI_API_KEY` for GPT models
- `OPENROUTER_API_KEY` for OpenRouter models

## Notes

- Aider makes real file edits and git commits — always review diffs before pushing
- Aider respects `.gitignore` and won't edit ignored files by default
- Use `--no-auto-commits` flag to stage changes without committing
- The `.aider.conf.yml` file persists your model and settings preferences

---
> Source: [Danielhogben/hermes-skills](https://github.com/Danielhogben/hermes-skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。