بنقرة واحدة
chunk-paper
Chunk the registered paper into logical sections and add them to the katz paper map
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Chunk the registered paper into logical sections and add them to the katz paper map
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Read the paper and decide which issue spotters to use, removing irrelevant ones and optionally adding custom ones
Run EDSL-parallelized issue finding across all sections of a katz-registered manuscript
Bootstrap a full paper review using katz
Send paper figures to vision-capable models for feedback on clarity, design, and presentation
Review open katz issues, investigate them against the manuscript and code, and record findings
Read the paper and file issues for problems found in the manuscript
| name | chunk-paper |
| description | Chunk the registered paper into logical sections and add them to the katz paper map |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep |
| user-invocable | true |
Reads the canonical manuscript from a registered katz paper, identifies logical sections with clean IDs and titles, and appends them to the paper map using katz paper add-sections.
/chunk-paper
katz paper status should return "valid": true).katz must be on PATH.katz paper status and confirm "valid": true.The canonical manuscript is stored inside .katz/. To find it, run:
katz paper resolve 0 1
This confirms the manuscript is accessible. Then read the full manuscript from the version directory. The path is .katz/versions/<commit>/paper/manuscript.md where <commit> is from katz paper status.
Analyze the markdown and identify logical sections. The goal is to produce sections that are:
introduction, experiment-design, phase-1-results), not auto-generated span-id-page-* artifacts from PDF conversion.Guidelines for section identification:
#, ##, ###, etc.).span-id-page-* prefixed slugs with clean descriptive slugs based on the actual heading text.## 2. Experiment Design), use slugs like experiment-design (drop the number, keep the meaning).### and below) should keep their parent context in the slug (e.g., phase-1-ranking-behavior).Using Python via Bash, compute the byte offsets for each section:
import json, re
# Read the canonical markdown
with open("<path to manuscript.md>", "rb") as f:
raw = f.read()
text = raw.decode("utf-8")
lines = text.split("\n")
# For each heading, compute byte_start as:
# sum(len(l.encode("utf-8")) + 1 for l in lines[:i])
# where i is the 0-indexed line number.
#
# byte_end for each section extends to the byte_start of the next section,
# or len(raw) for the last section.
sections = [] # ... populated from analysis ...
# Output as JSON for the katz command
print(json.dumps(sections))
Important: The byte offsets must be exact. Each section needs id, title, byte_start, and byte_end. The line_start and line_end will be computed automatically by katz paper add-sections.
Pass the sections JSON array to katz paper add-sections:
katz paper add-sections --sections '<JSON array from step 4>'
This appends section records to paper_map.jsonl. Katz will reject any duplicate section IDs.
Run katz paper status and confirm:
"valid": trueThen run katz paper section <id> for 2–3 sections to spot-check that the byte ranges resolve correctly and the text content makes sense.
Report the final section list (id, title, line range) to the user.