How this skill is triggered — by the user, by Claude, or both
Slash command
/genesis-tools:codebase-analysisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Perform deep codebase exploration and analysis in an isolated sub-agent context. Heavy Grep/Glob operations stay separate from your main work.
Perform deep codebase exploration and analysis in an isolated sub-agent context. Heavy Grep/Glob operations stay separate from your main work.
| Type | What it finds |
|---|---|
dependencies | Import/require graph, circular dependencies, unused imports |
dead-code | Exported but never-imported functions, unreachable code paths |
api-surface | Public exports, REST endpoints, RPC methods |
type-safety | any types, type assertions, missing return types |
error-handling | Uncaught promises, empty catch blocks, missing error boundaries |
test-coverage | Files without corresponding test files, untested exports |
security | Hardcoded secrets, unsanitized inputs, eval usage |
patterns | Custom pattern matching (permissions, money, DTOs, etc.) |
/codebase-analysis --type=<type> [--output=summary|detailed]
Examples:
/codebase-analysis --type=type-safety # Find all `any` types and unsafe casts
/codebase-analysis --type=dead-code # Find unused exports
/codebase-analysis --type=error-handling # Audit error handling patterns
/codebase-analysis --type=patterns # Custom pattern (prompted interactively)
| Tool | Purpose |
|---|---|
tools mcp-tsc <file> | TypeScript diagnostics per file via persistent LSP |
tools mcp-ripgrep | Code search MCP server for structured queries |
tools collect-files-for-ai <dir> -c N | Gather top N relevant files for analysis |
tools files-to-prompt <dir> --cxml | Generate structured context XML |
## [Analysis Type] Report
**Scanned:** N files | **Findings:** N issues | **Severity:** High/Medium/Low
### Finding 1: [description]
- **File:** `src/utils/format.ts:L45`
- **Issue:** [what's wrong]
- **Suggestion:** [how to fix]
### Summary
| Severity | Count |
|----------|-------|
| High | N |
| Medium | N |
| Low | N |
npx claudepluginhub genesiscz/genesistools --plugin genesis-toolsRuns a 7-phase codebase analysis using typegraph-mcp tools, producing a detailed architectural report. Useful when onboarding to an unfamiliar codebase or before making significant changes.
Runs static tools like tsc, semgrep, knip to analyze codebase for dead code, test quality, duplicates, complexity, security, architecture. Full TS/JS support; limited Python/Go/Rust. Stores structured reports.
Performs deep codebase analysis for patterns, architecture, implementation details, and technical debt using codebase-analyst agent. Analyzes concepts, modules, questions, or provides overviews.