nakatomi-crm
Skill9 starsChanged 2 months agoMITView on GitHub
Use this skill whenever the user is operating on their Nakatomi CRM — creating, updating, finding, or deleting contacts, companies, deals, activities, notes, tasks, files, relationships. Trigger on mentions of "nakatomi", "the CRM", "my pipeline", "my deals", "add a contact", "log a call", "move a deal to …", or references to a Nakatomi workspace slug. Also trigger when the user asks to link a memory to a CRM entity or pull CRM context into their agent.
In this repository2 other files it gives its agents.
- llms.txtllms.txt
- nakatomi-dashboardSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 0 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
If this is your first interaction with this workspace in the current session, call describe_schema (MCP) or GET /schema (REST) once and …
- Very specific: line 22
Never paste the API key into the conversation.
- Very specific: line 27
Before mutating an entity, read its current state and its timeline:
- Very specific: line 36
When importing or syncing from an external system (CSV, HubSpot, Apollo, a PDF extract), set external_id to the stable id from that source.
- Very specific: line 43
Don't treat entities as islands.
- Very specific: line 56
Every call, meeting, email-you-sent-from-Gmail, and Slack DM that matters becomes an activity attached to the relevant entity.
- Very specific: line 75
Every entity has a data JSONB column for free-form attributes.
- Very specific: line 82
If the user has a memory system plugged in (DocDeploy, Supermemory, GBrain, …), after creating rich context (a long note, a call …
- Very specific: line 92
Never try to "reconstruct history" from field values.
- Very specific: line 114
Call describe_schema again.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Nakatomi CRM — usage rules for agents
Nakatomi is a headless CRM. There is no UI. Everything happens through REST or MCP. When this skill fires, apply these rules.
1. Start with describe_schema
If this is your first interaction with this workspace in the current session,
call describe_schema (MCP) or GET /schema (REST) once and hold the result
in context. It lists every entity, its fields, and the full event catalog.
2. Authentication
- REST:
Authorization: Bearer nk_<key> - MCP: same header, configured once in the MCP client
Never paste the API key into the conversation. If the user hasn't configured
one yet, instruct them to run POST /workspace/api-keys or the seed script.
3. Reads before writes
Before mutating an entity, read its current state and its timeline:
- MCP:
get_contact,get_deal,search_deals,timeline(entity_type, entity_id) - REST:
GET /contacts/{id},GET /timeline/{entity_type}/{entity_id}
This avoids redundant updates and preserves the audit story.
4. Upsert with external_id
When importing or syncing from an external system (CSV, HubSpot, Apollo, a
PDF extract), set external_id to the stable id from that source.
POST /contacts/bulk_upsert will match on external_id first, then on
email. Re-running the same import is then idempotent.
5. Use the relationship graph
Don't treat entities as islands. When you create or update a contact, also
relate them:
contact --works_at--> companycontact --decision_maker--> dealcompany --partner_of--> companycontact --reports_to--> contact
Downstream agents query /relationships/neighbors?entity_type=contact&entity_id=…&depth=2
to find who's adjacent.
6. Log activities generously
Every call, meeting, email-you-sent-from-Gmail, and Slack DM that matters
becomes an activity attached to the relevant entity. Kind strings are
free-form — settle on call, meeting, email_log, dm, voice_note
and stay consistent.
7. Soft delete
DELETE /contacts/{id} soft-deletes by default. Only pass ?hard=true if
the human explicitly asks. The default exists so a human can recover from an
agent mistake.
8. Idempotency for critical writes
For actions the human would hate to see duplicated (creating a deal,
advancing a deal to won), include an Idempotency-Key header. Replays
return the original response.
9. Don't invent fields
Every entity has a data JSONB column for free-form attributes. Use it
instead of making up columns that don't exist. If you find yourself
needing the same field repeatedly, surface it to the user as a candidate
for a first-class column in a future Nakatomi release.
10. Link memories
If the user has a memory system plugged in (DocDeploy, Supermemory, GBrain, …),
after creating rich context (a long note, a call transcript, a deal brief),
call the MCP tool memory_link (or POST /memory/link) to cross-reference the
memory id with the CRM entity. Later memory_recall / POST /memory/recall
calls will surface the right memory for the right entity. Use memory_trace
to list every memory linked to one CRM entity before deciding whether to write
a new one — prevents duplicate memories.
11. Read the timeline, don't rebuild it
Never try to "reconstruct history" from field values. The timeline_events
feed already has every mutation with actor and payload. Use it.
Common tool flows
- Log a call:
get_contact → log_activity(kind="call", subject, body, entity_type=contact, entity_id) → add_note(if transcript) → create_task(if follow-up) - Move a deal:
search_deals/get_deal→list_pipelines→move_deal_stage(deal_id, stage_slug) - Acme deal status:
search_companies(query="Acme")→search_deals(query="…", company_id=…)→get_deal(id)orentity_context("deal", …) - Onboard a company:
create_company → for each contact: create_contact(+ company_id) → relate(contact, works_at, company) - Morning review:
timeline(workspace, since=yesterday) → list_tasks(status=open, due_before=today+1d)
Anti-patterns
- Calling
search_contactswith no query when you meant to list — use pagination (GET /contacts?limit=50&cursor=…) instead. - Creating duplicate contacts because you forgot the
external_id. - Hard-deleting as cleanup. Use soft delete. Always.
- Skipping the timeline and re-deriving history from the current row.
- Writing to a field that doesn't exist. Use
data.
When unsure
Call describe_schema again. It's the source of truth for what's possible
in this deployment — operators can disable endpoints, add memory connectors,
or enable the dashboard at will.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

