openai-investigation-mode
预览截图
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "openai-investigation-mode":https://skillpi.com/zh/skills/deepskill-56e7ac45f1918e0abbbb155e18ec60eb7fbb3e31a04270b56e18f620268d448a。安装前核对上游来源和版本:https://github.com/openai/plugins。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
协调式调试协调器,检测到挫败信号(卡住、挂起、中断、等待)时触发,按顺序进行系统性排查:运行时日志 → 工作流状态 → 浏览器验证 → 部署/环境。每一步都会报告发现的问题。
介绍来源: third_party · openai · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 管弦调试协调器. 触发挫折信号(坚固,挂断,断断,等待)和系统性的三分法: 运行时日志 – 工作流程状态 – 浏览器验证 – 部署/env. 逐步报告调查结果。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: investigation-mode
description: "Orchestrated debugging coordinator. Triggers on frustration signals (stuck, hung, broken, waiting) and systematically triages: runtime logs → workflow status → browser verify → deploy/env. Reports findings at every step."
metadata:
priority: 8
docs:
- "https://openai.com/index/introducing-codex/"
pathPatterns:
- "**/middleware.{ts,js,mjs}"
- "**/lib/logger.{ts,js}"
- "**/utils/logger.{ts,js}"
- "**/instrumentation.{ts,js}"
- "**/*.log"
- "**/error.{tsx,ts,js,jsx}"
- "**/global-error.{tsx,ts,js,jsx}"
- "**/not-found.{tsx,ts,js,jsx}"
bashPatterns:
- '\bvercel\s+logs?\b'
- '\bvercel\s+inspect\b'
- '\btail\s+-f\b.*\.log'
- '\bworkflow\s+runs?\b'
- '\bvercel\s+ls\b'
- '\bcurl\s+-[vI]'
importPatterns: []
promptSignals:
phrases:
- "nothing happened"
- "still waiting"
- "it's stuck"
- "it's hung"
- "nothing is happening"
- "not responding"
- "just sitting there"
- "just sits there"
- "seems frozen"
- "is it frozen"
- "frozen"
- "why is it hanging"
- "check the logs"
- "check logs"
- "where are the logs"
- "how do I debug"
- "how to debug"
- "white screen"
- "blank page"
- "spinning forever"
- "timed out"
- "keeps timing out"
- "no response"
- "no output"
- "not loading"
- "debug this"
- "investigate why"
- "what went wrong"
- "why did it fail"
- "why is it failing"
- "something is broken"
- "something broke"
- "seems broken"
- "check what happened"
- "check the status"
- "where is the error"
- "where did it fail"
- "find the error"
- "show me the error"
- "why is it slow"
- "taking forever"
- "still loading"
- "not finishing"
- "seems dead"
- "been waiting"
- "waiting forever"
- "stuck on"
- "hung up"
- "not progressing"
- "stalled out"
- "is it running"
- "did it crash"
- "keeps failing"
- "why no response"
- "where did it go"
- "lost connection"
- "never finishes"
- "pending forever"
- "queue stuck"
- "job stuck"
- "build stuck"
- "request hanging"
- "api not responding"
allOf:
- [stuck, workflow]
- [stuck, deploy]
- [stuck, loading]
- [stuck, build]
- [stuck, queue]
- [stuck, job]
- [hung, request]
- [hung, api]
- [frozen, page]
- [frozen, app]
- [check, why]
- [check, broken]
- [check, error]
- [check, status]
- [check, logs]
- [debug, workflow]
- [debug, deploy]
- [debug, api]
- [debug, issue]
- [investigate, error]
- [logs, error]
- [logs, check]
- [slow, response]
- [slow, loading]
- [timeout, api]
- [timeout, request]
- [waiting, response]
- [waiting, forever]
- [waiting, deploy]
- [not working, why]
- [not, responding]
- [hanging, for]
- [been, hanging]
- [been, stuck]
- [been, waiting]
- [why, slow]
- [why, failing]
- [why, stuck]
- [why, hanging]
- [job, failing]
- [queue, processing]
anyOf:
- "stuck"
- "hung"
- "frozen"
- "broken"
- "failing"
- "timeout"
- "slow"
- "debug"
- "investigate"
- "check"
- "logs"
- "error"
- "hanging"
- "waiting"
- "stalled"
- "pending"
- "processing"
- "loading"
- "unresponsive"
noneOf:
- "css stuck"
- "sticky position"
- "position: sticky"
- "z-index"
- "sticky nav"
- "sticky header"
- "sticky footer"
- "overflow: hidden"
- "add a button"
- "create a button"
- "style the button"
minScore: 4Investigation Mode — Orchestrated Debugging
When a user reports something stuck, hung, broken, or not responding, you are the diagnostic coordinator. Do not guess. Follow the triage order, report what you find at every step, and stop when you have a high-confidence root cause.
Reporting Contract
Every investigation step MUST follow this pattern:
- Tell the user what you are checking — "I'm checking the runtime logs for errors…"
- Share the evidence you found — paste the relevant log line, status, error, or screenshot
- Explain the next step — "The logs show a timeout on the DB call. I'll check the connection pool next."
Never silently move between steps. The user is already frustrated — silence makes it worse.
Triage Order
Work through these in order. Stop as soon as you find the root cause.
1. Runtime Logs (check first — most issues leave traces here)
- Dev server: Check terminal output for errors, warnings, unhandled rejections
- Vercel logs:
vercel logs --follow(production) orvercel logs <deployment-url> - Browser console: Open DevTools → Console tab for client-side errors
- If no logs exist: This is the problem. Add logging before continuing (see "Add Logging" below)
Tell the user: "Checking runtime logs…" → share what you found → explain next step.
2. Workflow / Background Job Status
If the app uses workflows, queues, or cron jobs:
- Run
vercel workflow runs listto check recent run statuses - Look for runs stuck in
runningstate — likely a missingawaitor unresolved promise - Check individual run details:
vercel workflow runs get <run-id> - Look for failed steps, retry exhaustion, or timeout errors
Tell the user: "Checking workflow run status…" → share the run state → explain next step.
3. Browser Verification
Use agent-browser to visually verify what the user sees:
- Take a screenshot of the current page state
- Check the browser console for JavaScript errors
- Check the Network tab for failed requests (4xx/5xx, CORS errors, hanging requests)
- Look for hydration mismatches or React error boundaries
Tell the user: "Taking a browser screenshot to see the current state…" → share the screenshot → explain what you see.
4. Deploy / Environment Status
vercel inspect <deployment-url>— check build output, function regions, environmentvercel ls— verify the latest deployment succeeded- Check for environment variable mismatches between local and production
- Verify the correct branch/commit is deployed
Tell the user: "Checking deployment status…" → share the deployment state → explain findings.
Stop Condition
Stop investigating when:
- You find a high-confidence root cause (specific error, missing env var, failed step, etc.)
- Two consecutive triage steps produce no signal — report what you checked and that you found no evidence, then ask the user for more context
Do not keep cycling through steps hoping something appears. If logs are empty and workflows look fine, say so and ask the user what they expected to happen.
Common Hang Causes
When logs point to code issues, check for these frequent culprits:
- Missing
await: Async functions called without await cause silent failures - Infinite loops:
while(true)without break conditions, recursive calls without base cases - Unresolved promises:
new Promise()that never callsresolve()orreject() - Missing env vars:
process.env.Xreturningundefinedcausing silent auth/DB failures - Connection pool exhaustion: Database connections not being released
- Middleware chains: A middleware that never calls
next()or returns a response - Timeout misconfigs: Function timeout too short for the operation (check
vercel.jsonmaxDuration)
Add Logging (If Missing)
If the investigation reveals insufficient observability, add structured logging immediately — you cannot debug what you cannot see.
// API routes — wrap handlers with try/catch + logging
export async function POST(request: Request) {
console.log('[api/route] incoming request', { method: 'POST', url: request.url });
try {
const result = await doWork();
console.log('[api/route] success', { resultId: result.id });
return Response.json(result);
} catch (error) {
console.error('[api/route] failed', { error: String(error), stack: (error as Error).stack });
return Response.json({ error: 'Internal error' }, { status: 500 });
}
}
// Workflow steps — log entry/exit of every step
const result = await step.run('process-data', async () => {
console.log('[workflow:process-data] step started');
const data = await fetchData();
console.log('[workflow:process-data] step completed', { count: data.length });
return data;
});
Key principle: Every async boundary, every external call, every step entry/exit should have a log line. When something hangs, the last log line tells you exactly where it stopped.
Cross-reference: For comprehensive logging setup (OpenTelemetry, log drains, Sentry, Vercel Analytics), see the observability skill. For workflow-specific debugging, see the workflow skill.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 直接解决用户明确的核心任务痛点——调试卡住、挂起、中断、等待等问题
- 显著提升开发效率,适用于广泛开发者场景
- 提供系统性的排查流程,从运行时日志到部署环境层层递进
亮点
- 触发词精准完整,覆盖多种变体,边界清晰
- 包含大量常见挫败信号短语,如 'stuck', 'hung', 'frozen', 'broken' 等
- 通过 allOf/anyOf/noneOf 精确控制边界,避免误触发
亮点
- Phase/步骤清晰,有出口条件,含端到端示例
- frontmatter完整,单文件≤500行
- Reporting Contract 明确规范了每一步的输出格式
亮点
- 工具来源明确,参数正确,覆盖主要异常
- 不可逆操作有确认机制
- 提供了详细的日志添加示例,确保后续可观测性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- openai.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。