帮助初始化并校验项目的 SDD 配置文件,确保开发规范与指令保持最新。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "init-config" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/devsquad-copilot/main/.github/plugins/devsquad/skills/init-config/SKILL.md 2. 保存为 ~/.claude/skills/init-config/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为这个新项目初始化 SDD Framework 配置文件,创建 .github/copilot-instructions.md、instructions、coding-guidelines 和 markdownlint,并按通用团队协作规范填写默认内容。
生成所需配置文件,并写入适合新项目使用的基础规范内容。
请检查当前仓库中的 SDD 配置文件是否齐全且为最新版本,指出缺失、过期或不一致的部分,并给出更新建议。
返回配置检查结果,列出缺失项、问题项以及建议的修复或更新内容。
基于现有项目结构,更新 SDD 配置文件中的开发指令、编码规范和 Markdown 校验规则,使其更适合团队协作与代码审查流程。
输出更新后的配置内容,使项目规范更统一、可执行且便于维护。
Manage 10 SDD Framework configuration and instruction files.
| File | Purpose |
|---|---|
.github/copilot-instructions.md | Pragmatic senior engineer guidelines |
.github/instructions/adrs.instructions.md | ADR creation and management guidelines |
.github/instructions/envisioning.instructions.md | Envisioning document guidelines |
.github/instructions/specs.instructions.md | Feature spec guidelines |
.github/instructions/tasks.instructions.md | Task list guidelines |
.github/instructions/migration-specs.instructions.md | Migration spec guidelines |
.github/instructions/migration-tasks.instructions.md | Migration task guidelines |
.github/instructions/documentation-style.instructions.md | Markdown formatting rules |
.github/docs/coding-guidelines.md | Fundamental values, mandatory rules, code style |
.markdownlint.yaml | Markdown linting configuration |
NEVER create, copy, or recreate files under
.github/plugins/. The plugin folder is managed externally. Ifsdd-init.shcannot be located via the discovery snippet below, inform the user to install/update the plugin.
The plugin can be installed in several locations (workspace, runtime env vars, ~/.vscode/agent-plugins/..., ~/.copilot/agent-plugins/...). Use the locate-sdd-init.sh helper to resolve the absolute path of sdd-init.sh once, then reuse it in every subsequent command. The discovery snippet:
for h in \
.github/plugins/devsquad/hooks/locate-sdd-init.sh \
"${COPILOT_PLUGIN_ROOT:-}/hooks/locate-sdd-init.sh" \
"${CLAUDE_PLUGIN_ROOT:-}/hooks/locate-sdd-init.sh" \
"$HOME/.vscode/agent-plugins/github.com/microsoft/devsquad-copilot/.github/plugins/devsquad/hooks/locate-sdd-init.sh" \
"$HOME/.copilot/agent-plugins/github.com/microsoft/devsquad-copilot/.github/plugins/devsquad/hooks/locate-sdd-init.sh" \
"$HOME/.copilot/installed-plugins/devsquad-copilot/devsquad/hooks/locate-sdd-init.sh"; do
if [ -n "$h" ] && [ -f "$h" ]; then
SDD_INIT="$("$h" 2>/dev/null || true)"
[ -n "$SDD_INIT" ] && [ -f "$SDD_INIT" ] && { echo "FOUND: $SDD_INIT"; exit 0; }
fi
done
echo "MISSING"
exit 1
Capture the absolute path printed after FOUND: and substitute it for <SDD_INIT> in every command below. Bash variables do not persist across tool calls, so use the literal path string.
<SDD_INIT> verify
Parse the JSON output. Each entry in config has file, status (up-to-date, outdated, missing), and optionally summary.
To create or update specific files:
<SDD_INIT> create <target-path>
For bulk operations:
# Create only missing files
<SDD_INIT> create-missing
# Create missing + overwrite outdated
<SDD_INIT> update-all
To show a diff for an outdated file:
<SDD_INIT> diff <target-path>
帮助你创建、切换并检查代码分支,确保实现前遵循正确分支策略。
为 AI 编码助手生成或更新聊天定制配置文件,统一协作与开发体验