agentleFS
mrdulasolutionsmrdulasolutions/NakatomiCRM/.claude/skills/nakatomi-crm/SKILL.md

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.

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
  1. Very specific:

    If this is your first interaction with this workspace in the current session, call describe_schema (MCP) or GET /schema (REST) once and …

    line 13
  2. Very specific:

    Never paste the API key into the conversation.

    line 22
  3. Very specific:

    Before mutating an entity, read its current state and its timeline:

    line 27
  4. Very specific:

    When importing or syncing from an external system (CSV, HubSpot, Apollo, a PDF extract), set external_id to the stable id from that source.

    line 36
  5. Very specific:

    Don't treat entities as islands.

    line 43
  6. Very specific:

    Every call, meeting, email-you-sent-from-Gmail, and Slack DM that matters becomes an activity attached to the relevant entity.

    line 56
  7. Very specific:

    Every entity has a data JSONB column for free-form attributes.

    line 75
  8. Very specific:

    If the user has a memory system plugged in (DocDeploy, Supermemory, GBrain, …), after creating rich context (a long note, a call …

    line 82
  9. Very specific:

    Never try to "reconstruct history" from field values.

    line 92
  10. Very specific:

    Call describe_schema again.

    line 114

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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--> company
  • contact --decision_maker--> deal
  • company --partner_of--> company
  • contact --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) or entity_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_contacts with 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.