narraitor-repo-orientation
Fast orientation map for a zero-context session in the Narraitor repo. Use FIRST when starting work here, when asked "where does X live", "how is this repo…
от jerseycheese★ 32 звезды на GitHub
Установить narraitor-repo-orientation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Narraitor repo orientation
1. Purpose
Get a cold session productive in minutes: where things live, which commands exist, which docs are canonical, and which claims to distrust. This is the map, not the manual — deeper rules live in the sibling skills.
2. When to use
- First substantive action in a fresh session or after a long gap.
- Any "where is / where do I look" question about this repo.
- Before citing a doc's claim about structure, tooling, or design-system canon.
3. When not to use
- You already know the target file — go read it.
- Authoring new components/stores/routes → use
narraitor-architecture(conventions) andnarraitor-architecture-contract(invariants). - Debugging a concrete failure →
narraitor-debugging-playbook.
4. Inputs required
None. Repo checkout on develop (run git fetch && git status first — never orient against a stale checkout).
5. Procedure
- Read
CLAUDE.md(repo root) — the operating manual. Then this map. - Locate by concern:
| Concern | Look here first |
|---|---|
| App data / state | src/state/ — one Zustand store per domain; persistence seam src/state/persistence.ts (IndexedDB db narraitor-state) |
| Cross-store cascades | src/lib/state/storePubSub.ts + src/state/storeEventWiring.ts |
| AI generation | src/lib/ai/ — model strings in src/lib/ai/config.ts; client fetch seam src/lib/ai/aiFetch.ts; server key resolution src/lib/ai/resolveApiKey.ts |
| Prompt templates | src/lib/promptTemplates/ (registry: narrativeTemplateManager.ts); context/token budget in src/lib/promptContext/ |
| Server endpoints | src/app/api/**/route.ts (19 routes: narrative/, generate-, ai/, inventory/) |
| Client→API seam | src/lib/api/ — components call these services, never raw fetch (dependency-cruiser enforces) |
| UI components | src/components/<Domain>/ with co-located .css; stories centralized in src/stories/ |
| Theming / tokens | src/lib/theme/themes/{_shared-tokens,ds3}.css; ThemeProvider.tsx; localStorage narraitor-color-scheme (light/dark only — ADR-013 deleted DS1/DS2 and the narraitor-theme key with them) |
| Pages | src/app/ (App Router); dev harnesses under src/app/dev/* (knip-exempt, not production canon) |
| Unit tests | co-located src/**/__tests__ + src/**/*.test.*; config jest.config.cjs |
| Visual/e2e tests | tests/visual/**/*.spec.ts; baselines *-chromium-darwin.png; config playwright.config.ts |
| CI gates | .github/workflows/ci.yml (+ playwright-tutorials.yml, codeql.yml) |
| Scripts/tools | scripts/ — check package.json before assuming a script is wired |
- Command quick-reference (details + failure modes:
narraitor-build-test-env):npm run dev(3000 main / derived port in worktrees) ·npm run storybook(6006) · quality gate =npm test+npm run type-check+npm run lint+npm run lint:css. - Docs of record:
public_docs/(ADR-001…012 underpublic_docs/architecture/, roadmap atpublic_docs/development/mvp-roadmap.md),README.md,DESIGN.md,.github/templates. - Check the do-not-trust list (below) before acting on any doc claim.
6. Evidence required
Before repeating any structural claim (path, script, route, store field): confirm it with ls/glob/grep in the current tree. Docs and memories describe the past; the tree is the present.
7. Output artifact
An oriented session. If asked to summarize, produce a short "where I'll look and why" note with verified paths — not a re-dump of this map.
8. Common traps
- Do NOT trust blindly:
docs/(gitignored planning vault; all point-in-time plans now underdocs/plans/archive/, several completed/superseded);DESIGN.md's type-scale numbers, which are still DS1-era — the doc flags them inline and #1543 tracks the rewrite; ADR-007 and ADR-011 (historical by design — both correctly marked superseded, read them as history not guidance); andnarraitor-architecture/narraitor-pattern-alignment-skill, which still carry shadcn-era mentions. Those describe the origin of thesrc/components/ui/primitives, never a license to addcva/cn()/Tailwind — where they conflict withnarraitor-architecture-contract, the contract wins.- Cleared by the 2026-07-28 doc-rot sweep, don't re-flag:
ai-systems.md'sgemini-2.0-flash(now points atconfig.ts),style-port's deaddesign-tokens.csspath (nowthemes/), and the/dev/design-system*references inDESIGN.md/public_docs/design-system/README.md(present but correctly marked retired).
- Cleared by the 2026-07-28 doc-rot sweep, don't re-flag:
- Bad behavior this prevents: a session reads
DESIGN.md, navigates to/dev/design-system, finds nothing, and "helpfully" rebuilds a living style guide that was deliberately deleted. - Port 3000 may be held by an orphan
next devor another project —lsof -nP -iTCP:3000 -sTCP:LISTENbefore blaming code. src/app/dev/*harnesses are development sandboxes: patterns there are NOT production conventions.- No Tailwind. Plain CSS + design to
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/trigger_eval.json
FAQ
Что делает скилл narraitor-repo-orientation?
Fast orientation map for a zero-context session in the Narraitor repo. Use FIRST when starting work here, when asked "where does X live", "how is this repo organized", "what's the stack", "where do I look for the stores / AI code / themes / tests", or to check WHICH docs are trustworthy before acting on one. (Asking WHY something is built this way -> narraitor-failure-archaeology; fixing or correcting a stale doc -> narraitor-docs-and-writing; "where do prompts live" -> narraitor-prompt-template-governance.)
Как установить скилл narraitor-repo-orientation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл narraitor-repo-orientation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…