Best for
- A project needs a maintainer-grade documentation site generated from real
- A branded package or product needs Sourcey output with governed discovery,
- A workflow needs to separate authored docs source from generated site output
runxhq/runx/skills/sourcey/SKILL.md
Generate documentation for a project using Sourcey.
Decision brief
Generate a documentation site for a project using Sourcey. Sourcey is a static documentation generator that produces HTML sites from markdown pages, OpenAPI specs, Doxygen XML, and MCP server snapshots.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/runxhq/runx --skill "skills/sourcey"Inspect the Agent Skill "sourcey" from https://github.com/runxhq/runx/blob/a6dcd1ecdef05d442516846c7acd690c33176daa/skills/sourcey/SKILL.md at commit a6dcd1ecdef05d442516846c7acd690c33176daa. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Inspect the current workspace by default, or the explicit project root supplied by a chain, and discover a bounded documentation plan from real project evidence. 2. Approve the discovered plan before authoring. 3. Author the bounded Sourcey source bundle. 4. Persist that bund…
By default, runx executes Sourcey as a governed mixed-runner skill:
A project needs a maintainer-grade documentation site generated from real
To manufacture documentation when the repository evidence is too thin. Return
Sourcey output should read like native project documentation that a maintainer would stand behind:
Permission review
The documentation includes network, browsing, or remote request actions.
site: "https://example.com",The documentation includes network, browsing, or remote request actions.
repo: "https://github.com/org/repo",Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 83 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Generate a documentation site for a project using Sourcey. Sourcey is a static documentation generator that produces HTML sites from markdown pages, OpenAPI specs, Doxygen XML, and MCP server snapshots.
By default, runx executes Sourcey as a governed mixed-runner skill:
For already-configured projects, the same sourcey runner stays narrow: the
discover step can confirm existing config, the author/revise passes can return
empty bundles, and the deterministic tool steps still perform the build and
verification work.
A direct zero-input invocation targets the current workspace, so runx skill sourcey reaches bounded discovery immediately. A composed chain targeting a
different project should pass both project and repo_root explicitly so
discovery, authored-source writes, and deterministic builds stay on the same
workspace boundary.
For repository-backed projects, Sourcey owns two separate surfaces: committed docs source and generated site output. Keep those separate. Do not mix emitted HTML, search indexes, or OG assets back into the authored docs tree.
needs_more_evidence or needs_review instead of confident filler.Sourcey output should read like native project documentation that a maintainer would stand behind:
Complex runx skills share a reusable phase language:
scopeingestmodelmaterializeevaluatereviseverifyratifyThe current Sourcey runner deliberately uses a bounded subset:
discover folds scope + ingest + modelapprove is ratifyauthor + write-docs + build form materializecritique is evaluaterevise + write-revisions + rebuild form reviseverify is verifyThe current slice uses exactly one bounded revision window. It never loops until good and it never critiques indefinitely.
When docs_inputs is supplied explicitly, treat that as a bounded instruction
to use the existing config target. Do not overwrite the referenced config or
invent replacement docs files merely because repository inspection evidence is
thin. Missing evidence is not the same as missing files.
sourcey build deterministically with the discovered or authored config.index.html.The deterministic build report should carry enough rendered evidence for an
external reviewer to reason about the site without hidden file access. At
minimum that means the generated file list plus index-page title, headings, and
an excerpt when index.html exists.
discovery_report may include additional planning metadata, but the canonical
resolved docs inputs must live under:
discovery_report.discovered.brand_namediscovery_report.discovered.homepage_urldiscovery_report.discovered.docs_inputsDownstream deterministic build steps consume that nested discovered object.
Sourcey build produces: HTML pages, sourcey.css, sourcey.js,
search-index.json, sitemap.xml, llms.txt, llms-full.txt, and
_og/ directory with generated Open Graph images.
The sealed package includes:
discovery_report:
discovered:
brand_name: string | null
homepage_url: string | null
docs_inputs: object | null
doc_bundle:
files: array
summary: string
sourcey_build_report:
generated_files: array
index_title: string
index_headings: array
index_excerpt: string
evaluation_report: object
revision_bundle:
files: array
summary: string
sourcey_verification_proof:
verified: boolean
index_path: string
receipt_notes:
authority: governed docs plan approval
mutation: authored docs source writes only
Input: a project contains README.md, package.json, and a partial docs/
tree, but no Sourcey config.
Output: decision: ready after approval; Sourcey discovers the project name,
homepage, and docs inputs, writes a bounded docs/sourcey.config.ts plus only
the highest-value missing docs pages, builds to .sourcey/runx-docs, critiques
the rendered index.html, applies at most one revision bundle, verifies the
output, and seals a receipt with the build report and verification proof.
If the project evidence does not support a maintainer-grade site, the run stops
with needs_more_evidence or needs_review instead of producing filler.
project: project root directory (default: the current workspace).repo_root: filesystem root for authored-source writes (default: the current workspace). When a composed chain targets another project, pass both project and repo_root explicitly and keep them aligned.brand_name: project name (discovered from package evidence if omitted).homepage_url: project homepage (discovered from project evidence if omitted).docs_inputs: structured docs inputs, e.g. {"mode":"config","config":"docs/sourcey.config.ts"} or {"mode":"openapi","spec":"openapi.yaml"}. Discovered if omitted and may point at authored config produced by the skill.project_brief: optional grounded brief carrying brand cues, docs audit,
IA direction, and writing constraints. When present, the authored docs should
feel like native project docs rather than generic generated scaffolding.output_dir: generated site output path (default: <project>/.sourcey/runx-docs).sourcey_bin: explicit sourcey executable path (default: SOURCEY_BIN env or sourcey on PATH).docs/ when using
docs/sourcey.config.ts.output_dir, separate from the source tree.<project>/.sourcey/runx-docs.sourcey build from committed source.sourcey/astro integration over
a separate prebuild script that writes into public/docs. Keep
docs/sourcey.config.ts and markdown/spec inputs as source; let astro dev
serve Sourcey through Vite and astro build write generated docs into the
final output under the configured route.Use this shape when the target already uses Astro and docs should live at a
path such as /docs:
import { defineConfig } from "astro/config";
import sourcey from "sourcey/astro";
export default defineConfig({
site: "https://example.com",
integrations: [
sourcey({
config: "./docs/sourcey.config.ts",
routeBase: "/docs",
}),
],
});
Do not add prebuild, build:docs, or committed public/docs artifacts for
this path unless the project explicitly cannot use Astro integrations. The
generated output remains reproducible build output, not authored source.
import { defineConfig } from "sourcey";
export default defineConfig({
name: "Project Name",
theme: {
preset: "default", // "default" | "minimal" | "api-first"
colors: {
primary: "#hex", // required
light: "#hex", // optional, derived from primary
dark: "#hex", // optional, derived from primary
},
fonts: {
sans: "Inter", // optional
mono: "monospace", // optional
},
layout: {
sidebar: "18rem", // optional
toc: "19rem", // optional
content: "44rem", // optional
},
css: ["path/to/custom.css"], // optional
},
logo: "path/to/logo.png", // or { light, dark, href }
favicon: "path/to/favicon.ico",
repo: "https://github.com/org/repo",
editBranch: "main",
editBasePath: "docs", // path from repo root to docs source
codeSamples: ["curl", "javascript", "python"], // for OpenAPI tabs
navigation: {
tabs: [
// Markdown pages tab
{
tab: "Documentation",
slug: "", // empty = default tab
groups: [
{ group: "Getting Started", pages: ["introduction", "quickstart"] },
{ group: "Guides", pages: ["configuration", "deployment"] },
],
},
// OpenAPI tab
{
tab: "API Reference",
openapi: "path/to/openapi.yaml",
},
// Doxygen tab
{
tab: "C++ API",
doxygen: {
xml: "path/to/doxygen/xml",
language: "cpp", // "cpp" | "java"
groups: true, // use doxygen groups for nav
index: "auto", // "auto"|"rich"|"structured"|"flat"|"none"
},
},
// MCP tab
{
tab: "Tools",
mcp: "path/to/mcp.json",
},
],
},
navbar: {
links: [
{ type: "github", href: "https://github.com/org/repo" },
// types: github, twitter, discord, linkedin, youtube, slack,
// mastodon, bluesky, reddit, npm, link
],
primary: { type: "button", label: "Demo", href: "/demo" },
},
footer: {
links: [{ type: "github", href: "https://github.com/org/repo" }],
},
search: {
featured: ["introduction", "quickstart"], // top results when empty query
},
});
Pages are markdown files resolved relative to the config file directory.
If config is at docs/sourcey.config.ts, then page "quickstart" resolves
to docs/quickstart.md.
---
title: Page Title
description: One-line description for search and meta tags
---
Content here. Standard markdown with code blocks, tables, links.
Sourcey card icons are Heroicons v2 outline names in kebab-case. The renderer returns an empty icon for unknown names, so authoring must use exact names.
Known-good names for documentation cards include: academic-cap, arrow-path,
bell, bolt, book-open, chart-bar, check-circle, cloud-arrow-up,
code-bracket, command-line, cpu-chip, cube, document,
document-text, exclamation-triangle, globe-alt, key, lifebuoy,
light-bulb, lock-closed, magnifying-glass, map, rocket-launch,
server-stack, shield-check, sparkles, and wrench-screwdriver.
Invalid card icon names are a blocking quality issue. The build report includes
icon_validation; critique and revision must fix any
icon_validation.status: "invalid" result before the run is accepted.
icon
attributes; never invent icon names.output_dir lives under the repo root, gitignore it or call out the
missing ignore rule as an operational gap.sourcey-discoverInspect the target project and produce a bounded discovery_report for Sourcey. Prefer explicit input values when supplied. Otherwise infer brand_name, homepage_url, and docs_inputs from real project evidence such as package.json, README, existing docs, and specs. Do not invent APIs or pages. When config does not already exist, propose a practical docs_inputs object pointing to the config or spec path the next step should build from. Treat authored docs source and generated site output as separate surfaces. Prefer committed docs source in the config-relative docs tree and generated output under /.sourcey/runx-docs unless explicit inputs say otherwise. Do not propose writing built HTML back into the docs source tree. If the chosen output directory is inside the repo and not gitignored, record that as an operational gap. Treat this as a bounded scope/ingest/model pass. Do not author docs, build the site, or propose open-ended revision. When project_brief is supplied, treat it as grounded evidence about brand, current docs quality, information architecture, and writing direction. Use it to resolve a better documentation plan, but do not widen scope beyond the repo evidence and the brief's stated priorities. When the brief includes an existing_surface inventory, carry it forward as a real coverage requirement instead of treating it as optional context. discovery_report must use this canonical shape: { "discovered": { "brand_name": string|null, "homepage_url": string|null, "docs_inputs": object|null } } Additional fields are allowed, but brand_name, homepage_url, and docs_inputs must live under discovery_report.discovered.
sourcey-authorAuthor a bounded Sourcey source bundle from the approved discovery plan. doc_bundle must include a files array of { path, contents } entries to write under the target project, plus a summary of what was authored. When the project already has a complete Sourcey config and pages, keep the bundle minimal. When config or pages are missing, create only the files required to build a strong first documentation site grounded in the discovered evidence. If docs_inputs was supplied explicitly and discovery did not establish that the referenced config or docs files are missing, preserve the existing repo contents and return an empty files array rather than overwriting the config with a weaker placeholder bundle. Lack of repository inspection evidence is not evidence that the files are absent. Only write source docs, config, assets, and minimal supporting repo metadata. Never write generated HTML, search indexes, or OG assets into the source docs tree. When the approved plan uses a generated output_dir under the repo root and the repo does not already ignore it, include the minimal .gitignore change needed to ignore that build artifact. This is one bounded materialize pass, not an open-ended iteration loop. When project_brief is supplied, it is the quality bar:
sourcey-critiqueEvaluate the built Sourcey site against the discovered plan and the authored source bundle. Use the build_report as the primary evidence packet for rendered output, especially generated_files, index_title, index_headings, and index_excerpt. When that evidence is absent or thin, call it out as an evidence gap rather than inventing site content. Produce one bounded evaluation_report covering grounding, clarity, navigation quality, brand alignment, voice integrity, coverage, and obvious gaps. Flag operational mistakes such as generated output living in source control without intent or deploy-time authoring assumptions. Explicitly call out any wording that reads like a preview, adoption pitch, migration pitch, or tool scaffolding instead of native project docs. Treat build_report.icon_validation.status == "invalid" as a blocking quality failure: cite invalid_icons and require exact Heroicons v2 outline replacements before passing the run. When project_brief includes existing_surface.visible_page_count or visible_paths, compare the built site against that inventory and treat coverage regression as a blocking quality failure. Do not propose open-ended revision loops here.
sourcey-reviseApply at most one bounded revision pass using the evaluation_report. revision_bundle must include a files array of { path, contents } entries to update under the target project, plus a summary of the deltas applied. If the first build is already strong, return an empty files array and explain why. Do not open a second critique loop, do not widen scope beyond the discovered plan, and do not turn generated site output into committed source. Prioritize fixing brand-fit errors, generic vendor framing, shallow IA, and missing maintainer-grade coverage before making cosmetic changes. If the brief or evaluation report shows that the current build is smaller than the maintainer's existing visible docs surface, spend the revision pass on closing that coverage gap first. If evaluation_report or build_report identifies invalid Sourcey card icons, replace them with exact Heroicons v2 outline kebab-case names before making lower-priority prose edits.
Frequently asked questions
Generate a documentation site for a project using Sourcey. Sourcey is a static documentation generator that produces HTML sites from markdown pages, OpenAPI specs, Doxygen XML, and MCP server snapshots.
The source record exposes this install command: npx skills add https://github.com/runxhq/runx --skill "skills/sourcey". Inspect the command and pinned source before running it.
Static rules flagged network in the source; the page lists the matching lines and excerpts.
Alternatives
oaustegard/claude-skills
Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre
Postpartum-genushyacinthus29/dotnet-skills
Build long-running .NET background services with `BackgroundService`, Generic Host, graceful shutdown, configuration, logging, and deployment patterns suited to workers and daemons.
enuno/unifi-mcp-server
Specialized guide for adding new MCP tools to the UniFi MCP Server following project standards, UniFi API patterns, and test-driven development practices. Use when implementing new UniFi Network Controller features as MCP tools.
PaulRBerg/agent-skills
Create/scaffold/init a project-local agent skill under `.agents/skills` in an ordinary repository; defer to repository instructions that define a source catalog and lifecycle.