SuperAPI AI 工具集

dotnet-csharpier

通用与其它

查看项目

更新于 10-16 00:04

技能介绍

用途:在 .NET 仓库中引入或规范 CSharpier 格式化器,产出具体项目变更(代码、文档、配置、测试、CI 或评审产物),并通过显式计划、验证与最终校验降低歧义。适用于仓库已使用或希望使用 CSharpier,或团队偏好强主张格式化器而非大量可配置样式开关的情况。不适用于已统一将 dotnet format 作为唯一格式化器的仓库。

主要能力:判断 CSharpier 作为主格式化器还是仅补充其他工具;在 CI 中使用 check 模式;保持忽略文件与配置在仓库中显式可见;避免 CSharpier 与 dotnet format 在未记录的情况下同时拥有同一格式化空间。缺失配置时进行引导:检测现状(rg --files -g '.config/dotnet-tools.json' -g '.csharpierignore'、dotnet tool list --local、dotnet tool list --global),优先本地工具安装以保证 CI 可复现(dotnet new tool-manifest(若缺失)、dotnet tool install csharpier),按需添加 .csharpierignore,在 AGENTS.md 中定义与 dotnet format 的归属,并在 CI 中加入 dotnet csharpier check .。

使用方式:先阅读最近的 AGENTS.md 确认范围与约束,按工作流执行并返回规定结果格式,包含具体产物与验证证据。结果状态包括 complete、clean、improved、configured、not_applicable、blocked。仅配置类请求返回 configured 与确切后续命令。

限制:若仓库有意仅使用 dotnet format,除非要求迁移,否则返回 not_applicable。格式化归属须不模糊,且仓库需接受强主张的格式决策。具体配置细节参见 references/commands.md、references/config.md、references/csharpier.md。