用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/diegosouzapw/awesome-omni-skill --skill analyze-script-failures命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Token-efficient tracking for AI orchestration. CLI-first for status updates (~50 tokens), agent fallback for complex ops (~1KB). Use when: updating task status, querying blockers, creating progress files, validating phases.
AshAi extension guidelines for integrating AI capabilities with Ash Framework. Use when implementing vectorization/embeddings, exposing Ash actions as LLM tools, creating prompt-backed actions, or setting up MCP servers. Covers semantic search, LangChain integration, and structured outputs.
This skill should be used when solving hard questions, complex architectural problems, or debugging issues that benefit from GPT-5 Pro or GPT-5.1 thinking models with large file context. Use when standard Claude analysis needs deeper reasoning or extended context windows.
基于 SOC 职业分类
正在显示 SKILL.md
| name | analyze-script-failures |
| description | Analyze script failures to identify source components and propose fixes |
| tools | Read, Grep, Glob, Bash, AskUserQuestion, Skill |
EXECUTION MODE: You are now executing this skill. DO NOT explain or summarize these instructions to the user. IMMEDIATELY begin the workflow below.
Analyzes script failures from the current session to identify the source component, trace how instructions led to the failed call, and propose fixes.
Activate when:
Skill: pm-plugin-development:plugin-architecture
Skill: plan-marshall:ref-development-standards
These provide architecture principles and non-prompting tool usage patterns.
A. Description Analysis (if provided):
B. Chat History Analysis:
python3 .plan/execute-script.py returning non-zero resultA. Extract Failure Details:
B. Trace Origin:
Determine source component type:
| Source Type | How to Identify |
|---|---|
| Command | Script call within /command-name invocation |
| Agent | Script call within Task agent context |
| Skill | Script call after Skill: skill-name activation |
Read source component file to find instruction context.
C. Analyze Instruction Path:
Load source component:
Read: {bundle}/{type}s/{name}.md
Find the instruction that led to script call:
python3 .plan/execute-script.py)Capture context (1-5 lines surrounding instruction)
For each failure, categorize the root cause:
| Category | Description | Fix Location |
|---|---|---|
| Missing Script Instruction | Script not documented in component | Add to component |
| Wrong Script Parameters | Parameters incorrect or missing | Fix component instruction |
| LLM Invented Script | No instruction, LLM guessed script call | Add flow step to component |
| Missing API | Operation needed but no script exists | Create new script |
| Script Bug | Script exists but has bug | Fix script implementation |
| Script Not Found | Notation invalid or script missing | Fix notation or add script |
Display comprehensive analysis:
+================================================================+
| Script Failure Analysis |
+================================================================+
## Failure {n}: {short_description}
### The Actual Failure
**Script Call**:
```bash
python3 .plan/execute-script.py {notation} {subcommand} {args}
Error:
Component: {type}: {name} ({bundle}) File: {file_path}:{line_number}
Context (instruction that triggered this):
{3-5 lines of context from source component}
Category: {category from Step 3} Analysis: {why this happened - how LLM interpreted instructions}
### Step 5: Propose Solutions
For each failure, generate appropriate fixes:
**If Missing Script Instruction**:
```markdown
## Proposed Fix: Add Script Instruction
Add to {component_file}:
### Script: {notation}
```bash
python3 .plan/execute-script.py {notation} {subcommand} {params}
Reasoning: Component uses this script but lacks explicit instruction.
**If Wrong Script Parameters**:
```markdown
## Proposed Fix: Correct Parameters
Update {component_file} at line {n}:
FROM:
```bash
{incorrect_call}
TO:
{correct_call}
Reasoning: {explanation of parameter error}
**If LLM Invented Script**:
```markdown
## Proposed Fix: Add Workflow Step
The LLM invented this script call because the workflow is missing a step.
Add to {component_file}:
### Step {n}: {step_name}
{workflow step with proper script call}
**Reasoning**: LLM tried to accomplish {goal} but no instruction existed.
If Missing API:
## Proposed Fix: Create New Script
A new script API is needed:
**Script**: {notation}
**Subcommand**: {subcommand}
**Purpose**: {what operation is needed}
**Reasoning**: This operation is sensible for {context} but no script supports it.
Present solutions using AskUserQuestion:
Based on my analysis, I found {n} script failure(s).
For each failure, which action would you like to take?
Options for each failure:
For each selected action:
If Apply fix:
If Record as lesson:
Skill: plan-marshall:manage-lessonspython3 .plan/execute-script.py plan-marshall:manage-lessons:manage-lesson add \
--component "{source_component}" \
--category "bug" \
--title "Script failure: {short_description}" \
--detail "{detailed analysis and solution}"
Display actions taken:
+================================================================+
| Script Failure Analysis Complete |
+================================================================+
Failures analyzed: {total}
Fixes applied: {applied_count}
Lessons recorded: {lessons_count}
Skipped: {skipped_count}
Applied fixes:
- {component_1}: {fix_description}
- {component_2}: {fix_description}
Recorded lessons:
- {lesson_id}: {title}
Analysis Accuracy:
Script Identification:
python3 .plan/execute-script.py {notation}{bundle}:{skill}:{script}Context Extraction:
Fix Safety:
Lessons Learned Integration:
plan-marshall:manage-lessons skill for recordingThis skill is designed to run without user prompts for analysis operations.
File Operations:
Read(marketplace/**) - Read marketplace componentsGrep(marketplace/**) - Search for patternsGlob(marketplace/**) - Find filesPrompting Behavior: