| name | deepsight |
|---|---|
| description | Premium token-optimized code intelligence platform for staff-engineer-level reviews. Use when the user requests security audits, architectural reviews, code quality analysis, performance reviews, PR reviews, shift-left security, or any comprehensive multi-agent code review. Triggers on: /review, /audit, /deepsight, "review this code", "audit security", "check architecture", "find bugs", "performance review", "code quality check". |
DeepSight v0.2.5 — Universal AI Skill Platform This skill now supports Claude Desktop, Claude Code, OpenAI Codex CLI, and Custom GPT. Platform-specific instructions in
_platforms/directory.
One command installs to any AI platform:
# Any OS (requires Node.js)
npx deepsight
# macOS / Linux (no Node.js needed)
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"Or copy this folder to any of these paths:
~/.agents/skills/deepsight/(Claude Code CLI)%APPDATA%\Claude\agents\skills\deepsight(Claude Desktop — Windows)~/Library/Application Support/Claude/agents/skills/deepsight/(Claude Desktop — macOS)~/.config/Claude/agents/skills/deepsight/(Claude Desktop — Linux)
- Run Layer 1 from
scripts/run-semgrep.shagainst changed files. - Block obvious errors (eval, hardcoded keys) before invoking any agent.
- Output: PASS / FAIL with specific file:line findings.
- Collect
git diff(changed hunks only, never full files). - Route diff hunks to relevant agents based on file patterns:
| Pattern | Agent |
|---|---|
| auth, login, jwt, oauth, session | security |
| controller, route, api, service, repo | architecture |
| db, query, migration, model | performance |
| test, spec, test | test |
| util, helper, middleware | error |
| component, hook, view | pattern |
| pii, secret, token, key, env | data |
| any | solid, smell |
- Escalate to Opus-4.7 only for Critical findings; use Haiku-4 for routine checks.
- For Critical findings, agents trace data flow on-demand using Grep/Glob/Read.
- Verify end-to-end paths (e.g., is sanitize() actually called by routes.ts?).
- Lazy load: agents read only the specific functions/classes needed.
Load agent instructions lazily from agents/<name>.md. Never load all 9 at once.
For each triggered agent:
- Read
agents/<name>.mdfor that agent's focused instructions. - Load
references/<relevant>.mdonly if the agent's scan triggers it. - Collect findings as
file:line → severity → finding → fix. - Return in Caveman Output format: no filler phrases, no "Here is the code."
Before starting review, ask the developer 3 context questions:
- What is the primary threat model?
- Are there performance constraints (e.g., <100ms)?
- What existing patterns should this mimic? If answers are vague, pause the review.
Synthesize all agent findings into a single GitHub Comment:
- Executive Summary: Risk Score (0-10) + Approve / Request Changes
- Critical (Must Fix): Findings with runnable PoC exploits (curl/Python)
- Architectural Warnings: Cross-file coupling, pattern violations
- Suggestions: Performance tweaks, code smells
- Verified Correct: Explicitly praised patterns (positive reinforcement)
Constraint: Every finding must reference file:line and offer a concrete fix. No generic advice.
- Caveman Output:
file:line → severity → finding → fix. No filler. - Progressive Disclosure: Load references only when triggered.
- Diff-Only: Never read unchanged code unless Layer 3 requires it.
- Model Routing: Haiku-4 for routine, Opus-4.7 for complex.
- Session Compaction: Use /recap for long threads.
DeepSight now runs on multiple AI platforms:
- Claude Desktop — via
claude_desktop_config.jsonskill integration - Claude Code — via
~/.agents/skills/deepsight/auto-detection - OpenAI Codex CLI — instructions in
_platforms/openai/codex-instructions.md - ChatGPT Custom GPT — instructions in
_platforms/openai/gpt-instructions.md
node detect-platform.js
# or with JSON output
node detect-platform.js --json_platforms/claude/skill-instructions.md_platforms/openai/unified-instructions.md_platforms/openai/codex-instructions.md_platforms/openai/gpt-instructions.md
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