ccf-paper-to-exemplar — скилл для Claude Code: что делает
Разбирает присланные PDF статей в карточки-эталоны письма и складывает их в личную библиотеку. Пригодится, когда нужны рабочие образцы структуры и подачи для своей рукописи.
npx skills add mikubaka88/CCFA-Skills --skill ccf-paper-to-exemplar -a claude-codeЧто делает ccf-paper-to-exemplar
Скилл читает PDF научной статьи и описывает, как та устроена: сюжет, ходы в абстракте, введении, методе и доказательствах, приёмы цитирования. Из этого собирается карточка-эталон с разделами Story Pattern, Abstract Moves, Introduction Moves, Method Moves, Evidence Moves, Citation Patterns, Reusable Techniques и Do-Not-Copy Boundary. Готовые карточки регистрируются в личной библиотеке, откуда их потом берут как образец для черновика.
Извлечение текста идёт через scripts/convert.py с явными флагами --output-dir, --full-text и --full-text-dir. Для этого нужен Python с pymupdf. Конвертер создаёт только недостающие заготовки, а карточку с тем же исходником и той же версией не трогает, поэтому повторный запуск не затирает правки. Рабочие файлы живут в ccfa-workfiles/exemplars/<source-id>/, сырой текст — в cache/, отдельно от библиотеки карточек.
Атрибуция остаётся за источником: переносится структура аргумента и отдельные языковые приёмы, научные утверждения — нет. Эту границу держит раздел Do-Not-Copy Boundary, и перед опорой на карточку в своём тексте её стоит перечитать: пустой результат извлечения за готовый анализ не выдаётся.
Какие задачи решает
- разобрать PDF статьи в карточку-эталон письма
- собрать личную библиотеку образцов из своих статей
- обновить один раздел готовой карточки, не потеряв прежние правки
- передать writer-скиллу нужные ходы письма
- проверить, что из статьи можно переносить, а что нельзя
Примеры запросов агенту
- Сделай карточку-эталон из
papers/main.pdf, результат положи вccfa-workfiles/exemplars/main/ - Зарегистрируй эту карточку в
../ccf-paper-writer/references/exemplars/index.md, дубликатов не создавай - Обнови в готовой карточке раздел Reusable Techniques, исходник и версия те же
Как установить ccf-paper-to-exemplar
1Через Skills CLI (Vercel)
npx skills add mikubaka88/CCFA-Skills --skill ccf-paper-to-exemplar -a claude-code2Вручную: положить файлы
~/.claude/skills/ccf-paper-to-exemplar/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ccf-paper-to-exemplar/
1Через Skills CLI (Vercel)
npx skills add mikubaka88/CCFA-Skills --skill ccf-paper-to-exemplar -a codex2Вручную: положить файлы
.agents/skills/ccf-paper-to-exemplar/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add mikubaka88/CCFA-Skills --skill ccf-paper-to-exemplar -a cursor2Вручную: положить файлы
.cursor/skills/ccf-paper-to-exemplar/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install mikubaka88/CCFA-Skills ccf-paper-to-exemplar2Вручную: положить файлы
.github/skills/ccf-paper-to-exemplar/SKILL.md1Через Skills CLI (Vercel)
npx skills add mikubaka88/CCFA-Skills --skill ccf-paper-to-exemplar -a gemini-cli2Командой платформы
gemini skills install https://github.com/mikubaka88/CCFA-Skills --path ccf-paper-to-exemplarВручную: положить файлы
.devin/skills/ccf-paper-to-exemplar/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add mikubaka88/CCFA-Skills --skill ccf-paper-to-exemplar -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ccf-paper-to-exemplar
Как установить ccf-paper-to-exemplar в Claude Code?
Выполните npx skills add mikubaka88/CCFA-Skills --skill ccf-paper-to-exemplar -a claude-code. Файл скилла появится по пути ~/.claude/skills/ccf-paper-to-exemplar/SKILL.md.
Что делает ccf-paper-to-exemplar?
Разбирает PDF статьи по разделам и заполняет карточку с ходами письма: сюжет, абстракт, введение, метод, доказательства, цитирование, приёмы. По запросу добавляет карточку в личную библиотеку образцов.
Что нужно, чтобы скилл разобрал PDF?
Python с pymupdf: без него scripts/convert.py текст не извлечёт. Если карточка для этого же исходника уже готова, повторное извлечение не требуется.
Исходный текст
SKILL.md · MIT
---
name: ccf-paper-to-exemplar
description: "Distill supplied paper PDFs into writing exemplar cards and register a requested personal library. Use for PDF to writing exemplar, 写作范例, and reusable paper-writing patterns. Preserve attribution; transfer argument structure and selected language conventions without copying scientific claims. Figure reconstruction, manuscript drafting, and review have separate owners."
metadata:
ccf_skill_controls:
handoff_question_mode: partial
respect_session_denylists: true
protect_idea_scope_in_writing: true
private_material_safety: moderate
shared_controls: ../ccf-common/references/
---
# Paper-to-Exemplar
## Family File Contract
Before file work, reuse canonical paths and one task/artifact working directory; default to project-root `ccfa-workfiles/<purpose>/<artifact-id>/`. Update in place, preserve inputs, and use UTF-8 with Chinese-text checks. Apply [artifact-contracts.md](../ccf-common/references/artifact-contracts.md) for naming, ownership, and task-created cleanup; handoffs inherit these paths.
## Collaboration Contract
Before specialist execution, read and apply [ccf-humanization](../ccf-humanization/SKILL.md) first, then [ccf-common](../ccf-common/SKILL.md). At every handoff, reuse their applicable active rules or refresh missing/changed ones. Both preflights are required even without prose; detailed editing, experiment, and maintenance modes run only when relevant.
Integrate necessary specialist contributions under one owner; reuse valid prerequisites and verify affected results. Follow the [cooperation routes](../ccf-common/references/routing.md) without duplicate reports.
## Scope And Shared Controls
Distill supplied paper PDFs into reusable writing patterns, preserving source attribution and scientific meaning. This skill owns exemplar cards; manuscript drafting belongs to `ccf-paper-writer`, visual reconstruction to `ccf-visual-composer`, and scientific review to `ccf-paper-reviewer`.
Follow `../ccf-common/references/handoff-modes.md`, `../ccf-common/references/task-modes.md`, and `../ccf-common/references/artifact-contracts.md`. Resolve existing card/library and cache paths before writing. Preserve no-new-files requests by editing a named existing card or returning the analysis in context. Conversion alone does not authorize global library/default changes.
## Workflow
1. Identify PDF paths, source versions, desired writing patterns, optional venue, and authorized destination. Reuse a completed card and extraction when they match the same source and requested scope; a new source version requires checking the affected analysis.
2. If extraction is needed, run `scripts/convert.py` with explicit `--output-dir`, `--full-text`, and `--full-text-dir` pointing to the chosen working cache. For a new project, the shared default is `ccfa-workfiles/exemplars/<source-id>/`, with extraction in `cache/`; preserve established paths. The converter preserves existing cards and creates only missing skeletons. `--full-text-dir` is optional; omitting it preserves the legacy output layout. Python with `pymupdf` is required for extraction, not for reusing a valid existing card.
3. Check extraction success and page markers. Analyze the relevant full source in coherent sections; use search and targeted ranges for a local card update. Inspect actual PDF pages when equations, figures, or reading order affect interpretation. Do not substitute an abstract-only analysis for a full-paper exemplar or treat empty extraction as complete.
4. Recover the source's story, abstract/introduction/method/evidence moves, citation patterns, and reusable techniques. Do not force a limitations ending. Use `../ccf-paper-writer/references/prose-quality-guardrails.md` to exclude defensive habits, artificial labels, formula dumping, unsupported hype, and mechanical prose from the advice.
5. Fill or revise the existing card in place using the section headings generated by `scripts/convert.py` and established cards: Story Pattern, Abstract Moves, Introduction Moves, Method Moves, Evidence Moves, Citation Patterns, Reusable Techniques, and Do-Not-Copy Boundary. Record title, venue/year when verified, source identity/version, and relevant page/section anchors. When language adaptation is requested, include the relevant punctuation, sentence rhythm, or transition conventions under Reusable Techniques with source anchors and their intended use. No new profile file or corpus quota is needed. Add Excluded Anti-Patterns only when the source supplies a material example. Keep writing moves separate from source claims and distinctive wording.
6. When library registration is requested, use `../ccf-paper-writer/references/exemplars/cards/` or the user's existing library and update `../ccf-paper-writer/references/exemplars/index.md` without duplicate entries. Preserve unrelated cards; a matching filename alone does not prove the same source. Keep raw extraction in the working cache, outside the reusable card library.
7. Update `../ccf-paper-writer/references/custom-format/default-user-format.md` only when default selection is requested. A venue-only request can select an existing relevant card through the index instead of extracting another PDF. Load `../ccf-paper-writer/references/venue-guides/index.md` only when venue-family classification is unclear.
8. Verify that completed cards have no `[ANALYZE]` or `[MANUAL]` placeholders, source references are accurate, and output/cache paths are orderly. Return the canonical card paths and the useful writing patterns; report actual registration/default changes only when performed. Do not echo the full PDF extraction or add generic next-action menus.
## Writer Handoff
Pass the selected card path, source identity, and relevant writing moves. The writer decides whether a style reference is needed for its task; a paragraph edit does not automatically load default or venue card bundles. For full manuscripts or explicit style adaptation, select from `../ccf-paper-writer/references/exemplars/index.md` and load only matching sections/cards. Preserve existing user defaults without treating them as mandatory reading for every writing request.
© mikubaka88 · MIT · mikubaka88/CCFA-Skills