AGENT SKILL

demistify-explainer

Use when writing, editing, or checking Demistify markup: component syntax, attributes, nesting, layouts, Markdown/Mermaid islands, and data references.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 0
Forks
0

01 前言 Front Matter

name
demistify-explainer
description
Use when writing, editing, or checking Demistify markup: component syntax, attributes, nesting, layouts, Markdown/Mermaid islands, and data references.

02 资源文件 19

03 SKILL.md 正文

Demistify explainer

Author a document, not another application. You own its explanation, source facts and ordinary HTML layout. Demistify supplies reusable views, controls, rendering and shared styles. Keep prose in document flow; choose an island when it gives the reader a useful view or action. Layout CSS is allowed; use the library's typography, colors, borders, radii and shadows.

Pages are separate HTML documents. Tabs switch peer views in one place. A native disclosure reveals optional depth locally. A Walkthrough orders stops through existing content and may cross pages; a Gallery Journey is a picture-only path through existing figures. Neither copies the content nor replaces ordinary navigation.

1. Bind the page and prepare its sources

Use the supplied library base, normally https://demistify.getagentstudio.dev/v1/. Read authoring/SKILL.md from that base once; use its API and keep theme, runtime and CLI on that same base. Do not reload the guide recursively or audit release hashes for routine authoring. Experimental v1 can change. A source preview uses its matching local build and names absent release metadata instead of claiming a published binding.

IF the supplied content contains actual secrets or credentials, real personal or customer records or security-sensitive detail, or the user, its source markings or an applicable handling policy classify it private, load the runtime-trust section of references/content.md before writing the shell and return the trusted binding and opening method it names.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>Session ownership</title>
  <link rel="stylesheet" href="https://demistify.getagentstudio.dev/v1/theme.css">
  <script type="module" src="https://demistify.getagentstudio.dev/v1/runtime.js"></script>
</head>
<body>
  <ex-nav for="content"></ex-nav>
  <ex-document id="content">
    <h1>Session ownership</h1>
    <p>The Registry retains the session; a connection carries messages.</p>
  </ex-document>
</body>
</html>

Ordinary ex-document pages always get Comments automatically, initially closed, with a page-address identity, a content fingerprint and targets for semantic content. Author no feedback tag, page name/version or paragraph labels. Choose an explicit identity or revision only when its namespace consequence is intended.

MUST load references/content.md and return the actual source carriers, image/data references and intended delivery method. A reader can double-click a prepared HTML file: HTTPS library assets need the network, not a local application/server. Sibling Markdown/JSON fetches need HTTP or author-time embedding. Keep relative page/image paths intact. Offline delivery also needs the complete matching library; two copied asset files are insufficient.

Completion: the binding and opening method are concrete, supplied sources are preserved, and every required fetch can work through that method.

2. Choose the views and load their detail

Two widths share one left edge. Reading holds prose at 760px; Canvas gives visuals up to 1600px. Text remains left aligned. Document headings and dividers follow Reading; a wide view and its controls stay together. Earlier bindings follow their own guide. Set data-width="reading" or data-width="canvas" on the whole component or native layout wrapper when choosing explicitly.

For each matching condition below, load the named reference and return its authored result. The references own syntax, configuration, controls and composition; a list of component names is not the result.

IF the page needs… Load Return
Explicit widths, a grid or tabs references/layouts.md Whole-component widths, child layout and labels
A card, consequential callout or reported number references/cards-and-callouts.md Meaningful units, tones/icons and truthful recommendation/chosen states
The reader must select answers, attach feedback or override review identity references/choices-and-comments.md Requested response/feedback arrangement, default or overridden identities and binding, optional supporting details and intended interactions
A compact status or identity, exact progress count or named phase comparison references/small-parts.md Supported parts, the complete combined-row recipe when requested, truthful boundaries, stable phase slots and exact supplied values
Pages, heading links, breadcrumbs or collection search references/navigation.md Native page links, stable targets and current collection index when needed
Sidebar/fullscreen inspection, including a visual's default controls references/inspection.md Inspection choice and return/state behavior
A large bottom workspace beside Comments, such as related documents references/inspection.md Drawer markup, its initial state and lifecycle, and who reopens it after a close
A Mermaid view, Mermaid fence or numeric chart references/diagrams.md Supported family, including the chart's, safe source and readable, resolving targets
Code, a diff or line notes references/code.md Exact source and notes on displayed file/row numbers
Ownership regions, routed arrows or optional layers references/maps.md Reading/map choice, real endpoints and room for complete captions
A picture, screenshot collection or image slider references/pictures.md Ordinary figures or a dedicated Gallery page with logical groups, variation categories and actual capture metadata
A guided path, including a Gallery Journey references/tours.md Named/described path, focused narration and resolving stops
Alternatives on corresponding topics references/comparisons.md Matching topic keys, authored columns/tabs and natural content height
Hierarchy, file paths or a literal text drawing references/trees.md Tree/File Tree/Pre choice, independent folding/jumps or exact text
An ordered explanation with expandable evidence references/traces.md Native step disclosures with source/observation status
A page-level ex-map reader panel, an ex-story account with labelled rows and a supporting record, or ex-section story scopes references/stories.md The supported composition, authored fields and states, and stable destinations
Source-derived call-path changes references/call-paths.md Calls, branches and unknown execution kept distinct
A supplied call stack references/design-documents.md Visible owner pages, need/frame/stack mapping, call-stack markup and preparation/check result
A supplied Explorer graph document references/explorers.md Original graph data, real selection IDs and source-backed views

Completion: selected constructs answer the reader's task, their references were applied, and every construct is supported by the chosen binding.

Answer controls follow the requested task: feedback alone needs no choice, and a choice needs no extras. Use the existing Comments panel for feedback and a combined handoff; no separate answer-copy strip or page-owned response store is needed.

3. Compose content once and keep it navigable

Use stable island IDs and meaningful document headings. Keep the small ex-nav from the shell on every page offering a Walkthrough or Gallery Journey; the path declaration itself is hidden. A collection adds native Pages links inside that same navigation element. Do not require starting a guided path to read a page or follow an ordinary heading link.

A card groups one named option, component or finding. A callout highlights a proposal, decision, risk, question or unverified outcome; a subject icon says what it concerns. A recommendation is not an owner's chosen option. Local optional detail uses details/summary, not a Walkthrough. Rich content may nest, but another frame must add meaning: a tabbed alternative containing a Flow rarely needs a large outer card around the Flow's own cards.

Take accepted elements, attributes and values from this guide's references. For an editor or a lookup, the binding root also serves generated metadata beside runtime.js (for v1, https://demistify.getagentstudio.dev/v1/custom-elements.json and html-custom-data.json); it lists each element's own attributes, while some child attributes, such as a tab section's label and icon, live only in the references and the checker. Do not invent elements, tone names or CSS variants from a screenshot. Gallery browsing belongs on its own page: one ex-gallery directly inside ex-document, optionally after one h1. Put navigation and hidden path declarations beside the document; an explanation uses an ordinary picture or a link there. The matching authoring checker reports gallery-page for embedded or multiple galleries; runtime support for older compositions does not make them valid authoring.

Completion: facts occur once, navigation resolves to the intended content, and proposal/evidence labels are honest.

4. Lint the final files once

Run the CLI shipped at the page's library binding (Node 26+). Copy the exact CLI URL printed in this binding's current published guide; do not construct the archive filename from the binding root:

<!-- Release staging binds the logical archive filename below to the built archive's content hash. -->

pnpm dlx https://demistify.getagentstudio.dev/v1/demistify-cli.tgz check /path/page.html
# Or: npx --yes --package=https://demistify.getagentstudio.dev/v1/demistify-cli.tgz demistify check /path/page.html

Use the same base as the runtime and theme. List the HTML files changed by this task in one invocation. Fix reported errors in the authoring source; rerun only after a correction. Warnings are advice, not an automatic zero-warning gate. Keep supplied facts, source files and relative links intact.

Routine document authoring ends with this source check. Do not install or launch Playwright, Chrome, another browser, a preview server or a device/theme matrix to certify shared components. Browser inspection is only for an explicit user request or diagnosing a concrete rendering/interaction defect; inspect the affected view only. Component regression verification belongs to library development. This workflow policy also governs the component references below.

A source check does not establish visual or interaction behavior. Report a failed command or unavailable tool plainly; do not turn routine authoring into a browser-proof task or claim unobserved behavior.

5. Return the artifact

Return the file link and a brief lint result; mention a limitation only when it affects opening or using the document. When comparing efficiency, count authored content and shared library costs separately. Source bytes/tokens are not model input/output/thinking usage or billed dollars. Loading public assets does not publish the document; publish only within the user's authorized scope.

The task is complete when the requested document is prepared for its intended delivery method and its changed HTML passes lint. Exercise interactions only when the task explicitly requests that verification.

04 同仓库更多 Skills