用于初始化项目时检查并创建社区治理所需的标准仓库文件。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "init-scaffold" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/devsquad-copilot/main/.github/plugins/devsquad/skills/init-scaffold/SKILL.md 2. 保存为 ~/.claude/skills/init-scaffold/SKILL.md 3. 装好后重载技能,告诉我可以用了
请检查这个新项目是否缺少社区治理文件,并创建完整的 SECURITY.md、CONTRIBUTING.md、LICENSE 和 CODE_OF_CONDUCT.md,内容要适合一个公开的 GitHub 开源仓库。
生成或补齐四个标准治理文件,并确保内容适合公开开源项目使用。
为这个内部项目补齐社区与治理文件。请先验证仓库现有文件,再创建缺失的 SECURITY.md、CONTRIBUTING.md、LICENSE 和 CODE_OF_CONDUCT.md,并使用更适合企业内部协作的措辞。
输出面向内部协作场景的治理文件,并避免使用不合适的开源社区表述。
请审查当前仓库中的社区治理文件状态,列出已存在和缺失的文件,并自动创建缺失的 SECURITY.md、CONTRIBUTING.md、LICENSE、CODE_OF_CONDUCT.md。
先给出检查结果,再补齐缺失文件,形成可直接提交的初始化成果。
Manage 4 optional community and governance files at the repository root:
| File | Purpose |
|---|---|
SECURITY.md | Security vulnerability reporting policy |
CONTRIBUTING.md | Contribution guidelines for collaborators |
LICENSE | Project license declaration |
CODE_OF_CONDUCT.md | Expected behavior standards |
These files are optional.
When verifying status, for each file:
When creating files, use the Socratic approach for each file:
Ask:
Generate content based on the template at docs/templates/SECURITY.md, replacing [TODO] markers with the answers.
Ask:
feature/description, fix/description)"Generate content based on the template at docs/templates/CONTRIBUTING.md, replacing [TODO] markers with the answers.
Ask:
Based on the chosen license:
docs/templates/LICENSE.Ask:
If Contributor Covenant: Generate the standard Contributor Covenant v2.1 text with the enforcement contact.
If custom: Generate content based on the template at docs/templates/CODE_OF_CONDUCT.md, replacing [TODO] markers with the answers.
When asked to create with --placeholder flag, skip all questions and create files directly from the templates in docs/templates/, preserving the [TODO] markers.
All files are created at the repository root:
SECURITY.mdCONTRIBUTING.mdLICENSECODE_OF_CONDUCT.md帮助你创建、切换并检查代码分支,确保实现前遵循正确分支策略。
为项目规则或协作约定生成规范的 .instructions.md 说明文件