Audit Project Code
gt_auditScan source files for code issues in 18 categories and get live best-practice fixes from official documentation, with file:line locations.
Instructions
Scan source files for code issues across 18 categories, then fetch live best-practice fixes from official docs. Returns file:line locations.
Categories: layout, performance, accessibility, security, react, nextjs, typescript, node, python, vue, svelte, angular, testing, mobile, api, css, seo, i18n — or "all" (default).
For broad questions like "what can be improved" or "find all issues", use categories: ["all"]. For mobile apps (React Native/Expo), use ["mobile", "react", "typescript", "accessibility", "performance", "security"]. For web apps, use ["react", "nextjs", "typescript", "security", "accessibility", "performance", "layout", "css", "seo"].
If doc fetches fail with empty results, the user likely needs to set GT_GITHUB_TOKEN for higher GitHub API rate limits. The audit patterns themselves always run locally — only the fix guidance fetch requires network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | No | Project directory. Defaults to current working directory. | |
| categories | No | Issue categories to audit. Use "all" for broad questions. Default: all. Available: layout, performance, accessibility, security, react, nextjs, typescript, node, python, vue, svelte, angular, testing, mobile, api, css, seo, i18n. | |
| tokens | No | Max tokens per best-practice fetch | |
| maxFiles | No | Max source files to scan |