Narraitor: Skill for Claude Code

.claude/skills/narraitor-architecture/SKILL.md

narraitor-architecture is a skill for Claude Code from jerseycheese/Narraitor. It costs 80 tokens per session (887 once invoked), scanned A, original, MIT.

A project-specific guide for organizing new Narraitor code, including components, data stores, API routes, and types.

In plain words
What is it for?
Use it when planning features, creating structural files, or moving code between parts of the application. It does not apply to small bug fixes, copy changes, configuration edits, or test-only work.
Why use it?
It helps keep new code in the right folders and follow the project's naming, state, and domain-boundary rules.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to jerseycheese/Narraitor. 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/jerseycheese/Narraitor/main/.claude/skills/narraitor-architecture/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jerseycheese/Narraitor

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 narraitor-architecture

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jerseycheese/narraitor/narraitor-architecture"><img src="https://agentmods.dev/badge/skills/jerseycheese/narraitor/narraitor-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 887 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00080 $0.00887
Opus 5 $0.00040 $0.00443
Sonnet 5 $0.00016 $0.00177
Haiku 4.5 $0.00008 $0.00089

Measured 10d ago against content hash 787f8b3badee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

narraitor-architecture 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 10d 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/skills/narraitor-architecture/SKILL.md · 62 lines

How it starts

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

When to invoke (auto-trigger)

Invoke automatically whenever:

  • A new component, store, API route, or type file is about to be created
  • The user asks how to structure, design, or plan a feature in this repo
  • A refactor touches domain boundaries or moves code between domains

Do NOT invoke for: small bug fixes, copy changes, config tweaks, or test-only changes.

Narraitor Architecture

Migration in progress: Component organization and styling patterns are actively migrating to a design system. Verify component structure and styling conventions against current code rather than relying solely on this skill.

Place code in the right module

  • Put routes and API handlers in src/app/ and src/app/api/ (Next.js 15 App Router).
  • Put UI in src/components/, grouped by domain/feature; use src/components/ui for shared primitives and src/components/shared for cross-domain UI.
  • Put state in src/state/ with domain stores; use persistence helpers in src/state/persistence.ts when needed.
  • Put types in src/types/*.types.ts; keep src/types/index.ts type-only (no runtime imports).
  • Put hooks in src/hooks/ and services in src/services/ unless an existing src/lib/* module already owns the behavior.
  • Put shared logic and domain services in src/lib/ (AI, services, generators, utils, and domain-specific modules like narrative/, lore/, inventory/, world/, journal/, tutorial/). Use src/utils/ for general helpers already used there.

Enforce domain boundaries

  • Keep domain logic inside its domain folders and store; coordinate cross-domain behavior at pages or feature orchestrators.
  • Share data across domains via typed IDs/DTOs instead of direct store or component imports.
  • Follow the domain names in src/types/ and existing src/state/*Store.ts files.

Follow state patterns

  • Use the CrudStore type when building standard CRUD stores.
  • Use persist + createIndexedDBStorage for stores that must survive reloads.
  • Store only source-of-truth data; compute derived values in selectors.

Read the full file on GitHub · 62 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 62 lines · 80 tokens per session scan A 787f8b3badee

Subscribe to this mod's changes

narraitor-architecture is a skill published in the GitHub repository jerseycheese/Narraitor (30 stars, last pushed today), licensed MIT. It adds 80 tokens to every session and 887 once invoked, about $0.0004 per session on Opus 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 skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens