一键导入
analyze
Deep analysis mode - thorough multi-phase investigation with expert consultation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deep analysis mode - thorough multi-phase investigation with expert consultation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | analyze |
| description | Deep analysis mode - thorough multi-phase investigation with expert consultation |
Current Time: !date
Perform a comprehensive analysis using multi-phase expert consultation and parallel research.
Launch immediately:
background_task(agent="explore", prompt="Map relevant code structure...")
background_task(agent="explore", prompt="Find related patterns...")
background_task(agent="librarian", prompt="Research best practices for...")
While swarm runs, use direct tools:
glob to find relevant filesgrep to identify patternsread to understand key codeBased on findings, consult specialists:
| Domain | Agent | Focus |
|---|---|---|
| Architecture | @architect | System design, data flow, dependencies |
| Security | @security | Vulnerabilities, threat model, risks |
| Reliability | @sre | Scalability, SLOs, observability |
| Performance | @perf | Profiling, bottlenecks, optimization |
| Patterns | @principal | Code quality, best practices, tradeoffs |
Analyze comprehensively:
Combine findings into actionable output:
## Executive Summary
[2-3 sentences: key findings and recommendation]
## Detailed Analysis
### Architecture
[Component analysis, data flow, dependencies]
### Code Quality
[Patterns, anti-patterns, maintainability]
### Security
[Vulnerabilities, risks, compliance]
### Performance
[Bottlenecks, scalability concerns]
## Issues Found
### Critical (P0)
- [Issue with location and impact]
### High (P1)
- [Issue]
### Medium (P2)
- [Issue]
## Recommendations
### Immediate Actions
1. [Action with rationale]
### Short-term Improvements
1. [Improvement]
### Long-term Considerations
1. [Consideration]
## Trade-offs
[Analysis of different approaches with pros/cons]
| Area | What to Examine |
|---|---|
| Correctness | Logic errors, edge cases, assumptions |
| Security | Input validation, auth, data protection |
| Performance | Complexity, caching, resource usage |
| Reliability | Error handling, failure modes, recovery |
| Maintainability | Readability, coupling, documentation |
| Testability | Coverage, mocking, isolation |
Write to Obsidian via obsidian_append_content at:
$OBSIDIAN_PATH/Analysis/YYYY-MM-DD-target.md
Note:
$OBSIDIAN_PATHmust be a vault-relative path (e.g.,Projects/myapp), set per-project via direnv. Theobsidian_append_contenttool expects paths relative to the vault root.
Use this template for the Obsidian document:
@~/.config/opencode/templates/analysis-report.md
$ARGUMENTS
Analyze recent changes and add test coverage for HEAD commit
Write failing unit tests for feature requirements (TDD style)
Analyze test coverage gaps and report findings
Analyze service capacity, load patterns, and scaling requirements
Code review mode - comprehensive review with security, performance, and maintainability focus
Analyze unstaged changes and suggest atomic commit groups with messages