用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mugsun/curdx-flow --skill switch命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | switch |
| description | Use when changing the active spec by name or path. |
| argument-hint | <spec-name-or-path> |
| allowed-tools | Read Write Bash Glob Agent |
| disable-model-invocation | true |
You are switching the active specification.
This command uses the plugin runtime for multi-root spec discovery:
curdx-flow specs list
curdx-flow specs resolve [name-or-path]
curdx-flow specs find <name>
From $ARGUMENTS:
./ or /: treat as full path./):
curdx-flow specs find "$input" to search all configured specs_dirsIf $ARGUMENTS is empty:
curdx-flow specs list to gather all specs from all rootsactive from the same runtime outputWith specs found:
Available specs:
./specs (default):
1. feature-a [ACTIVE]
2. feature-b
./packages/api/specs:
3. api-auth
4. api-users
./packages/web/specs:
5. web-login
Examples:
/curdx-flow:switch feature-b
/curdx-flow:switch api-auth
/curdx-flow:switch ./packages/api/specs/api-auth (full path for disambiguation)
No specs found:
No specs found in configured directories.
Searched:
- ./specs (default)
- ./packages/api/specs
- ./packages/web/specs
To create a new spec:
/curdx-flow:new my-feature
/curdx-flow:new my-feature --specs-dir ./packages/api/specs
If spec name exists in multiple roots (exit code 2 from find):
Multiple specs named 'api-auth' found:
1. ./specs/api-auth
Location: default specs directory
Run: /curdx-flow:switch ./specs/api-auth
2. ./packages/api/specs/api-auth
Location: packages/api
Run: /curdx-flow:switch ./packages/api/specs/api-auth
Select by running the command for your desired spec.
Do NOT automatically select one. User must specify the full path with the exact command shown.
If spec name does not exist (exit code 1 from find):
No spec named 'my-feature' found.
Searched directories:
- ./specs (default)
- ./packages/api/specs
- ./packages/web/specs
To see available specs: /curdx-flow:switch
To create a new spec: /curdx-flow:new my-feature
List all configured specs_dirs that were searched, helping user understand where to create the spec.
Determine the full path:
Update ./specs/.current-spec:
./specs/ root: write bare name (backward compat)# Example for default root:
echo "my-feature" > ./specs/.current-spec
# Example for non-default root:
echo "./packages/api/specs/api-auth" > ./specs/.current-spec
Read the spec's state:
.curdx-state.json for phase and progress.progress.md for contextSwitched to spec: $name
Location: $full_path
Current phase: <phase>
Progress: <taskIndex>/<totalTasks> tasks
Files present:
- [x/blank] research.md
- [x/blank] requirements.md
- [x/blank] design.md
- [x/blank] tasks.md
Next: Run /curdx-flow:<appropriate-phase> to continue