Aider 代码创建
- 作者仓库星标 0
- 作者仓库 skills-registry
Aider Coder
Terminal pair programming with Aider — an AI pair programmer that directly edits files in your local git repository.
Commands
Initialize a project
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
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
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
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
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
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
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
- Navigate to your project:
cd /path/to/project - Init:
python3 aider_coder.py init - Code:
python3 aider_coder.py code "implement feature X" --files relevant.py - Review:
python3 aider_coder.py diff - Test:
python3 aider_coder.py test - If broken:
python3 aider_coder.py undo
Model configuration
Aider supports many models. Set your API keys as environment variables:
ANTHROPIC_API_KEYfor Claude modelsOPENAI_API_KEYfor GPT modelsOPENROUTER_API_KEYfor OpenRouter models
Notes
- Aider makes real file edits and git commits — always review diffs before pushing
- Aider respects
.gitignoreand won't edit ignored files by default - Use
--no-auto-commitsflag to stage changes without committing - The
.aider.conf.ymlfile persists your model and settings preferences
<!-- tomevault:4.0:skill_md:2026-05-23 -->Source: Danielhogben/hermes-skills — distributed by TomeVault.
- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 需要 · OpenAI / Anthropic
- 检测到的系统要求
- macOS · Linux · Windows
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 读取环境变量
- 检测到的网络行为
- 允许外网请求
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Commands
Detects or creates a git repo, generates .aider.conf.yml with sensible defaults, and shows project status.
Runs aider with your natural language request against specified files. Use --files for specific files or --all to let aider auto-detect relevant files.
Shows git diff of changes made by aider (or any changes in the working tree).
Reverts the last commit made by aider (aider commits each change set). Useful when a change introduces regressions.
Lists available models or switches the default model in .aider.conf.yml.
# 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.
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Commands → Initialize a project → Run a coding task → Show diffs → Undo last aider commit → List / switch models
要点 -> Terminal pair programming with [Aider](https://aider.chat/) — an AI pair programmer that directly edits files in your local git repository. · Detects or creates a git repo, generates .aider.conf.yml with sensible defaults, and shows project status. · Runs aider with your natural language request against specified files. · Shows git diff of changes made by aider (or any changes in the working tree). · Reverts the last commit made by aider (aider commits each change set). · Lists available models or switches the default model in .aider.conf.yml. · Runs the project test suite. · Runs linting on changed files.
文件/命令 -> .aider.conf.yml · --files · --all · cd /path/to/project · python3 aidercoder.py init · python3 aidercoder.py code "implement feature X" --files relevant.py · python3 aidercoder.py diff · python3 aidercoder.py test
内容 SHA-256 -> 0dacfa3d4cc1
方法与流程
适用与边界
原文中的明确线索
.aider.conf.yml、--files、--all、cd /path/to/project、python3 aidercoder.py init、python3 aidercoder.py code "implement feature X" --files relevant.py、python3 aidercoder.py diff、python3 aidercoder.py test