Agent skill
iterative-analysis
Performs sequential multi-round oracle analysis where each round builds on previous findings. Use when user specifies analysis count (e.g., "analyze 5 times"), asks to think repeatedly, or needs progressive refinement.
Install this agent skill to your Project
npx add-skill https://github.com/meglinge/megskills/tree/main/skills/iterative-analysis
SKILL.md
Iterative Analysis
Performs multi-round, progressively deeper analysis using the oracle. Each iteration builds upon previous findings to refine understanding.
When to Use
- User asks for "deep thinking" or "thorough analysis"
- Complex problems requiring multiple perspectives
- When initial analysis needs refinement
- User explicitly requests N rounds of analysis
Parameters
- Iterations: Number of analysis rounds (default: 3, user can specify)
- Focus: The topic or problem to analyze
- Files: Relevant files to examine
Workflow
Step 1: Get User Requirements
Ask user (if not specified):
- What to analyze
- How many iterations (default: 3)
- Any specific focus areas
Step 2: Execute Iterative Analysis
For each iteration (1 to N):
Round 1 - Initial Analysis:
oracle(
task: "Analyze [topic]. Provide initial findings, identify key areas needing deeper investigation.",
files: [relevant_files]
)
Round 2 - Deeper Investigation:
oracle(
task: "Based on previous findings: [summary of round 1].
Dig deeper into identified issues. Challenge initial assumptions.
Find edge cases and overlooked aspects.",
files: [relevant_files],
context: "[Round 1 findings]"
)
Round 3 - Refinement & Synthesis:
oracle(
task: "Based on all previous analysis: [summary of rounds 1-2].
Synthesize findings. Identify patterns. Provide final recommendations.
Rate confidence level for each conclusion.",
files: [relevant_files],
context: "[All previous findings]"
)
... continue for additional rounds as specified
Step 3: Final Report
After all iterations, compile:
- Key discoveries from each round
- Evolution of understanding
- Final conclusions with confidence levels
- Actionable recommendations
Iteration Prompts Template
| Round | Focus |
|---|---|
| 1 | Initial exploration, identify key areas |
| 2 | Challenge assumptions, find edge cases |
| 3 | Cross-validate, identify patterns |
| 4 | Stress-test conclusions, find gaps |
| 5+ | Synthesize, prioritize, finalize |
Example Usage
User: "帮我分析这个认证系统,进行5轮分析"
Round 1: "Analyze the authentication system architecture and flow"
Round 2: "Based on [R1], investigate security vulnerabilities and edge cases"
Round 3: "Based on [R1,R2], analyze error handling and failure modes"
Round 4: "Based on [R1-R3], evaluate scalability and performance implications"
Round 5: "Synthesize all findings, prioritize issues, provide remediation plan"
Best Practices
- Carry Context Forward: Each round must reference previous findings
- Progressive Focus: Narrow focus as iterations progress
- Challenge Assumptions: Later rounds should question earlier conclusions
- Track Evolution: Note how understanding changed across rounds
- Confidence Levels: Final round should rate certainty of each finding
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
deep-analysis
Uses multiple parallel finder agents and multiple oracle consultations simultaneously for broad analysis. Use when asked to search from multiple angles, investigate across many files, or need parallel multi-perspective analysis.
smart-commit
Splits uncommitted changes into multiple logical commits by functionality. Use when asked to organize commits, split changes, or create atomic commits.
scaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
Didn't find tool you were looking for?