Agent skill

Dile Docs Pages

by Polydile in Polydile/dile-components

A skill your agent uses when creating or updating a Markdown documentation page of the Dile Components Eleventy site under docs/ — especially component pages in docs/components/.md, but also…

MITAuto-check passedDocuments & Office

Install Dile Docs Pages

skills CLI
$ npx skills add Polydile/dile-components --skill dile-docs-pages -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Polydile/dile-components dile-docs-pages --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Polydile/dile-components.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/dile-docs-pages .claude/skills/dile-docs-pages && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dile-docs-pages
GitHub stars
106
Token cost
~2.8k tokens
SKILL.md length
1,036 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when creating or updating a Markdown documentation page of the Dile Components Eleventy site under docs/ — especially component pages in docs/components/.md, but also…

  • Works in 6 steps: File in the right folder with the right… → Front matter complete: title, package,… → Sections in order: H1 → intro →… → …
  • Updating a Markdown documentation page of the Dile Components Eleventy site under docs/ — especially component pages in docs/components/.md
  • SKILL.md covers Where the page goes, Front matter, Page structure (component pages) and Live demos (html:preview), plus 3 more sections
  • Calls npm

What it does

Dile Docs Pages is an agent skill from Polydile/dile-components. Use when creating or updating a Markdown documentation page of the Dile Components Eleventy site under docs/ — especially component pages in docs/components/.md, but also docs/crud, docs/mixins, docs/lib and docs/icons. Covers front matter, section order, properties/events/methods/slots/CSS custom properties formats and live html:preview demos.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office, covering Markdown. The repository describes itself as: Custom elements catalog for all kind of projects and frameworks. The licence is MIT.

When your agent uses it

  • Updating a Markdown documentation page of the Dile Components Eleventy site under docs/ — especially component pages in docs/components/.md
  • But also docs/crud
  • Docs/lib and docs/icons

Example prompts

  • “/dile-docs-pages”

Requirements

  • Node.js

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. File in the right folder with the right name.
  2. Front matter complete: title, package, element, status, summary, tags (valid tag).
  3. Sections in order: H1 → intro → Installation → Usage → Properties → Methods → Events → Slots → CSS Custom Properties → (Accessibility) →…
  4. Properties table with Property | Type | Default | Description; attribute names mentioned when they differ.
  5. Component imported once in the first html:preview; every demo renders.
  6. Preview the site with npm start (Eleventy dev server) and check the page, its catalog card (/components/) and the nav entry.

What it can do on your machine

Read from SKILL.md and the folder at commit b723b4a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dile Docs Pages loads about 2.8k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 1,036 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Polydile/dile-components at commit b723b4a, republished under its MIT licence (© Polydile). 1,036 words, ~2,754 tokens.

Download SKILL.mdSave it as .claude/skills/dile-docs-pages/SKILL.md (or your agent's skills folder).
name
dile-docs-pages
description
Use when creating or updating a Markdown documentation page of the Dile Components Eleventy site under docs/ — especially component pages in docs/components/*.md, but also docs/crud, docs/mixins, docs/lib and docs/icons. Covers front matter, section order, properties/events/methods/slots/CSS custom properties formats and live html:preview demos.

Dile Components documentation pages

The documentation site is an Eleventy project rooted at docs/ (config in eleventy.config.cjs). Each section is a folder of Markdown pages whose shared data lives in a <folder>.json file (layout, collection tag, hasMarkdown, markdownFolder), so pages never declare layout unless the folder lacks that JSON.

Before writing, read the component source (packages/<pkg>/components/<name>/) and its demo (demos/<pkg>/) so the docs match the real API: reactive properties, dispatched events, public methods, slots and CSS custom properties. Then open 1–2 sibling pages of the same family (e.g. another input, another spinner) and mirror them.

Where the page goes

WhatFolderFile nameExample
@dile/ui, @dile/utils, @dile/editor componentsdocs/components/dile-<name>.md (the tag name)dile-qr-code.md
@dile/crud components and guidesdocs/crud/<name>.md (no dile- prefix)crud-list.md, ajax.md
Mixinsdocs/mixins/dile-<name>-mixin.mddile-form-mixin.md
App lib (@dile/lib)docs/lib/<name>.mdrouter-mixin.md
Iconsdocs/icons/<family>-icon.md, <family>-badge.md...lucide-icon.md

The page URL is /<folder>/<file-name>/ (e.g. /components/dile-button/); use that form for internal links.

Front matter

yaml
---
title: QR Code
package: '@dile/utils'
element: '&lt;dile-qr-code&gt;'
status: stable
summary: Lightweight component to generate and render customizable QR codes on a canvas.
tags: utils
---
  • title: human name in Title Case, without the dile- prefix ("Input Money", "Select Ajax Overlay"). Used as the HTML <title>, card title and nav label.
  • package: quoted npm package ('@dile/ui', '@dile/utils', '@dile/crud', '@dile/editor', '@dile/lib').
  • element:
    • docs/components/: tag with escaped brackets, quoted: '&lt;dile-name&gt;' (it is printed inside HTML cards).
    • docs/crud/: bare tag name: dile-crud-list.
    • Mixins / lib: the class or mixin name: DileForm, DileAppRouter.
  • status: stable (default for finished components), experimental (new/unsettled API) or deprecated. Deprecated pages are excluded from catalog and nav collections.
  • summary: one sentence (~15–25 words) saying what it does and its key features. It is shown on the catalog card and in llms.txt, so make it self-explanatory.
  • tags: decides the catalog group and side-nav menu. Must match the lists in eleventy.config.cjs:
    • components: forms, feedback, icons, utils, menu, spinner, layout, or input (input family, shown through _includes/input-family-grid.html). Any other tag lands in "Other components".
    • crud: introduction, configuration, ajax, operations, main, 'Crud extras' (quote tags with spaces).
    • mixins: formData, effects, scroll.
    • lib: 'state management', routing, 'app components'.
    • icons: lucide, fontawesome, material, phosphor, tabler, remixicon, 'universal icons'.
  • Optional: order: <n> (crud/lib pages sorted manually), hideLink: true (keep the page out of nav listings).

If you introduce a brand new tag group, it must also be added to the corresponding list in eleventy.config.cjs (and an icon imported in docs/assets/js/index.js for component tags) — prefer reusing an existing tag.

Page structure (component pages)

Keep this order; omit sections that don't apply. Headings are in English, like all docs.

markdown
# dile-name

One or two sentences describing the Web Component and its purpose.

## Installation

```bash
npm i @dile/ui
```

## Usage

Import the component.

```javascript
import '@dile/ui/components/name/name.js';
```

Use the component.

```html
<dile-name attribute="value"></dile-name>
```

## Properties
## Methods
## Events
## Slots
## CSS Custom Properties
## Accessibility        (optional: keyboard support, ARIA, labels)

## dile-name demos

### Basic usage
```html:preview
...
```

### Styled
...

Notes:

  • The H1 is the tag name (# dile-name), or the class name for mixins (# DileForm).
  • The import path is the public entry point under the package: @dile/<pkg>/components/<folder>/<file>.js.
  • Feature-specific explanations (e.g. "Adding an icon", "Form Integration", "File downloads") go as extra ##/### sections after Usage/Properties and before the demos.
  • Use blockquotes (> **Note:** ...) for caveats and recommendations.
  • Link related components with absolute site paths: [dile-iconlib](/icons/dile-iconlib/).
Properties

Prefer the 4-column table for new pages. Tables whose header has 4 columns including "Property" plus Type/Default/Description get the properties-table class and a responsive mobile layout (docs/_utilities/properties-table-transform.cjs), so keep exactly these columns:

markdown
| Property | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `value` | `String` | `""` | The text encoded in the QR code. |
| `errorCorrection` | `String` | `"M"` | Error correction level. Exposed via `error-correction`. |
  • Use the JS property name; when the attribute differs (camelCase → kebab-case), say "Exposed via kebab-name" or "(attribute kebab-name)".
  • Older pages use a bullet list (- **disabled**: Boolean, mark button as disabled.). Keep that format when making small edits to such pages; don't mix both formats in one page.
Methods, Events, Slots

Bullet lists with the name in bold:

markdown
## Methods

- **open()**: Opens the modal box.
- **close()**: Closes the modal box.

## Events

- **dile-modal-closed**: Dispatched when the modal box is closed for any reason. `detail` contains ...

## Slots

- **main slot** (unnamed slot): the card main content.
- **footer slot**: card footer.

Always document the event detail shape. A short addEventListener snippet in a javascript block is welcome for non-trivial events.

CSS Custom Properties

Pipe table with exactly these three columns (no leading pipes, as in existing pages):

markdown
Custom property | Description | Default
----------------|-------------|---------
--dile-name-color | Text color | #303030
--dile-name-size | Component size | 32px

When a value falls back to generic theme variables, write the chain in Default (--dile-primary-color or #7BB93D). If the component reuses another component's properties, say so and link it. If it only has plain Shadow DOM styles, a "CSS Encapsulation"/"Styling" section with the :host CSS block is fine.

Show full SKILL.md (444 more words)Show less

Live demos (html:preview)

Fenced blocks with the language html:preview are turned into a live render plus a "Show Code" toggle by docs/_utilities/code-previews.cjs. The code runs on the real page.

  • Import once per page. All preview blocks share window, so put <script type="module">import '@dile/ui/components/name/name.js';</script> only in the first preview of that component. Import again only for a different component not yet registered (e.g. icon glyphs @dile/iconlib/lucide-icons/rocket.js, @dile/ui/components/pages/pages.js).

  • Components already imported globally by docs/assets/js/index.js (button, input, modal, card, tabs, etc.) work without an import, but importing them in the first block is harmless and keeps the page self-contained.

  • Start with the simplest example (### Basic usage / ### Default), then one ### per relevant feature or property, then a ### Styled ... demo that sets CSS custom properties through a class:

    html
    <style>
      .styled {
        --dile-name-color: #36c;
      }
    </style>
    <dile-name class="styled"></dile-name>
  • Demos that need events or JS logic: define a small Lit element inside the preview's module script and render it. Give it a name unique within the page (demo-otp-completed, my-rating-demo...):

    html
    <script type="module">
      import { LitElement, html } from 'lit';
      import '@dile/ui/components/rating/rating.js';
    
      class RatingDemo extends LitElement {
        static properties = { value: { type: Number } };
        render() {
          return html`
            <dile-rating @dile-rating-selected=${e => this.value = e.detail.value}></dile-rating>
            <p>The rating is ${this.value ?? 0}</p>
          `;
        }
      }
      customElements.define('rating-demo', RatingDemo);
    </script>
    <rating-demo></rating-demo>
  • Classic (non-module) scripts are wrapped in an IIFE automatically, so they can't leak globals — use module scripts for imports.

  • Use plain inline styles (display: flex; gap: 1.5rem; flex-wrap: wrap;) to lay out several variants side by side.

  • Images: put files in docs/static-images/ and reference them as /images/<file>.

  • Every html:preview must be valid stand-alone HTML; don't nest Markdown inside.

  • CRUD pages reuse demo components through Liquid includes from docs/_includes/componentes-crud/ ({% include "componentes-crud/country-form.md" %}); create a new include there if a demo element is shared between several CRUD pages.

Deprecated components

Keep the page (old links keep working) but reduce it to:

markdown
---
title: Countdown Time
package: '@dile/ui'
element: '&lt;dile-countdown-time&gt;'
status: deprecated
summary: Component no longer maintained. Check previous version documentation if you need ...
---

# dile-countdown-time

The dile-countdown-time web component is no longer maintained in this version of the dile-components. ...

Writing style

  • English, concise and practical. Explain why/when to use a property, not just its type.
  • Code identifiers in backticks; property names in bold in bullet lists.
  • Don't invent API: everything documented must exist in the component source.
  • Keep docs, demo (demos/<pkg>/) and implementation in sync (see AGENTS.md for the full new-component checklist: demo file, demo index in alphabetical order, component test).

Checklist

  1. File in the right folder with the right name.
  2. Front matter complete: title, package, element, status, summary, tags (valid tag).
  3. Sections in order: H1 → intro → Installation → Usage → Properties → Methods → Events → Slots → CSS Custom Properties → (Accessibility) → ## dile-name demos.
  4. Properties table with Property | Type | Default | Description; attribute names mentioned when they differ.
  5. Component imported once in the first html:preview; every demo renders.
  6. Preview the site with npm start (Eleventy dev server) and check the page, its catalog card (/components/) and the nav entry.

© Polydile, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/dile-docs-pages of Polydile/dile-components.

Open the folder on GitHubat commit b723b4a

Compare with similar skills

Dile Docs Pages next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dile Docs Pages compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dile Docs Pages this skillPolydile/dile-components106—~2.8kAutomated safety check: PassMIT
Fix Broken Linkschef/chef-web-docs143—~3.2kAutomated safety check: PassCustom licence
Write Documentdigital-go-jp/design-system-example-components-html113—~3.1kAutomated safety check: PassMIT
Markdown FixerCommunity-Access/accessibility-agents422—~1.6kAutomated safety check: PassMIT
Publish Skillglebis/claude-skills389—~4.1kAutomated safety check: PassMIT
YAML Agent FormatMadAppGang/claude-code284—~4.8kAutomated safety check: PassMIT

Similar skills

  • Fix Broken Links

    chef/chef-web-docs

    Run linkchecker against a locally served site, a deployed URL, or a local HTML build output, parse the errors, map each broken link back to its Markdown source file, suggest replacement URLs, and…

    143 GitHub stars~3.2k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Write Document

    digital-go-jp/design-system-example-components-html

    コンポーネントのMDXドキュメントを作成・更新する

    113 GitHub stars~3.1k tokensUpdated 29 days ago
    Documents & OfficeAuto-check passed
  • Markdown Fixer

    Community-Access/accessibility-agents

    Internal helper: apply approved markdown fixes, surface judgment calls.

    422 GitHub stars~1.6k tokensUpdated 15 days ago
    Documents & OfficeAuto-check passed
  • Publish Skill

    glebis/claude-skills

    This skill should be used when publishing a new or updated skill to the claude-skills-site Astro website.

    389 GitHub stars~4.1k tokensUpdated 12 days ago
    Documents & OfficeAuto-check passed
  • YAML Agent Format

    MadAppGang/claude-code

    YAML format for Claude Code agent definitions as alternative to markdown.

    284 GitHub stars~4.8k tokensUpdated 6 mo ago
    Documents & OfficeAuto-check passed
  • Fern Components

    ai-dynamo/dynamo

    Knowledge of Fern's built-in MDX component library (accordions, callouts, cards, steps, tabs, code blocks, API-reference snippets, and more) for authoring docs pages.

    8.2k GitHub stars~2.8k tokensUpdated today
    Documents & OfficeAuto-check passed

More from Polydile/dile-components

  • Dile Components

    Polydile/dile-components

    A skill your agent uses when building or modifying UI with the Dile Components library (@dile/ui, @dile/crud, @dile/editor, @dile/utils, @dile/lib, @dile/iconlib, @dile/icons) — a…

    106 GitHub stars~816 tokensUpdated 7 days ago
    Auto-check passed

Questions about Dile Docs Pages

What does Dile Docs Pages do?

A skill your agent uses when creating or updating a Markdown documentation page of the Dile Components Eleventy site under docs/ — especially component pages in docs/components/.md, but also…. Dile Docs Pages is an agent skill from Polydile/dile-components.md, but also docs/crud, docs/mixins, docs/lib and docs/icons.

When should I use Dile Docs Pages?

Dile Docs Pages fits situations like: updating a Markdown documentation page of the Dile Components Eleventy site under docs/ — especially component pages in docs/components/.md; but also docs/crud; docs/lib and docs/icons.

How do I install Dile Docs Pages in Claude Code?

Run `npx skills add Polydile/dile-components --skill dile-docs-pages -a claude-code`. Or copy the skill folder (.claude/skills/dile-docs-pages in Polydile/dile-components) into .claude/skills/dile-docs-pages in your project. Claude Code loads it when a task matches its description.

How do I install Dile Docs Pages in Codex?

Run `npx skills add Polydile/dile-components --skill dile-docs-pages -a codex`. Or copy the skill folder (.claude/skills/dile-docs-pages in Polydile/dile-components) into .agents/skills/dile-docs-pages in your project. Codex loads it when a task matches its description.

Can I use Dile Docs Pages in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Polydile/dile-components --skill dile-docs-pages -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dile-docs-pages, .gemini/skills/dile-docs-pages, .github/skills/dile-docs-pages and .opencode/skills/dile-docs-pages in your project.

What does Dile Docs Pages need to run?

Going by SKILL.md and its folder, Dile Docs Pages needs the command-line tools its instructions call (npm). Our summary lists: Node.js.

Does Dile Docs Pages access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Dile Docs Pages safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dile Docs Pages use?

Dile Docs Pages is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dile Docs Pages use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dile Docs Pages?

Skills that share tags, products or a category with Dile Docs Pages: Fix Broken Links (chef/chef-web-docs, 143 stars), Write Document (digital-go-jp/design-system-example-components-html, 113 stars), Markdown Fixer (Community-Access/accessibility-agents, 422 stars) and Publish Skill (glebis/claude-skills, 389 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dile Docs Pages?

Polydile (a GitHub organization) maintains it in Polydile/dile-components, which has 106 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 1, 2026.

Source: Polydile/dile-components on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.