从代码生成开发规范
原名:write-coding-standards-from-file
从真实项目文件提炼命名、结构、错误处理、测试和提交约定。
中文 Skills 技能说明
适合接手代码库或补充团队规范。规则必须引用实际代码证据并区分现状与建议,先读取已有 AGENTS.md 等约束;写入前展示差异,不覆盖用户现有决定。
上游能力依据
上游原始适用说明:Write a coding standards document for a project using the coding styles from the file(s) and/or folder(s) passed as arguments in the prompt.
上游 SKILL.md 主要章节(保留原文标题):
- Rules and Configuration
- Configuration Variables
- Configuration Variables as Prompt Parameters
- Prompt Parameters
- Variable and Parameter Configuration Conditions
- ${fileName}.length > 1 || ${folderName} != undefined
- ${addToREADME} == true
- ${addToREADMEInsertions} == "atBegin"
- ${addToREADMEInsertions} == "middle"
- ${addToREADMEInsertions} == "beforeEnd"
使用边界
先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。
作者、翻译与许可证
- 原作者
- GitHub, Inc. 与 awesome-copilot contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/github/awesome-copilot/tree/3f0bba475ec40b9680e1d0311b9caffeec5ad4c3/skills/write-coding-standards-from-file
适用范围
平台:linux、macos、windows;标签:软件开发、从代码生成开发规范
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。