Motorica Knowledge Graph

What it is, how it works, and why you need it — explained for the Motorica team

Concept

The Knowledge Graph

Motorica's offline company brain — a searchable collection of 45 facts about your market, your campaigns, your ICP, and what actually works. It lives in plain files on your machine, costs nothing to run, and works without internet.

How it works

The KG is like a folder of index cards. Each card is one fact — a campaign with stats, a persona you target, a metric you track, or a summary of your signal landscape.

Why it matters

Without the KG, every time you write outreach copy or plan a campaign, you're guessing: What's our ICP again? Which CTA actually converts? How many funded studios are out there? The KG answers these instantly. If you don't query it before a send, you're flying blind. If you don't rebuild it when new signal CSVs arrive, it goes stale and your answers are wrong.

💡
Think of it like

A game's quest journal. Before you take a quest (run a campaign), you open the journal to check: Who's the target? What worked last time? What should I avoid? kg_query.py is the "open journal" button. kg_index.py is the journal updating when a new zone unlocks and fresh intel drops. You'd never walk into a Souls boss without reading the item descriptions first — same deal here.

How Data Flows Through the KG

SOURCES (you own these) nexus-export.jsonl40 entities signal-landscape.jsonl5 entities 5x Motorica Signals CSVs~4K rows Developers · Game Releases · Funding · LinkedIn Hiring · External Hiring kg_index.py python kg_index.py BUILT (auto-generated from sources) entities.jsonl45 facts relationships.jsonl44 links index.jsonname-to-ID lookup kg_query.py search | list | show You ask: "what converts?" read + merge WHAT'S INSIDE — 45 FACTS ACROSS 6 DOMAINS client 1 · persona 5 · campaign 3 · pattern 1 · kpi 30 · signal_landscape 5
1Client Profile
5Personas
3Campaigns
1Proven Pattern
30KPI Definitions
5Signal Landscapes
Concept

KG Queries — The 3 Things You Can Ask

Three commands cover everything. You don't need to know how the files work internally — you just need to know which question to ask.

How it works

CommandWhat it doesExample
search "..."Find anything matching a keyword across all 45 factskg_query.py search "funding"
list <domain>Show every fact in one categorykg_query.py list signal_landscape
show <id>Print one fact in full detailkg_query.py show motorica

That's it. No database, no login, no internet. It reads the built files and prints answers to your terminal.

Why it matters

The ICP, the winning angle, the proven CTA — these are all in the KG. Before you write a single line of outreach copy, run kg_query.py show motorica and kg_query.py search "CTA" --domain pattern. If you skip this step, you're drafting from memory, and memory drifts. Two campaigns later, you're selling a different product to a different person and wondering why reply rates dropped.

💡
Think of it like

A basketball playbook. Before you run a play, you don't redraw it from scratch — you flip to the right page. search is the index, list opens a whole section, show zooms into one play. The KG is your playbook. Don't run the play without checking the page.

Concept

Rebuilding — When New Intel Arrives

The KG is not frozen. When new signal CSVs arrive with updated data, you rebuild the brain with one command.

How it works

The rebuild is deterministic — same inputs = same outputs. Every time:

To grow it: drop updated CSV files in sources/, update the numbers in signal-landscape.jsonl, then run:

python knowledge-graph/scripts/kg_index.py

Why it matters

A stale KG is worse than no KG — it feeds you old numbers and you make decisions on bad intel. When fresh signal data lands, rebuild within the hour. When campaign stats change, update the campaign entity and rebuild. The KG is only as good as its last rebuild.

💡
Think of it like

A save file. You wouldn't keep playing from a save from three weeks ago after grinding new gear, new levels, and new map unlocks. The rebuild is the autosave. Run it when the intel changes so the next person who opens the file sees the real state of the world.

Concept

What Lives in the KG — The 6 Domains

The 45 facts are organized into 6 categories. Here's what each one holds and when you'd query it.

How it works

DomainCountWhat it tells youQuery when...
client1ICP, pain points, winning angle, statusStarting any new campaign or copy
persona5Who you target: Founder, Director, Manager, C-Level, ICSegmenting a lead list
campaign3Live stats per campaign: sent, replies, reply rate, bouncesComparing what's working
pattern1Proven CTA: reference a specific game character/animationWriting any outreach copy
kpi30Metric definitions — what each KPI means and where it livesBuilding reports or dashboards
signal_landscape5Market snapshot: qualified studios, funding rounds, hiring signalsSizing the pipeline or prioritizing outreach
💡
Think of it like

A character sheet. Client = your class and stats. Personas = the enemy types you're optimized against. Campaigns = your recent battle log. Patterns = the move that keeps landing crits. KPIs = the stat bars you track. Signal landscape = the world map showing where the next quests are.

Built with the Feynman Technique · Motorica Ops Kit · 2026