Skip to content
Back to skills

2495 Zerg Analyze Cb379fd3

ASecurity

Run static analysis, complexity metrics, and quality assessment.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
code-qualityjavascriptpythonjavatestinggitci/cdsecurity

Works with

  • claude code
  • terminal

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2495-zerg-analyze_cb379fd3 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2495 Zerg Analyze Cb379fd3?

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

Security grade badge for 2495 Zerg Analyze Cb379fd3
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2495-zerg-analyze-cb379fd3/badge)](https://www.skillsdirectory.com/skills/tools-only-2495-zerg-analyze-cb379fd3)

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

SKILL.md
# /zerg:analyze

Run static analysis, complexity metrics, and quality assessment.

## Synopsis

```
/zerg:analyze [--check lint|complexity|coverage|security|all]
              [--format text|json|sarif]
              [--threshold complexity=10,coverage=70]
              [--files path/to/files]
```

## Description

The `analyze` command performs static analysis on the project codebase. It supports multiple check types that can be run individually or combined, with configurable thresholds and output formats suitable for both human review and CI/CD integration.

### Check Types

**lint** -- Language-specific linting using tools such as ruff for Python and eslint for JavaScript.

**complexity** -- Cyclomatic and cognitive complexity analysis. Functions exceeding the configured threshold are flagged.

**coverage** -- Test coverage analysis and reporting. Identifies files and functions below the coverage threshold.

**security** -- Static Application Security Testing (SAST) for vulnerability detection using tools such as bandit and semgrep.

**all** -- Runs all of the above checks in sequence.

## Options

| Option | Default | Description |
|--------|---------|-------------|
| `--check` | `all` | Type of analysis to run. Accepts `lint`, `complexity`, `coverage`, `security`, or `all`. |
| `--format` | `text` | Output format. Accepts `text`, `json`, or `sarif`. |
| `--threshold` | `complexity=10,coverage=70` | Comma-separated key=value thresholds for pass/fail determination. |
| `--files` | entire project | Restrict analysis to specific file paths or directories. |

### Output Formats

| Format | Use Case |
|--------|----------|
| `text` | Human-readable summary for terminal output. |
| `json` | Machine-parseable JSON for scripts and automation. |
| `sarif` | Static Analysis Results Interchange Format for IDE integration and GitHub Advanced Security. |

## Examples

Run all checks with default thresholds:

```
/zerg:analyze --check all
```

Run linting only with JSON output:

```
/zerg:analyze --check lint --format json
```

Set custom complexity threshold:

```
/zerg:analyze --check complexity --threshold complexity=15
```

Generate SARIF output for IDE integration:

```
/zerg:analyze --check all --format sarif > results.sarif
```

## Exit Codes

| Code | Meaning |
|------|---------|
| 0 | All checks passed |
| 1 | One or more checks failed |
| 2 | Configuration error |

## Task Tracking

This command creates a Claude Code Task with the subject prefix `[Analyze]` on invocation, updates it to `in_progress` immediately, and marks it `completed` on success.

## See Also

- [[zerg-security]] -- Dedicated security scanning with compliance presets
- [[zerg-test]] -- Test execution and coverage measurement
- [[zerg-refactor]] -- Automated code improvements based on analysis findings

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.

Comments

Loading comments…

Newsletter

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