typescript-intel
2
总安装量
2
周安装量
#64994
全站排名
安装命令
npx skills add https://github.com/onerbaris/typescript-intel --skill typescript-intel
Agent 安装分布
claude-code
2
Skill 文档
typescript-intel
IDE intelligence for TypeScript projects via Language Server.
Commands
Run from the skill directory:
npx tsx scripts/typescript-intel.ts hover <file> <line> <col> # Type info + docs
npx tsx scripts/typescript-intel.ts definition <file> <line> <col> # Go to definition
npx tsx scripts/typescript-intel.ts references <file> <line> <col> # Find all usages
npx tsx scripts/typescript-intel.ts diagnostics <file> # Type errors
npx tsx scripts/typescript-intel.ts completions <file> <line> <col> # Available members
File paths can be relative or absolute. tsconfig.json is auto-detected.
Output Examples
// hover
{"type": "function greet(name: string): string", "docs": "Greets user"}
// definition
[{"file": "/src/utils.ts", "line": 42, "col": 1, "preview": "export function greet..."}]
// references
[{"file": "/src/app.ts", "line": 10, "col": 5, "isWriteAccess": false}]
// diagnostics
[{"line": 15, "col": 10, "message": "Type 'string' is not assignable to type 'number'", "code": 2322}]
// completions
[{"name": "toString", "kind": "method"}, {"name": "length", "kind": "property"}]
Workflows
Validate after editing: Run diagnostics on modified files. Fix errors until empty array.
Safe refactoring: Run references before renaming/deleting. Update each location. Verify with diagnostics.
Understand code: Use hover for type info, definition for implementation.