Skip to main content
ClaudeWave
Skill570 estrellas del repoactualizado 2mo ago

light-citation

Verify scholarly references and claim-citation support for Light stage 10. Use when auditing a manuscript, claim map, bibliography, DOI/arXiv/PMID/ISBN/URL, BibTeX/CSL, citekeys, chimeric or fabricated citations, retraction/correction alerts, or preparing a canonical citation registry for typesetting. Builds provenance-preserving inventories, confirms metadata with independent authoritative sources, distinguishes CONFIRMED/CONFIRMED-MISSING/UNAVAILABLE/UNRESOLVED, records Crossref update direction, and emits the citation gate plus delivery artifacts.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/Light0305/Light-skills /tmp/light-citation && cp -r /tmp/light-citation/skills/light-citation ~/.claude/skills/light-citation
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# Citation — stage 10

Make every author-used reference traceable, real, correctly identified, and
honestly connected to the claim it is supposed to support. Treat formatting,
metadata existence, publication-integrity facts, and semantic support as four
different questions.

Read [`citation-resource-map.md`](citation-resource-map.md) before a full
manuscript audit. Read
[`references/registry_contract.md`](references/registry_contract.md) before
producing or consuming the canonical registry. Read
[`references/locator_audit.md`](references/locator_audit.md) before judging
claim support.

## Stage contract

- Consume paper-writing's `light.paper_claims.v1`, exact claim/source locators,
  current claim text hashes, reviewer-bound citation-support hashes,
  manuscript, figures/tables, supplement, and reference candidates.
- Reuse literature-search provenance as input evidence; independently verify
  the references the author actually keeps.
- Emit `light.citation_registry.v1`, BibTeX, CSL JSON, source-level evidence,
  failure records, claim-edge review, citekey audit, and
  `light.findings.v1(producer=citation)`.
- Keep stage 10's only critical gate `citation_verify`: confirmed missing works
  and chimeric citations. Metadata conflicts, unavailable sources, claim
  relevance, formatting, and publication-update alerts are warn/skip.
- Fix citation failures inside stage 10. `ROUTES` has no key 10; never invent a
  back-edge.
- Hand `references.bib`, `citekey-audit.json`, registry and `delivery.json` to
  typesetting. Typesetting compiles and checks keys; it does not re-decide
  authenticity. `delivery.json` must declare `status` and per-deliverable
  `sha256:` hashes so typesetting can reject stale or edited handoffs.

## Non-negotiable rules

1. Never invent a reference, DOI, author, year, venue, citekey, locator or
   support verdict.
2. Never call a network failure, rate limit, 5xx, authentication failure, or
   index miss “this work does not exist.”
3. Assign `CONFIRMED-MISSING` only when DOI Registration Agency explicitly
   reports non-existence and Crossref plus DataCite both return 404/410.
4. Assign `CONFIRMED` only when registration metadata and at least one
   independent field source confirm the work. Otherwise retain
   `UNAVAILABLE` or `UNRESOLVED`.
5. Preserve every source's title/authors/year/venue/identifier value. Select
   canonical fields from the registration agency; never use fuzzy matching to
   overwrite the original citation.
6. Treat a real DOI paired with conflicting title/authors/year as a possible
   chimeric citation. Multi-core-field conflict is critical; one ambiguous
   field mismatch is a warning for manual review.
7. Read publication updates in the correct direction: the affected original
   carries Crossref `updated-by`; the notice carries inverse `update-to`.
8. Record retraction/correction/expression-of-concern facts and alerts, then
   hand integrity judgment and wording to research-ethics. Do not rebuild its
   ethics gate.
9. Never equate metadata confirmation or “A cites B” with “B supports claim
   C.” `SUPPORTS` requires a locator-backed semantic review.
10. Keep the core path local/free or public/no-key. OpenAlex and keyed
    Semantic Scholar are optional coverage enhancements; commercial managers,
    institutional databases, and browser plugins are never required.

## Execute the author workflow

### 1. Inventory every reference occurrence

Use the claim map, manuscript, figures/tables and supplement together:

```bash
python scripts/citation_registry.py \
  --claim-map claim_plan.json \
  --draft paper.tex \
  --figure figure_notes.md \
  --supplement supplement.md \
  --refs-spec citation_input.json \
  --out-dir citation-delivery
```

Preserve `claim_id`, exact claim, claim locator, artifact path, occurrence
locator, citekey and raw identifier. Use
[`templates/citation_input.json`](templates/citation_input.json) when the
project has no reference spec.

### 2. Normalize without erasing versions

Normalize DOI, arXiv, PMID, ISBN and URL. Deduplicate exact works. Keep arXiv,
accepted manuscript, versioned dataset and published DOI as explicit versions
under one work only when the inputs establish the relationship. If not
established, keep them separate and mark the relationship unresolved.

### 3. Verify with independent sources

```bash
python scripts/verify_refs.py \
  --spec citation_input.json \
  --self-author Smith \
  --out verify.json
```

Use Crossref or DataCite as the registration source. Use PubMed, Semantic
Scholar, or configured OpenAlex as the independent field source. Keep each
endpoint, HTTP status, outcome, timestamp and returned fields in
`source_evidence`,并保存实际参与判定的 normalized-field SHA-256。Crossref polite-pool
email、OpenAlex/Semantic Scholar key 只用于请求,绝不写入 endpoint、registry 或日志。

Interpret status exactly:

| Status | Meaning | Action |
|---|---|---|
| `CONFIRMED` | registration source + independent field source | eligible for canonical BibTeX/CSL |
| `CONFIRMED-MISSING` | DOI RA explicit non-existence + Crossref/DataCite 404 | critical; replace or delete |
| `UNAVAILABLE` | transport/rate/auth/5xx prevents lookup | retry or use another free source |
| `UNRESOLVED` | partial evidence or second source incomplete | investigate; do not call verified |

### 4. Resolve field conflicts and chimeras

Compare the author's cited title, authors and year against registration
metadata. Inspect `field_conflicts` source by source. Keep the user's raw
citation unchanged until a human resolves the conflict.

Treat these as chimeric critical:

- real identifier plus conflicts in at least two of title/authors/year;
- title matches but the cited author list adds an author absent from the
  registered work.

Treat a single title translation, subtitle, year-online/year-print difference,
author omission or ordering issue as metadata warning unless corroborating
evidence establishes a chimera.

### 5. Record publication updates

Inspect `publicatio
light-backend-codingSkill

后端代码编写、逻辑强、安全性高、可读性好、版本控制、代码审查。当任务需要写实验代码、模型代码、数据处理代码、可视化代码、后端接口或系统逻辑时使用。要求逻辑清晰、安全、可读、可维护、便于复现/扩展/部署。支持 Git 版本管理、代码审查、注释规范、README、依赖管理、环境配置、运行说明与项目结构整理。

light-competitionSkill

竞赛与项目申报材料辅助。当用户做统计建模、数学建模、互联网+、挑战杯、大创、创新创业、科研训练等项目时使用。辅助写申报书、项目计划书、商业计划书、路演 PPT、答辩稿、项目摘要、技术路线、创新点、可行性分析、市场分析、研究基础、预期成果、经费预算、团队分工。用于非论文投稿场景,可与论文/软著/专利/PPT 联动。

light-consistencySkill

>-

light-data-engineeringSkill

>-

light-figure-drawingSkill

从顶会大牛角度进行专业绘图与组图。当用户需要把规划好的图实际画出来时使用。按情况用 Python(matplotlib/seaborn/plotly/altair)、R(ggplot2)、MATLAB、Visio、Origin、LaTeX/TikZ、Illustrator、PowerPoint 等。审美统一、专业清晰、配色合理、字体规范、线条清楚、高分辨率,适合直接投稿。不仅画图,还从论文表达角度判断怎么排、怎么组、怎么标注、怎么突出重点。

light-figure-planningSkill

根据论文内容规划应该做哪些图、哪些表、插在哪里、各起什么作用。当用户需要论文图表规划时使用。图表不限于统计图,也包括数据集真实效果图、模型输出示例、案例展示、可解释性可视化等。规划框架图、技术路线图、数据集示意图、模型结构图、算法流程图、结果对比/消融/敏感性图、真实效果图、统计表/对比表等,以审稿人标准判断哪些必做、哪些冗余。

light-file-readingSkill

>-

light-frontend-designSkill

>-