agentleFS
rkalievrkaliev/eng-kit/skills/publishing-documents/SKILL.md

publishing-documents

Skill1 starsChanged 13 days agoMITView on GitHub

Use when someone needs a document outside the repo, as a PDF or single-file HTML for a partner, client, auditor or manager, such as project docs, a report, a proposal or client release notes

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Audience: Read every source for what this reader must not see: internal decisions and their reasons, prices, costs and margins, internal …

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Publishing documents

A published document is a view of Markdown kept in the repo, built by one command into a single-file HTML and a PDF in the project's look. Its reader has no repo access: what they get stands on its own and holds only what is meant for them.

The source stays Markdown in the repo

  • Project docs for outsiders: choose chapters of docs/, never copy them. --docs takes every chapter in docs/README.md's order; listing files takes only those, in your order.
  • A report or proposal: docs/publish/<doc>.md with frontmatter (title, subtitle, audience, version, date, lang, author), committed like any doc. Write it in English unless the user asks for another language, and set lang to match.
  • Client release notes: --changelog <version>. Where the entries are written for developers, write the client's version as docs/publish/release-<version>.md instead.

A copy edited for one reader drifts from the docs. When a chapter must differ for an audience, leave it out, or give that audience its own document in docs/publish/.

Build

node "<this skill's directory>/scripts/publish.mts" docs/01-overview.md docs/02-integration.md \
  --title "Payouts integration" --audience "Acme" --version 1.4 --out <ignored dir>
  • Tools: pandoc ≥ 3.8, Typst, and mermaid-cli when there are diagrams; on Windows, run it in WSL. The script names what is missing; installing it needs the user's agreement.
  • Markdown is read as the repo host reads it (GitHub-style). Each chapter keeps its own heading anchors; a chapter's frontmatter is ignored.
  • Theme: once per project, --init-theme docs/publish/theme and commit it; colours and fonts are at the top of brand.typ and brand.css. The build uses that folder when it exists, else the kit's theme (--theme picks another).
  • Output: a folder git ignores; the Markdown is the record.
  • A failed build lists every finding: a link into the repo, an anchor that isn't there, a missing image, a raw HTML link or image pointing at a local file (write it as Markdown), a diagram that doesn't render. For links into the repo, --drop-repo-links keeps their text; --repo-url only when this reader can open the repo. A diagram's accTitle is its alt text.
  • The team's docs stay written for the team. Don't remove their links or rename code in them to suit an outside reader; the build options, leaving a chapter out, or a document of the reader's own in docs/publish/ do that. Fix a source only where it is wrong for everyone.

Before handing it over

  1. Audience. Read every source for what this reader must not see: internal decisions and their reasons, prices, costs and margins, internal hosts and dashboards, on-call details, secrets, other customers. Leave that chapter out (decision records stay out unless asked for) or move the text.
  2. Gaps. Placeholder hosts, <token>, TODOs, and what this reader needs but the docs don't say: list them for the user; never fill them with guesses.
  3. Look at every page of the PDF, and the HTML: cover, contents, diagrams, tables and code not cut off.
  4. Report the files, the sources used, what was left out and why, and what is still open.

Sending, uploading or publishing the file is the user's action.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.