/research-convensions:report-writingfrom research-convensions
Sets up a research documentation site with a neutral-academic stylesheet, HTML templates, and a Python build script. Scaffolds or refreshes templates for a single-page index with markdown and PDF viewing.
Ships in research-convensions. 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.
Read when SKILL.md points to them; scripts run unread.
Stand up a documentation site for any research repo using a shared neutral-academic stylesheet, HTML templates, Makefile, and build script. The visual identity — near-black ink, terracotta accent, warm-paper background, Source Serif 4 throughout, JetBrains Mono for eyebrows / code — is fixed. The pipeline is a single Python script (tools/build_site.py) driven by a doc registry. The contents you put inside that style are flexible.
| Situation | Use | Result |
|---|---|---|
| Target repo has no site setup yet | scripts/scaffold.py | Writes Makefile, tools/build_site.py, .github/templates/*, .github/workflows/deploy-pages.yml. Idempotent — re-runs skip existing files; if Makefile exists, the site Makefile is written as Makefile.site. |
| Target repo already has the site, templates drifted | scripts/refresh_templates.py | Overwrites the four files under .github/templates/. The build script and Makefile are untouched. |
Both scripts default to the current working directory. Pass a path to scaffold elsewhere. Pass --force to scaffold over existing files.
From the target repo root:
# Fresh setup (or top-up — idempotent).
python3 /path/to/skills/report-writing/scripts/scaffold.py
# Already set up; just refresh templates after the bundle changes.
python3 /path/to/skills/report-writing/scripts/refresh_templates.py
The scaffold writes:
Makefile # or Makefile.site if Makefile already exists
tools/build_site.py # the build script
.github/templates/index.html # landing template
.github/templates/markdown.html # prose viewer template
.github/templates/viewer.html # PDF viewer template
.github/templates/styles.css # ink + terracotta stylesheet
.github/workflows/deploy-pages.yml # CI to publish on push
Open tools/build_site.py and edit the ─── CONFIG ─── block:
SITE_TITLE, SITE_DESCRIPTION — page <title> and meta description.SITE_SLUG, SITE_KIND — the mono-uppercase wordmark + the sub-label after it (e.g., SITE_SLUG="QFT-2026", SITE_KIND="lecture notes").SOURCE_URL — the link behind the "Source" nav item and the prose page footer.HERO_EYEBROW, HERO_TITLE, HERO_SUBTITLE — the three lines of the index hero. HERO_TITLE may include <em>...</em> for italic emphasis.SITE_COPYRIGHT — left-side footer text.GITHUB_BASE — public URL prefix for "View source" links on rendered markdown pages.DEFAULT_GROUP, GROUP_TABS — the tab row across the hero. A "group" is whatever you want to slice docs by — version, audience, year, project phase. Use a single tab if you don't need a group axis.SECTION_META — the section order / titles / one-line descriptions within a group.DOC_REGISTRY — one entry per document. Three kinds:
typst → compiles .typ to PDF, wraps in viewer.html.markdown → renders .md to HTML, wraps in markdown.html.download → copies the file into _site/<slug> for direct download..github/workflows/deploy-pages.yml triggers on branches: ["main"]. Switch to dev, master, or your publishing branch as needed. Enable GitHub Pages → Source: GitHub Actions in the repo settings.
make install-deps # one-time: pip install markdown pymdown-extensions
make build # writes _site/
make serve # builds + serves on http://localhost:8000
Open the served site in a browser and confirm:
.doc-card hovers correctly (border tints terracotta, arrow slides in).| Target | What it does |
|---|---|
make build | Build the site into _site/ |
make serve | Build, then serve at http://localhost:8000 |
make serve-only | Serve without rebuilding |
make watch | Rebuild on file changes (requires entr) |
make clean | Remove _site/ |
make install-deps | Install markdown + pymdown-extensions |
make help | Print the target list |
All under references/:
| Path | Purpose |
|---|---|
templates/index.html | Hero + group tabs + section-grouped doc-card grid |
templates/markdown.html | Long-form prose page rendered from markdown |
templates/viewer.html | Full-viewport PDF viewer with site header |
templates/styles.css | The neutral-academic stylesheet (ink + terracotta) |
site/Makefile | Build/serve/clean/watch targets |
site/build_site.py | Single-script site builder with a CONFIG block |
site/deploy-pages.yml | GitHub Pages CI workflow |
style-tokens.md | Distilled color, type, spacing, motion tokens |
layout-patterns.md | Component-level patterns (hero, sections, doc-card, prose, viewer, footer) plus the DATA shape for index.html |
paper/figs/, in a README, in docs/assets/, in prior slides. Find them first; only then think about generating anything new. Copy them into docs/figs/ (the build script copies docs/figs/ → _site/figs/ automatically) and reference with . Convert PDFs if needed (pdf2svg foo.pdf foo.svg, or pdftocairo -png -r 180 -singlefile foo.pdf foo). Synthesised diagrams as a substitute for real figures read as a worse copy — only fall back to synthesising one when the concept you need to illustrate genuinely doesn't appear in any source.styles.css only if a new accent is genuinely needed — and add it as a --name custom property, not a hardcoded hex.SITE_SLUG short (≤12 characters) so it stays on one line at narrow widths.SITE_COPYRIGHT on the left, build/deploy attribution on the right. Keep the two-cell structure.target="_blank" rel="noopener". The .external class auto-renders an ↗ glyph.| Mistake | Fix |
|---|---|
| Synthesised an SVG / diagram for a page that introduces a paper or repo | Stop. Find the source figure (in figs/, docs/assets/, the README) and embed that. Copy it into docs/figs/, reference as . Convert PDFs with pdf2svg or pdftocairo if necessary. Hand-drawn copies of real figures undermine the report's credibility. |
Editing _site/ directly instead of the source files | _site/ is generated; re-run make build. |
Hand-rolling card markup that drifts from .doc-card | Reuse .doc-card. Match the icon convention (download vs. right arrow). |
Forgetting make install-deps on a fresh checkout | The build will ImportError on markdown. Run make install-deps. |
Adding a typst doc without typst installed | make build aborts. Install Typst or change the kind to markdown. |
| Embedding PDFs inline in a prose page | Use viewer.html for PDFs; link to it from the index. |
Leaving GITHUB_BASE as the placeholder | Rendered prose pages get broken "View source" links. |
| Pushing without enabling Pages → GitHub Actions | The workflow runs but no site appears. |
agents/openai.yaml (opens in a new tab)references/layout-patterns.md (opens in a new tab)references/site/Makefile (opens in a new tab)references/site/build_site.py (opens in a new tab)references/site/deploy-pages.yml (opens in a new tab)references/style-tokens.md (opens in a new tab)references/templates/index.html (opens in a new tab)references/templates/markdown.html (opens in a new tab)references/templates/styles.css (opens in a new tab)references/templates/viewer.html (opens in a new tab)scripts/refresh_templates.py (opens in a new tab)scripts/scaffold.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub codingthrust/templates --plugin research-convensions7 skills in this plugin
/fix-prUse when a pull request on the current branch has review comments, failing CI checks, or coverage gaps to address — guides a triaged cleanup pass that fixes feedback in priority order without bundling unrelated changes./issue-to-prUse when you have a GitHub issue and want to open a PR carrying an implementation plan — guides fetching the issue, brainstorming an approach with the user, writing a plan file, and pushing a plan-only PR ready for implementation (manual or automated)./repo-hygiene-auditUse when auditing a software repository for beginner-level best-practice violations, repo health, Git history hygiene, issue and PR usage, branch discipline, tests, docs, coding style, CI, security basics, or maintainability signals.Other plugins' skills for the same job