用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/shinpr/codex-workflows --skill recipe-diagnose命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | recipe-diagnose |
| description | Investigate problem, verify findings, and derive solutions through structured diagnosis. |
ai-development-guide — AI development patternscoding-rules — coding standardsllm-friendly-context — clear prompts, handoffs, and generated artifactsSpawn rule: every spawn_agent call uses fork_turns="none" so the subagent receives only the task message and explicitly provided context.
Context: Diagnosis flow to identify concrete failure points and present solutions
Target problem: $ARGUMENTS
Execution Method:
The orchestrator structures the reported problem, coordinates the three specialist stages, evaluates their results, and passes only the context needed by the next stage.
Execution Plan: Reuse the active execution plan. When the workflow has multiple dependent actions and no plan exists, create one that tracks them through final verification. Complete a plan step after verifying its result; start a dependent step after its prerequisites are satisfied.
| Type | Criteria |
|---|---|
| Change Failure | Indicates some change occurred before the problem appeared |
| New Discovery | No relation to changes is indicated |
If uncertain, keep the type provisional and let repository history and investigation evidence resolve it.
For change failures, resolve the following from the supplied report and repository evidence when available:
Carry unresolved details into the investigator prompt as investigation targets and continue.
Problem -> investigator -> verifier
verifier needs_more_investigation -> investigator while new evidence can change coverage
verifier ready_for_solution -> solver
solver recommendation -> Report
solver null recommendation -> investigator while new evidence can change the result
evidence saturated before recommendation -> unresolved Report
Context Separation: Pass only structured output to each step. Each step starts fresh with the data only.
Execute the registered steps:
Spawn investigator agent with the following prompt:
Comprehensively collect information related to the following phenomenon.
Phenomenon: [Problem reported by user]
For change failures, include available facts and unresolved investigation targets for:
- what changed
- what broke
- what both areas share
Expected output: Evidence matrix, path map, failure points, comparison analysis results, list of unexplored areas, investigation limitations
Review investigation output:
Quality Check (verify output contains the following):
comparisonAnalysis is present and normalImplementation is non-null, or explicitly states that no working implementation was foundpathMap is present with ordered nodes or explicit unknown segmentsinvestigationSources covers the source types needed to support or refute the causal pathWhen required evidence is missing, re-run investigator with the missing items and previous output. Proceed to verifier when the causal path and its material unknowns are explicit.
Proceed to verifier once quality is satisfied.
Spawn verifier agent: "Verify the following investigation results. Investigation results: [Investigation output]"
Expected output: Path coverage findings, independent failure-point evaluation, final conclusion, coverageAssessment/finalStatus
Coverage Criteria:
When finalStatus=ready_for_solution, spawn solver agent: "Derive solutions based on the following verified conclusion. Verified conclusion: [verifier's conclusion]. Failure-point evaluations: [verifier's failurePointsEvaluation]. Verification limitations: [verifier's verificationLimitations]. Impact analysis: [investigator output impactAnalysis]."
Expected output: Credible materially distinct solutions, relevant tradeoffs, and either a supported recommendation with implementation steps or a null recommendation with exact missing evidence. One solution is sufficient when evidence rules out a meaningful alternative.
Completion condition: finalStatus=ready_for_solution and solver returns a non-null evidence-supported recommendation.
When not reached: Return to Step 1 with the verifier's material unknowns or solver's uncertaintyHandling.missingEvidence as investigation targets while repository or supplied evidence can change the result. When further investigation produces no new decision-relevant evidence, report the unresolved input and its effect instead of repeating the loop.
Prerequisite: a non-null solver recommendation. When available evidence stops changing without producing one, report the exact unresolved input and its effect, and mark recommendation, implementation steps, and alternatives N/A.
After diagnosis completion, report to user in the following format:
## Diagnosis Result Summary
### Identified Failure Points
[Failure point list from verification results]
- Failure-point relationships: [independent/upstream_of/downstream_of/amplifies/same_boundary]
### Verification Process
- Investigation scope: [Scope confirmed in investigation]
- Additional investigation: [material evidence added, or none]
- Coverage assessment: [sufficient/partial/insufficient]
### Recommended Solution
[Solution derivation recommendation]
Rationale: [Selection rationale]
### Implementation Steps
1. [Step 1]
2. [Step 2]
...
### Alternatives
[Material alternative descriptions, or none]
### Residual Risks
[solver's residualRisks]
### Post-Resolution Verification Items
- [Verification item 1]
- [Verification item 2]
finalStatus=ready_for_solutionready_for_solution with a supported recommendation, or reported the exact unresolved input after available evidence stopped changing coverage基于 SOC 职业分类