Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

populate-entity填充实体

Agent Skill

populate-entity 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

194

周安装

8

GitHub Stars

公开资料未说明

下载量

63
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:populate-entity(填充实体)
来源仓库:https://github.com/hopeoverture/worldbuilding-system
仓库路径:skills/populate-entity
安装命令:
npx skills add hopeoverture/worldbuilding-system --skill "populate-entity"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add hopeoverture/worldbuilding-system --skill "populate-entity"

简介

populate-entity 用于查找、检索和筛选相关信息,适用于多种 AI 宿主环境。

  • 它可根据输入线索快速生成候选结果并支持进一步筛选。
  • 通过 npx skills add hopeoverture/worldbuilding-system --skill "populate-entity" 安装使用。
  • 注意检查权限范围、维护状态及是否涉及敏感操作如联网或文件写入。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Populate Entity

Populate this entity: $ARGUMENTS

Overview

This skill analyzes an existing entity file to:

  1. Identify plain text that should become wikilinks (names of people, places, organizations)
  2. Find existing wikilinks that point to non-existent entities
  3. Create all missing entities using appropriate templates
  4. Update the source entity with proper wikilinks
  5. Ensure bidirectional connections

Instructions

Step 1: Parse Arguments

Required:

  • Entity path or name

Optional Flags:

FlagPurposeDefault
--dry-runShow what would be created without making changesfalse
--autoSkip confirmations, use best-guess entity typesfalse
--limit NMaximum number of entities to create20
--broken-onlyOnly fix broken wikilinks, skip plain text detectionfalse
--links-onlyOnly add wikilinks to existing entities, don't create newfalse
--world [name]BULK MODE: Process all entities in the specified world-
--category [type]With --world: only process entities in this categoryall

Step 2: Locate Entity & Determine World

  1. If path provided (contains / or .md):

- Read the file directly - Extract world name from path: Worlds/[World Name]/...

  1. If name provided:

- Search Worlds/ directories for matching entity - Try exact filename match first - Then fuzzy match on filename and YAML name: field - If multiple matches, list them and ask user to clarify

  1. If not found:

- List similar entities and ask for clarification

The world name is required for knowing where to save new entities.

Step 3: Build Entity Index

Before analysis, create a complete index of existing entities in the world:

  1. Scan all files in Worlds/[World Name]/ recursively
  2. For each entity file, extract:

- Filename (without.md extension) - YAML name: field - YAML aliases: array - File path

  1. Build lookup dictionary (case-insensitive): {"entity name": "path/to/entity.md", "alias1": "path/to/entity.md",...}

This index is used to:

  • Avoid creating duplicate entities
  • Detect existing entities mentioned as plain text
  • Verify wikilinks point to real files

Step 4: Analyze Source Entity

Read the source entity file and perform three analyses:

4A: Extract Existing Wikilinks

Use regex pattern: \[\[([^\]|]+)(?:\|[^\]]+)?\]\]

For each wikilink found:

  1. Extract the entity name (handling [[Name|Display]] format)
  2. Check if it exists in the entity index
  3. If not found, mark as broken link
  4. Track line numbers for reporting

4B: Identify Potential Entity References

Scan the entity content (excluding YAML frontmatter, code blocks, and Image Prompts section) for proper noun patterns:

High-Confidence Patterns:

PatternEntity TypeExample
Lord/Lady [Name]Character"Lord Varic", "Lady Serana"
King/Queen [Name]Character"King Aldric", "Queen Elara"
Prince/Princess [Name]Character"Prince Edric"
Sir/Dame [Name]Character"Sir Galahad"
Captain/Commander [Name]Character"Captain Alonzo"
High Priest/Confessor [Name]Character"High Confessor Maren"
Elder/Master [Name]Character"Elder Thorne"
House [Name]Organization"House Valdren"
Clan [Name]Organization"Clan Ironforge"
Guild/Order [Name]Organization"Guild of Merchants"
The [Name] + (River/Sea/Forest/Mountain)Geography"The Trader's Sea"
[Name] River/StreamGeography (River)"Valdris River"
[Name] Mountain(s)/Range/Peak(s)Geography (Mountain)"Sundered Peaks"
[Name] Forest/Wood(s)/GroveGeography (Forest)"Whisperwood Forest"
[Name] Sea/OceanGeography (Ocean)"The Eastern Sea"
[Name] Lake/PondGeography (Lake)"Lake Shimmer"
[Name] Fields/PlainsGeography (Plains)"The Ashen Fields"
[Name] Pass/GapGeography (Pass)"Ironhold Pass"
[Name] Palace/Ruins/DungeonGeography (Dungeon)"The Sunken Palace"
[Name] City/MetropolisSettlement (City)"Porto Valdris"
[Name] TownSettlement (Town)"Oakhaven Town"
[Name] Port/HarborSettlement"Porto Valdris"
[Name] Fortress/Castle/KeepSettlement (Stronghold)"Thornwall Keep"
[Name] Village/HamletSettlement (Village)"Millbrook Village"

Medium-Confidence Patterns:

PatternEntity TypeContext Needed
The [Capitalized Name] (standalone)Geography/OrganizationCheck surrounding text
[Two-Three Capitalized Words] in People sectionCharacter"Marco Fortunato"
[Capitalized Name] near "guild/order/temple"OrganizationCheck context
[Capitalized Name] near "river/mountain/forest"GeographyCheck context

Detection Algorithm:

1. Split content into lines
2. Skip YAML frontmatter (between --- markers)
3. Skip Image Prompts section and below
4. Skip content inside code blocks (``` markers)
5. Skip existing wikilinks

6. For each line:
   a. Find capitalized multi-word phrases (2-4 words)
   b. Check against high-confidence patterns first
   c. If no pattern match, check context clues
   d. Skip common phrases that aren't entities:
      - "The [Direction]" (The North, The East)
      - Generic descriptors (The Great, The Ancient)
      - Section headers

7. For each detected phrase:
   a. Check if already in entity index -> mark as "needs wikilink"
   b. Check if not in index -> mark as "potential new entity"
   c. Record line numbers for all occurrences
   d. Extract surrounding context (10 words before/after)

4C: Classify Detected References

Sort all detected references into categories:

CategoryDescriptionAction
Existing (Unlinked)Name matches an existing entity but isn't a wikilinkConvert to [[wikilink]]
Broken Link[[wikilink]] exists but no entity file foundCreate entity
Inferred NewProper noun with confident type guessCreate entity (confirm type)
Ambiguous NewProper noun but type unclearAsk user for type

Step 5: Present Analysis Report

Display findings before taking action:

=== ENTITY ANALYSIS: [Source Entity Name] ===

World: [World Name]
Source Path: [path/to/source.md]

---

## EXISTING ENTITIES (Should Become Links)

Found X names matching existing entities but not wikilinked:

| # | Name | Line(s) | Matches Entity |
|---|------|---------|----------------|
| 1 | "Lady Serana Valdren" | 150 | [[Lady Serana Valdren]] |
| 2 | "Captain Alonzo" | 178, 192 | [[Captain Alonzo the Bold]] |

---

## BROKEN WIKILINKS (Need New Entities)

Found X wikilinks pointing to non-existent entities:

| # | Wikilink | Line(s) | Suggested Type | Template |
|---|----------|---------|----------------|----------|
| 1 | [[The Merchant Guilds]] | 286 | Organization | Guild.md |
| 2 | [[Marevento]] | 69, 278 | Settlement | Town.md |
| 3 | [[Serenzia]] | 72, 278 | Settlement | Town.md |

---

## DETECTED REFERENCES (Potential New Entities)

Found X capitalized names that may be entities:

| # | Name | Line(s) | Suggested Type | Context |
|---|------|---------|----------------|---------|
| 1 | "Marco Fortunato" | 171, 283 | Character | "wealthiest merchant", "key retainer" |
| 2 | "Adriano Valdren" | 165 | Character | "Varic's brother", "overseas trade" |
| 3 | "The Sunken Palace" | 166, 252 | Geography (Dungeon) | "underwater ruins", "pre-Faith secrets" |

---

## AMBIGUOUS REFERENCES (Need Confirmation)

| # | Name | Line(s) | Could Be | Please Specify |
|---|------|---------|----------|----------------|
| 1 | "The Reckoning" | 184, 253 | Event OR Tradition | history/concept? |

---

## SUMMARY

| Category | Count |
|----------|-------|
| Existing to link | X |
| Broken links to create | X |
| New entities detected | X |
| Ambiguous (need input) | X |
| **Total potential creations** | **X** |

---

**Options:**
1. Create all suggested entities (uses best-guess types)
2. Review each entity individually
3. Only fix broken wikilinks
4. Only add links to existing entities
5. Show dry-run (no changes)

If --auto flag is set, skip this step and proceed with best-guess types. If --dry-run flag is set, show report and stop.

Step 6: Determine Entity Types

For each entity to create, use pattern matching to determine the template:

Template Mapping (from create-entity):

Characters:

PatternTemplate
Lord/Lady/King/Queen/Prince/Princess + nameSupport Character.md (or Antagonist.md if negative context)
Sir/Dame/Captain/Commander + nameSupport Character.md
High Priest/Confessor/Elder + nameSupport Character.md
Personal name in "Members" or "Allies" contextSupport Character.md
Personal name with villain/enemy contextAntagonist.md

Settlements:

PatternTemplate
[Name] + City/MetropolisCity.md
[Name] + Port/Harbor (large)City.md
[Name] + TownTown.md
[Name] + Port/Harbor (small)Town.md
[Name] + Village/HamletVillage.md
[Name] + Fortress/Castle/Keep/StrongholdStronghold.md
Context mentions "capital", "great city"City.md

Organizations:

PatternTemplate
House + [Name] (noble context)Government.md
Guild/Guilds + [Name]Guild.md
Order + [Name] (religious context)Religious Order.md
Order + [Name] (martial context)Military.md
Clan/Tribe + [Name]Organization (General).md
Army/Legion/Navy + [Name]Military.md
Cult + [Name]Cult.md
Company + [Name] (trade context)Business.md
Default organizationOrganization (General).md

Geography:

PatternTemplate
[Name] + River/StreamRiver.md
[Name] + Mountain(s)/Range/Peak(s)Mountain Range.md
[Name] + Forest/Wood(s)/Grove/JungleForest.md
[Name] + Sea/OceanOcean.md
[Name] + Lake/PondLake.md
[Name] + Fields/Plains/GrasslandPlains.md
[Name] + Pass/GapPass.md
[Name] + Desert/WastelandDesert.md
[Name] + Coast/ShoreCoast.md
[Name] + Island/IsleIsland.md
[Name] + Palace/Ruins/Dungeon/TombDungeon.md
[Name] + Cave/CavernCave.md
The [Name] (generic geography)Region.md

History:

PatternTemplate
The [Name] + War/ConflictWar.md
The [Name] + Battle/SiegeBattle.md
The [Name] (event context: "years ago", "when")Event.md
[Name] + Age/Era/EpochAge.md
[Name] + Treaty/AccordTreaty.md

Category Folder Mappings:

Template CategorySave to Folder
CharactersCharacters/
SettlementsSettlements/
OrganizationsOrganizations/
GeographyGeography/
HistoryHistory/
ConceptsConcepts/
ItemsItems/
CreaturesCreatures/

Step 7: Confirm Creation Plan

Before creating entities, present the plan:

=== CREATION PLAN ===

Will create X new entities:

CHARACTERS (X):
| Entity | Template | Context from Source |
|--------|----------|---------------------|
| Marco Fortunato | Support Character.md | "wealthiest merchant" |
| Adriano Valdren | Support Character.md | "Varic's brother" |

SETTLEMENTS (X):
| Entity | Template | Context from Source |
|--------|----------|---------------------|
| Marevento | Town.md | "secondary port", "shipbuilding" |
| Serenzia | Town.md | "agricultural center" |

ORGANIZATIONS (X):
| Entity | Template | Context from Source |
|--------|----------|---------------------|
| The Merchant Guilds | Guild.md | "allied with House Valdren" |

GEOGRAPHY (X):
| Entity | Template | Context from Source |
|--------|----------|---------------------|
| The Sunken Palace | Dungeon.md | "underwater ruins", "pre-Faith" |

---

Proceed with creation? (yes/no/modify)

If --auto flag is set, skip confirmation and proceed.

Step 8: Create Entities

For each confirmed entity:

8A: Read Template

Read the appropriate template from Templates/[Category]/[Template].md

8B: Generate Content

Generate content based on:

  1. Context from source entity - What does the source say about this entity?
  2. World Overview - Read for tone, themes, naming conventions
  3. Template requirements - Fill required sections

Content Generation Guidelines:

Since these are auto-generated entities, create minimal but coherent content:

  1. YAML Frontmatter:

- Set name: to the entity name - Set status: draft (marked for user review) - Fill category-specific fields with reasonable defaults - Leave image: empty

  1. Overview Section:

- 2-3 sentences based on context from source entity - Reference the source entity using [[wikilink]]

  1. Core Identity Sections:

- Fill minimally based on available context - Mark sections needing expansion with <!-- TODO: Expand -->

  1. Connections Section:

- Add [[Source Entity]] as primary connection - Use appropriate relationship category based on entity types

  1. Image Prompts:

- Leave as template placeholders or fill with basic descriptions

Naming Conventions:

Consult naming reference files when generating names:

  • Templates/Reference/D&D Species Naming Conventions.md
  • Templates/Reference/Tolkien Naming Conventions.md

Match naming style to the world's established conventions.

8C: Save Entity

Save to: Worlds/[World Name]/[Category]/[Entity Name].md

Use Title Case with spaces for filenames.

8D: Add Reciprocal Link

After saving the new entity, add a connection back to the source entity:

Reciprocal Link Patterns:

New Entity TypeSource Entity TypeNew Entity Links To Source As
CharacterSettlementHome/Location
CharacterOrganizationMember Of
CharacterCharacterAssociate/Ally
SettlementRegionPart Of
SettlementOrganizationHeadquarters
OrganizationSettlementBased Here
OrganizationCharacterLeadership/Members
GeographyGeographyPart Of/Contains

Step 9: Update Source Entity

After creating all new entities:

9A: Convert Plain Text to Wikilinks

For each detected reference that now has an entity:

  1. Find occurrences in source entity
  2. Replace Entity Name with [[Entity Name]]
  3. Handle partial name matches (e.g., "Lady Serana" → [[Lady Serana Valdren|Lady Serana]])

Use Edit tool for precise replacements.

9B: Ensure Connections Section is Updated

For each new entity created:

  1. Determine appropriate connection category based on entity type
  2. Check if source entity's Connections section has this category
  3. Add wikilink to appropriate subsection

Connection Section Formats:

## Connections

### People
- **Family:** [[Family Member]]
- **Allies:** [[Ally 1]], [[Ally 2]]
- **Associates:** [[Associate 1]]

### Organizations
- **Member Of:** [[Organization]]
- **Allied With:** [[Allied Org]]

### Locations
- **Headquarters:** [[Settlement]]
- **Territory:** [[Region]]

### Geography
- **Contains:** [[Location 1]], [[Location 2]]
- **Borders:** [[Neighboring Region]]

9C: Validate All Links

After updates, verify:

  1. All new wikilinks resolve to existing entity files
  2. No duplicate links in Connections section
  3. Source entity frontmatter is intact

Step 10: Summary Report

=== POPULATE COMPLETE: [Source Entity Name] ===

Created X new entities:

CHARACTERS:
- [[Marco Fortunato]] - Wealthy merchant, Valdren ally (draft)
- [[Adriano Valdren]] - Varic's brother, trade manager (draft)

SETTLEMENTS:
- [[Marevento]] - Secondary port, shipbuilding center (draft)
- [[Serenzia]] - Agricultural town (draft)

ORGANIZATIONS:
- [[The Merchant Guilds]] - Allied trading organizations (draft)

GEOGRAPHY:
- [[The Sunken Palace]] - Underwater ruins with ancient secrets (draft)

---

Source Entity Updated:
- Added X wikilinks (previously plain text)
- Added X items to Connections section

Reciprocal Links Added:
- Marco Fortunato → [[Source Entity]] (employer)
- Marevento → [[The Western Shore]] (region)
- etc.

---

All new entities marked as 'draft' for review.

Suggested Next Steps:
1. Review and expand created entities with /expand-entity
2. Run /audit-world [World Name] to verify all connections
3. Generate images with /generate-image [Entity]

Bulk Processing Mode

When --world flag is provided, the skill processes multiple entities:

Bulk Mode Workflow

  1. Scan world directory:

- List all .md files in Worlds/[World Name]/ - If --category specified, only scan that folder - Build a master entity index for the entire world

  1. Analyze all entities:

- Run detection on each entity file - Compile a master list of potential new entities - De-duplicate across files (same reference in multiple files = one entity)

  1. Present consolidated plan: === BULK POPULATE: [World Name] === Files Analyzed: X Files with Detections: Y ENTITIES TO CREATE (de-duplicated): | Entity | Type | Referenced In | Times | |--------|------|---------------|-------| | Marco Fortunato | Character | 3 files | 7 mentions | | The Iron Guild | Organization | 2 files | 4 mentions |... Total: N new entities across M source files Options: 1. Create all (uses best-guess types) 2. Review by category 3. Review each individually 4. Dry run complete
  2. Process with de-duplication:

- Create each entity once - Update ALL source files that reference it - Add reciprocal links from new entity to all referencing entities

  1. Bulk summary report: === BULK POPULATE COMPLETE === Entities Created: N Source Files Updated: M Total Wikilinks Added: X Reciprocal Links Created: Y By Category: - Characters: N created - Settlements: N created...

Bulk Mode Options

# Process entire world (with confirmations)
/populate-entity --world Eldermyr

# Fully automated (no confirmations)
/populate-entity --world Eldermyr --auto

# Only fix broken links across world
/populate-entity --world Eldermyr --broken-only

# Limit total entities created in bulk
/populate-entity --world Eldermyr --limit 50

# Preview bulk changes
/populate-entity --world Eldermyr --dry-run

Performance Notes

  • Bulk mode builds entity index once (more efficient)
  • De-duplication prevents creating duplicate entities
  • For very large operations, use --limit to process in batches
  • Consider running /audit-world --check links afterward to verify

Examples

# Populate a specific entity by name
/populate-entity "House Valdren"

# Populate by file path
/populate-entity Worlds/Eldermyr/Organizations/House Valdren.md

# Preview what would be created (no changes)
/populate-entity "Porto Valdris" --dry-run

# Auto-populate without prompts (for batch processing)
/populate-entity "Lord Varic Valdren" --auto

# Only fix broken wikilinks, skip text detection
/populate-entity "World Overview" --broken-only

# Only add wikilinks to existing entities, don't create new
/populate-entity "The Great War" --links-only

# Limit number of entities to create
/populate-entity "The Great War" --limit 5

# Combine flags
/populate-entity "House Valdren" --auto --limit 10

Integration with Other Skills

After /create-entity

Run /populate-entity on newly created entities to automatically flesh out referenced names.

Before /audit-world

Run /populate-entity on key entities to reduce broken link count before audit.

With /expand-entity

  • /expand-entity adds depth to a single entity
  • /populate-entity creates the network of related entities
  • Use together: populate first, then expand key entities

With /link-entities

  • /populate-entity creates entities from detected references
  • /link-entities can refine the relationships afterward

Quality Guidelines

  1. Conservative Creation: Only create entities with high-confidence type detection
  2. Minimal Content: New entities get basic content marked as draft
  3. Preserve Context: Use context from source to inform new entity content
  4. Bidirectional: Always add reciprocal links
  5. No Duplicates: Check entity index before creating
  6. User Control: Confirmation prompts unless --auto flag

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

mcpjam

28.29%
按下载量换算18

Claude Code

24.93%
按下载量换算16

windsurf

18.48%
按下载量换算12

zencoder

13.4%
按下载量换算8

crush

8.43%
按下载量换算5

cline

3.52%
按下载量换算2

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills