Analyze and explain the intent behind AI tool calls. Use when you need to understand what an action will do, verify your interpretation is correct, or explain your reasoning to the user.
This skill helps analyze and explain the intent behind tool calls, making the AI's interpretation visible and verifiable.
Acknowledgement: This skill implements concepts from the YouTube video "The AI Failure Mode Nobody Warned You About" - making AI interpretation visible before action.
Use this skill when:
When analyzing intent, produce a structured document with these 7 fields:
One sentence describing EXACTLY what will happen. Be specific about files, paths, counts, sizes.
3-5 concrete statements about what this action will NOT do. Focus on adjacent actions that might be confused with the intended action.
What should happen if the action encounters ambiguity or problems. Prefer "stop and ask" for destructive actions.
1-2 other valid interpretations that were considered, with reasoning for why they weren't chosen.
Your confidence in this interpretation, broken down by:
User request: "Clean up old docs"
Intent Analysis:
TASK: Delete all files in ~/docs/ not modified in the last 180 days
WHO/WHAT:
Affected: ~/docs/**/* (47 files, 2.3GB estimated)
Excluded: Files modified in last 180 days, subdirectories themselves
BOUNDARIES:
- Will not delete files outside ~/docs/
- Will not delete directories themselves
- Will not delete files matching 'keep' in name
- Will not proceed if any file is open
IF UNCERTAIN: Stop and ask for clarification. Do not delete partially.
REVERSIBILITY:
Can Undo: NO
Method: Restore from backup
Effort: Impossible (permanent CLI deletion)
ALTERNATIVES:
1. "Archive instead of delete"
Outcome: Move files to ~/archive/docs/
Not chosen: "clean up" typically implies deletion for space
2. "Delete ALL files, not just old ones"
Outcome: Remove all 50+ files
Not chosen: User said "old" specifically
CONFIDENCE: 0.62
Ambiguity: 0.55 - "clean up" has multiple meanings
Distance: 0.70 - Direct mapping with reasonable defaults
Historical: 0.60 - Similar patterns approved before
Uncertainty: 0.65 - No hedging, but "old" is subjective
This skill works with the ICR plugin to:
/icr:simulate command for dry-run analysis/icr:debugBe Specific: Never say "delete files" when you can say "delete 47 .tar.gz files older than 30 days in /tmp/builds/"
Expose Inferences: If you're assuming defaults (like "30 days" for "old"), say so explicitly
Think Adversarially: What could go wrong? What might the user NOT want?
Honest Reversibility: Most CLI operations are permanent. Don't sugarcoat.
Consider Scope Creep: The biggest risks come from affecting more than intended