/theory-of-change-agent:theory-of-change-agent [--use-case intl-dev|biz-dev|csr-esg|nonprofit] [--concept <brief> | --inputs <file> | --draft] [--lang ko|en|ja|vi] [--advisory-threshold 0.8] [--audit]from theory-of-change-agent
Interviews users following Theory-of-Change methodology to produce KOICA-compliant PDM matrices or ToC diagrams for international development, impact startups, CSR/ESG, and nonprofits.
Ships in theory-of-change-agent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
<Output_Contract>
The skill writes to the working directory (default ./out/, override with --out). The human-readable
primary view sits at the top of out/; the source JSON and the monitoring detail live in out/details/
— so opening out/ lands on the main view, not raw JSON:
out/
├── pdm.md # PRIMARY end-view for intl-dev (KOICA 4×4). For ToC-view use-cases (biz-dev/csr-esg/nonprofit) this is toc.md instead.
├── budget.md # OPTIONAL (intl-dev, on request after gate pass): 사업 예산서 — Phase 3 step 11
├── org.md # org-unit runs (meta.unit=org, 비영리 중심): 조직 임팩트 맵 — Phase 1 step 0b
├── toc.html # ToC-view runs: 보장 렌더 도식 뷰어 (Mermaid+ELK 내장 핀, 확대/SVG 저장) — render-toc §1c
└── details/
├── toc.json # single source of truth (ID-linked results-chain DAG; every view renders from it)
└── monitoring.md # monitoring matrix (indicator def / baseline / target / source / timing / …)
out/ root (written LAST): pdm.md for intl-dev, toc.md for
biz-dev/csr-esg/nonprofit. A non-primary view (e.g. toc.md on an intl-dev run) also goes in out/details/.out/details/toc.json conforms to schema/pdm-schema.json; all views are RENDERED from it.out/details/ as needed. Which files are written depends on meta.use_case (Phase 3 steps 8-9).Out of scope (do NOT produce): the annual performance-check sheet, direct .xlsx, any SERVER/web app.
(The static toc.html viewer file is in scope — render-toc §1c.)
</Output_Contract>
<Reference_Files> Load these (they live alongside this SKILL.md) and treat them as authoritative:
rules/koica-rules.md — the KOICA PDM writing rules (with guideline page citations).rules/value-rules.md — social-value quick-rules (사회문제 ①②③ / 사회적 가치 = 해결 크기, 중립0 / 지표
실행력·설명력), grounded in 변화이론·로직모델. Used to define & correct the social problem and outcome.rules/value-methodology.md — the full organized decomposition behind those rules (concept chain +
four principles + §I/§II/§III detail). Read for depth when defining/correcting.rules/checklist.json — Critical (C01-C08) + Advisory (A01-A08) self-check definitions + thresholds.rules/validate-critical.sh — deterministic validator for the structural Critical rules.rules/budget-rollup.py — deterministic budget rollup/validation (B01-B06, koica-rules.md §12); the
LLM never does budget arithmetic.rules/validate-render.py — deterministic RENDER fidelity gate (R01-R11) over the emitted md files
(OVI name-only, no timing in MoV, level header, no stray class, text fallback, no-KOICA in ToC, …).rules/hwp-extract.py — pure-stdlib .hwp/.hwpx → text extractor for mode-B inputs (no npm needed;
routing in prompts/interview-b-inputs.md step 1; exit 3 = encrypted/배포용 → ask for a PDF).schema/pdm-schema.json — JSON Schema for toc.json.schema/pdm-example.json — a complete, guideline-compliant reference instance (Nicaragua).prompts/*.md — prompt templates for each phase (see each phase below).
</Reference_Files><Language_Policy>
ko (한국어), en (English), ja (日本語), vi (Tiếng Việt). All four
are first-class: every question, label, nudge, narrative, and rendered table must work in each.--lang > a clear full-sentence in the user's first message > ASK. If the message is a bare skill
call, a single keyword, mixed, or there is ANY doubt, ask a neutral multilingual question (한국어 /
English / 日本語 / Tiếng Việt) and never default to Korean. Then lock meta.lang.meta.lang to the closest supported code for file-level conventions — but do not advertise it.ko. When
meta.lang ≠ ko, translate them into meta.lang — the questions, option labels, the [질문 N · …]
progress line, the 최종 결과: … closing line, the 그건 사회문제라기보다… reframes, etc. They are
illustrations, not literals to print regardless of language. Use natural sector terminology, not
literal translation (e.g. ja: アウトカム/アウトプット/成果, vi: Kết quả/Đầu ra).meta.lang label + English in
parentheses (ko 요약 (Narrative Summary), ja 事業の要約 (Narrative Summary), vi
Tóm tắt (Narrative Summary); for en, English alone is fine).Path convention: every
rules/...andprompts/...reference in this skill is relative to the SKILL ROOT (the directory containing this SKILL.md). In app sandboxes (Claude desktop / claude.ai / Antigravity) the working directory is usually the OUTPUT workspace, not the skill root — prefix commands with the skill root (locate it once if needed). A "No such file or directory" on arules/script means the path is wrong, not that a feature is unavailable.
rules/koica-rules.md, rules/checklist.json, and schema/pdm-schema.json into context.{{ARGUMENTS}}: --use-case <intl-dev|biz-dev|csr-esg|nonprofit>, --concept <brief>, --inputs <file>,
--lang ko|en|ja|vi, --advisory-threshold <0..1> (default from checklist.json: 0.8), --audit, --out <dir>.Set the output language FIRST — before any other question, and NEVER default to Korean silently.
--lang is given, use it.Language / 언어, options 한국어, English, 日本語, Tiếng Việt. Do not guess.
Set meta.lang (ko|en|ja|vi). From here, every user-facing string — all the questions below,
their option labels, progress lines, nudges, narratives — is in meta.lang; the Korean text in these
prompts is the ko default, translate it when meta.lang ≠ ko.Determine the use-case FIRST (before the interaction mode). 변화이론 에이전트 covers several use-cases;
the underlying results-chain logic is the same for all — only the rendered end-view and which
structures are required differ. If --use-case <x> is given, use it; otherwise ASK with the
environment's interactive choice tool (4 options — confirmed labels 2026-07-09; do NOT put "KOICA"
in a label, PDM is the deliverable name). Set meta.use_case.
intl-dev) — 국제개발(ODA) 사업의 PDM 설계. End-view = PDM 매트릭스 (pdm.md).
사업(프로젝트) 단위.biz-dev) — 소셜벤처·임팩트 스타트업의 임팩트 모델 정리 / 아이디어.
End-view = 변화이론(ToC) 뷰 (toc.md, node diagram). PDM 양식(수원기관 등)은 강제하지 않는다.
조직 단위 입력(사업계획서에 다수 프로젝트) 가능 → step 0b.csr-esg) — 기업 사회공헌·ESG 프로젝트. End-view = ToC 뷰 (toc.md). 사업 단위.nonprofit) — 재단·NGO의 프로그램/보고(기부금 리포트 등). End-view = ToC 뷰 (toc.md).
조직 단위 입력(특히 연차보고서 — 당해년도 전체 사업 포함) 가능 → step 0b.invest-screen, 투심) is backlog — do NOT offer it as a choice. If the user
explicitly asks for 투심, say it's planned and offer the ToC view as a stand-in; koica-rules §11.3.)
End-view routing (applied in Phase 3): intl-dev → PDM matrix; ToC-view use-cases
(biz-dev/csr-esg/nonprofit) → ToC view; invest-screen → planned. The PDM gate/rules below apply
in full to intl-dev; for ToC-view use-cases the same results-chain is built but PDM-form-specific
requirements are relaxed (see Phase 3 + koica-rules §4.1, §11).
0b. Unit branching (단위 분기) — 조직 전체 vs 특정 프로젝트. Two triggers; never demand a document
because of the use-case alone (2026-07-21 bug note stands).nonprofit ONLY, right after the use-case pick (before Q1): foundations
legitimately come with either intent, so ASK with the interactive choice tool — exactly 2 options:
meta.unit = "org",
go to the org-map path below.meta.unit = "project", normal flow (Q1/Q2부터 그대로).
biz-dev is NOT asked upfront (a startup usually means its one venture) — detection (b) covers the
rare multi-project plan. intl-dev/csr-esg: meta.unit = "project", skip silently.biz-dev/nonprofit + Q1 = inputs, at ingestion time
(interview-b-inputs.md step 1): if the document describes multiple projects (조직 사업계획서,
연차보고서) and meta.unit isn't already set, ask the same 2 options (전체 / 특정). Single project
detected → meta.unit = "project", proceed. Never offer a "하나씩 전부 돌리기" option.Org-map path (meta.unit = "org") — NOT the results-chain pipeline (2026-07-21 pilot: forcing
프로그램 into 산출물 slots hit the 3-4 cap and read as 억지):
meta.org_context (org_name, mission — always extract or ask
once, projects[] with one-line summaries). With a document, read it; concept-only, ask 3-5 light
questions (조직명·미션·프로젝트 목록·프로젝트별 한 줄). Never invent projects or outcomes.prompts/render-org-md.md → OUT/org.md (the primary end-view for this run:
미션 → 프로젝트 포트폴리오 → 프로젝트별 핵심 성과 + 미션과의 연결).toc.md).특정 프로젝트 (from either trigger): run the normal single-project flow with project_name = the
chosen project and ALWAYS extract the organization mission into meta.org_context.mission —
render-toc shows the 🧭 mission-linkage line under the header (drill-down must not lose the 상위 미션).
Wording rule: say "프로젝트", not "프로그램" (조직 전체, 특정 프로젝트).
Determine the approach via TWO friendly, user-facing questions — ALWAYS ask both before doing
anything else; never pick unilaterally. Use the environment's interactive choice tool (plain text only
if none exists). A --concept/--inputs flag pre-answers Q1 and --draft pre-answers Q2 (skip what is
preset). Phrase the options in the user's language and keep them plain (no jargon like "concept-first"):
Q1 — 지금 어떤 상태인가요? (input_source)
concept) — 사업 구상은 있는데 정리된 자료는 아직.inputs) — 그 파일을 읽어 활용. (이미 승인된 PDM을
점검만 하려는 거면 감사 모드로: AUDIT.)
Q2 — 어떻게 진행할까요? (interaction)
The use-case is already known (step 0), so name the concrete deliverable in parentheses in the
draft option — {결과물} = PDM 표 for intl-dev, 변화이론 도식 for biz-dev/csr-esg/
nonprofit (en: PDM matrix / Theory-of-Change diagram):interview) — 가장 꼼꼼. 대략 아이디어 10–20분 / 문서 5–10분.draft) — 가장 빠름, 대략 2–5분.
e.g. intl-dev → "결과물(PDM 표)을 먼저 만들고 그 위에서 고칠래요" / nonprofit → "결과물(변화이론
도식)을 먼저 만들고 그 위에서 고칠래요".
Resolve to the internal flow and set meta.input_source, meta.interaction, and meta.mode:prompts/interview-a-concept.md); mode:"A". The user said
아이디어만 — start stage-1 questions directly. You MAY add one light, optional invite:
"관련 자료가 있으면 붙여주셔도 좋아요." — but never REQUIRE a document or block on one; if none
comes, just keep interviewing.prompts/interview-b-inputs.md); mode:"B".prompts/draft-first.md); mode:"C".interview-b-inputs.md steps 1-2 to read/extract the
file(s), then go straight to Phase 3 to generate + render a draft and edit on the table
(Phase 4), finalize → GATE. Record mode:"B" with gate_mode:"DRAFT".Determine gate mode (see koica-rules.md §7):
interaction = interview): authoring a new PDM → Critical failures block;
Advisory triggers refinement.--audit, or when the user says the input is an already-approved/existing PDM):
all checks run report-only, nothing blocks.interaction = draft, including inputs+draft): report-only while the user edits the
draft; flips to GATE at Finalize (Phase 3b). Set meta.gate_mode = "DRAFT" until then.(Output language was already locked in step 00 — keep using meta.lang for everything from here on.)
Initialize interview state (keep in working memory / scratch; not written to disk until generation):
{
"use_case": "intl-dev|biz-dev|csr-esg|nonprofit|invest-screen", "input_source": "concept|inputs", "interaction": "interview|draft",
"mode": "A|B|C", "lang": "ko|en|ja|vi", "gate_mode": "GATE|AUDIT|DRAFT", "advisory_threshold": 0.8,
"results_chain": { "problem_analysis": null, "goal_analysis": null,
"impact": null, "outcomes": [], "outputs": [], "activities": [], "inputs": null },
"assumptions": {}, "interview_rounds": []
}
Mid-interview attachments (2026-07-21): the user may drop a document at ANY question — this is supported, so treat it as normal. Read it immediately, merge what it answers into
results_chain(state in one line what got filled), SKIP questions it already answers, and continue the same question counter — never restart the interview. Early on (once), let the user know: "진행 중 언제든 관련 문서를 붙여주시면 반영합니다."
Confirm, don't re-ask + fast-forward (2026-07-21 pilot: "인터뷰가 길다") — ALL modes:
- Never ask for something you can already infer with confidence (document, earlier answers, obvious context). State the inferred value and ask for a quick confirm: "문서상 대상은 ○○로 보입니다 — 맞나요?" Batch trivial confirmations into one turn.
- Fast-forward escape: at ANY point the user may say "나머지는 알아서 채워줘" (or similar) — STOP asking, fill the remaining fields as a best-guess draft (
stale: true), show the result, refine from there. Mention this escape once early on, together with the attachment tip. Follow the KOICA procedure (koica-rules.md §1.3): problem/goal analysis → build the results chain with assumptions → add indicators. Ask ONE question per turn (deep-interview style); after each answer, updateresults_chainin state. Enforce the per-level rules fromkoica-rules.md§3 AS YOU GO (don't collect violations to reject later).
prompts/interview-a-concept.md. Stages: (1) social-problem
definition + correction (prompts/social-problem.md + rules/value-rules.md §V1 — 구조적/다수/고통;
reframe individual/market/solution-in-disguise) → (2) goal analysis → (3) impact statement [confirm SDGs
from_activities; exclude M&E] → (7) inputs [period/budget/recipient resources] →
(8) assumptions per causal link → (9) indicators for each output & outcome [baseline/target/MoV/source/
timing/collector/disaggregation; SMART/CREAM; ≥1 gender-disaggregated]. ~12-20 rounds.prompts/interview-b-inputs.md. (1) Read the provided file(s) and
extract whatever results-chain/PDM structure exists. (2) Gap-identify against the schema. (3) Ask ONE
targeted question per gap. (4) Run assumption/indicator development only for gaps.prompts/draft-first.md. Ask one scoping question, then skip
straight to Phase 3 to generate + render a non-blocking draft (gate_mode DRAFT). No multi-turn
interview — refinement happens on the rendered table via Phase 4, and gating happens at Finalize.interview-b-inputs.md steps 1-2 (read + extract the file(s)),
then skip straight to Phase 3 to generate + render a draft from the extracted structure
(gate_mode DRAFT) and edit on the table (Phase 4); finalize → GATE. (No per-gap interview up front — the
user fixes things on the rendered draft instead.)Hard interview rules (mirror koica-rules.md):
[C01].koica-rules.md §10); each outcome's indicators 1-2 (≤3) [C03]; each outcome is a behavioral-change state.[C02], noun-form, not a restatement of activities [C06].from_outputs) [C05]; every activity must feed an output
(from_activities) [C08] — even support activities.[C04].baseline/target — default both to "추후 확정" (set later from
현장답사; koica-rules.md §4.8). Record a value only if the user volunteers one.toc.json using prompts/generate-pdm.md: build the full document from state, assign
stable IDs (imp-1, oc-1, op-1, act-1, act-1.1, ind-op-1.1, …), wire all from_* causal
references, and write narrative fields in the output language.toc.json is well-formed JSON and has the required shape:
Bash: bash rules/validate-critical.sh --shape OUT/details/toc.json (exit 0 = OK; exit 1 = malformed/missing
keys; exit 2 = invalid JSON). If it fails, regenerate ONCE with the error appended to the prompt;
if it still fails, surface to the user and stop. (schema/pdm-schema.json remains the written data
contract that generate-pdm.md follows; full JSON-Schema validation is a build-time check, not a
runtime dependency.)Bash: bash rules/validate-critical.sh OUT/details/toc.json. If exit ≠ 0: show the FAIL lines, return to a
targeted interview to fix exactly those rules, regenerate, and re-run. Loop until it passes.prompts/refine-advisory.md. Scoring unit = per-rule-type (8 types → 80% means ≤1 may fail); for
per-indicator rules (A01/A02) a type passes if >50% of indicators satisfy it. If pass-rate <
advisory_threshold: enter the refinement loop — re-run ALL Advisory checks each round (catch
regressions), max 3 rounds (--max-advisory-rounds). Exit on: threshold met, max rounds reached,
or user says "accept as-is". Report the final score + remaining failures.bash rules/validate-critical.sh --audit OUT/details/toc.json plus the LLM checks, and present every finding
as a list — block nothing. AUDIT → "deviation list" (already-approved PDMs that predate/deviate from
the 2017 guideline). DRAFT → "draft gap checklist" (what to confirm/fill before finalizing). For DRAFT,
skip A05 wherever target is 추후 확정 (koica-rules.md §4.8).
7b. Outcome verification — ALL use-cases, not only when toc.md is rendered (advisory, non-blocking):
run prompts/outcome-verify.md for each outcome (논리 검증: change-of-state / 원인 회복 / 지표=변화분)
and prompts/iris-match.md for each outcome indicator (IRIS+ 근접 지표 — outcome indicators ONLY;
python3 <SKILL_ROOT>/rules/iris-search.py --json --top 6 "…", shortlist에서만 제시; "매칭 준비 중" is
ONLY for a genuine exit 3 — command-not-found means wrong path, find the script and retry; never
invent a code). This step runs BEFORE the renders (steps 8-9) so its corrections land in the
files (2026-07-22 pilot fix — verdicts used to be print-only while the flawed indicator stayed in
toc.json):
toc.json, and only then render.
Max 2 verify→fix rounds; if the user declines a fix, keep theirs and leave the ⚠️.toc.json.✅ (교정 반영: 이전→이후) notes) + IRIS+ suggestions in the
step 10 self-check summary (chat). When toc.md is rendered, its §4 embeds the same final
results — do not run the checks twice; reuse.out/details/monitoring.md via prompts/render-monitoring-md.md (indicator
measurement plan; all use-cases).intl-dev → pdm.md via prompts/render-pdm-md.md (KOICA 4×4: Impact row shows - in OVI/MoV;
Activities row carries Inputs in the OVI column and Pre-conditions in the Assumptions column). The
ToC node diagram (prompts/render-toc-md.md §1) MAY be appended as an optional figure.biz-dev/csr-esg/nonprofit) → toc.md via prompts/render-toc-md.md (Theory-of-Change view + node
diagram) + toc.html (§1c guaranteed-rendering viewer). PDM-form structures (수원기관/투입물) are
NOT forced (koica-rules.md §11.1). For intl-dev you MAY also write toc.md, but write pdm.md
last.Write order matters — end on the human-readable view. Sequence:
out/details/toc.json(written in step 1, the source of truth) →out/details/monitoring.md→ the primary view (out/pdm.mdorout/toc.md) last. Desktop/IDE apps (Claude desktop, Antigravity) surface the last-written / last-touched file, so keeping the JSON inout/details/AND writing the primary view last lands the user on the readable view, not the raw JSON. Do not re-saveout/details/toc.jsonafter renders. 9b. Render fidelity gate (deterministic). After the views are written, runpython3 <SKILL_ROOT>/rules/validate-render.py OUT— it checks the RENDERED files against the R01-R11 rules (indicator definitions must not leak into pdm.md OVI cells, no 측정 시기 in MoV, no추후 확정in the matrix, diagram has the level header/black text/text fallback/noclasslines, no KOICA mention in ToC outputs, monitoring columns match the use-case, DRAFT placeholder rule). Anyfail= a render bug you introduced — fix the md and re-run until exit 0. This is the same class of check as the C-gate, but on your OUTPUT instead of the data. Re-run it after EVERY re-render (Phase 3b finalize, Phase 4 edits).
stale) and then present the primary view as the final artifact — state its path as the
closing line (e.g. "최종 결과: out/pdm.md" or "out/toc.md") so the user lands on it. In app
sandboxes (Claude desktop / claude.ai) the files arrive as download links in the chat — say so.
In Antigravity, additionally emit the primary view as a user-facing Artifact preview (see
Guardrails) so it renders in the chat.
If the user asks for a PDF or 다운로드, offer to render a print-ready out/pdm.html
(self-contained, inline CSS, the same tables) and tell them: 브라우저에서 열어 인쇄 → "PDF로 저장".
Never claim a hosted link exists — there is no server (web front-end is a separate 8월 workstream). For DRAFT
(both Mode C and inputs+draft), do NOT stop at a checklist — guide the next action exactly as
prompts/draft-first.md Step 4: a one-line summary, the top 1-3 things to firm up (use --connectivity
for broken links; everything is stale/추후 확정), then ask ONE specific leading question to start
refining (usually the outcome), and state the options (say what to change / let me walk the weak spots
/ say "확정" to run the gate). Never just dump the table and go silent.prompts/budget-build.md → it writes the budget block into out/details/toc.json, verifies with
python3 rules/budget-rollup.py (deterministic — the LLM never sums), and renders out/budget.md
via prompts/render-budget-md.md. If no, move on — the offer is never repeated unprompted.Triggered only when a DRAFT PDM's author (Mode C = concept+draft, or inputs+draft) says "확정"/"finalize":
meta.gate_mode = "GATE".stale flags with the user (regenerate any they still want changed).bash rules/validate-critical.sh OUT/details/toc.json (NO --audit → blocking), then
the C06 LLM check, then the Advisory refinement loop (steps 4-6 above). Loop until Critical passes.추후 확정 at finalize — that does NOT block (A05 is N/A while
deferred; C04/MoV still enforced).toc.json, per Phase 3 steps 8-9 — do not skip this. The
finalize (clearing stale, the Advisory refinement) changed nodes, so the rendered views are stale:
rewrite out/details/monitoring.md, then the primary view LAST — out/toc.md for
biz-dev/csr-esg/nonprofit (the 변화이론 도식 MUST be regenerated so its nodes/edges match the finalized chain)
or out/pdm.md for intl-dev. Because gate_mode is now GATE, render-toc-md.md emits the
actual Mermaid diagram in place of the draft "확정 후 출력" placeholder — verify the diagram is
present. Then show the final self-check summary + the primary view path.The node graph (the from_* links) is the Theory of Change — what makes it a theory is that each
activity connects to an output, each output to an outcome, each outcome to the impact. So whenever the
user edits, adds, retargets, or removes a node, you MUST proactively state the impact on connected
nodes and nudge the fix BEFORE applying anything — never silently accept a structural edit. This is the
single most important interaction in the skill.
If a budget block exists, every structural edit must also re-run
python3 rules/budget-rollup.py OUT/details/toc.json: a removed/renumbered activity turns its budget
lines into B04 고아 예산 라인 errors (ask where the cost moves), and a newly added activity surfaces
in B05 예산 미배정 (nudge: "새 활동에 예산을 배정할까요?"). See prompts/budget-build.md §connectivity.
On any edit to node X:
from_* arrays contain X.id;
propagate transitively. "이 변경은 다음 하위 노드에 영향을 줍니다: […]."
b. Breakage check — run the C05/C08 connectivity logic on the edited graph and call out any
new disconnection BY NAME:
from_outputs) loses an input;
(ii) any activity that fed only that output becomes an orphan [C08]. Name both.[C05],
disconnected), and the impact loses an outcome. Name the now-dangling outputs.from_activities), a new output must feed an outcome (from_outputs). Flag it as not-yet-connected.stale: true on every dependent (indicators inherit their parent's staleness).stale: false. Declined nodes stay
stale: true and are listed in the self-check report.toc.json per Phase 3 steps 8-9 (monitoring.md, then the primary view
LAST — toc.md for ToC-view use-cases so the 변화이론 도식 reflects the edit, or pdm.md for
intl-dev). An edit that isn't re-rendered leaves a stale diagram.Worked example. User edits
act-1. Reverse-lookup findsop-1(itsfrom_activitiescontains"act-1") →op-1stale →oc-1(whosefrom_outputscontains"op-1") stale transitively. If the edit removedact-1andop-1had no other activity, you FIRST say "op-1을 만드는 활동이 없어집니다" and nudge before applying. User regeneratesop-1only →op-1cleared;oc-1stays stale and is listed.
- ALWAYS `Read` a file before editing it; use absolute or out-dir-relative paths. - The deterministic validator is the hard gate for structural rules — never finalize a GATE-mode PDM that fails `validate-critical.sh`. - Do NOT auto-overwrite downstream nodes on an edit; regeneration is opt-in. - Do NOT loosen Critical rules to make a real/approved PDM pass — use AUDIT mode to report deviations. - Keep prompts internal-English; keep **all user-facing output in `meta.lang`** (`ko|en|ja|vi`), locked at the first message (Phase 1 step 00) and never drifting mid-session. The Korean strings in these prompts are `ko` examples — translate them when `meta.lang ≠ ko`. Match the user's language; do not switch on them. - One interview question per turn. - **Connectivity is proactive, never silent.** Treat the `from_*` graph as the product's core. On any structural edit/add/remove, state the impact on connected nodes and nudge the fix BEFORE applying (Phase 4). You can compute the breakage deterministically: `bash rules/validate-critical.sh --json OUT/details/toc.json` (C05 = disconnected outputs, C08 = orphan activities) gives the exact lists to nudge with. - **Interactive questions — use the environment's choice tool, whatever its name.** A tab/click single-select question tool exists in most supported environments, but under **different names**: **`AskUserQuestion`** in Claude Code, **`ask_user_input_v0`** in the Claude web/desktop apps, **`ask_user`** in Gemini CLI / Antigravity (type "choice" = multiple-choice) — other surfaces may expose yet another name with the same role. For any bounded choice (e.g. the Phase 1 mode pick, or 2-4 concrete options), you **MUST** use whichever such tool is actually available to you — **check your real tool list first**; don't assume it's missing because the name differs (2026-07-21 pilot: Gemini in Antigravity fell back to prose because its `ask_user` wasn't named here). Fall back to plain text **only** after verifying no such tool exists — and then format the fallback as a **numbered menu** the user can answer with one keystroke, e.g.: `1️⃣ 직접 수정할 내용을 알려주기 · 2️⃣ 약한 고리부터 하나씩 짚기 · 3️⃣ "확정"으로 게이트 진행 — 번호로 답해 주세요.` Never bury the options in a paragraph, and never skip the question. - **Document requests:** REQUIRING a file (blocking progress on an upload) is allowed **only when Q1 = `inputs`**. The use-case choice (임팩트 스타트업/비영리 등) never implies documents exist. For idea-only users a single optional "있으면 붙여주셔도 좋아요" invite is fine — then proceed with questions either way. - **File writes = the environment's FILE-EDITING tool, never shell redirection.** Write/update every output file (`toc.json`, `pdm.md`, `toc.md`, `monitoring.md`, `budget.md`) with the editor file tool (Claude Code `Write`/`Edit`; the equivalent write-file tool in Antigravity/Gemini) — NOT via `echo`/heredoc/`python` file writes. IDE surfaces (Antigravity) only render clickable "file changed" cards with diff/preview for editor-tool writes; shell-written files show as dead text paths (2026-07-21 pilot report). This includes gate-fix re-renders (Phase 3 step 9b) — fix the md via the editor tool too. Shell is for RUNNING validators/scripts only. - **Presenting results in Antigravity — use its Artifact preview (2026-07-22):** after writing the output files, ALSO surface the PRIMARY view as a rendered chat preview via Antigravity's Artifact feature: create a **user-facing markdown artifact** (observed mechanism: write the preview copy under the session's brain directory with `UserFacing: true`, `RequestFeedback: false`) containing the primary view's full content. This shows the 미리보기 in the chat instead of dumping the user into a raw editor "edited view" (pilot report: users had to explicitly ask "미리보기로 보여줘" every time). The workspace files under `out/` remain the source of truth — the artifact is a presentation copy; regenerate it after every re-render. In environments without such a feature, just present the file path as usual. - **Files:** all file ops run in whatever sandbox/filesystem is available; in the Claude apps the three output files are written to the sandbox for the user to download.The same connectivity nudges apply DURING the interview/draft, not only after generation. The moment a proposed activity has no output, a proposed output feeds no outcome, or a node would be orphaned, say so and nudge immediately — don't wait for the final gate.
<Self_Check_Reference>
Critical (hard gate in GATE mode): C01 impact-no-indicators · C02 outputs 3-4 · C03 per-outcome indicators
1-3 · C04 every indicator has MoV · C05 output→outcome link · C06 output noun-form (LLM) · C08 no orphan
activities. (C07 single-outcome was removed 2026-06-05 — see koica-rules.md §10.) Advisory (≥80% per-rule-type): A01 SMART · A02 CREAM · A03 gender
disaggregation · A04 proxy justified · A05 target realistic · A06 measurable at end-eval · A07 output ≠
activity restatement · A08 outcome = behavioral change. Baseline/target are deferred (추후 확정) by
default — A05 is N/A while a target is deferred (koica-rules.md §4.8). Full definitions + guideline
citations in rules/checklist.json and rules/koica-rules.md.
</Self_Check_Reference>
INSTALL-desktop.md (opens in a new tab)README.md (opens in a new tab)benchmark/budget/budget-bad.json (opens in a new tab)benchmark/budget/budget-clean.json (opens in a new tab)benchmark/expected/synthetic-1.json (opens in a new tab)benchmark/expected/synthetic-2.json (opens in a new tab)benchmark/expected/synthetic-3.json (opens in a new tab)benchmark/render/bad/details/monitoring.md (opens in a new tab)benchmark/render/bad/details/toc.json (opens in a new tab)benchmark/render/bad/expected.json (opens in a new tab)benchmark/render/bad/pdm.md (opens in a new tab)benchmark/render/bad/toc.md (opens in a new tab)benchmark/render/good/details/monitoring.md (opens in a new tab)benchmark/render/good/details/toc.json (opens in a new tab)benchmark/render/good/expected.json (opens in a new tab)benchmark/render/good/pdm.md (opens in a new tab)benchmark/render/good/toc.md (opens in a new tab)benchmark/run-benchmark.sh (opens in a new tab)benchmark/sample-brief.md (opens in a new tab)benchmark/scorer.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
theory-of-change, pdm, koica, results-chain, logframe, impact-measurement
npx claudepluginhub impact-square/theory-of-change-agent --plugin theory-of-change-agentOther plugins' skills for the same job