skills/configuration/SKILL.md
Use when editing livemark.config.ts — site metadata, include/exclude globs, syntax themes, sections (article/blog/changelog), navigation links, and patches.
npx skillsauth add datisthq/livemark livemark-configurationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Guidance for editing livemark.config.ts at the project root.
Invoke when the user asks to:
// livemark.config.ts
import { defineConfig } from "livemark"
export default defineConfig({
// Required
include: "docs/**/*.md", // string | string[] of glob patterns
// Optional: site metadata
site: "https://example.com", // canonical origin — enables sitemap
title: "My Docs", // <title>, og:title, header
description: "Short blurb.", // <meta description>, og:description
logo: "/logo.svg", // header mark; also default favicon
favicon: "/favicon.ico", // browser tab icon
// Optional: content selection
exclude: "docs/drafts/**", // string | string[]
// Optional: syntax themes (Shiki)
codeThemeLight: "catppuccin-latte", // default
codeThemeDark: "catppuccin-mocha", // default
// Optional: navigation
links: [{ url: "https://github.com/x/y", title: "GitHub", icon: "github" }],
// Optional: sections
sections: [
{ title: "Docs", prefix: "/" },
{ title: "Blog", prefix: "/blog/", type: "blog" },
{
title: "Changelog",
prefix: "/changelog/",
type: "changelog",
source: "CHANGELOG.md",
version: true,
},
],
// Optional: per-file frontmatter overrides
patches: [{ file: "README.md", article: { title: "Overview", icon: "sparkles" } }],
})
sections is optional. Omitting it gives a single default docs section.
type is omitted): flat docs with a tree sidebar.type: "blog"): auto-generated index at prefix, sorts by date, exposes /prefix/tags/<tag>/ pages.type: "changelog"): reads source file; with version: true, splits on semver headings into per-version articles.Shared fields on every section: title, prefix (keep trailing-slashed), type, icon (lucide), position ("header" default, "sidebar" also available).
Article-to-section matching is longest-prefix-wins on the article's URL path.
{
url: "https://example.com",
title: "Example",
icon: "github", // lucide name, kebab-case
position: "header", // or "sidebar"
prefix: "/blog/", // optional: only show in this section
}
Default position is "header". Use prefix to scope a sidebar link to a single section.
Any Shiki theme name works. Defaults keep the catppuccin pairing. If you swap the light theme, audit code-block token contrast against the theme's background (WCAG AA wants 4.5:1).
UserConfig is a strict zod schema. Unknown keys throw at config load.prefix values are compared exactly; keep them consistent (/blog/, not /blog).sections and links — it drives tab / link display order.file doesn't match any included article, nothing happens (no warning). Spell the path carefully.The dev server watches livemark.config.ts and restarts on edit. No need to kill pnpm docs:start after tweaking the config.
pnpm type — catches schema mismatches.pnpm docs:build — prerenders with the new config; the output listing shows whether section routes resolved.models/config.ts.models/section.ts.models/link.ts.models/patch.ts.docs/customization/.tools
Use when overriding Livemark's built-in UI or adding custom routes — drop same-named files under .livemark/{components,elements,styles} to shadow defaults, author .livemark/routes/*.tsx for new pages, or copy defaults with the `livemark escape` command.
content-media
Use when adding or editing Markdown articles in a Livemark project — covers file placement under include globs, frontmatter fields, sidebar grouping, URL derivation, images/assets, and the patches mechanism for files that can't carry frontmatter.
documentation
Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
documentation
Maintain the OpenClaw memory wiki vault with deterministic pages, managed blocks, and source-backed updates.