Code Review — TypeScript
Apply TypeScript-specific linting using the checklist in this skill directory.
Step 0 — Load Project Map
Check for .agentic/project-map.md:
- If present: read it. Use the layer structure, key modules table, and non-obvious
conventions it defines to orient all findings. Skip redundant filesystem exploration.
- If absent: run lightweight auto-discovery:
- Read
package.json to identify dependencies and scripts
- Inspect
tsconfig.json for strict mode settings
- Detect framework (Next.js, Hono, Vue, React, etc.) from dependencies
- List top-level
src/ directories
- Suggest running the
project-map skill after this review to avoid this overhead next time
Step 1 — Load Checklist
Read checklist.md in this skill directory and apply every item to the codebase.
Step 2 — Determine Scope
- If the user specifies files, review those.
- Otherwise review the current diff:
git diff HEAD or staged changes.
- Do not review files outside stated scope.
Step 3 — Analyze with TypeScript-specific Lenses
Work through the checklist systematically. For each issue found, note:
- File path and line number
- Risk level:
critical / high / medium / low
- Description of the issue
- Why it matters
- Verifiable source reference when the finding is non-obvious
Focus particularly on:
- Type safety gaps (
any, implicit any, missing strict mode)
- ESM/CJS interop issues
- Async correctness (floating promises, Promise.all misuse)
- Money/precision issues
- Domain modeling boundary violations
Step 4 — Write the Review
Output the review in this exact format:
## Code Review — TypeScript
### What Works Well
- [At least one specific positive observation with file reference]
### Findings
#### Critical
- `path/to/file.ts:42` [critical] Description. Why it must change. *Source: [TypeScript Handbook — unknown](https://www.typescriptlang.org/docs/handbook/2/functions.html#unknown)*
#### High
- `path/to/file.ts:18` [high] Description. Why it matters. *Source: ...*
#### Medium
- `path/to/file.ts:7` [medium] Description.
#### Low
- `path/to/file.ts:5` [low] Minor note.
### Suggested Improvements
[Concrete alternatives and solutions for the most impactful findings]
### Summary
[One paragraph: overall quality, main risks, merge recommendation]
Step 5 — Tone and Sources
- Be direct and specific. Reference exact line numbers.
- Cite verifiable sources (TypeScript Handbook, official docs, well-known style guides)
inline for non-obvious findings. Include the source name and URL.
- Explain why, not just what to change.
- Assume good intent. Use sandwich communication: open with positives, then findings
by severity descending, then actionable improvement path.
- For async state or Promise lifecycle issues too complex for prose: emit a
stateDiagram-v2
Mermaid block showing the problematic and correct state transitions.
Source: soulcodex/agentic — distributed by TomeVault.
1---2name: soulcodex-agentic-code-review-typescript3description: Code Review — TypeScript4---56## Code Review — TypeScript78Apply TypeScript-specific linting using the checklist in this skill directory.910### Step 0 — Load Project Map1112Check for `.agentic/project-map.md`:13- **If present**: read it. Use the layer structure, key modules table, and non-obvious14 conventions it defines to orient all findings. Skip redundant filesystem exploration.15- **If absent**: run lightweight auto-discovery:16 - Read `package.json` to identify dependencies and scripts17 - Inspect `tsconfig.json` for strict mode settings18 - Detect framework (Next.js, Hono, Vue, React, etc.) from dependencies19 - List top-level `src/` directories20 - Suggest running the `project-map` skill after this review to avoid this overhead next time2122### Step 1 — Load Checklist2324Read `checklist.md` in this skill directory and apply every item to the codebase.2526### Step 2 — Determine Scope2728- **If the user specifies files**, review those.29- **Otherwise review the current diff**: `git diff HEAD` or staged changes.30- **Do not review files outside stated scope**.3132### Step 3 — Analyze with TypeScript-specific Lenses3334Work through the checklist systematically. For each issue found, note:35- File path and line number36- Risk level: `critical` / `high` / `medium` / `low`37- Description of the issue38- Why it matters39- Verifiable source reference when the finding is non-obvious4041Focus particularly on:42- Type safety gaps (`any`, implicit `any`, missing strict mode)43- ESM/CJS interop issues44- Async correctness (floating promises, Promise.all misuse)45- Money/precision issues46- Domain modeling boundary violations4748### Step 4 — Write the Review4950Output the review in this exact format:5152```53## Code Review — TypeScript5455### What Works Well56- [At least one specific positive observation with file reference]5758### Findings5960#### Critical61- `path/to/file.ts:42` [critical] Description. Why it must change. *Source: [TypeScript Handbook — unknown](https://www.typescriptlang.org/docs/handbook/2/functions.html#unknown)*6263#### High64- `path/to/file.ts:18` [high] Description. Why it matters. *Source: ...*6566#### Medium67- `path/to/file.ts:7` [medium] Description.6869#### Low70- `path/to/file.ts:5` [low] Minor note.7172### Suggested Improvements73[Concrete alternatives and solutions for the most impactful findings]7475### Summary76[One paragraph: overall quality, main risks, merge recommendation]77```7879### Step 5 — Tone and Sources8081- Be direct and specific. Reference exact line numbers.82- Cite verifiable sources (TypeScript Handbook, official docs, well-known style guides)83 inline for non-obvious findings. Include the source name and URL.84- Explain *why*, not just *what* to change.85- Assume good intent. Use sandwich communication: open with positives, then findings86 by severity descending, then actionable improvement path.87- For async state or Promise lifecycle issues too complex for prose: emit a `stateDiagram-v2`88 Mermaid block showing the problematic and correct state transitions.8990---91> Source: [soulcodex/agentic](https://github.com/soulcodex/agentic) — distributed by [TomeVault](https://tomevault.io).92<!-- tomevault:4.0:skill_md:2026-06-16 -->