AI Agent Hub
🤖 AI编程助手扩展
提供项目分析、C#编码规范检查、Token监控和GitHub Copilot Chat集成的VS Code扩展

✨ 核心功能
🔍 项目分析
- 📊 代码扫描: 分析代码库结构、依赖关系和基本架构
- 📋 健康评估: 提供项目健康评分和改进建议
- ⚡ 质量检查: 获取代码质量和项目组织的反馈
- 📈 基础分析: 项目质量基础分析功能
🎯 C# 编码规范检查
- ✅ 标准检查: 基于Microsoft C#编码指南进行检查
- 🏷️ 命名规范: 验证类、方法、变量的命名模式
- 🎨 代码格式: 检查缩进、间距和代码风格
- 🔒 基础安全: 检测常见安全问题和硬编码密钥
- ⚡ 代码质量: 识别常见问题并提供改进建议
- 📋 分析报告: 生成分析报告和改进建议
🚀 GitHub Copilot Chat 集成
- 💬 Chat参与者: 7个Chat参与者 (@analyze, @token, @report, @config, @recommend, @code, @auto)
- 🗣️ 命令支持: 使用命令如
@analyze csharp 触发分析
- 🎯 工作区集成: 基于当前工作区进行分析
- 🎨 结果展示: 在Copilot Chat中查看分析结果
- 🔄 交互功能: 通过Chat进行代码分析和讨论
- 🤖 智能自动化: 使用
@auto 将自然语言需求转换为可执行任务
🛠️ 工作流功能
- 🔧 代码建议: 提供代码改进建议
- 📝 项目分析: 分析项目结构和基本信息
- ⚙️ 配置生成: 生成
.editorconfig 和分析配置文件
- 🌐 语言支持: 支持C#、TypeScript等编程语言
- 📊 Token监控: 监控GitHub Copilot Chat的Token使用情况
🚀 快速开始
📦 安装步骤
- 🛒 从VS Code应用市场安装扩展
- 📂 在VS Code中打开任意项目
- ⚡ 扩展自动激活,开始智能分析
🔍 使用项目分析
- 🎯 打开命令面板 (
Ctrl+Shift+P )
- 🚀 运行
AI Agent Hub: Analyze Self
- 📊 查看全面的项目分析结果
🎯 使用C#编码规范检查
💬 通过Copilot Chat (推荐方式)
- 🗨️ 打开GitHub Copilot Chat (
Ctrl+Shift+I )
- ⌨️ 输入
@analyze csharp 触发C#分析
- 📋 实时查看分析结果和改进建议
🎛️ 通过命令面板
- 🎯 打开命令面板 (
Ctrl+Shift+P )
- 🚀 运行
AI Agent Hub: Analyze Self
- ⚙️ 选择C#分析选项
💡 Chat参与者使用指南
@analyze 项目分析 # 全面项目分析
@token 检查使用量 # Token使用监控
@report 生成报告 # 详细分析报告
@config 查看配置 # 扩展配置管理
@recommend 改进建议 # 智能优化建议
@code 代码质量 # 代码质量评估
@auto 智能自动化 # 一句话需求转换为任务清单
📊 Analysis Results
C# Coding Standards Report
- 📋 Score: Overall coding standards compliance (0-100)
- 🔧 Issues: Categorized list of coding standard violations
- 📄 Detailed Report: Comprehensive Markdown report with file-level analysis
- ⚙️ Configuration Files: Auto-generated
.editorconfig for consistent formatting
Project Health Assessment
- 📈 Health Score: Overall project quality metrics
- 📋 Recommendations: Actionable improvement suggestions
- 🔍 Dependency Analysis: Package and dependency health check
- 📊 Code Metrics: Lines of code, complexity, and maintainability scores
🎯 Supported Languages
- ✅ C#: Full coding standards analysis with Microsoft guidelines
- ✅ TypeScript/JavaScript: Project structure and quality analysis
- ✅ Python: Basic project analysis
- 🔄 More languages: Coming soon!
⚙️ Configuration
The extension works out-of-the-box with sensible defaults. For advanced configuration:
- Create
csharp-analysis-config.json in your project root
- Customize analysis rules, file patterns, and reporting options
- See Configuration Guide for details
🤝 Integration
GitHub Copilot Chat Participants
@token - Token limit testing and analysis for GitHub Copilot Chat models
@code - Code analysis and quality assessment
@report - Project report generation with multiple formats
@recommend - View and manage project improvement recommendations
@analyze - General project analysis
@config - Dynamic configuration generator for multi-language analysis
@auto - Intelligent automation mode for converting natural language requirements to tasks
Quick Examples:
@token 测试 - Test token limits for current model
@code 分析项目 - Analyze project structure and code quality
@report 项目分析 - Generate comprehensive project report
@recommend 列表 - View all improvement recommendations
@auto 在会员模块新增微信登录 - Convert requirements to executable tasks
MCP (Model Context Protocol)
- Seamless integration with AI models
- Context-aware analysis and suggestions
- Extensible tool system for custom workflows
📚 Documentation
🐛 Issues & Support
🎉 What's New
Version 0.0.33 (Latest)
- 🔧 Fixed: 修复版本发布流程中的日期一致性问题
- 🔧 Improved: 优化发布文档的版本信息管理
- 🔧 Improved: 改进版本控制和发布验证流程
Version 0.0.30 - 🤖 @auto 智能自动化模式
- ✨ NEW:
@auto - 智能自动化开发模式
- 🎯 一句话需求转换: 将自然语言需求转换为结构化任务清单
- 📋 可视化管理: 提供 Markdown checklist 和 JSON 格式任务跟踪
- ⚡ 增量执行: 逐个任务执行,支持暂停和恢复
- 🔗 Git 集成: 可选的自动提交功能
- 🎨 简洁设计: 无需复杂配置,直接依托 VS Code 扩展 API
- 🐛 Critical Fix: 修复了
@code 助手只返回欢迎信息的关键问题
@auto 使用示例:
@auto 在会员模块新增微信登录
@auto 优化商品列表页面的加载性能
@auto 重构用户服务为 TypeScript
Version 0.0.29
- 🚀 Market Release: 成功发布到VS Code市场
- 📦 包含所有最新功能和修复
📄 License
MIT License - see LICENSE for details.
Made with ❤️ by the AI Agent Hub team
⭐ Star us on GitHub | 🚀 Try it now
| |