Skip to content
Back to skills

Context

ASecurity

Get complexity and debt metrics before editing code

  • 25 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
developmentbashsecurity

Security analysis

A100/100

Scanned November 19, 2026

npx -y skills add panbanda/omen --skill context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/panbanda-context/badge)](https://www.skillsdirectory.com/skills/panbanda-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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
---

# Context Skill

Get the metrics before you change: `{{.focus}}`

## Quick Start

```bash
# Get structural outline of the target file
omen -f json outline --compact --file "{{.focus}}"

# Inspect a specific symbol's definition and callers. An ambiguous name exits with 1 and lists
# each definition with the command that selects it.
omen -f json symbol "{{.focus}}"

# Get the deep context of the whole repository (the command has no target argument)
omen -f json context
```

## What You Get

- **Complexity**: The functions with a cyclomatic complexity of 10 or more, or a cognitive complexity of 15 or more.
- **Debt**: The TODO, FIXME, and HACK markers with their severity.
- **Risk**: The ranked symbols and risks of the whole repository. The `context` command has no target argument.

## Thresholds

| Metric | Safe | Warning | Danger |
|--------|------|---------|--------|
| Cyclomatic | <10 | 10-20 | >20 |
| Cognitive | <15 | 15-30 | >30 |

## Next Actions

1. **High complexity**: Find the risks that are in the target file. Refactor before you make changes.
2. **Critical debt**: Address the security and bug markers first.
3. **Clean**: Continue with your change.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.