ワンクリックで
canon-npcs
Workflow for researching and adapting folklore/historical figures into NPCs
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Workflow for researching and adapting folklore/historical figures into NPCs
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Schema and rules for editing AI instructions
Check character counts and limits for Voyage World config files. Use when checking how much space is used, before adding large content, or when approaching size limits.
Schema and rules for creating locations
Schema and rules for editing settings
Schema and rules for creating traits
Schema and rules for creating triggers
| name | canon-npcs |
| description | Workflow for researching and adapting folklore/historical figures into NPCs |
Research folklore, yokai, mythology, and historical figures using web search, then write the four lore fields — basicInfo, hiddenInfo, personality, and abilities — directly onto existing NPC skeletons in tabs/npcs.json.
This is a self-contained workflow skill. It produces only the lore-rich fields that require deep research, writing them directly to existing NPC entries. All other NPC fields (tier, level, hpMax, location, etc.) must already exist on the skeleton or be set separately.
Before starting, read tabs/world-background.json to understand the world's setting, current crisis, tone, and core mechanics. Abilities and traits that seem extraordinary in folklore may be mundane in the world's system — verify before treating them as distinctive. This context shapes how research findings are adapted — especially hiddenInfo (relationship to the crisis) and ability framing.
Before drafting any field, read completed NPC entries of the same or similar type in tabs/npcs.json to internalize the voice, sentence structure, vocabulary level, and formatting conventions already established. Match them.
This instruction applies at every drafting point — not just at session start. Before drafting abilities, read abilities of the same type. Before drafting hiddenInfo, read hiddenInfo of batch-mates. Before customizing a shared ability description, check how existing NPCs of the same type have handled it. When in doubt about whether a convention exists, check before asking the user.
Web search is mandatory. Never skip this step.
Spawn 6 research subagents in parallel using the Task tool (subagent_type: general-purpose). Agents are split across two languages and three focus areas to maximize source diversity and depth.
| Agent | Language | Focus |
|---|---|---|
| 1 | English | Lore — the figure's name, origin, and primary legends |
| 2 | English | Cultural context — role in folklore tradition, symbolic meaning, related figures, cultural significance |
| 3 | Japanese | Primary sources — original texts, earliest records, foundational accounts |
| 4 | Japanese | Variant tellings — regional differences, lesser-known tales, local folk beliefs |
| 5 | English | Ability mining — supernatural powers, capabilities, weaknesses, vulnerabilities as described in folklore |
| 6 | Japanese | Ability mining — powers and capabilities described in Japanese folklore sources, folk beliefs about what they can do |
Japanese-language agents must write search queries in Japanese (e.g., 酒呑童子 能力 伝説 not Shuten-dōji abilities legend). Findings must be returned in English using ALA-LC romanization for Japanese terms. Never include kanji or kana in the output.
Ability mining agents focus exclusively on folklore source material — not games, anime, manga, or modern media adaptations. They should extract every distinct power, capability, weakness, and vulnerability attributed to the figure, with the specific tale or source noted for each.
Each subagent must:
WebSearch and WebFetch to find and read sourcesThe combined output from all subagents must cover:
| Category | What to Look For |
|---|---|
| Origin stories | Where and when the figure first appears in the record |
| Powers/abilities | Supernatural or notable capabilities attributed to them |
| Personality/temperament | How sources characterize their disposition and behavior |
| Notable tales | Key stories, episodes, or legends associated with them |
| Cultural significance | What the figure represents, symbolizes, or teaches |
| Relationships | Connections to other figures, deities, or entities |
| Variant tellings | How the figure differs across regions, eras, or traditions |
| Lesser-known details | Obscure facts that distinguish deep research from surface-level |
Before launching subagents, create the research file stuff/research/{npc-name}.md with section headers for each agent:
# Research: [NPC Name]
## EN Lore
## EN Cultural Context
## JP Primary Sources
## JP Variant Tellings
## EN Abilities
## JP Abilities
Include all of the following in each subagent's prompt:
WebSearch and WebFetchstuff/research/{npc-name}.md) by replacing the agent's assigned section header with the header + all findings using the Edit tool. The agent must use the exact section header line (e.g., ## EN Lore) as the old_string and replace it with the header followed by the full research content as new_string. This ensures each agent's Edit targets a unique string and concurrent writes do not conflict. If the Edit fails, the agent must re-read the file to get the current content, locate its section header in the updated file, and retry the Edit. Retry up to 3 times before giving up. Include the full file path and the exact section header text in the prompt.After all subagents return, synthesize their findings by:
For Japanese figures: Follow ALA-LC romanization standard (reference the japanese-romanization skill). Use romanized forms only — never include kanji or kana in the dossier or final NPC fields.
Between research completion and dossier presentation, use AskUserQuestion to resolve any creative decisions that emerged from the research. Examples:
type) that affect characterizationDo NOT use free-text conversation for these questions — always use the AskUserQuestion tool so the user gets structured options.
Verify skeleton fields against research. Before asking creative questions, check every pre-filled skeleton field against the research findings. Skeletons are planning notes — they may contain assumptions that the research contradicts. Flag any discrepancies for the user before proceeding.
Never invent concrete details that haven't been established — ask first via AskUserQuestion. This applies especially to:
What you CAN draft without asking:
When in doubt: ask, don't invent.
Ground every option in evidence. When presenting options via AskUserQuestion, ground every option in research findings or existing NPC conventions. If no research exists for a detail, say so explicitly in the question — "No research basis exists; this is a creative decision" — so the user knows they are choosing without evidence. Do not fill option lists with plausible-sounding inventions.
Verify before asserting. Before using a specific factual claim — in a draft, a dossier, a creative question, or in conversation with the user — confirm it against the research corpus or against the cited source directly. This includes dates, timelines, and the sequence of events — if you are about to state when something happened, re-read the research to confirm before stating it. If the research doesn't cover it, look it up or ask — do not guess. This applies to every sentence in every field and every claim from research agents — not just facts that feel uncertain. The most dangerous inventions are the ones that sound plausible. Research agents are not immune to fabrication — if a claim drives a creative or mechanical decision, verify the cited source.
Present research findings organized clearly under the categories above. Then include a draft of the four lore fields showing how the figure would be adapted:
name (with proper romanization if Japanese)basicInfo -- three-sentence structure per npcs skill formatpersonality -- four traits per npcs skill format, each with a brief justification citing the research evidence or character logic that supports itabilities -- at least five abilities plus fighting style summaryhiddenInfo -- full paragraph mixing narrative secrets and gameplay-useful informationFlag the following explicitly:
Before entering approval: If resuming from a prior session with existing drafts, fact-check every sentence against the research corpus before presenting for approval. Do not assume prior drafts are accurate — verify claims, dates, titles, and relationships against the research files.
Brief the user before asking decisions. Before starting sentence-by-sentence approval for hiddenInfo, offer a concise summary of the NPC — who they are, their key relationships, dramatic tensions, and what the research found. The user may not remember the research from a prior session and cannot make informed choices without context. Ask if they want the briefing; don't force it.
Record new conventions. When a new hiddenInfo style rule is established during approval (naming conventions, title formatting, structural patterns), add it to the hiddenInfo Style Rules section in the project's NPC progress tracking file — not to the skill, memory, or CLAUDE.md.
Present all fields together, but lock them one at a time in order: basicInfo → personality → abilities → hiddenInfo. For hiddenInfo specifically, go sentence by sentence through AskUserQuestion for approval.
When presenting personality options via AskUserQuestion, include the research evidence for each trait in the option description — name the source, the specific anecdote, or the behavioral pattern that supports it. Do not present traits without justification.
Personality AskUserQuestion format: Present all four trait slots for one NPC in a single AskUserQuestion call (4 questions, one per slot: positive, neutral, negative, speaking style). Use the question field for the research-backed justification about the NPC's behavior patterns relevant to that trait slot. Each option's label contains the full "Trait: Description" text, and the description explains how that specific trait reflects the justification. Do not pre-decide traits and ask for lock/adjust — always present genuine competing options with justifications so the user can choose.
{
"questions": [
{
"question": "[Research justification about behavior patterns relevant to this trait slot]",
"header": "[NPC] +",
"options": [
{
"label": "[Trait]: [Under-10-word description]",
"description": "[How this trait reflects the justification]"
}
],
"multiSelect": false
}
]
}
Wait for user modifications. These can include any of the following:
Incorporate ALL user tweaks into the final version. Do not push back on creative choices -- the user's vision takes priority over folklore accuracy.
After user approval, write the four lore fields directly onto the existing NPC skeleton in tabs/npcs.json using the Edit tool. The target NPC entry must already exist. Always show the complete text to the user and receive explicit approval before writing to the file — never write a field based on an assumed approval from an earlier draft.
Fields must conform to the npcs skill format:
basicInfo: three-sentence structurepersonality: four traits (positive, neutral, negative, speaking style)abilities: at least five abilities plus \nfighting style: summaryhiddenInfo: full paragraph with narrative depth and gameplay-useful informationDo not modify any other fields on the NPC entry.
AskUserQuestion to pick one version as canon and commit to it. Never use phrases like "some accounts say," "origins are disputed," or "attributed to." No passive hedging — if something happened, state that it happened. If the NPC caused something, say they caused it. Academic distance has no place in narrator truth. No editorial commentary — do not write sentences that analyze, predict, or editorialize. Avoid constructions like "which means," "this suggests," "no one will," or "the implication is." State what is true in the world, not what it signifies.AskUserQuestion for approval — present exactly one sentence per question, not multiple. Never batch sentences even when confident they will be approved. When presenting sentence options, put the full sentence text in the option label or description so it is immediately visible — do not rely on preview fields that require interaction to reveal.AskUserQuestion with Approve/Revise options. The user steers by revising, not by choosing topics.After lore fields are locked, follow the image-gen skill's Character Portrait Workflow. Key points:
AskUserQuestion — do not pick for them-i for touch-upsportraitUrl, clean up unpicked variants via cleanup-variants.mjsFolklore powers are creative seeds, not literal translations. Follow these principles:
| Principle | Description |
|---|---|
| Mechanical variety | Design abilities with varied usage -- offensive, defensive, utility |
| Inspired, not copied | Each ability should feel rooted in the source while being fun in gameplay |
| Avoid redundancy | Do not create five variations of the same power; diversify |
| Gameplay-first | If a folklore power would be boring mechanically, reimagine it |
| Preserve essence | The overall ability set should evoke the figure's identity even if individual powers diverge from the source |
Build ability sets one NPC at a time, in order, with user approval at each stage:
tabs/skills.json. Only pick skills that are attested in the NPC's folklore. Present the folklore evidence for each proposed pick. Do not pick Innate-type skills associated with other yōkai species — these are species-locked.At each stage, present the options with folklore justification and wait for approval before proceeding to the next.
| Rule | Standard |
|---|---|
| Minimum sources | Sources from both English and Japanese agents cross-referenced |
| Conflicting accounts | Note them explicitly rather than silently picking one |
| Depth markers | Include lesser-known details that demonstrate thorough research |
| Source distinction | Distinguish between widely-attested folklore and speculative/modern interpretations |
| Attribution | When a detail comes from a single source, say so |
| Bilingual cross-check | Details found in both English and Japanese sources are strongest; flag language-exclusive findings |
For Japanese figures:
japanese-romanization skill)name field uses the romanized form