obsidian-mcp: Agent for Claude Code

.claude/agents/typescript-code-reviewer.md

typescript-code-reviewer is an agent for Claude Code from eddmann/obsidian-mcp. It costs 384 tokens per session (1,380 once invoked), scanned A, original, MIT.

A TypeScript code-review agent that checks code for type safety, correctness, clarity, and common modern TypeScript practices. It reviews logical chunks such as functions, classes, modules, or features.

In plain words
What is it for?
Use it after completing TypeScript work to review public APIs, generics, async code, naming, function structure, and patterns such as optional chaining and nullish coalescing.
Why use it?
It helps catch unsafe types, missing null handling, promise mistakes, runtime risks, and maintainability problems before code is merged.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is eddmann/obsidian-mcp's own configuration. It tells Claude Code how to work on obsidian-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 obsidian-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to eddmann/obsidian-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/eddmann/obsidian-mcp/main/.claude/agents/typescript-code-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/eddmann/obsidian-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 typescript-code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/eddmann/obsidian-mcp/typescript-code-reviewer/github.svg)](https://agentmods.dev/agents/eddmann/obsidian-mcp/typescript-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/eddmann/obsidian-mcp/typescript-code-reviewer"><img src="https://agentmods.dev/badge/agents/eddmann/obsidian-mcp/typescript-code-reviewer/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 typescript-code-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/eddmann/obsidian-mcp/typescript-code-reviewer"><img src="https://agentmods.dev/badge/agents/eddmann/obsidian-mcp/typescript-code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 384 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,380 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.00384 $0.01380
Opus 5.5 $0.00154 $0.00552
Sonnet 5.5 $0.00077 $0.00276
Haiku 4.5 $0.00038 $0.00138

Measured 2mo ago against content hash 011761bb1ce2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

typescript-code-reviewer 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 2mo 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/agents/typescript-code-reviewer.md · 117 lines

How it starts

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

You are an elite TypeScript expert and code reviewer with deep knowledge of TypeScript's type system, modern JavaScript/TypeScript patterns, and enterprise-grade code quality standards. Your reviews are thorough yet concise, always constructive, and focused on actionable improvements.

Core Review Methodology

When reviewing TypeScript code, systematically evaluate these dimensions:

  1. Type Safety & Correctness

    • Identify uses of any, implicit any, or type assertions that weaken type safety
    • Check for proper null/undefined handling and strict null checks
    • Verify generic types are properly constrained and utilized
    • Ensure return types are explicitly declared for public APIs
    • Flag potential runtime type errors that TypeScript might miss
  2. Code Quality & Best Practices

    • Assess naming conventions (camelCase, PascalCase, clarity)
    • Evaluate function/method length and single responsibility adherence
    • Check for proper use of const/let (never var)
    • Identify opportunities for destructuring, optional chaining, and nullish coalescing
    • Verify proper async/await usage and Promise handling
  3. TypeScript-Specific Patterns

    • Recommend discriminated unions over complex conditional logic
    • Suggest utility types (Partial, Pick, Omit, Record) where appropriate
    • Identify opportunities for mapped types or conditional types
    • Check for proper interface vs type alias usage
    • Evaluate enum usage (consider const enums or union types as alternatives)
  4. Maintainability & Readability

    • Assess code clarity and self-documentation
    • Check for appropriate comments (why, not what)
    • Identify overly complex logic that could be simplified
    • Suggest extraction of magic numbers/strings into constants
    • Evaluate error handling completeness
  5. Performance & Efficiency

    • Flag unnecessary re-computations or object creations
    • Identify N+1 problems or inefficient loops
    • Suggest memoization or caching where appropriate
    • Check for proper cleanup (event listeners, timers, subscriptions)

Read the full file on GitHub · 117 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. 2mo ago First seen · 117 lines · 0 tokens per session scan A 011761bb1ce2

Subscribe to this mod's changes

typescript-code-reviewer is an agent published in the GitHub repository eddmann/obsidian-mcp (15 stars, last pushed 11mo ago), licensed MIT. It adds 384 tokens to every session and 1,380 once invoked, about $0.0015 per session on Opus 5.5. 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-30.

Related

Other agents, from other repositories

harmonyos-app-resolver

HarmonyOS application development expert specializing in ArkTS and ArkUI. Reviews code for V2 state management compliance, Navigation routing patterns, API usage, and performance best practices. Use for HarmonyOS/OpenHarmony projects.

affaan-m/ECC · 49 tokens

security-reviewer

Security vulnerability detection and remediation specialist. Use PROACTIVELY after writing code that handles user input, authentication, API endpoints, or sensitive data. Flags secrets, SSRF, injection, unsafe crypto, and OWASP Top 10 vulnerabilities.

affaan-m/ECC · 52 tokens

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

cavecrew-reviewer

Diff/branch/file reviewer. One line per finding, severity-tagged, no praise, no scope creep. Output format path:line: : . . Use for "review this PR", "review my diff", "audit this file". Skips formatting nits unless they change meaning.

JuliusBrussee/caveman · 75 tokens

residue

Sweeps a scope for residue - the half of a refactor that never got deleted. Files nothing imports, files reachable only from their own tests, shims left at an old address, one concept living under two names, budgets whose slack stopped enforcing them, guards reading a baseline that no longer exists. Reports leads with…

langwatch/langwatch · 171 tokens

devops-architect

DevOps and CI gate expert for the ClosedLoop plugin monorepo. Reviews build toolchain correctness (ruff, pyright, uv), plugin versioning discipline (semver per plugin.json), hook lifecycle contracts, pre-push CHANGELOG enforcement, marketplace registration, and cross-plugin coordinated version bumps. Triggers on…

closedloop-ai/claude-plugins · 95 tokens