-
Notifications
You must be signed in to change notification settings - Fork 45
theme llm skill
This theme is built for LLMs — every page ships a companion .md and a
"copy / open in Claude · ChatGPT · Perplexity" button. This page is the other
half of that story: a single, downloadable skill file that teaches any
assistant how to use and extend clean-jsdoc-theme itself.
It lives in the repo's
SKILLS/
folder as
SKILLS/clean-jsdoc-theme/SKILL.md.
Hand it to your coding assistant and it stops guessing — it configures the theme,
authors your guides, and structures your sidebar correctly the first time.
Note
SKILLS/ is where focused skills will live as the project grows (per-package
skills, "build a guides site", "build an API reference", …). Today it ships the
umbrella clean-jsdoc-theme skill that covers everything below.
SKILL.md is a self-contained Markdown document that captures the whole theme in
one place — verified against the source, not the model's memory. It's written in
the agent-skill format (a name + description frontmatter block), so it
drops straight into agents that support skills, but it's just Markdown: any LLM
can read it.
It covers, end to end:
- Setup — JSDoc and TypeDoc, with minimal working configs.
-
Every configuration option — the
opts/cleanJsdocThemereference, plus the JSDoc-onlytemplates.defaultones. -
Authoring — callouts, steps, tabs, embeds, and the
@category/@order/@iframecustom tags, with the exact syntax rules. - The docs directory & frontmatter — how files become pages.
- The sidebar model — the one group/order engine and all its levers.
- Cross-references and source links, the LLM features, and theming.
-
The package architecture (
utils·setu·rang·dwar) for anyone extending the internals. - A gotchas & troubleshooting section for the mistakes assistants make most.
clean-jsdoc-theme isn't the default JSDoc template, and an assistant working
from generic "JSDoc theme" knowledge will get the details wrong — it'll forget
that plugins/markdown is required, miss that
custom tags need allowUnknownTags, or assume spaces
nest a @category path when only / does.
Tip
Front-loading the skill turns a back-and-forth ("that option doesn't exist…",
"try this instead…") into a correct first answer. It's the same idea as the
companion .md the theme emits for your docs — give the model the source of
truth up front and it reads your project as fluently as a person does.
The skill is a folder —
SKILLS/clean-jsdoc-theme/ —
a lean SKILL.md plus on-demand reference/ files (the assistant reads only the
slice it needs). Grab the whole folder:
npx degit ankitskvmdam/clean-jsdoc-theme/SKILLS/clean-jsdoc-theme clean-jsdoc-themeOr just open
SKILL.md on GitHub
and copy it — the SKILL.md is self-sufficient for most questions and links to
the reference files for the rest.
Pick whichever matches your setup:
It's a ready-to-use skill. Drop the folder into your project (or user) skills
directory so the agent loads it — and its reference/ files — on demand:
npx degit ankitskvmdam/clean-jsdoc-theme/SKILLS/clean-jsdoc-theme .claude/skills/clean-jsdoc-themeThe name / description frontmatter is what lets the agent decide when to apply
it; the SKILL.md then pulls in the matching reference/ file per task.
Attach or paste SKILL.md at the start of a chat, then ask your question:
Here is the skill for clean-jsdoc-theme. Using it, set up a
typedoc.jsonthat puts my guides above the API reference in the sidebar.
Add it to your editor's project rules / context — e.g. save it as a rule file
(.cursor/rules/clean-jsdoc-theme.md or your tool's equivalent), or @-mention
the file in chat so it's pulled into context.
Anything from "write the jsdoc.json for a guides-only site" to "why is my
@category showing two groups?" now gets an answer grounded in how the theme
actually works.
SKILL.md is versioned alongside the code (it carries a skill-revision stamp)
and verified against the source, so a fresh copy always matches the theme you're
on. The skill also teaches the assistant to check for updates — when relevant,
and at most once per session, it compares its revision against the published copy
and your installed theme version against npm's latest, and offers to update if
either is behind. Re-download it after upgrading the theme to pick up new options
and features.
- Configuration — the same options the skill documents, rendered as a browsable reference.
- JSDoc Getting Started · TypeDoc Getting Started — set up the build.
- Structure your sidebar and Authoring — the deep dives the skill condenses.
This wiki is auto-generated from docs-site/docs. Edit there — changes sync automatically. Full docs: https://ankdev.me/clean-jsdoc-theme/