doc-component

doc-component is a skill for Claude Code from fubits1/svelte-skills. It costs 45 tokens per session (779 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 — 8 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 8 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 779 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.00779
Opus 5.5 $0.00018 $0.00312
Sonnet 5.5 $0.00009 $0.00156
Haiku 4.5 $0.00005 $0.00078

Measured 11d ago against content hash b3853d2fa44c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 11d 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 and frontend:comments 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. 11d ago Changed b3853d2fa44c
  2. 12d ago Changed 97f54c67cbbe
  3. 2mo 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 12d ago), licensed MIT. It adds 45 tokens to every session and 779 once invoked, about $0.0002 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

doc-component compared with skills from other repositories

doc-component next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doc-componentfubits1/svelte-skillsSkill1012d agoMITA45Claude Code
shadcn-sveltevercel-labs/json-renderSkill19k2d agoApache-2.0A63Claude Code, Codex
add-localizationmicrosoft/power-platform-skillsSkill1.1kyesterdayMITA69Claude Code
vue-router-best-practicesvuejs-ai/skillsSkill3.3k14d agoMITA25Claude Code, Codex
moai-domain-uiuxmodu-ai/moai-adkSkill1.3k4d agoApache-2.0A49Claude Code
moai-domain-frontendmodu-ai/moai-adkSkill1.3k4d agoApache-2.0A54Claude Code
frontend-conventionsfpindej/netrockSkill2354d agoMITA27Claude Code