一键导入
context
Get complexity and debt metrics before editing code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Get complexity and debt metrics before editing code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze blast radius before changing specific files. Use before refactoring core components, making breaking API changes, or modifying shared code to identify affected files and stakeholders.
Focus code review on high-risk changes
Generate onboarding guide with key symbols, architecture overview, and subject matter experts. Use when joining a new project, onboarding teammates, or creating project documentation.
Identify highest-ROI refactoring targets
Analyze a repository and generate an intelligent omen.toml with project-specific defaults. Use when starting Omen in a new project.
Audit module coupling, cohesion, hidden dependencies, and design smells. Use when conducting architecture reviews, evaluating design decisions, or identifying structural tech debt.
| name | context |
| description | Get complexity and debt metrics before editing code |
| usage | /context <file-or-symbol> |
| arguments | [{"name":"focus","description":"File path or symbol name","required":true}] |
Get metrics before modifying: {{.focus}}
# Get structural outline of the target file
omen -f json outline --compact --file "{{.focus}}"
# Inspect a specific symbol's definition and callers
omen -f json symbol --name "{{.focus}}"
# Get full deep context for LLM-assisted editing
omen -f json context --symbol "{{.focus}}"
| Metric | Safe | Warning | Danger |
|---|---|---|---|
| Cyclomatic | <10 | 10-20 | >20 |
| Cognitive | <15 | 15-30 | >30 |