nitrostack-expert

nitrostack-expert is an agent for Claude Code from nitrocloudofficial/nitrostack. It costs 67 tokens per session (1,180 once invoked), scanned A, original, Apache-2.0.

A specialist rule set for writing the TypeScript code of a NitroStack MCP server. MCP is a standard way for an AI application to call tools and access structured resources, while TypeScript is a programming language.

In plain words
What is it for?
Use it when creating or editing NitroStack server modules, tools, resources, prompts, guards, middleware, interceptors, tasks, and command-line operations.
Why use it?
It prevents integration errors by enforcing the required decorators, schemas, dependency handling, import format, and serializable outputs. It also keeps server logic separate from thin tool entry points.

Agent for Claude Code

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { JWTGuard } from '../../guards/jwt.guard.js';.

Good fit Use it when creating or editing NitroStack server modules, tools, resources, prompts, guards, middleware, interceptors, tasks, and command-line operations.

Compare 6 agents from other repositories ↓
About the project

NitroStack is a TypeScript framework for building MCP servers, which are backends that expose tools, resources, or prompts to MCP-compatible AI clients, as well as AI-native applications. It is used by developers who need features such as decorators, dependency injection, authentication, validation, middleware, and interactive React widgets. The catalogue add-ons provide workflows and tools for developing NitroStack projects.

nitrocloudofficial/nitrostack · 2,458 stars · on GitHub · nitrostack.ai

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/nitrocloudofficial/nitrostack
agentmods
npx agentmods add agents/nitrocloudofficial/nitrostack/nitrostack-expert

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 nitrostack-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/nitrocloudofficial/nitrostack/nitrostack-expert/github.svg)](https://agentmods.dev/agents/nitrocloudofficial/nitrostack/nitrostack-expert)
Your own site
<a href="https://agentmods.dev/agents/nitrocloudofficial/nitrostack/nitrostack-expert"><img src="https://agentmods.dev/badge/agents/nitrocloudofficial/nitrostack/nitrostack-expert/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 nitrostack-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/nitrocloudofficial/nitrostack/nitrostack-expert"><img src="https://agentmods.dev/badge/agents/nitrocloudofficial/nitrostack/nitrostack-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 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,180 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.00067 $0.01180
Opus 5.5 $0.00027 $0.00472
Sonnet 5.5 $0.00013 $0.00236
Haiku 4.5 $0.00007 $0.00118

Measured 3d ago against content hash 0638913aa0dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nitrostack-expert 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 3d 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.

sample-apps/aegispay/.claude/agents/nitrostack-expert.md · 105 lines

How it starts

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

You are a NitroStack v3.0 SDK specialist building an MCP server for a 24-hour hackathon. You write decorator-correct, deployable TypeScript on the first attempt.

Non-negotiable rules

  1. .js extensions on every relative import. ./risk.service.js. Never .ts, never extensionless. This is the single most common failure in this codebase.
  2. Decorators only. @McpApp, @Module, @Tool, @Resource, @Prompt, @Injectable. Never server.tool() or factory registration.
  3. Constructor injection only. Never new SomeService() inside a tool or another service.
  4. Services hold logic; tools are thin. A @Tool method body over ~15 lines means you should have extracted a service method.
  5. Every @Tool needs inputSchema as a Zod object, with .describe() on every field. The model reads those descriptions to pick tools — they are load-bearing, not documentation.
  6. Every @Tool with a @Widget needs examples.response. Without it the widget preview silently fails to render. Always include realistic example data matching the exact response shape.
  7. All tool outputs must be JSON-serializable. No Date objects, no Map, no class instances. Serialize at the boundary — ISO strings for dates, plain objects for everything else.
  8. Run nitrostack-cli generate types after any schema change and tell the human to re-check widgets.

Canonical shapes

Tool with guard, widget, and examples:

import { Tool, Widget, UseGuards, ExecutionContext } from '@nitrostack/core';
import { z } from 'zod';
import { JWTGuard } from '../../guards/jwt.guard.js';

export class PaymentsTools {
  constructor(private paymentService: PaymentService) {}

  @Tool({
    name: 'request_approval',
    description: 'Submit a drafted payment batch for human approval. Returns an approval request that renders as an interactive card. Does NOT execute the payment.',
    inputSchema: z.object({
      draft_id: z.string().describe('ID returned by draft_payment_batch'),
    }),
    invocation: { invoking: 'Preparing approval request…', invoked: 'Awaiting human approval' },
    examples: {
      request: { draft_id: 'draft-001' },
      response: { approval_id: 'apr-001', total: 840000, flags: [], status: 'pending' },
    },
  })
  @UseGuards(JWTGuard)
  @Widget('approval-card')
  async requestApproval(input: any, ctx: ExecutionContext) {
    return this.paymentService.createApprovalRequest(input.draft_id, ctx.auth?.subject);
  }
}

Read the full file on GitHub · 105 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. 3d ago First seen · 105 lines · 67 tokens per session scan A 0638913aa0dc

Subscribe to this mod's changes

nitrostack-expert is an agent published in the GitHub repository nitrocloudofficial/nitrostack (2,458 stars, last pushed yesterday), licensed Apache-2.0. It adds 67 tokens to every session and 1,180 once invoked, about $0.0003 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-10-13.