slice-generator

slice-generator is a skill for Claude Code from jhlee0409/claude-plugins. It costs 14 tokens per session (3,753 once invoked), scanned A, original, MIT.

A generator for FSD-compliant slices, where FSD means Feature-Sliced Design, a frontend code-organization method. It creates starter structures by matching patterns already used in the project.

In plain words
What is it for?
Use it to validate names and generate slices or segments in the pages, widgets, features, or entities layers.
Why use it?
It saves manual setup work and helps new slices use consistent folders and naming. It also blocks unsafe slice or segment names that could escape the intended directory.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import type { {Name} } from '../model';.

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

Good fit Use it to validate names and generate slices or segments in the pages, widgets, features, or entities layers.

Compare 6 skills 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 skills/jhlee0409/claude-plugins/slice-generator

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 slice-generator

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jhlee0409/claude-plugins/slice-generator"><img src="https://agentmods.dev/badge/skills/jhlee0409/claude-plugins/slice-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,753 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00014 $0.03753
Opus 5.5 $0.00006 $0.01501
Sonnet 5.5 $0.00003 $0.00751
Haiku 4.5 $0.00001 $0.00375

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

Security

Grade A, and why

slice-generator scanned grade A with 1 finding 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 3mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(BASE_URL);
plugins/fsd-architect/skills/slice-generator/SKILL.md · 576 lines

How it starts

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

Slice Generator Skill

FSD 규격에 맞는 슬라이스 보일러플레이트를 생성합니다. 프로젝트 패턴을 학습하여 일관된 스타일로 생성합니다.

EXECUTION INSTRUCTIONS

Step 1: Validate Input

  1. Check layer is valid sliced layer: pages, widgets, features, entities
  2. Sanitize slice name (SECURITY CRITICAL):
    • MUST NOT contain .. (path traversal attack)
    • MUST NOT contain / or \ (path separator injection)
    • MUST NOT start with . (hidden file creation)
    • MUST match pattern: ^[a-zA-Z][a-zA-Z0-9-_]*$
    • If validation fails, throw E304 with sanitization guidance
  3. Sanitize segment names (SECURITY CRITICAL - same rules as slice):
    • For each segment in --segments flag:
      • MUST NOT contain .. (path traversal attack)
      • MUST NOT contain / or \ (path separator injection)
      • MUST NOT start with . (hidden file creation)
      • MUST match pattern: ^[a-zA-Z][a-zA-Z0-9-_]*$
      • If validation fails, throw E305 with sanitization guidance
    • Validation function:
      function validateSegmentName(segment: string): { valid: boolean; error?: string } {
        if (segment.includes('..')) {
          return { valid: false, error: 'E305: Segment contains ".." (path traversal blocked)' };
        }
        if (segment.includes('/') || segment.includes('\\')) {
          return { valid: false, error: 'E305: Segment contains path separators' };
        }
        if (segment.startsWith('.')) {
          return { valid: false, error: 'E305: Hidden segment not allowed' };
        }
        if (!/^[a-zA-Z][a-zA-Z0-9-_]*$/.test(segment)) {
          return { valid: false, error: 'E305: Invalid segment name format' };
        }
        return { valid: true };
      }
      
      // Validate all segments before creation
      for (const segment of options.segments) {
        const result = validateSegmentName(segment);
        if (!result.valid) {
          throw new Error(result.error);
        }
      }
      
  4. Check slice name doesn't already exist
  5. Validate naming format matches project convention

Read the full file on GitHub · 576 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. 3mo ago First seen · 576 lines · 14 tokens per session scan A 519a9206a514

Subscribe to this mod's changes

slice-generator is a skill published in the GitHub repository jhlee0409/claude-plugins (4 stars, last pushed 10mo ago), licensed MIT. It adds 14 tokens to every session and 3,753 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

slice-generator compared with skills from other repositories

slice-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
slice-generatorjhlee0409/claude-pluginsSkill410mo agoMITA14Claude Code
datamodel-code-generatorkoxudaxi/datamodel-code-generatorSkill4.1k5d agoMITA147Claude Code, Codex
performing-api-fuzzing-with-restlerxalgorix/xalgorixSkill1.6ktodayApache-2.0A123Claude Code, Codex
ideogram-ultraartokun/comfyui-mcpSkill9783d agoMITA68Claude Code
model-compatibilityartokun/comfyui-mcpSkill9783d agoMITA47Claude Code
flux-txt2imgartokun/comfyui-mcpSkill9783d agoMITA44Claude Code
chief-strategy-officercbrock84/headcountSkill2.6k3d agoMITA93Claude Code