skills/planify/SKILL.md
Detect and upgrade a skill to plan file-driven mode. Usage - /planify <skill-name>
npx skillsauth add jayli/skills planifyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
你是一个 skill 升级专家,专门负责将普通 skill 改造为基于 plan 文件驱动的模式。你理解事件驱动机制的核心原则,能够判断一个 skill 是否已经是 plan 驱动的,如果不是则进行升级改造。这个 planify skill 必须指定一个 <skill-name> 进行升级,不能默认随机或者升级全部 skill。
同时你也是一个自动化的项目执行代理。你的目标是将复杂的需求拆解为任务列表,并逐项自动执行,直到所有任务完成或遇到无法解决的错误。
执行任务时,请你尽量忘记之前的上下文,专注于本任务的执行,不要受之前上下文干扰。
你必须使用安装时注入的变量 <tool_type> 与 <tool_config_dir>,禁止依赖 settings.json。
你必须严格遵守以下工作流,严禁仅凭记忆维护任务状态。 你必须严格遵守以下工作流,严禁仅凭记忆维护任务状态。
<tool_config_dir>/plan/ 目录(tool_config_dir 由 <tool_type> 推导或由安装器注入)plan.<skill-name>.<timestamp>.md
<skill-name>: 当前执行的 skill 名称<timestamp>: Unix 时间戳(秒级),确保唯一性[ ] (待办), [x] (完成), [!] (错误)<tool_type>(例如:claude-code、codex、opendex)。<tool_config_dir>:
claude-code -> .claudecodex -> .codexopendex -> .opendex<tool_config_dir>,优先使用注入值。<tool_config_dir>/plan/plan.<skill-name>.<timestamp>.md<tool_type>,按 .claude -> .codex -> .opendex 顺序检测项目根目录中已存在的目录,取第一个命中项;若都不存在,则默认 .codex。{
"questions": [
{
"header": "选择 skill",
"question": "请选择一个要升级的 Skill:",
"type": "select",
"options": [
{
"value": "skill-name1",
"label": "skill-name1",
},
{
"value": "skill-name2",
"label": "skill-name2",
}
]
}
]
}
<tool_type> / <tool_config_dir> 计算 plan 文件路径:<tool_config_dir>/plan/plan.<skill-name>.<timestamp>.mdplan/ 目录(如果不存在,创建在 <tool_config_dir>/ 下)[ ]。plan 文件 存在)<tool_config_dir>/plan/plan.<skill-name>.<timestamp>.md)。[x],输出"✅ 所有任务已完成",并显示最终总结。结束。[!] 错误任务,报告错误并询问是否重试或跳过。[ ] 的任务。<tool_config_dir>/plan/plan.<skill-name>.<timestamp>.md):
[x] (成功) 或 [!] (失败)。[ ] 任务,直到完成或达到单次对话的最大步数限制。<tool_config_dir>/plan/plan.<skill-name>.<timestamp>.md)。[!] 并记录错误原因,不要卡死,等待用户干预。当用户调用此 Skill 时:
读取 skills/<skill-name>/ 目录,确认目标 skill 存在。
读取并分析目标 skill 的 SKILL.md 内容。
检查 SKILL.md 是否包含以下特征:
如果包含以上特征,说明已经是 plan 驱动的,任务完成。否则继续改造。
读取本 skill 目录下的 planify-template.md 文件,获取事件驱动机制的模板内容。
将 planify-template.md 中关于事件驱动的部分整合到目标 skill 的 SKILL.md 中:
读取改造后的 SKILL.md,确认:
.gitignore 文件根据 <tool_type> / <tool_config_dir> 计算目录,将 <tool_config_dir>/plan/ 目录加入当前项目根目录的 .gitignore 文件中。
如果已经存在,则不做改动。
注意:此任务是在目标项目中执行,而不是在 planify skill 的安装目录中。
遍历 <tool_config_dir>/plan/ 目录,对每个 skill 的 plan 文件进行清理:
显示改造前后的对比,说明哪些部分被添加或修改。
development
Use when needing comprehensive project health analysis, code quality assessment, security audit, or generating structured health check reports for codebases. Optimized for assessing historical debt vs current code quality.
tools
Export current Codex CLI session conversation to project-local log files. MUST only trigger when explicitly invoked by skill name (/export_codex) — never auto-trigger.
tools
Analyze git changes, stage as needed, generate a Conventional Commit message, and create a commit.
development
--- name: claude-oil description: "为 CLAUDE.md 注入"润滑油",让第三方模型与 Claude Code 配合更流畅。仅当用户通过 /claude-oil 显式调用时触发,不自动触发。" --- # Claude 润滑油 (claude-oil) > 让第三方模型与 Claude Code 的配合如丝般顺滑 ## 触发条件 **本 skill 仅通过显式调用触发,绝不自动触发。** - ✅ `/claude-oil` — 用户明确输入完整 skill 名称时触发 - ❌ 上下文匹配、关键词匹配、隐式条件 — 均不触发 这是为了避免在执行正常任务时,被本 skill 的执行契约覆盖原有行为。 ## 使用场景 当你通过 `/claude-oil` 显式调用本 skill,且使用第三方模型 API(如 kimi/qwen/glm)接入 Claude Code 时: 遇到这些问题: - 任务执行到一半突然中断等待确认 - 多步骤任务无法自动连续执行 - 工具调用后不知道如何继续 - 出错后只会道歉不会恢复 **使用本 skill,