Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills Aโ€“Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Lev Code Review

ASecurity

Code organization and modularity audit with parallel agent inspection. Creates XDG-compatible artifact reports using lev-ref validation patterns. Use when auditing code structure, checking fractal compliance, or reviewing module organization.

22 stars
0 votes
0 copies
0 views
Added 9/20/2026
developmentjavascripttypescriptgojavabashnodecode-reviewdocumentation

Works with

cli

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add lev-os/agents --skill lev-code-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lev Code Review?

Add the live security badge to your README โ€” it updates automatically with every re-scan.

Security grade badge for Lev Code Review
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/lev-os-lev-code-review/badge)](https://www.skillsdirectory.com/skills/lev-os-lev-code-review)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: lev-code-review
description: Code organization and modularity audit with parallel agent inspection. Creates XDG-compatible artifact reports using lev-ref validation patterns. Use when auditing code structure, checking fractal compliance, or reviewing module organization.
---

# lev-code-review

Multi-agent code review orchestrator that dispatches parallel inspection agents, validates against lev-ref patterns, and saves templated artifacts to XDG-compatible scratch folders.

## When to Use

Triggers:
- "audit the codebase"
- "check module compliance"
- "run code organization review"
- "inspect core/ structure"
- "fractal compliance check"

## Configuration

### Scratch Folder (XDG-Compatible)

```bash
# Default location
SCRATCH_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/lev/scratch/code-review"

# Session-specific subfolder
SESSION_DIR="$SCRATCH_DIR/$(date +%Y%m%d-%H%M%S)"
```

Artifacts are saved to `~/.config/lev/scratch/code-review/` by default.

## Parallel Agent Inspection Plan

### Phase 1: Structure Analysis (Parallel)

Launch 4 agents simultaneously:

```yaml
agents:
  - name: package-compliance
    focus: "Check package.json presence, @lev-os/* namespace, leviathan field"
    output: "$SESSION_DIR/01-package-compliance.md"

  - name: config-compliance
    focus: "Check config.yaml presence, fractal declarations, poly.sdk"
    output: "$SESSION_DIR/02-config-compliance.md"

  - name: structure-compliance
    focus: "Check src/, tests/, README.md, required directories"
    output: "$SESSION_DIR/03-structure-compliance.md"

  - name: anomaly-detection
    focus: "Find nested duplicates, orphaned node_modules, empty stubs"
    output: "$SESSION_DIR/04-anomalies.md"
```

### Phase 2: Deep Analysis (Parallel)

After Phase 1 completes:

```yaml
agents:
  - name: import-patterns
    focus: "Validate ES module exports, command patterns, tool exports"
    output: "$SESSION_DIR/05-import-patterns.md"

  - name: test-coverage
    focus: "Check test presence, naming conventions, test structure"
    output: "$SESSION_DIR/06-test-coverage.md"

  - name: dependency-audit
    focus: "Hoisting issues, local vs workspace deps, peer deps"
    output: "$SESSION_DIR/07-dependencies.md"
```

### Phase 3: Synthesis (Sequential)

```yaml
agents:
  - name: synthesizer
    focus: "Merge all artifacts into compliance matrix and recommendations"
    inputs: "$SESSION_DIR/*.md"
    output: "$SESSION_DIR/REPORT.md"
```

## Artifact Template

Each agent produces a markdown artifact following this template:

```markdown
# {Agent Name} Report

**Generated:** {ISO timestamp}
**Scope:** {directories analyzed}
**Confidence:** {N%} - {reason}

## Summary

{2-3 sentence overview}

## Findings

### Compliant
| Module | Status | Notes |
|--------|--------|-------|
| ... | ... | ... |

### Non-Compliant
| Module | Issue | Recommendation |
|--------|-------|----------------|
| ... | ... | ... |

### Anomalies
{If any detected}

## Metrics

- Total modules: {N}
- Compliant: {N} ({%})
- Partial: {N} ({%})
- Non-compliant: {N} ({%})

## Next Actions

1. {Action 1}
2. {Action 2}
...

---
*Report generated by lev-code-review agent: {agent-name}*
```

## lev-ref Integration

Apply these patterns from lev-ref throughout:

### Confidence Scoring (per finding)
```
[95% confident] Missing package.json (clear file absence)
[70% confident] Should merge schema/ dirs (multiple valid approaches)
[50% confident] CDO decomposition strategy (needs human input)
```

### Validation Gates (Two-Tier)

**Tier 1 - Universal (always check):**
```yaml
universal_gates:
  namespace_compliance:
    check: "All package.json use @lev-os/*"
    type: command
    command: "grep -r '\"name\":' core/*/package.json | grep -v @lev-os"
    pass: "empty output"

  structure_presence:
    check: "Required directories exist"
    type: file_check
    files: ["package.json", "src/", "README.md"]

  no_nested_duplicates:
    check: "No recursive directory structures"
    type: command
    command: "find core -type d -name 'core' | grep -v node_modules"
```

**Tier 2 - Dynamic (per module):**
Generated based on module type (core vs plugin, fractal owner vs consumer).

### Enriched Response Protocol

All outputs follow lev-ref inline conventions:

```
[92% confident] 5 modules fully compliant (package.json + config.yaml + tests)

๐Ÿ’ก Tip: Use `index` and `memory` as reference implementations

โ†’ Next: Fix auth-sniffer/core/ nested duplicate
โ†’ Related: Review CDO monolith decomposition strategy

[Resume: lev-code-review --continue $SESSION_DIR]
```

## Execution

### Quick Audit (5 modules)
```bash
lev code-review --scope core/{index,memory,polyglot-runners} --quick
```

### Full Audit
```bash
lev code-review --scope core/ --full
```

### Resume from Checkpoint
```bash
lev code-review --continue ~/.config/lev/scratch/code-review/20260113-165432
```

## Standards Reference

### Fractal Compliance (from PACKAGE_SCHEMA.md)

**Required for all core/* modules:**
- `package.json` with `@lev-os/*` namespace
- `package.json.leviathan` field for core packages
- `config.yaml` for fractal owners or consumers

**Required structure:**
```
core/{module}/
โ”œโ”€โ”€ package.json      # @lev-os/{name}, leviathan field
โ”œโ”€โ”€ config.yaml       # Fractal declarations (if applicable)
โ”œโ”€โ”€ README.md         # Documentation
โ”œโ”€โ”€ src/              # Source code
โ”‚   โ””โ”€โ”€ commands/     # Command handlers (if CLI)
โ””โ”€โ”€ tests/            # Test suite
```

**File naming:**
- JavaScript/TypeScript: `kebab-case.js`
- Go: `snake_case.go`

**Command pattern:**
```javascript
export const metadata = { name, namespace, description, args }
export async function handler(args, deps) { /* ... */ }
export default { metadata, handler }
```

## Output Location

Final reports are saved to:
```
~/.config/lev/scratch/code-review/
โ””โ”€โ”€ {session-timestamp}/
    โ”œโ”€โ”€ 01-package-compliance.md
    โ”œโ”€โ”€ 02-config-compliance.md
    โ”œโ”€โ”€ 03-structure-compliance.md
    โ”œโ”€โ”€ 04-anomalies.md
    โ”œโ”€โ”€ 05-import-patterns.md
    โ”œโ”€โ”€ 06-test-coverage.md
    โ”œโ”€โ”€ 07-dependencies.md
    โ””โ”€โ”€ REPORT.md          # Synthesized final report
```

## Example Invocation

```
User: run a code review on core/

Agent: [Using lev-code-review skill]

Launching parallel inspection agents...

Phase 1: Structure Analysis
โ”œโ”€ [package-compliance] Scanning 30 modules...
โ”œโ”€ [config-compliance] Checking config.yaml presence...
โ”œโ”€ [structure-compliance] Validating directory layouts...
โ””โ”€ [anomaly-detection] Searching for issues...

[โœ“] Phase 1 complete. 4 artifacts saved to ~/.config/lev/scratch/code-review/20260113-170000/

Phase 2: Deep Analysis
โ”œโ”€ [import-patterns] Analyzing exports...
โ”œโ”€ [test-coverage] Checking test structure...
โ””โ”€ [dependency-audit] Reviewing hoisting...

[โœ“] Phase 2 complete. 3 artifacts saved.

Phase 3: Synthesis
โ””โ”€ [synthesizer] Merging findings...

[โœ“] Final report: ~/.config/lev/scratch/code-review/20260113-170000/REPORT.md

[90% confident] Audit complete

Summary:
- 5 fully compliant (index, memory, validation, triggers, polyglot-runners)
- 12 partially compliant (missing config.yaml or tests)
- 13 non-compliant (no package.json or empty stubs)

๐Ÿ’ก Tip: Use `index` as reference for new modules

โ†’ Next: Fix auth-sniffer/core/ nested duplicate
โ†’ Related: Review CDO decomposition (822MB monolith)

[Resume: lev code-review --continue 20260113-170000]
```

Attribution

lev-oslev-os
View sourceMore from lev-os โ†’
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots ยท $299/mo ยท GSC-verified traffic ยท sponsors can never buy grades.

See placements

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots ยท $299/mo ยท GSC-verified traffic ยท sponsors can never buy grades.

See placements

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

281612 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2132 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch โ€” SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions โ€” even if they don't name TanStack Start specifically. No template repo โ€” Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development โ†’