원클릭으로
relatedwork-summarizer
Drive the relatedwork summarization CLI, build the literature cross-index, and produce a coverage report.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Drive the relatedwork summarization CLI, build the literature cross-index, and produce a coverage report.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Detect when the user wants to start a new CoPaper paper project or initialize a workspace, run `copaper --root . init` when needed, then inspect the current workflow phase and immediately begin the appropriate next phase work.
Inspect the current CoPaper workflow phase, move forward, move backward, or jump to a named phase when the user asks to view, advance, return, roll back, or switch phases in OpenCode, then invoke the skill for the active phase. Uses `copaper status --json` and `copaper set-phase` instead of editing state files.
Convert `paper.md` into a final LaTeX paper project using a user-provided conference or journal template placed under `templates/latex/`. Use when the user asks to generate the final LaTeX paper from the CoPaper markdown draft with a local template.
Helps create placeholder data (tables, figures, metrics) for evaluation sections with clear warnings that all numbers must be replaced with real experimental results. Also generates descriptions explaining what the data shows and how it supports the paper's claims and insights.
Detects undefined terms, unclear descriptions, and clarity issues in academic paper drafts to improve readability and understanding.
Teaches agents how to manage a CoPaper project through the OpenCode plugin tools, including dashboard, initialization, artifact readiness, workflow status, event log inspection, and phase updates. Use this skill whenever the task is about workflow/state management rather than direct paper writing.
| name | relatedwork-summarizer |
| description | Drive the relatedwork summarization CLI, build the literature cross-index, and produce a coverage report. |
This skill orchestrates per-paper summarization for downloaded PDFs by calling the copaper relatedwork summarize CLI, builds the literature cross-index via copaper relatedwork build-index, and produces a coverage report comparing summaries to storyline.md. The skill itself does not read PDFs, spawn subagents, or call MCP tools — all heavy lifting lives in the CLI.
relatedwork-finder has successfully downloaded PDFs.| File | Required | When to Read | Purpose |
|---|---|---|---|
| Relatedwork status | Required | Steps 1, 2, 4 | Call copaper_relatedwork_status for read-only catalog, download, summary, BibTeX, and cross-index state |
relatedwork/literature.json | Required | Steps 1, 4 | Canonical catalog used by the CLI; inspect queue state through copaper_relatedwork_status when available |
storyline.md | Required | Steps 2, 3 | Passed to the CLI as context for the "relation to our work" section, and used by the coverage report |
.agents/skills/relatedwork-finder/template.md | Required | Step 2 | Summary template; passed to the CLI |
relatedwork/papers/<paper_id>.md | Read/write | Steps 2-3 | Per-paper summary files written by the CLI |
relatedwork/summary.md | Read/write | Step 3 | Aggregated multi-paper summary (skill maintains this file) |
.agents/cross_index.json | Read/write | Step 4 | Built by copaper relatedwork build-index |
The summarization CLI uses an OpenAI-compatible LLM. Before running this skill, confirm the following are set (typically in .env):
OPENAI_API_KEY — requiredCOPAPER_MODEL — required (e.g. gpt-4o-mini)OPENAI_BASE_URL — optional, only if using a proxy endpointIf any of these are missing the CLI will fail loudly; do NOT try to summarize by reading the PDFs yourself.
You MUST log your tools usage during the execution of this skill.
After invoking any tool, append a structured JSON log to .agents/events.jsonl.
Example Action Logging Command:
echo '{"timestamp": "'$(date -u +"%Y-%m-%dT%H:%M:%SZ")'", "operator": "Agent", "action": "tool_call", "result": "success", "tool_name": "read_file", "target": "path/to/file"}' >> .agents/events.jsonl
You MUST follow this step-by-step interactive workflow. STOP and wait for user confirmation after each step marked with [WAIT FOR CONFIRMATION].
copaper_relatedwork_status first. This tool is read-only and reports which papers are downloaded and which already have summaries; do not replace it with prompt-only status text or manual state inspection.paper_id):
downloadStatus is downloaded with pdfExists=true. If not, REFUSE the request and explain why. The target queue contains ONLY this paper.downloadStatus=downloaded, pdfExists=true, and summaryExists=false.--force.Run the summarize CLI. For the full queue:
copaper --root . relatedwork summarize
For a single paper (when the user specified one in Step 1):
copaper --root . relatedwork summarize --paper-id <paper_id>
Add --force if the user wants to re-summarize already-summarized papers. Other useful flags: --qps 16 (default), --concurrency 8 (default; worker threads), --model <name> (override COPAPER_MODEL).
The CLI:
pypdfstoryline.md + the template + the PDF text to the configured LLMrelatedwork/papers/<paper_id>.mdregister-summary automatically (updates literature.json)Do NOT spawn subagents. Do NOT use any multimodal-looker agent type. Do NOT read PDFs yourself. The CLI handles parallelism, rate limiting, and oversized-PDF failures internally.
After the CLI finishes, parse its stdout. For each [ok] line: open the new relatedwork/papers/<paper_id>.md and synthesize its key points (technical mechanism, methodology, empirical results, limitations) into relatedwork/summary.md under a ## <paper_id>: <Title> heading. If a section for that paper_id already exists in summary.md, REPLACE it; otherwise APPEND it.
For each [fail] line, leave the paper alone. Surface the error to the user.
Call copaper_relatedwork_status again to verify summary counts after the CLI updates literature.json.
ACTION: Tell the user "Summarized X papers via the CLI (Y succeeded, Z failed). I have updated relatedwork/summary.md with the new sections." List any failures.
STOP: Ask "Should I proceed to build the cross-index and generate the coverage report?"
copaper --root . relatedwork build-index. The CLI scans relatedwork/papers/*.md, updates .agents/cross_index.json, and emits a coverage report (covered points, gaps, ratio) against storyline.md.--use-llm flag on the same CLI.)relatedwork/summary.md end-to-end and reorganize entries into thematic groups if the user requested it (e.g., by method family, by problem setting). Otherwise leave the order unchanged.relatedwork/literature.json as the canonical metadata artifact. Do NOT delete it.copaper_relatedwork_status before the final response if you need to report final literature, summary, BibTeX, or cross-index counts.relatedwork/search_cache.json is no longer needed, ask the user before removing it.relatedwork/summary.md."