gt:codebase-analysis
Codebase Analysis
Perform deep codebase exploration and analysis in an isolated sub-agent context. Heavy Grep/Glob operations stay separate from your main work.
Built-in Analysis Types
| 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.) |
Usage
/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)
Tools Available in Fork Context
| 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 |
How It Works
- Launches isolated agent -- intensive searching runs in parallel
- Performs extensive Grep/Glob without blocking main session
- Analyzes patterns and cross-references findings
- Returns structured report to main session
- You continue working while analysis runs
Report Format
## [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 |
More from genesiscz/genesistools
gt:claude-history
Find or reference a past Claude Code conversation — fixes, decisions, or discussions from earlier sessions ("you helped me fix", "we debugged", "I remember asking"). Locate sessions by topic, file, or date. Not for codebase/git/Slack history.
2gt:timelog
Sync time from Timely to Azure DevOps, and fill Clarity PPM timesheets. Use when user says "sync timely", "log my time from timely", "propose time entries", "what did I work on today", "sync my tracked time", "fill clarity", "sync to clarity", "clarity timesheet", "export timelog", "ppm". Analyzes Timely auto-tracked activities and git commits to generate Azure DevOps time log proposals, and bridges ADO timelogs to CA PPM Clarity timesheets.
1gt:writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
1gt:azure-devops
Interact with Azure DevOps work items, queries, dashboards, and time logging. Use when user asks to get/fetch/show work items, queries, tasks, bugs from Azure DevOps. Also handles analyzing work items and time logging. Triggers on phrases like "get workitem", "fetch task", "show query", "download tasks", "analyze workitem", "analyze task", "log time", "timelog", "time entry", or Azure DevOps URLs.
1gt:automate
|
1gt:typescript-error-fixer
Fix TypeScript compilation errors and eliminate 'any' types across the codebase. Use when build fails due to type errors, when auditing type safety, or when eliminating 'any' types.
1