skills/review-typescript/SKILL.md
Review TypeScript/JavaScript code for type safety, async patterns, error handling, and module design. Atomic skill; output is a findings list.
npx skillsauth add nesnilnehc/ai-cortex review-typescriptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
仅查看 TypeScript 和 JavaScript 代码的 语言和运行时约定。不要定义范围(差异与代码库)或执行安全/架构分析;这些是通过范围和cognitive技能来处理的。以标准格式发出结果列表以进行聚合。重点关注类型安全和类型系统使用、异步模式和 Promise 处理、错误处理、模块设计、运行时正确性、API 和接口设计以及性能和内存注意事项。
首要目标:生成 TypeScript/JavaScript 语言调查结果列表,涵盖给定代码范围的类型安全、异步模式、错误处理、模块设计、运行时正确性、API/界面设计和性能/内存。
成功标准(必须满足所有要求):
语言打字稿)、严重性、标题、描述和可选建议验收测试:输出是否包含以 TypeScript/JavaScript 为中心的结果列表,其中包含涵盖所有相关语言维度的文件/行引用,而无需执行安全性、架构或范围分析?
本技能负责:
本技能不负责:
转交点:当所有 TypeScript/JavaScript 结果发出后,将其移交给“orchestrate-code-review”进行聚合。对于代码中的注入风险或秘密,请记下它们并建议“审查安全性”。
何时使用:当审查的代码是 TypeScript 或 JavaScript 并且任务包括语言质量时。范围由调用者或用户确定。
as)。await);验证并发模式(“Promise.all”、“Promise.allSettled”)。import/export)而不是CJS(require/module.exports);审计桶出口的影响;检测循环依赖;检查模块范围内的意外副作用;验证一致的模块分辨率。===/!==);检测强制陷阱(隐式类型转换);检查原型污染风险;验证迭代器/生成器的正确性。不要做这些(其他技能可以处理它们):
何时停止并交接:
语言打字稿)、严重性、标题、描述和可选建议输出是否包含以 TypeScript/JavaScript 为中心的结果列表,其中包含涵盖所有相关语言维度的文件/行引用,而无需执行安全性、架构或范围分析?
anyawaitawait 或显式处理返回的 Promise。类别 = 语言打字稿。development
Generate an LLM agent test suite (golden cases, mock-LLM unit tests, evaluator harness) from an agent implementation and its agent-test contract. Use when an agent has no tests, or a contract exists but the test code is missing.
development
After code changes, auto-detect the project's build system and local deployment method for a given directory, then build the project and restart its locally-deployed environment (Docker Compose / systemd / process manager). Never assumes — asks only when detection is ambiguous. Caches detected commands per project in .cortex/redeploy-local.yaml; re-invocations on the same project skip re-scanning until signal files change, the cache expires (30 days), or the skill version bumps.
tools
Publish a NATS message conforming to a cross-team contract, using NATS MCP tools. Authors the contract on first use if missing. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting basics across sessions.
tools
Drain pending NATS messages from a producer contract via NATS MCP tools (default batch / drain-style). Applies Tolerant Reader semantics and per-message ack/nak/term, returning aggregated stats. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting.