init

init is a command for Claude Code from jhlee0409/claude-plugins. It costs 7 tokens per session (7,146 once invoked), scanned A, original, MIT.

A project setup command for Feature-Sliced Design (FSD), a way to organize frontend code into layers and smaller slices. It examines the source folders and creates an FSD configuration file.

In plain words
What is it for?
Use it to detect source and FSD layer folders, identify naming and import patterns, and create `.fsd-architect.json` with a summary of the findings.
Why use it?
It removes the need to map the project structure and conventions by hand before using FSD checks. It also checks whether analysis cache files are excluded from version control.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is The path '../../../etc' contains directory traversal sequences..

Part of the fsdarch plugin — 4 skills, 6 commands shipped together

Good fit Use it to detect source and FSD layer folders, identify naming and import patterns, and create .fsd-architect.json with a summary of the findings.

Compare 6 commands from other repositories ↓
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/jhlee0409/claude-plugins
agentmods
npx agentmods add commands/jhlee0409/claude-plugins/init

Made for: Claude Code.

Or install fsdarch, the plugin that ships this one along with the rest of its 4 skills, 6 commands.

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 init

README.md
[![agentmods](https://agentmods.dev/badge/commands/jhlee0409/claude-plugins/init/github.svg)](https://agentmods.dev/commands/jhlee0409/claude-plugins/init)
Your own site
<a href="https://agentmods.dev/commands/jhlee0409/claude-plugins/init"><img src="https://agentmods.dev/badge/commands/jhlee0409/claude-plugins/init/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 init

Your own site · 80×15
<a href="https://agentmods.dev/commands/jhlee0409/claude-plugins/init"><img src="https://agentmods.dev/badge/commands/jhlee0409/claude-plugins/init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,146 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.00007 $0.07146
Opus 5.5 $0.00003 $0.02858
Sonnet 5.5 $0.00001 $0.01429
Haiku 4.5 $0.00001 $0.00715

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

Security

Grade A, and why

init 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 1mo 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.

plugins/fsd-architect/commands/init.md · 978 lines

How it starts

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

/fsdarch:init

프로젝트의 FSD 구조를 분석하고 설정 파일을 생성합니다.

Prerequisites

  • 프로젝트 루트 디렉토리에서 실행
  • src/ 또는 유사한 소스 디렉토리 존재

EXECUTION INSTRUCTIONS

When /fsdarch:init is invoked, Claude MUST perform these steps in order:

  1. Check existing config - Verify .fsd-architect.json doesn't exist (unless --force)
  2. Detect source directory - Find src/, app/, lib/, or ask user
  3. Use skill: layer-detector - Scan for FSD layer directories
  4. Analyze patterns - Detect naming, segments, import aliases
  5. Generate config - Write .fsd-architect.json
  6. Security check - Verify .gitignore includes cache files
  7. Report summary - Show detected structure and next steps

Flow Overview

┌───────────────────────────────────────────────────────────────┐
│                       /fsdarch:init                           │
├───────────────────────────────────────────────────────────────┤
│  Step 0. Check if .fsd-architect.json exists                  │
│     ├─ Exists + no --force → Error E103                       │
│     └─ Not exists OR --force → Continue                       │
│                                                               │
│  Step 1. Detect source directory                              │
│     ├─ Check src/, app/, lib/ in order                        │
│     ├─ If found → Use it                                      │
│     └─ If not found → Ask user (AskUserQuestion)              │
│                                                               │
│  Step 1.5. Detect framework (Next.js, etc.)                   │
│     ├─ Check package.json for "next"                          │
│     ├─ If Next.js → Detect router mode (Step 1.6)             │
│     └─ If not → Use standard names (app, pages)               │
│                                                               │
│  Step 1.6. Detect Next.js router mode (if Next.js)            │
│     ├─ Check for App Router: app/layout.tsx, app/page.tsx     │
│     ├─ Check for Pages Router: pages/_app.tsx, pages/index    │
│     ├─ If BOTH exist → HYBRID MODE                            │
│     │    └─ Both app/ and pages/ reserved for routing         │
│     ├─ If only App Router → Single mode (app reserved)        │
│     ├─ If only Pages Router → Single mode (pages reserved)    │
│     └─ Ask user for FSD layer aliases                         │
│                                                               │
│  Step 2. Invoke skill: layer-detector                         │
│     ├─ Scan for FSD layers in srcDir (with aliases)           │
│     ├─ If layers found → Continue to Step 3                   │
│     └─ If no layers → Ask "Create new FSD structure?"         │
│                                                               │
│  Step 3. Analyze existing patterns (if code exists)           │
│     ├─ Naming convention (kebab-case/camelCase/PascalCase)    │
│     ├─ Segment usage (ui/, model/, api/, lib/)                │
│     ├─ Index file patterns                                    │
│     └─ Import aliases from tsconfig.json                      │
│                                                               │
│  Step 4. Generate .fsd-architect.json                         │
│                                                               │
│  Step 4.5. Configure tsconfig.json paths (Optional)           │
│     ├─ Ask user if they want path aliases                     │
│     ├─ If YES → Generate/merge paths in tsconfig.json         │
│     └─ Apply layerAliases to path generation                  │
│                                                               │
│  Step 4.6. Suggest bundler config (Vite only)                 │
│     └─ Display vite.config.ts alias suggestions               │
│                                                               │
│  Step 5. Check .gitignore for cache files                     │
│                                                               │
│  Step 6. Display summary and next steps                       │
└───────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 978 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. 1mo ago First seen · 978 lines · 7 tokens per session scan A 14be16b1fe22

Subscribe to this mod's changes

init is a command published in the GitHub repository jhlee0409/claude-plugins (4 stars, last pushed 9mo ago), licensed MIT. It adds 7 tokens to every session and 7,146 once invoked, about $0.0000 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-31.

Related

Other commands, from other repositories

skill-refresh

You are running inside a headless Claude Code session in the neo4j-skills repository. Goal: scan Neo4j release notes and deprecation pages, then update any SKILL.md and references/ files that are stale, outdated, or missing new features. Open no PRs or commits — output only file edits. The workflow will handle git and…

neo4j-contrib/neo4j-skills · 0 tokens

speckit.md-doctor.drift

Re-evaluate since the last run: compute the git/.memsearch/TDD delta, re-score previously graded files in light of what changed, and report which past suggestions were resolved or are now stale/false.

arrrrny/zuraffa · 42 tokens

speckit.tdd.plan

Derive the feature's test list by delegating to zfa tdd plan (deterministic engine); falls back to LLM-guided derivation only when zfa is unavailable.

arrrrny/zuraffa · 37 tokens

speckit.gym.drop

Record a drop card from a mis-fire. A mis-fire is not a mistake to punish — it is a discovery to keep. Drop cards capture what was done, what was expected, and what happened, persisted to the configured redundant stores (default /drops/ plus the extension's append-only .drop-ledger.md).

arrrrny/zuraffa · 0 tokens

speckit.spec-stats.open

On-demand view of everything not complete: what stage each is stuck at, what the immediate next artifact/command is, oldest-untouched first, stale warnings past staleafterdays.

arrrrny/zuraffa · 36 tokens

new-month

Start a new month for a brand: folder and settings; a calendar to load -> parse-calendar; ideas -> ideate-month. "start a new month for this brand".

indranilbanerjee/neels-plugins · 35 tokens