返回顶部
p

paper-highlight

Automatically highlight academic papers by 5 semantic categories — goal, motivation, method, results, contributions — to help you quickly skim a paper. Configurable density levels, opacity, and optional note layers.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
103
下载量
0
收藏
概述
安装方式
版本历史

paper-highlight

# Paper Highlight Use this skill as a paper-reading workflow: understand first, then mark reusable information with stable semantics. Tune density with the highlight level, but keep each color meaning consistent. ## Setup This skill needs a one-time setup after installation. Prefer `uv` so the dependency stays isolated and reproducible: ```bash cd /Users/yo/.codex/skills/paper-highlight uv venv .venv source .venv/bin/activate uv pip install pymupdf ``` If the environment already exists, refresh it with: ```bash cd /Users/yo/.codex/skills/paper-highlight source .venv/bin/activate uv pip install --upgrade pymupdf ``` ## Workflow 1. Read [`references/highlight-rules.md`](references/highlight-rules.md) before annotating. 2. Do a preflight inspection before any model-heavy reading. Surface the PDF page count, extracted text volume, rough word count, and a rough token estimate to the user. 3. Explicitly warn that full-paper pre-reading can consume a large number of tokens, especially on long PDFs or dense two-column papers. Do not continue until the user clearly agrees. 4. Inspect the PDF structure once the user agrees. Prefer abstract, introduction, method overview, main results, and conclusion before touching fine details. 5. Build a mental highlight plan across the core reading chain: goal -> motivation -> method -> results. Add contribution, setup, or limitation colors only when they are independently reusable. 6. Run the bundled PyMuPDF script to annotate the PDF with semantic colors. Use `light` opacity by default; it now uses soft pastel colors at `0.5` opacity so the marks stay visible without fully covering the text. Switch to `dark` only when the source PDF is faint or image-heavy. 7. Add the optional explanation layer when needed: a paper-level `TLDR` paragraph and concise section `flow` summaries. Do not quote the original paper text inside notes; rewrite it as clear, compact summaries. 8. Review the output and remove noisy marks if the page looks busy. Prefer under-highlighting over over-highlighting. ## Preflight Gate Before executing the full highlighting workflow, report at least: - page count - extracted character count - extracted word count - rough token estimate Use those numbers to tell the user that the paper may be expensive to process. If the user does not explicitly confirm, stop after the inspection step. ## Selection Rules - Highlight only sentences that remain useful when revisiting the paper later for writing, reviewing, rebuttal, or method comparison. - Favor self-contained sentences that summarize a paragraph, state a claim, define a setup, or express a takeaway. - Skip transitions, generic field background, implementation trivia, decorative prose, and sentences that only feel important in the moment. - Keep one semantic meaning per color. Do not reuse a color for a neighboring but different category. - Stay useful even at higher density. Use the level presets to control how aggressive the pass should be, then trim obvious noise if a page becomes crowded. ## Highlight Levels Use `--highlight-level` to control annotation density: - `low`: fixed baseline - `medium`: target about `1.25x` the `low` count - `high`: target about `1.5x` the `low` count - `extreme`: target up to `2x` the `low` count Manual flags such as `--max-per-page`, `--max-total`, and `--min-score` still override the level preset when needed. ## Note Modes Use `--note-mode` to control the explanation layer: - `default`: add a title `TLDR` paragraph and concise section `flow` summaries - `none`: disable all note annotations ## Color Policy Use the required 5-color core by default: - Yellow: research goal or problem definition - Orange: motivation, gap, challenge, or prior limitation - Blue: main method or core mechanism - Pink: contributions or novelty claims - Green: main results or conclusions Enable optional colors only when they clearly add value: - Purple: definitions, assumptions, notation, or evaluation setup - Gray: limitations, caveats, failure cases, or future work ## Commands Set up the local environment: ```bash cd /Users/yo/.codex/skills/paper-highlight uv venv .venv source .venv/bin/activate uv pip install pymupdf ``` Run the highlighter: ```bash cd /Users/yo/.codex/skills/paper-highlight source .venv/bin/activate python3 scripts/highlight_paper.py input.pdf python3 scripts/highlight_paper.py input.pdf --highlight-level medium python3 scripts/highlight_paper.py input.pdf --highlight-level high --include-optional python3 scripts/highlight_paper.py input.pdf --note-mode flow python3 scripts/highlight_paper.py input.pdf --note-mode hightlight python3 scripts/highlight_paper.py input.pdf --note-mode full python3 scripts/highlight_paper.py input.pdf --highlight-level exteme --opacity dark python3 scripts/highlight_paper.py input.pdf --disable-optional definitions ``` Ask the script for its exact CLI when needed: ```bash cd /Users/yo/.codex/skills/paper-highlight source .venv/bin/activate python3 scripts/highlight_paper.py --help ``` ## Resources - [`references/highlight-rules.md`](references/highlight-rules.md): color legend, density targets, and sentence-level filters - `scripts/highlight_paper.py`: bundled PyMuPDF annotator for the final PDF pass

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 paper-highlight-1776053955 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 paper-highlight-1776053955 技能

通过命令行安装

skillhub install paper-highlight-1776053955

下载 Zip 包

⬇ 下载 paper-highlight v1.0.0

文件大小: 18.35 KB | 发布时间: 2026-4-14 13:06

v1.0.0 最新 2026-4-14 13:06
Initial release of paper-highlight.

- Automatically highlights academic papers in 5 semantic categories (goal, motivation, method, results, contributions).
- Configurable highlight density levels, opacity, and optional note/summary layers.
- Includes a preflight gate: estimates page/word/token count and warns users before heavy processing.
- Uses soft pastel highlight colors (with light/dark modes) for clear, non-intrusive marks.
- Provides precise controls for density, per-page limits, and optional highlight categories.
- Workflow instructions and detailed usage guidelines included in documentation.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部