Agent skill
libdoc
libdoc - Documentation build and serve tools. build function generates static sites from Markdown with Mustache templates. serve function provides local development server. parseFrontMatter extracts YAML metadata from markdown files. Use for generating documentation websites and serving docs locally.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/libdoc-copilot-ld-copilot-ld
SKILL.md
libdoc Skill
When to Use
- Building static documentation sites from markdown
- Serving documentation locally during development
- Parsing YAML front matter from markdown files
- Generating HTML from markdown with templates
Key Concepts
build: Processes markdown files with front matter, applies Mustache templates, and outputs static HTML.
serve: Local development server with live reload for documentation preview.
parseFrontMatter: Extracts YAML metadata from markdown file headers.
Usage Patterns
Pattern 1: Build documentation
import { build } from "@copilot-ld/libdoc";
await build({
srcDir: "docs",
outDir: "public",
template: "template.html.mustache",
});
Pattern 2: Parse front matter
import { parseFrontMatter } from "@copilot-ld/libdoc";
const { data, content } = parseFrontMatter(markdownContent);
console.log(data.title); // From YAML header
Integration
Used by make docs to build the documentation site. Output served via static
file hosting.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?