doc-component

doc-component is a skill for Claude Code from fubits1/svelte-skills. It costs 45 tokens per session (764 once invoked), scanned A, original, MIT.

A documentation tool for Svelte components, which are reusable parts of a Svelte interface. It reads a component and adds a structured comment describing its interface and behavior.

In plain words
What is it for?
Adding @component documentation to .svelte files, including summaries, props, dependencies, functions, links, and usage examples.
Why use it?
It saves you from manually writing and maintaining component documentation and makes details available in IDE hover tooltips.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the svelte-5 plugin — 7 skills shipped together

Good fit Adding @component documentation to .svelte files, including summaries, props, dependencies, functions, links, and usage examples.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fubits1/svelte-skills/doc-component
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fubits1/svelte-skills --skill doc-component
Clone the repo
git clone --depth 1 https://github.com/fubits1/svelte-skills

Made for: Claude Code.

Or install svelte-5, the plugin that ships this one along with the rest of its 7 skills.

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 doc-component

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fubits1/svelte-skills/doc-component"><img src="https://agentmods.dev/badge/skills/fubits1/svelte-skills/doc-component.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 764 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.00045 $0.00764
Opus 5 $0.00023 $0.00382
Sonnet 5 $0.00009 $0.00153
Haiku 4.5 $0.00005 $0.00076

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

Security

Grade A, and why

doc-component 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 9d 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/svelte-5/skills/doc-component/SKILL.md · 65 lines

How it starts

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

Document Svelte Component

ALWAYS respect frontend:editing skill rules.

Write a <!-- @component --> JSDoc comment block at the top of a .svelte file. The comment is processed by svelte2tsx into a JSDoc block on the component class, IDE hover tooltips render it directly.

Process

  1. Read the component file: understand what it does, its props, its reactive dependencies, its key functions.
  2. Read direct dependencies: imports, models, utilities, to understand the full interface.
  3. Write the @component block: structured, tab-indented, at the very top of the file (before <script>).

Format

<!--
	@component
	One-line summary of what this component does.

	## Section heading
	- Bullet point with key information
	- Another bullet point

	@see {@link ./RelatedFile.ts} for details on X
	@example
	```svelte
	<MyComponent prop={value} />
	```
-->

Rules

  • Tab-indent everything inside the comment (project convention).
  • @component on its own line, description starts on the next line.
  • No component name after @component: the filename IS the name. Write @component, not @component MyComponent.
  • Use markdown: headers (##), lists (-), code blocks (triple backtick), inline code. All render in IDE hover.
  • Supported JSDoc tags: @example, @see, @deprecated, @since, @author, {@link}. These are rendered by TypeScript's language service.
  • Do NOT use: @param, @returns, @slot, @event: they have no effect at the component level. Document props with JSDoc on their declarations inside <script>.
  • Focus on the interface, not internals. The reader wants to know: what does this do, how do I use it, what are the key concepts. Implementation details only where they affect usage (e.g. debounce timing, cluster behavior).
  • Enumerate core properties/concepts only. No noise. If a prop has a sensible default that most users never touch, skip it.
  • "How to extend" sections are valuable for complex components: e.g. how to add a new marker type, how to add a new filter.
  • Keep it concise. If the component is simple, a one-liner after @component is enough. Don't pad simple components with unnecessary structure.

Read the full file on GitHub · 65 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. 9d ago First seen · 65 lines · 45 tokens per session scan A e8629e5e0e28

Subscribe to this mod's changes

doc-component is a skill published in the GitHub repository fubits1/svelte-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 764 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

shadcn-svelte

Pre-built shadcn-svelte components for json-render Svelte apps. Use when working with @json-render/shadcn-svelte, adding standard UI components to a Svelte catalog, or building Svelte web UIs with shadcn-svelte + Tailwind CSS components.

vercel-labs/json-render · 63 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

v3-create-crud

A page generator for standard create, read, update, and delete screens, commonly called CRUD screens. It uses Element Plus, a Vue user-interface library, to build tables, searches, pagination, forms, and delete confirmations.

un-pany/v3-admin-vite · 108 tokens

v3-use-composables

Documentation for reusable Vue functions in a project, covering device detection, asynchronous dropdown data, loading screens, pagination, routing, themes, page titles, and watermarks.

un-pany/v3-admin-vite · 137 tokens

moai-domain-uiux

UI/UX design systems specialist covering accessibility, icons, theming, design tokens, and user experience patterns. Use when working on design systems, WCAG compliance, ARIA patterns, or dark mode theming.

modu-ai/moai-adk · 49 tokens

frontend-conventions

Frontend convention reference (SvelteKit / Svelte 5). Auto-injected into frontend-aware agents - not user-invocable.

fpindej/netrock · 27 tokens