skills/code-moment-codex-switch/SKILL.md
代码时刻切模型:当用户要改代码/写项目/重构/修 bug/新增功能/写 Dockerfile 或 docker-compose/nginx/caddy/systemd/部署运行时,自动切入 codex(=newapi/gpt-5.3-codex) 的分阶段工作流(A 流程),高过程可见性;支持"默认确认"自动继续,但遇到部署/重启/删除/鉴权路由变更必须显式确认。
npx skillsauth add aaaaqwq/agi-super-team code-moment-switch-modelInstall 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.
目标:在不改变主对话默认模型的前提下,当识别到“编码/部署类任务”时,自动用
sessions_spawn(...)进入 Codex 工作流(A 流程)。 约束:webchat 不支持 thread 绑定的持久 subagent session,所以采用 分阶段多次 subagent run 来模拟“工作台”。
优先级(从高到低):
用户任意一句包含以下表达,即视为强制触发:
用户任意一句包含以下表达,则本次不触发/不切换:
满足任一条即可触发:
diff/补丁需求src/...、/etc/...)、命令行输出、配置片段默认升级为 codex 的强信号(即使用户没说“代码时刻”也应触发):
不触发(除非用户用泛口令强制):
当运行环境已配置 agentId=codex(并且 agents_list 可见)时,优先这样启动:
{
"tool": "sessions_spawn",
"runtime": "subagent",
"agentId": "codex",
"model": "newapi/gpt-5.3-codex",
"mode": "run",
"cleanup": "keep",
"task": "..."
}
原因:把“编码工作台”的默认模型与边界固化在 codex 这个隔离 agent 里,减少主 agent 被污染的概率。
如果没有 codex agent(或 allowlist 不允许),才退化为:
{
"tool": "sessions_spawn",
"runtime": "subagent",
"model": "newapi/gpt-5.3-codex",
"mode": "run"
}
在正式 Patch 前,可先发起一次最小握手,验证 subagent 运行链路:
WORKBENCH_READYPhase 0 — Plan(不改动)
Phase 1 — Patch(产出 diff)
Phase 2 — Verify(本地验证)
Phase 3 — Deploy(风险闸门)
Phase 4 — Closeout(收尾)
当用户说:
则:
docker compose up -d、systemctl restart、pm2 reloadgit reset --hard、删库/迁移我在查 X,预计 N 秒查到什么 / 下一步要你确认什么当前阶段/已完成/下一步/是否要你确认如果 subagent spawning 不可用:
/model newapi/gpt-5.3-codex,仍按 A 流程执行。development
Technology-agnostic prompt generator that creates customizable AI prompts for scanning codebases and identifying high-quality code exemplars. Supports multiple programming languages (.NET, Java, JavaScript, TypeScript, React, Angular, Python) with configurable analysis depth, categorization methods, and documentation formats to establish coding standards and maintain consistency across development teams.
tools
Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance.
data-ai
Prompt for creating detailed feature implementation plans, following Epoch monorepo structure.
tools
Interactive prompt refinement workflow: interrogates scope, deliverables, constraints; copies final markdown to clipboard; never writes code. Requires the Joyride extension.