用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fabioc-aloha/ChessCoach --skill sidebar-customization命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| type | skill |
| lifecycle | stable |
| inheritance | inheritable |
| name | sidebar-customization |
| description | Customize the Alex sidebar — Loop tab buttons and project-specific workflows |
| tier | standard |
| applyTo | **/.github/config/loop-menu.json,**/*sidebar*config* |
| currency | 2026-04-22T00:00:00.000Z |
Customize the Alex sidebar tabs for your project — add buttons and tailor workflows to your team's needs.
For full welcome experience customization (loop menu + taglines + identity + North Star in one pass), see the
welcome-experience-customizationskill.
| Tab | Config File | What It Controls |
|---|---|---|
| Loop | .github/config/loop-menu.json | Workflow buttons, creative loop phases |
| Setup | Built-in | No customization (core Alex features) |
The Loop tab displays workflow buttons organized into collapsible groups. Everything is config-driven.
.github/config/loop-menu.json
{
"$schema": "../../../heir/.github/config/loop-config.schema.json",
"version": "1.0",
"projectType": "generic",
"projectPhase": "active-development",
"groups": [
{
"id": "my-workflows",
"label": "My Workflows",
"icon": "rocket",
"collapsed": false,
"buttons": [
{
"icon": "lightbulb",
"label": "Brainstorm",
"command": "openChat",
"prompt": "Help me brainstorm ideas for this feature"
| Field | Required | Description |
|---|---|---|
id | Yes | Unique identifier (lowercase, hyphens) |
label | Yes | Display text in sidebar |
icon | No | Codicon name (e.g., rocket, tools, beaker) |
accent | No | CSS hex color for accent bar (e.g., #14b8a6) |
collapsed | No | Start collapsed? Default: true |
phase | No | Array of phases when visible: planning, active-development, testing, release, maintenance |
buttons | Yes | Array of button definitions |
| Field | Required | Description |
|---|---|---|
icon | Yes | Codicon name |
label | Yes | Button text |
command | Yes | Action type: openChat, openExternal, runCommand |
prompt | No | Inline prompt text for openChat |
promptFile | No | Path to .prompt.md file (overrides prompt) |
file | No | URL or path for openExternal/runCommand |
tooltip | No | Hover text |
phase | No | Phases when visible |
| Command | Behavior |
|---|---|
openChat | Opens Copilot Chat with the prompt |
openExternal | Opens URL in browser or file in VS Code |
runCommand | Executes a VS Code command |
For complex prompts, use external .prompt.md files:
{
"icon": "beaker",
"label": "Run Tests",
"command": "openChat",
"promptFile": "test.prompt.md"
}
The file is loaded from .github/prompts/loop/{promptFile}.
Show buttons only during specific project phases:
{
"icon": "rocket",
"label": "Release",
"command": "openChat",
"prompt": "@alex /release",
"phase": ["testing", "release"]
}
The sidebar watches loop-menu.json for changes. Save the file and buttons update immediately — no reload needed.
{
"id": "health-research",
"label": "Health Research",
"icon": "heart",
"accent": "#ef4444",
"collapsed": false,
"source": "type",
"buttons": [
{
"icon": "search",
"label": "Literature Search",
"command": "openChat",
"prompt": "@Health Researcher Search for recent studies on {topic}"
},
{
"icon": "note",
"label": "Summarize Paper",
"command"
Route to specific Alex agents:
{
"icon": "beaker",
"label": "Test Plan",
"command": "openChat",
"prompt": "@Validator Create a test plan for the current feature"
}
Available agents: @Alex, @Builder, @Researcher, @Validator, @Planner, @Documentarian, @Presenter, @Frontend, @Backend, @Infrastructure, etc.
@ agent dropdown (built-in feature)To hide agents from the @ dropdown, delete or rename their .github/agents/*.agent.md files.
| Problem | Cause | Fix |
|---|---|---|
| Buttons don't appear | Invalid JSON | Check for syntax errors, validate against schema |
| Changes not showing | File not saved | Save loop-menu.json |
| Wrong icon | Typo in codicon name | Check codicon reference |
The schema is at .github/config/loop-config.schema.json. Most editors provide validation when $schema is set:
{
"$schema": "./../loop-config.schema.json",
...
}