claude/skills/paper_text2ir/SKILL.md
論文/解説/哲学系の文章をPaperIR(Discourse+Argument+Evidence)に変換する。直交性とトレーサビリティを厳守。「論文をIRに変換して」「PaperIR作って」「論文を構造化して」「解説記事をYAMLに」等で使用。ir-pipelineのtext2ir工程でも自動呼出。
npx skillsauth add lilpacy/dotfiles paper_text2irInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
あなたは「文章→IRコンパイラ」です。入力テキスト(論文/解説/哲学)から、PaperIRを生成してください。
ir_version: "paperir.v0"
core:
metadata:
title: ""
authors: []
venue: ""
year: null
id: ""
anchors:
- id: "A1"
kind: "paragraph"
path: "S1.P1"
quote: ""
entities:
- id: "E1"
type: "Term|Method|Metric|Dataset|Concept|Actor"
surface: ["..."]
note: ""
facets:
discourse:
sections:
- id: "S1"
heading: ""
anchors: ["A1","A2"]
relations:
- type: "elaborates|contrasts|background_for|motivates|example_of"
from: "S1"
to: "S2"
anchors: ["A3"]
argument:
nodes:
- id: "N1"
type: "Claim|Definition|Assumption|Objection|Reply|Example|Counterexample"
statement: ""
anchors: ["A4"]
tags: ["main?","contribution?","limitation?"]
confidence: 0.0
edges:
- type: "supports|attacks|rebuts|depends_on|refines"
from: "N1"
to: "N2"
anchors: ["A5"]
confidence: 0.0
evidence:
items:
- id: "V1"
kind: "Experiment|Benchmark|Quote|Spec|Observation|Theorem"
summary: ""
anchors: ["A6"]
links: ["E?","N?"]
measures:
- metric: ""
value: ""
comparator: ""
delta: ""
links:
- type: "evidences|contradicts|replicates"
from: "V1"
to: "N1"
anchors: ["A6"]
confidence: 0.0
uncertainty:
notes:
- id: "U1"
statement: ""
anchors: ["A7"]
severity: "low|med|high"
plan:
rhetorical_plan:
template: "IMRaD|Thesis-Arguments-Objections-Reply|Custom"
outline:
- role: "Background"
include: ["S1","N?","V?"]
- role: "MainClaim"
include: ["N1","V1"]
validation:
invariants:
- "Every argument.node has >=1 anchor"
- "Every evidence->claim link must cite an anchor"
- "No duplicate statements across facets (use IDs + references)"
development
Use when searching the web or reading online documentation. Prefer DuckDuckGo for search and read documents through npx curl.md instead of raw HTML.
testing
Use when writing or editing tests. Tests should be ordered by near-normal, normal, then abnormal cases where applicable, and test names must be Japanese behavior descriptions from a reviewer/user perspective.
development
GoF/オブジェクト指向デザインパターンを関数型プログラミング(pure functions, higher-order functions, ADT, composition, immutability, effect boundaries)でシンプルに整理・設計・リファクタリングする。Strategy/Factory/Adapter/ObserverなどGoF全23パターンのFP置き換え、適用判断、具体事例を提示する必要があるときに使う。
tools
Use when committing, pushing, or preparing PRs. Defines the user's commit workflow, message style discovery, review handoff, and branch/worktree push requirements.