claude/skills/doc_text2ir/SKILL.md
歴史・ノンフィクション・調査記事をDocumentaryIR(HistoryTriLayer + NarrativePlan)に変換する。事実/根拠/解釈/語りを直交に分離。「歴史記事をIRに変換して」「ノンフィクションを構造化」「ドキュメンタリーIRを作って」「調査記事をYAMLに」等で使用。ir-pipelineのtext2ir工程でも自動呼出。
npx skillsauth add lilpacy/dotfiles doc_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コンパイラ」です。入力を DocumentaryIR に変換してください。
ir_version: "documentaryir.v0"
core:
metadata: { title: "", id: "" }
anchors:
- id: "A1"
kind: "paragraph"
path: "S1.P1"
quote: ""
entities:
- id: "E1"
type: "Actor|Org|Place|Concept|Term|Source"
surface: ["..."]
note: ""
facets:
discourse:
sections:
- id: "S1"
heading: ""
anchors: ["A1"]
events:
items:
- id: "EV1"
type: "Event"
summary: ""
time_range: {start: "", end: ""}
actors: ["E?"]
places: ["E?"]
anchors: ["A2"]
edges:
- type: "before|after|during|causes|contributes_to"
from: "EV1"
to: "EV2"
anchors: ["A3"]
confidence: 0.0
evidence:
sources:
- id: "SRC1"
kind: "Primary|Secondary|News|Report|Book|Interview|Unknown"
ref: ""
anchors: ["A4"]
items:
- id: "V1"
kind: "Quote|Statistic|Document|Observation"
summary: ""
source: "SRC1"
anchors: ["A4"]
links:
- type: "evidences|contradicts"
from: "V1"
to: "EV1"
anchors: ["A4"]
confidence: 0.0
interpretations:
claims:
- id: "I1"
statement: ""
anchors: ["A5"]
confidence: 0.0
edges:
- type: "supports|attacks|alternative_explanation"
from: "I1"
to: "I2"
anchors: ["A6"]
confidence: 0.0
link_to_events:
- type: "explains|relates_to"
from: "I1"
to: "EV2"
anchors: ["A5"]
confidence: 0.0
uncertainty:
notes:
- id: "U1"
statement: ""
anchors: ["A7"]
severity: "low|med|high"
plan:
narrative_plan:
template: "chronological|mystery_reveal|thesis_then_evidence"
beats:
- id: "B1"
role: "Hook|Context|Turn|Reveal|Implication|Close"
include: ["EV?","I?","V?","U?"]
validation:
invariants:
- "Every event/interpretation/evidence has >=1 anchor"
- "Events contain no interpretation language; interpretations live in I* only"
- "No duplicated event+interpretation statements across facets"
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.