excel-mcp: Command for Claude Code

.claude/commands/typescript/TS-review-staged-unstaged.md

TS-review-staged-unstaged is a command for Claude Code from mort-lab/excel-mcp. It costs 0 tokens per session (891 once invoked), scanned A, original, MIT.

A command that examines both staged and unstaged Git changes, including new and modified files, and reviews them for TypeScript, Astro, performance, and project-pattern issues.

In plain words
What is it for?
Use it to review a pending TypeScript or Astro change set, checking types, component patterns, hydration, images, client-side code, and bundle size.
Why use it?
It helps catch problems in all local changes before they are committed, including files that are easy to overlook.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md.

This is mort-lab/excel-mcp's own configuration. It tells Claude Code how to work on excel-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything excel-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mort-lab/excel-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mort-lab/excel-mcp/main/.claude/commands/typescript/TS-review-staged-unstaged.md
Clone the repo
git clone --depth 1 https://github.com/mort-lab/excel-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for TS-review-staged-unstaged

README.md
[![agentmods](https://agentmods.dev/badge/commands/mort-lab/excel-mcp/ts-review-staged-unstaged/github.svg)](https://agentmods.dev/commands/mort-lab/excel-mcp/ts-review-staged-unstaged)
Your own site
<a href="https://agentmods.dev/commands/mort-lab/excel-mcp/ts-review-staged-unstaged"><img src="https://agentmods.dev/badge/commands/mort-lab/excel-mcp/ts-review-staged-unstaged/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for TS-review-staged-unstaged

Your own site · 80×15
<a href="https://agentmods.dev/commands/mort-lab/excel-mcp/ts-review-staged-unstaged"><img src="https://agentmods.dev/badge/commands/mort-lab/excel-mcp/ts-review-staged-unstaged.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 891 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00891
Opus 5 $0.00000 $0.00445
Sonnet 5 $0.00000 $0.00178
Haiku 4.5 $0.00000 $0.00089

Measured 12d ago against content hash 7a7f21ebd658, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

TS-review-staged-unstaged scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/typescript/TS-review-staged-unstaged.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

List and review any files in the staging area, both staged and unstaged. Ensure you look at both new files and modified files.

Check the diff of each file to see what has changed.

Previous review report: $ARGUMENTS

May or may not be added, ignore the previous review if not specified.

Review Focus Areas

  1. TypeScript Code Quality

    • Strict TypeScript usage with explicit types
    • No any types - use unknown if type is truly unknown
    • Proper type imports with import type { } syntax
    • Component props interfaces defined
    • Astro's built-in types used (HTMLAttributes, ComponentProps)
    • Following TypeScript strict mode compliance
  2. Astro-Specific Patterns

    • Proper hydration directives usage (client:load, client:visible, client:idle)
    • Static-first approach with selective hydration
    • Astro components for static content, framework components only for interactivity
    • Proper use of Astro.props and component interfaces
    • Content collections with Zod schemas
    • Server islands implementation where appropriate
  3. Performance & Bundle Optimization

    • No unnecessary client-side JavaScript
    • Appropriate hydration strategy choices
    • Image optimization with Astro's Image component
    • Bundle size considerations
    • No over-hydration of static content
  4. Security & Validation

    • Input validation with Zod schemas
    • Environment variables properly typed with astro:env
    • Content Security Policy implementation
    • No hardcoded secrets in client-side code
    • API route validation with proper error handling
  5. Content Management

    • Content collections properly configured
    • Zod schemas for all content types
    • Type-safe content queries
    • Proper content rendering and data handling
  6. Package Management

    • Using pnpm (not npm or yarn)
    • Proper dependency management
    • No unused dependencies
    • Correct dev vs runtime dependencies
  7. Code Structure & Architecture

    • Components under 200 lines (500 line hard limit)
    • Functions under 50 lines with single responsibility
    • Proper separation of concerns
    • Feature-based organization
    • Islands architecture principles followed
  8. Testing & Quality Assurance

    • Vitest configuration and tests
    • 80%+ test coverage maintained
    • Component tests using Astro Container API
    • API route integration tests
    • Proper mocking of external dependencies
  9. Build & Development

    • astro check passes with zero errors
    • ESLint compliance with zero warnings
    • Prettier formatting applied
    • Production build succeeds
    • No hydration mismatches
  10. Documentation & Maintenance

    • Clear component interfaces
    • Proper prop descriptions
    • CLAUDE.md updates for new patterns/dependencies
    • README updates if needed

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 127 lines · 0 tokens per session scan A 7a7f21ebd658

Subscribe to this mod's changes

TS-review-staged-unstaged is a command published in the GitHub repository mort-lab/excel-mcp (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 891 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.