zhihaoairobotic/clawphd/page-gen

Claude Code and agent skill by zhihaoairobotic/clawphd

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate an academic paper project webpage from PDF using parse_paper, match_template, render_html, review_html_visual, and extract_table_html.

Install

npx vskill@latest install zhihaoairobotic/clawphd/page-gen

SKILL.md

Academic Page Generation

Turn a paper PDF into a polished HTML project page with iterative visual refinement.

Available Tools

ToolPurpose
parse_paperParse PDF into markdown (pymupdf4llm) + extract complete figures with captions as screenshots
match_templateRank page templates by style preferences (reads tags.json)
render_htmlRender local HTML into PNG screenshot (Playwright)
review_html_visualVision-based review of rendered screenshot
extract_table_htmlConvert table image to semantic HTML table

Workflow (follow in order)

Step 1 - Parse

Call parse_paper with the user PDF path.

  • The tool returns markdown_path and a figures array.
  • Each figure has: num (Figure number), caption (full caption text from the paper), and path (high-res screenshot of the complete figure region).
  • Read the markdown file to understand the paper content.
  • The figures are page-rendered crops that exactly match what you see in the PDF — not raw embedded bitmaps.
Step 2 - Plan content

From parsed markdown:

  1. Remove references section.
  2. Keep only figures/tables that support understanding of method/results.
  3. Produce section plan:
  • title
  • authors
  • affiliation
  • dynamic sections based on paper content
  1. Generate concise, web-first content for each section.
Step 3 - Select template

Call match_template with the user's style preferences (or defaults).

The tool returns ranked template candidates with paths. You MUST use these templates.

Step 4 - Read template and generate HTML

CRITICAL: Do NOT write HTML/CSS from scratch. You MUST base your page on the selected template.

  1. Read the top-ranked template's index.html using read_file to understand its full structure.
  2. Read the template's CSS file(s) (usually in assets/ subfolder) to understand its styling.
  3. Copy the template directory structure into the output folder:
  • Copy CSS/JS/font files from the template to the output folder.
  • Copy figure images from figures_dir (returned by parse_paper) into the output folder.
  1. Generate a new index.html that:
  • Reuses the template's HTML structure (header, nav, sections, footer layout).
  • References the same CSS file(s) — do NOT inline CSS.
  • Fills in the paper content (title, authors, abstract, method, results, figures).
  • For each figure, use the caption from parse_paper output and set <img src> to the figure file.
  • Updates image src paths to use relative paths.
  • Keeps all media paths relative.
Step 5 - Visual review loop (max 2 rounds)
  1. Call render_html on generated page.
  2. Call review_html_visual on screenshot.
  3. Apply targeted revisions from review.
  4. Repeat if necessary, max 2 rounds.
Step 6 - Table replacement

If table images are present:

  1. Call extract_table_html per table image.
  2. Replace corresponding <img ...> with generated <table>...</table>.
  3. Re-render once to confirm final visual quality.
Step 7 - Human feedback

Ask user for final adjustments. If feedback is provided:

  1. Apply requested edits.
  2. Re-render and confirm.

Important Rules

  • NEVER generate HTML/CSS from scratch. Always base the page on a real template.
  • Keep all outputs under workspace paths.
  • Never destroy existing template files; write to a new project output folder.
  • Use simple, robust HTML/CSS changes over risky rewrites.
  • Prefer readability and information hierarchy over flashy layout.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
157
Repository forks
11
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/zhihaoairobotic/clawphd/page-gen/badge)](https://verified-skill.com/skills/zhihaoairobotic/clawphd/page-gen)

Something wrong with this skill or its page? Tell us.