/repo-to-content:repo-to-pdffrom repo-to-content
Convert a GitHub repository's content (README, docs/, planning/, diagrams) into a polished public-facing PDF via Typst, with an optional AI-generated cover banner and configurable footer (repo URL, license, author). Use when the user says "turn this repo into a PDF", "generate a public PDF from this repository", "build a doc PDF", "make a PDF from the README and docs", or similar requests to produce a shareable PDF snapshot of a repo.
Ships in repo-to-content. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Consolidated, public-facing PDF of a repository's documentation. Single-document output suitable for sharing, archiving, or publishing.
path (optional): repo path; defaults to cwd.title (optional): override the derived title.subtitle (optional): tagline shown under the title.output (optional): output PDF path. Default: ./<slug>.pdf.license (optional): overrides config default.banner (optional): path to a banner image; overrides scan result. Pass "none" to disable.no-banner (optional flag): force-disable banner even if one exists in the repo.If /tmp/repo-to-docs/<slug>/manifest.json is missing or the user passed --force, invoke the repo-scan skill first. Otherwise read the existing manifest.
Read ~/.config/repo-to-docs/config.json. If missing, use these defaults:
{
"author_name": "",
"author_url": "",
"default_license": "MIT",
"generate_banner_if_missing": false,
"typst_footer_defaults": {
"show_page_numbers": true,
"show_repo_url": true,
"show_license": true,
"show_author": true
}
}
banner argument is a path, use it.kind: banner, use it.generate_banner_if_missing is true and not disabled by flag, call the fal REST queue API (POST https://queue.fal.run/fal-ai/nano-banana-2, header Authorization: Key $FAL_KEY, with FAL_KEY supplied from your own secrets manager; poll status_url, GET response_url, download images[0].url) with:
fal-ai/nano-banana-2, image_size: landscape_16_9"Technical documentation banner for '{title}' — {summary}. Clean minimalist style, suitable for PDF cover."/tmp/repo-to-docs/<slug>/banner.pngCreate scratch dir /tmp/repo-to-docs/<slug>/build/, copy in shared/styles.typ from the plugin.
Write main.typ:
#import "styles.typ": doc-base, ai-disclosure-block
#show: doc-base.with(
title: "{{title}}",
subtitle: {{subtitle_or_none}},
author: "{{author}}",
date: datetime.today(),
repo-url: {{repo_url_or_none}},
license: "{{license}}",
show-page-numbers: {{show_page_numbers}},
show-license: {{show_license}},
show-repo-url: {{show_repo_url}},
show-author: {{show_author}},
banner-path: {{banner_or_none}},
show-toc: true,
toc-depth: 2,
)
// Body — concatenated from text_sources in manifest order.
// Each markdown source becomes a level-1 section; raw paragraphs pass through.
// Images referenced in markdown are copied in and rendered at their reference point.
Convert each markdown source to Typst (pandoc markdown -> typst, or a simple transform for headings, paragraphs, lists, code, images). Rewrite image paths to the build dir. Copy referenced images into the build dir. Images not referenced inline are appended at the end of their source's section.
/usr/local/bin/typst compile /tmp/repo-to-docs/<slug>/build/main.typ <output>
Fall back to typst on PATH if the absolute path is missing.
pdfinfo if available)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
10 skills in this plugin
/generate-pdf-from-outputsUse when the user wants to generate a styled PDF from repository outputs using Typst with IBM Plex Sans and a clean brand palette. Triggers on phrases like "generate a PDF", "make a PDF from outputs", "typst PDF", "pdf this"./markdown-to-epubTurn a markdown document (report, guide, analysis, notes) into a reflowable EPUB for reading on a phone or e-reader, alongside or instead of a PDF. Use when the user says "make it an ebook", "EPUB", "MOBI", "something I can read on my phone", "Kindle version", or finds a dense PDF hard to read on mobile./repo-scanScan a local Git repository and emit a manifest of its text sources (README, docs/, planning/, report/), embeddable images (diagrams/, graphics/, images/, banner.*), and repo metadata (name, slug, git remote, HEAD commit, derived title and summary). Shared helper invoked by the other repo-to-docs skills before they generate anything. Use when the user asks to "scan this repo for docs", "inventory the repo content", or as a first step before building a PDF, blog post, or white paper from a repository./repo-to-blog-postSynthesize a concise, first-person, technical blog post (markdown, with frontmatter) from a GitHub repository's README, docs, and planning files. Writes intro / body / conclusion in a no-marketing-fluff voice. Use when the user says "turn this repo into a blog post", "draft a blog post about this project", "write up this repo as an article", or wants a publishable narrative of the repository./repo-to-docs-configureInteractive setup for the repo-to-docs plugin — writes ~/.config/repo-to-docs/config.json with author details, default license, Typst footer toggles, index-repo publishing targets, and Google Drive settings. Use when the user says "configure repo-to-docs", "set up repo-to-docs", "add a new docs-index target", "change the default license", or is running any repo-to-docs skill for the first time and hits missing config./repo-to-docs-indexPublish an already-generated PDF (or other file) into a configured docs-index repository — copies it into a YY/MM/DD/<slug>/ folder, writes meta.json, runs the repo's build-index.sh if present, then commits and pushes. Use when the user says "publish this PDF to my docs index", "push this document to the public docs repo", "add this to my docs-index", or after running repo-to-pdf/white-paper and wanting to publish it.repo-to-content@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin repo-to-content