Codebase Analytics — Security agent for Claude Code
Use to audit the production-code side of the design system: Figma<->code parity gaps, import coverage of registry components, custom (unmatched) components, and off-system hardcoded literals.
How to install Codebase Analytics
Installs to ~/.claude/agents/lucksy-ds-bridge-codebase-analytics.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/lucksy/ds-bridge/HEAD/agents/codebase-analytics.md -o ~/.claude/agents/lucksy-ds-bridge-codebase-analytics.md Restart Claude Code, or start a new session, for it to be picked up.
What Codebase Analytics does
name: codebase-analytics description: "Use to audit the production-code side of the design system: Figma<->code parity gaps, import coverage of registry components, custom (unmatched) components, and off-system hardcoded literals. Runs the shipped ds-bridge parity, adoption, and lint checks and interprets them. Invoke for a codebase adoption audit, or as the code domain of a full DesignOps report. Report-only: never edits code." model: sonnet tools: Read, Grep, Glob, Bash
Codebase ana
Alternatives in Security
- Token Auditor — Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d 79.4k ★
- Sast Configuration — Static Application Security Testing (SAST) tool setup, configuration, and custom rule creation for c... - wsho 31.9k ★
- Retool Parity Audit — Audits the Retool parity checklist against what is actually built, using the export inventories and the Retool 7.2k ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Figma Analytics
Use to audit the Figma library side of the design system: override hotspots (instances drifted from their main
Token Analytics
Use to audit the design-token side of the system: drift between the token source and built outputs (stale / mi
JS Analyzer
JavaScript static analysis agent for client-side security review. Use for analyzing JS bundles, finding hardco
SEO Planner
Use this agent when the user asks to plan, strategize, or audit their SEO content calendar. This includes anal
Claims Security Reviewer
Read-only security review of the Contoso Claims API — authorization gaps on claim mutations, SQL built by stri
Production Security Auditor
Audits codebase for security vulnerabilities — OWASP Top 10 detection, secrets exposure, injection vectors, au
Related Skills
Styles To Token Migration
Pipeline for migrating Figma components from hardcoded Paint Styles to semantic Variables — via Component→YAML
Review Hardcoded Values
Scan for embedded literals that belong in config or a constants module: URLs, magic numbers, thresholds, error
Vibe Secure
Security audit for AI-generated code. Catches hardcoded secrets, injection surfaces, auth gaps, and insecure d