[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M726GSN3VHGYST5FGYXF4XQN":3,"skill-same:01M726GSN3VHGYST5FGYXF4XQN":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M726GSN3VHGYST5FGYXF4XQN","paper-visual-compiler-guardrails",null,"Guardrails for NewsRoom Paper Visual Compiler and model-assisted academic PDF parsing. Use when changing or reviewing PDF-to-PaperDocument compilation, model layout prompts, figure\u002Ftable extraction, equation generation, Asset Gate rules, source previews, or Open Reader paper-body rendering.","Devin333\u002FAgora-Hub","Devin333","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F122308151?v=4","01M726FPA2A6QKA8K7P6AZRB5M","01M726FPAQBV2HK6CFXQ3NPS4N",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fpaper-visual-compiler-guardrails\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: paper-visual-compiler-guardrails\ndescription: Guardrails for NewsRoom Paper Visual Compiler and model-assisted academic PDF parsing. Use when changing or reviewing PDF-to-PaperDocument compilation, model layout prompts, figure\u002Ftable extraction, equation generation, Asset Gate rules, source previews, or Open Reader paper-body rendering.\n---\n\n# Paper Visual Compiler Guardrails\n\n## Core Contract\n\nUse this skill before touching any paper PDF parsing, visual compiler, or Open Reader body rendering code.\n\nThe formal reader body is a source reconstruction, not an AI article. Every body block must be traceable to the PDF source or to a model-transcribed equation region. AI summary, method signals, benchmark signals, recommendations, and review diagnostics must stay outside the body stream.\n\n## Non-Negotiables\n\n- Never render legacy `sections[]` as the formal paper body.\n- Never put AI summary or derived signals into `PaperDocument.blocks`.\n- Never publish non-`compiled` documents as readable article body.\n- Never use screenshot assets for equations. Equations must be generated text or LaTeX with source bbox metadata.\n- Never publish figure\u002Ftable blocks without a manifest asset, source bbox, dimensions, checksum, label, and caption.\n- Never allow the same Figure\u002FTable label to create many tiny cards. Group multi-panel images under one visual block unless the paper explicitly has separate labels.\n- Never crop surrounding prose into figure\u002Ftable assets when real image blocks or model regions identify the visual body.\n- Never trust model output alone. Deterministic Asset Gate must remain the publication authority before review.\n- Never treat a model failure, timeout, or malformed JSON as publishable. Record diagnostics and block or fall back deterministically.\n\n## Workflow\n\n1. Read the relevant implementation:\n   - `backend\u002Fboards\u002Fpaper_radar\u002Fvisual_compiler\u002F`\n   - `interfaces\u002Fservices\u002Fpaper_visual_compiler_service.py`\n   - `interfaces\u002Fapi\u002Frouters\u002Fpapers.py`\n   - `frontend\u002Fsrc\u002Flib\u002Fpaper-reader\u002F`\n   - `frontend\u002Fsrc\u002Fcomponents\u002Fpapers\u002Fopen-reader\u002F`\n\n2. Classify the work:\n   - Provider\u002Fprompt change: read `references\u002Fmodel-output-contract.md`.\n   - Gate\u002Freview\u002Fpublication change: read `references\u002Fpublication-gates.md`.\n   - Frontend reader change: read `references\u002Fopen-reader-rendering.md`.\n\n3. Preserve the artifact boundary:\n   - PDF compiler produces `PaperDocument`, `PaperAssetManifest`, `PaperCompileInfo`, diagnostics.\n   - Asset Gate validates deterministic integrity.\n   - AI review assesses readability after Gate success.\n   - Reader renders only published `PaperDocument.blocks`.\n\n4. Add or update tests for the failure mode being fixed. Prefer synthetic PDFs for deterministic backend tests and component tests for reader rendering.\n\n5. Validate a real compiled artifact when possible:\n\n```powershell\npython .codex\\skills\\paper-visual-compiler-guardrails\\scripts\\validate_paper_document.py .newsroom\\papers\\visual-compiler\\\u003Cpaper_id>\n```\n\n## Model Prompt Rules\n\nWhen asking a model to parse PDF page images:\n\n- Ask for JSON only.\n- Ask it to locate visual regions, not summarize or rewrite.\n- Require PDF-point bboxes using top-left origin.\n- Require one complete region for a multi-panel Figure\u002FTable.\n- Require captions copied from the paper when visible.\n- Require `equationText` as LaTeX\u002Fplain math for equations.\n- Tell it equations are not image assets.\n- Tell it to exclude surrounding prose and exclude caption from crops when the visual body is clear.\n- Treat model confidence as advisory metadata, not a gate bypass.\n\n## Equation Rules\n\nEquation blocks must satisfy all of these:\n\n- `type == \"equation\"`\n- `assetId is None`\n- `text` is generated formula text or LaTeX, not a screenshot path and not an explanatory paragraph.\n- `source` has page number and bbox.\n- KaTeX may render the text; fallback may show plain text.\n- The formula text may come from model transcription first, then PyMuPDF text fallback only if it looks like a standalone equation.\n\nReject these as equation blocks:\n\n- paragraphs with a few math symbols,\n- captions,\n- figure\u002Ftable labels,\n- PDF mojibake\u002Fprivate-use glyph noise,\n- screenshots or asset-backed equation images.\n\n## Figure\u002FTable Rules\n\nFigure\u002Ftable blocks must satisfy all of these:\n\n- `type in {\"figure\", \"table\"}`\n- `assetId` points to an existing manifest asset.\n- asset file exists inside the paper visual compiler directory.\n- asset has valid width, height, checksum, source bbox, label, caption, and acceptable blankness.\n- multi-image panels with one label compile into one block\u002Fasset.\n- table assets may span the column\u002Fpage width; figure assets should be readable and not stretched.\n\n## Reader Rules\n\nOpen Reader must stay a full-screen reading surface for `\u002Fpapers\u002F[slug]\u002Fread`.\n\n- Do not add the outer Research\u002FHeader bar to the formal reader.\n- Render body only when backend document status is `compiled`.\n- For non-compiled states, show status\u002Fdiagnostics and do not render pseudo-body.\n- Render equations through `EquationRenderer`, not `\u003Cimg>`.\n- Render figure\u002Ftable cards from manifest asset URLs.\n- Keep AI panel auxiliary and visually separate from the paper body.\n\n## Validation Commands\n\nRun the narrowest useful set, then broaden if shared behavior changed:\n\n```powershell\npython -m pytest tests\\backend\\boards\\paper_radar\\test_visual_compiler.py -q\nopenspec validate paper-visual-compiler-runtime --strict\ncd frontend; npm test -- --run paper-reader-page paper-document-reader-page\ncd frontend; npm run typecheck\npython -m scripts.dev compile\n```\n\nFor a real paper artifact:\n\n```powershell\npython .codex\\skills\\paper-visual-compiler-guardrails\\scripts\\validate_paper_document.py .newsroom\\papers\\visual-compiler\\arxiv-2605.26111v1\n```\n","# Paper Visual Compiler Guardrails\n\n## Core Contract\n\nUse this skill before touching any paper PDF parsing, visual compiler, or Open Reader body rendering code.\n\nThe formal reader body is a source reconstruction, not an AI article. Every body block must be traceable to the PDF source or to a model-transcribed equation region. AI summary, method signals, benchmark signals, recommendations, and review diagnostics must stay outside the body stream.\n\n## Non-Negotiables\n\n- Never render legacy `sections[]` as the formal paper body.\n- Never put AI summary or derived signals into `PaperDocument.blocks`.\n- Never publish non-`compiled` documents as readable article body.\n- Never use screenshot assets for equations. Equations must be generated text or LaTeX with source bbox metadata.\n- Never publish figure\u002Ftable blocks without a manifest asset, source bbox, dimensions, checksum, label, and caption.\n- Never allow the same Figure\u002FTable label to create many tiny cards. Group multi-panel images under one visual block unless the paper explicitly has separate labels.\n- Never crop surrounding prose into figure\u002Ftable assets when real image blocks or model regions identify the visual body.\n- Never trust model output alone. Deterministic Asset Gate must remain the publication authority before review.\n- Never treat a model failure, timeout, or malformed JSON as publishable. Record diagnostics and block or fall back deterministically.\n\n## Workflow\n\n1. Read the relevant implementation:\n   - `backend\u002Fboards\u002Fpaper_radar\u002Fvisual_compiler\u002F`\n   - `interfaces\u002Fservices\u002Fpaper_visual_compiler_service.py`\n   - `interfaces\u002Fapi\u002Frouters\u002Fpapers.py`\n   - `frontend\u002Fsrc\u002Flib\u002Fpaper-reader\u002F`\n   - `frontend\u002Fsrc\u002Fcomponents\u002Fpapers\u002Fopen-reader\u002F`\n\n2. Classify the work:\n   - Provider\u002Fprompt change: read `references\u002Fmodel-output-contract.md`.\n   - Gate\u002Freview\u002Fpublication change: read `references\u002Fpublication-gates.md`.\n   - Frontend reader change: read `references\u002Fopen-reader-rendering.md`.\n\n3. Preserve the artifact boundary:\n   - PDF compiler produces `PaperDocument`, `PaperAssetManifest`, `PaperCompileInfo`, diagnostics.\n   - Asset Gate validates deterministic integrity.\n   - AI review assesses readability after Gate success.\n   - Reader renders only published `PaperDocument.blocks`.\n\n4. Add or update tests for the failure mode being fixed. Prefer synthetic PDFs for deterministic backend tests and component tests for reader rendering.\n\n5. Validate a real compiled artifact when possible:\n\n```powershell\npython .codex\\skills\\paper-visual-compiler-guardrails\\scripts\\validate_paper_document.py .newsroom\\papers\\visual-compiler\\\u003Cpaper_id>\n```\n\n## Model Prompt Rules\n\nWhen asking a model to parse PDF page images:\n\n- Ask for JSON only.\n- Ask it to locate visual regions, not summarize or rewrite.\n- Require PDF-point bboxes using top-left origin.\n- Require one complete region for a multi-panel Figure\u002FTable.\n- Require captions copied from the paper when visible.\n- Require `equationText` as LaTeX\u002Fplain math for equations.\n- Tell it equations are not image assets.\n- Tell it to exclude surrounding prose and exclude caption from crops when the visual body is clear.\n- Treat model confidence as advisory metadata, not a gate bypass.\n\n## Equation Rules\n\nEquation blocks must satisfy all of these:\n\n- `type == \"equation\"`\n- `assetId is None`\n- `text` is generated formula text or LaTeX, not a screenshot path and not an explanatory paragraph.\n- `source` has page number and bbox.\n- KaTeX may render the text; fallback may show plain text.\n- The formula text may come from model transcription first, then PyMuPDF text fallback only if it looks like a standalone equation.\n\nReject these as equation blocks:\n\n- paragraphs with a few math symbols,\n- captions,\n- figure\u002Ftable labels,\n- PDF mojibake\u002Fprivate-use glyph noise,\n- screenshots or asset-backed equation images.\n\n## Figure\u002FTable Rules\n\nFigure\u002Ftable blocks must satisfy all of these:\n\n- `type in {\"figure\", \"table\"}`\n- `assetId` points to an existing manifest asset.\n- asset file exists inside the paper visual compiler directory.\n- asset has valid width, height, checksum, source bbox, label, caption, and acceptable blankness.\n- multi-image panels with one label compile into one block\u002Fasset.\n- table assets may span the column\u002Fpage width; figure assets should be readable and not stretched.\n\n## Reader Rules\n\nOpen Reader must stay a full-screen reading surface for `\u002Fpapers\u002F[slug]\u002Fread`.\n\n- Do not add the outer Research\u002FHeader bar to the formal reader.\n- Render body only when backend document status is `compiled`.\n- For non-compiled states, show status\u002Fdiagnostics and do not render pseudo-body.\n- Render equations through `EquationRenderer`, not `\u003Cimg>`.\n- Render figure\u002Ftable cards from manifest asset URLs.\n- Keep AI panel auxiliary and visually separate from the paper body.\n\n## Validation Commands\n\nRun the narrowest useful set, then broaden if shared behavior changed:\n\n```powershell\npython -m pytest tests\\backend\\boards\\paper_radar\\test_visual_compiler.py -q\nopenspec validate paper-visual-compiler-runtime --strict\ncd frontend; npm test -- --run paper-reader-page paper-document-reader-page\ncd frontend; npm run typecheck\npython -m scripts.dev compile\n```\n\nFor a real paper artifact:\n\n```powershell\npython .codex\\skills\\paper-visual-compiler-guardrails\\scripts\\validate_paper_document.py .newsroom\\papers\\visual-compiler\\arxiv-2605.26111v1\n```\n",{"name":5,"description":7},"main","424a1750263f99cb19e23f1d68be46bed5a15123",".codex\u002Fskills\u002Fpaper-visual-compiler-guardrails","https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub","https:\u002F\u002Fgithub.com\u002FDevin333","2026-11-02 08:29:52",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add Devin333\u002FAgora-Hub --skill paper-visual-compiler-guardrails",{"tool":35,"command":36},"bunx","bunx skills add Devin333\u002FAgora-Hub --skill paper-visual-compiler-guardrails",{"tool":38,"command":39},"pnpm","pnpm dlx skills add Devin333\u002FAgora-Hub --skill paper-visual-compiler-guardrails","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fpaper-visual-compiler-guardrails\u002FSKILL.md",true,[43,49,53,57,61],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"agents\u002Fopenai.yaml","REFERENCE","参考文档",269,"https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fpaper-visual-compiler-guardrails\u002Fagents\u002Fopenai.yaml",{"path":50,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fmodel-output-contract.md",1896,"https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fpaper-visual-compiler-guardrails\u002Freferences\u002Fmodel-output-contract.md",{"path":54,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fopen-reader-rendering.md",1453,"https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fpaper-visual-compiler-guardrails\u002Freferences\u002Fopen-reader-rendering.md",{"path":58,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fpublication-gates.md",1385,"https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fpaper-visual-compiler-guardrails\u002Freferences\u002Fpublication-gates.md",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Fvalidate_paper_document.py","SCRIPT","脚本",5402,"https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fpaper-visual-compiler-guardrails\u002Fscripts\u002Fvalidate_paper_document.py",[68,75,82,88,95,102],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M726HJZEMPWHYDAFWFNAWDEN","valid-skill","A valid fixture skill used by framework skill package tests.","https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M726HGT6BE49YERGH253RNYX","runnable-skill","Runnable fixture skill for SKILL-02 runtime tests.","https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Frunnable-skill\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M726HFXXFBY1G4T1BT6FKQS1","invalid-missing-frontmatter","https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Finvalid-missing-frontmatter\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M726HD4FMF8QXY7396V4QD03","trend-analysis","Analyze the momentum, novelty, and potential impact of events across AI news, papers, GitHub projects, and community signals. Use after deduplication and evidence checking to decide what deserves ranking, watchlist tracking, or report coverage.","https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002Fbackend\u002Ffoundation\u002Fskills\u002Ftrend-analysis\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M726HAJH78B4QJCHRN15B78Y","source-reliability","Assess the reliability of a source or publisher for AI news, official blogs, research papers, GitHub repositories, and community posts. Use before ranking, deduplication, evidence checking, or report writing when source trust must be converted into a structured score and risk flags.","https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002Fbackend\u002Ffoundation\u002Fskills\u002Fsource-reliability\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":18},"01M726H7GGYBJT1S41R9CJA1Y3","report-writing","Write structured, evidence-aware Markdown reports from ranked and verified AI news events, project signals, paper signals, community signals, and trend analyses. Use as the final output step before artifact publishing.","https:\u002F\u002Fgithub.com\u002FDevin333\u002FAgora-Hub\u002Fblob\u002Fmain\u002Fbackend\u002Ffoundation\u002Fskills\u002Freport-writing\u002FSKILL.md",[],[]]