Premium, token-optimized AI Skill that orchestrates a 10-Agent "Squad Review" to simulate a Senior Staff Engineer's audit.
Version: v0.2.5
Date: July 23, 2026
Token Efficiency Target: <50K tokens/session (vs. 500K industry avg)
One command. Installs to any AI platform.
Quickest (any OS — no download needed)
npx deepsightmacOS / Linux
bash <(curl -fsSL https://raw.githubusercontent.com/DevAnimecx/DeepSight/main/install.sh)Windows (CMD or PowerShell)
powershell -c "iwr -useb https://raw.githubusercontent.com/DevAnimecx/DeepSight/main/install.ps1 | iex"# Layer 1 — deterministic guardrails
bash scripts/run-semgrep.sh path/to/your/code
# Trigger a review (in Claude Code)
/review this PR
/audit security of src/auth/
"review this code for architecture issues"deepsight-skill/
├── SKILL.md # Main orchestrator (YAML header + workflow)
├── _platforms/ # Platform-specific configs
│ ├── claude/ # Claude Desktop + Claude Code
│ └── openai/ # Codex CLI + Custom GPT
├── agents/ # 10 specialized sub-agent instructions
│ ├── security.md # DeepSight-Sec (Red Teamer)
│ ├── architecture.md # DeepSight-Arch (Staff Architect)
│ ├── solid.md # DeepSight-Solid (Design Patterns)
│ ├── performance.md # DeepSight-Perf (Performance Eng)
│ ├── test.md # DeepSight-Test (QA Lead)
│ ├── error.md # DeepSight-Err (Reliability Eng)
│ ├── smell.md # DeepSight-Smell (Code Hygienist)
│ ├── pattern.md # DeepSight-Pattern (Framework Guru)
│ ├── data.md # DeepSight-Data (Privacy Officer)
│ └── dependency.md # DeepSight-Dep (Dependency Auditor)
├── scripts/ # Layer 1 deterministic analysis
│ ├── run-semgrep.sh # Semgrep + regex security scanner
│ ├── generate-poc.py # Exploit PoC generator
│ └── trace-data-flow.js # Cross-file dependency tracer
├── references/ # On-demand context loaded by agents
│ ├── security-rules.md # OWASP Top 10 rules
│ ├── arch-patterns.md # Hexagonal/Clean Architecture
│ ├── team-playbook.md # Project conventions (customize per repo)
│ └── framework-guides/ # React, Laravel, Next.js, Vue, Django
│ ├── react.md
│ ├── laravel.md
│ ├── nextjs.md
│ ├── vue.md
│ └── django.md
├── assets/ # Templates and configuration
│ ├── report-template.md # GitHub Comment template
│ └── risk-matrix.json # Severity scoring logic
├── tests/ # Validation fixtures
│ ├── vulnerable-code/ # Sample bad code (7 files)
│ └── expected-output/ # Ground truth test cases
├── bin.js # npm install entry point
├── package.json # npm package definition
├── install.sh # macOS/Linux installer
├── install.ps1 # Windows installer
└── README.md # This file
Runs locally via scripts/run-semgrep.sh. Blocks obvious errors before any LLM invocation:
eval()usage- Hardcoded secrets/credentials
- SQL injection patterns
- Semgrep rules (OWASP Top 10, security audit)
Exit codes: 0 = pass/proceed, 1 = too many findings
Sends only the git diff (not full files) to the Lead Architect, which routes hunks to relevant agents based on file patterns.
Model routing: Haiku-4 for routine checks, Opus-4.7 for Critical findings.
Agents trace data flow on-demand using Grep/Glob/Read. Validates end-to-end security paths (e.g., "Is sanitize() actually called by routes.ts?").
Lazy loading: Agents read only the specific functions/classes needed.
| Agent | Role | Focus |
|---|---|---|
| DeepSight-Sec | Red Teamer | PoC exploits for Critical findings |
| DeepSight-Arch | Staff Architect | Circular deps, god objects, layer violations |
| DeepSight-Solid | Design Patterns | SOLID violations, pattern suggestions |
| DeepSight-Perf | Performance Eng | N+1 queries, O(n²), missing indexes |
| DeepSight-Test | QA Lead | Untested methods, test stubs |
| DeepSight-Err | Reliability Eng | Swallowed exceptions, missing timeouts |
| DeepSight-Smell | Code Hygienist | Long methods, magic numbers, duplication |
| DeepSight-Pattern | Framework Guru | Stack-specific idioms (React, Laravel) |
| DeepSight-Data | Privacy Officer | PII leakage, hardcoded secrets |
| DeepSight-Dep | Dependency Auditor | Supply chain risks, outdated libs |
DeepSight produces a single GitHub Comment with:
- Executive Summary — Risk Score (0-10) + Approve/Request Changes
- Critical (Must Fix) — Findings with runnable PoC exploits
- Architectural Warnings — Cross-file coupling, pattern violations
- Suggestions — Performance tweaks, code smells
- Verified Correct — Positive reinforcement for good patterns
Every finding uses the Caveman Output format: file:line → severity → finding → fix
- Caveman Output — No filler phrases, no "Here is the code"
- Progressive Disclosure — Load references only when triggered
- Model Routing — Haiku-4 for routine, Opus-4.7 for complex
- Diff-Only — Never read unchanged code unless Layer 3 requires it
- Session Compaction — Use /recap for long threads
Target: 500K → 30-50K tokens/session (90% reduction)
Focus: Making npx deepsight bulletproof on every platform.
- Zero-dependency
npx deepsightinstall — works without bash, curl, or wget - Three-layer extraction fallback on Windows: PowerShell temp script → tar → Python zipfile
- Graceful stdin handling —
readAnswer()uses numeric fd to avoid TTY crashes - Prompt-based platform detection: "Install for $PLATFORM? (Y/n)" before each destination
- npx deepsight is now the recommended install method (vs. curl|bash)
- Landing page redesigned — animated gradient "Recommended" card
- No Node.js required after install — skill is fully self-contained
- All shell installers auto-detect Claude Desktop, Claude Code, Codex CLI, and GPT
npx deepsightcrashes on Node.js <22 —process.stdinread failure fixed- Windows ZIP extraction — temp PowerShell script avoids inline quote collisions
- Async race condition in download pipeline — Promise chain properly wired
- Leaked tokens in test fixtures — sensitive content sanitized before git push
Edit references/team-playbook.md with your team's conventions (naming, error handling, API design, etc.).
Add framework-specific guides in references/framework-guides/. Currently includes React, Laravel, Next.js, Vue, Django.
Extend references/security-rules.md with custom rules or company-specific policies.
- Claude Code with skill support
- Node.js (for
trace-data-flow.js) - Python 3 (for
generate-poc.py) - Optional: Semgrep (
pip install semgrep) for enhanced Layer 1 scanning
MIT