# Next.js & TypeScript Code Review + Test Gap Filler

> Review Next.js and TypeScript code with file-and-line findings, identify likely test gaps, and write tests in your existing style. Includes a local Python scanner, review checklist, report template and worked example.

Next.js & TypeScript Code Review + Test Gap Filler is a paid AI agent skill on Agensi by Ahmad Rao, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Ahmad Rao](https://www.agensi.io/creators/ahmad-rao)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0.1
- Last updated: 2026-12-05
- Security: scan passed (2026-12-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/next-js-typescript-code-review-test-gap-filler
- Tags: code-review, typescript, nextjs, testing, security, pull-request

## What it does

- Review security, correctness, performance, Next.js/React and accessibility in structured passes
- Identify likely missing tests with a local TypeScript, JavaScript and Python scanner
- Write requested tests in the project’s existing Vitest, Jest or pytest style
- Report findings with severity, file, line, evidence and a concrete suggested fix
- Run available test commands and distinguish passing, failing and unexecuted tests

## Who it's for

- **Founders launching a Next.js app:** Get a structured review of API routes, authorization, data writes and likely test gaps before launch. Try: "Audit my repository before I launch on Monday."
- **Developers with a big pull request:** Speed up your reviews with a detailed list of bugs, security risks, and performance tips. Try: "Review this pull request and find any logic errors."
- **Teams needing better test coverage:** Prioritize likely gaps, inspect existing tests and ask the agent to add useful regression cases. Try: "Find the test gaps in my auth and payment logic and write Vitest tests for them."

## About this skill

Give your agent a repeatable code-review workflow before you merge a Next.js or TypeScript change. Get prioritized findings with file-and-line evidence, likely test gaps and requested regression tests in your project's existing style.

### How it works
1. Provide an accessible repository path, diff or files and define the review scope.
2. The agent reads the code and reviews security, correctness, performance, TypeScript/React/Next.js and accessibility.
3. A standalone Python scanner identifies common callable exports and likely missing tests in TypeScript, JavaScript and Python.
4. The agent inspects those candidates, writes tests when requested and runs the available project test commands.
5. You receive a verdict, evidence, concrete suggested fixes and honest test results. Production changes require your request.

### What is included
- A structured SKILL.md workflow and detailed review checklist.
- A standard-library Python scanner with text and JSON output.
- A PR review report template plus Vitest and pytest starting templates.
- A worked offline review of a deliberately flawed promo-code API route, including actual scanner results and explicit execution limits.

### Why use this workflow
The package combines a repeatable checklist, a runnable scanner and an evidence-based report format. It helps focus an agent on risky authorization, validation, data-write and concurrency paths, while keeping uncertain findings separate. It is an aid to engineering judgment, not a security certification.

### Good fits
Review a pull request before merging, examine a Next.js API route before launch, or add regression tests around pricing, authorization and input validation.

### Known limitations
The scanner uses lightweight syntax and test-name matching. It does not enumerate every export or measure executed coverage. Aliases, complex syntax and custom test layouts need manual inspection. Tests require the project's installed runtime and dependencies; unavailable tests are marked written, not run. Review is limited to accessible code and cannot guarantee a bug-free or secure application.

The scanner makes no network calls and writes no files. Review and test generation happen in your agent environment; its model and hosting determine code processing. No Agensi API tools or new API keys are required.

## Requires

- Python 3.10+ for the scanner
- Python
- Optional: Existing project test runner

Provide the repository or diff in your agent environment. Basic static review can work without Python; the scanner requires it. No Agensi tools or new API keys.

## Technical details

Package v1.0.1 contains 7 files: SKILL.md, a review checklist, a standalone Python test-gap scanner, three report/test templates, and an offline worked example. Scanner uses Python standard library only; supports common direct JavaScript/TypeScript callable exports and Python functions/methods. It uses colocated/mirrored paths and relative JS imports to associate tests. Name matches are not executed coverage. Run against a local repository with Python 3.10+. Existing project runtimes, dependencies and test commands are needed to execute Vitest/Jest/pytest tests. No platform tools, external API keys or automatic dependency installation.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Next.js & TypeScript Code Review + Test Gap Filler skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does this measure test coverage?

No. The Python scanner detects common callable declarations and matches test files and names. A name mention is not proof of execution or behavioral coverage. The agent must inspect actual tests and any available coverage output.

### What setup do I need?

Provide accessible code or a repository in your SKILL.md-compatible coding agent. The scanner uses Python 3.10+ and only its standard library. Executing tests additionally requires your project’s runtime, installed dependencies and existing test runner.

### Does it change production code automatically?

A review-only request produces a report. Ask for test-gap filling to create tests, or explicitly ask for implementation fixes. Valid failing regression tests are preserved and reported rather than weakened to make a run pass.

### Where is my code processed?

The scanner runs in your agent environment, makes no network calls and writes no files. Your agent’s model and hosting determine how review content is processed. Project test commands are inspected and live services should be mocked. No new API keys or Agensi tools are needed.

### What does the included demo prove?

It shows an actual offline review of a deliberately flawed promo-code handler and an actual scanner run. The fixture has no runnable app dependencies, so no passing application tests are claimed. Results on your repository depend on its code, context and agent.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
