Skip to content

VantageAtraxa/CodingAgentSetup

Repository files navigation

CodingAgentSetup

Windows 下的 AI coding agent 环境配置工具。一键安装规则文件和 CLI 工具,让 Claude Code / Codex 开箱即用。

安装

powershell -ExecutionPolicy Bypass -File .\setup-windows.ps1 -Agent Both

做了什么

  • 写入 ~/.claude/CLAUDE.md — Claude Code 全局规则
  • 写入 ~/.codex/AGENTS.md — Codex 全局规则
  • 安装现代 CLI 工具:bunuvrgezabatfdfzfdelta
  • 初始化 Agent Skills 目录 ~/.agents/skills/
  • 初始化 Sub-agents 目录 ~/.claude/agents/
  • 写入自定义命令 ~/.claude/commands/(review、commit、changelog)
  • 写入 MCP server 配置 ~/.claude/claude_desktop_config.json
  • 配置 git 默认行为(delta pager、rerere)
  • 写入 PowerShell profile,添加 Unix 风格别名

参数

参数 说明
-Agent Both 同时配置 Claude Code 和 Codex
-Agent Claude 只配置 Claude Code
-Agent Codex 只配置 Codex
-SkipTools 只写规则文件,跳过工具安装
-SkipProfile 跳过 PowerShell profile 修改
-Yes 全部自动确认,不询问

只写规则文件

.\setup-windows.ps1 -Agent Claude -SkipTools -SkipProfile

验证

.\verify-windows.ps1
.\tests\Smoke-Windows.ps1

项目结构

rules/
  AGENTS.shared.md     — 通用规则(工作流、工具链、权限、文件安全)
  CLAUDE.md            — Claude Code 适配器
  AGENTS.codex.md      — Codex 适配器
  AGENTS.windows.md    — Windows 环境规则
setup-windows.ps1      — 主安装脚本
verify-windows.ps1     — 验证安装结果
profiles/              — PowerShell profile 片段
tests/                 — 行为测试
docs/                  — 文档

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors