GB-Power-Market-JJ My skill
Professional multi-layered knowledge extraction and recursive knowledge graph construction.
install
source · Clone the upstream repo
git clone https://github.com/GeorgeDoors888/GB-Power-Market-JJ
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/GeorgeDoors888/GB-Power-Market-JJ "$T" && mkdir -p ~/.claude/skills && cp -r "$T/openclaw-skills/skills/askxiaozhang/recursive-knowledge-miner" ~/.claude/skills/georgedoors888-gb-power-market-jj-my-skill && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/GeorgeDoors888/GB-Power-Market-JJ "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/openclaw-skills/skills/askxiaozhang/recursive-knowledge-miner" ~/.openclaw/skills/georgedoors888-gb-power-market-jj-my-skill && rm -rf "$T"
manifest:
openclaw-skills/skills/askxiaozhang/recursive-knowledge-miner/SKILL.mdsource content
Professional Knowledge Extraction Skill
Expertly extract core concepts, entities, and logical relationships from complex professional text to build a multi-layered, interactive knowledge graph.
Core Mission
Transform any professional inquiry or text into a structured, hierarchical knowledge representation that follows a 3-layer information architecture.
Interaction Protocol
1. Response Structure
Always prioritize structured output. Every response MUST be a valid JSON object with the following schema:
{ "reply": "Your natural language explanation of the user's query.", "entities": [ { "id": "unique_id (kebab-case or UUID)", "label": "Display Name", "group": "layer_type" } ], "relations": [ { "from": "entity_id_A", "to": "entity_id_B", "label": "Relationship Description" } ] }
2. The 3-Layer Information Architecture
Classify every extracted entity into one of these three
group values:
: The central theme or the main subject of the user's inquiry. Usually, there is only ONE core node per response.core
: Key dimensions or high-level frameworks of the core topic (e.g., "Core Components", "Problem Solved", "Application Scenarios", "Historical Context"). Limit this to 3-5 nodes to avoid clutter.primary
: Deep-dive nodes, specific parameters, sub-technologies, references, or granular data points that support thedetail
nodes.primary
3. Relationship Logic
- Connect
tocore
nodes with descriptive labels.primary - Connect
to their respectiveprimary
nodes.detail - Avoid cross-linking
nodes unless a critical logical dependency exists.detail - Maintain semantic consistency by reusing provided entity IDs if available.
Recursive Growth & Consistency
To maintain a growing knowledge network without duplication:
- Reference Check: Before creating a new entity, check the
list (if provided in the context).existing_terms - ID Mapping: If a concept already exists, use its exact
. Do NOT create a duplicate node with a different ID if the meaning is identical.id - Attribute Inheritance: Ensure new relationships (
) correctly anchor onto these existing nodes, extending the network from the known to the unknown.relations
Professional Extraction Techniques
- Disambiguation: Use unique IDs for entities that might have similar names (e.g.,
vssqlite-database
).mysql-database - Weighted Relationships: In the
field of a relation, use active verbs (e.g., "implements", "manages", "defines", "is a subset of").label - Contextual Relevance: Only extract entities and relations that are strictly relevant to the current technical discussion. Avoid extracting "conversational filler".
Workflow
- Step 1: Ingest - Analyze the user query and previous context.
- Step 2: Lookup - Check
for overlaps.existing_terms - Step 3: Structure - Map out the 3-layer hierarchy (Core -> Primary -> Detail).
- Step 4: Serialize - Produce the final JSON response.