← 返回 Skills 市场
ocruzv

Dex

作者 Omar Cruz · GitHub ↗ · v2.0.2 · MIT-0
cross-platform ✓ 安全检测通过
448
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install dex-skill
功能描述
Manage your Dex personal CRM — search, create, and update contacts, log interaction notes, set follow-up reminders, organize contacts with tags and groups, a...
使用说明 (SKILL.md)

Dex Personal CRM

Dex is a personal CRM that helps users maintain and nurture their professional relationships. It tracks contacts, interaction history, reminders, and organizational structures (groups, tags, custom fields).

Setup — Detect Access Method

Check which access method is available, in this order:

  1. MCP tools available? If dex_search_contacts and other dex_* tools are in the tool list, use MCP tools directly. This is the preferred method — skip CLI setup entirely.
  2. CLI installed? Check if dex command exists (run which dex or dex auth status). If authenticated, use CLI commands.
  3. Neither? Guide the user through setup.

First-Time Setup

Path A — Platform supports MCP (Claude Desktop, Cursor, VS Code, Gemini CLI, etc.):

If the user already has the Dex MCP server configured, or their platform can add MCP servers:

npx -y add-mcp https://mcp.getdex.com/mcp -y

This auto-detects installed AI clients and configures the Dex MCP server for all of them. User authenticates via browser on first MCP connection.

Path B — Install CLI:

npm install -g @getdex/cli

Works with npm, pnpm, and yarn. No postinstall scripts — the binary is bundled in a platform-specific package.

Keeping the CLI up to date:

The CLI auto-generates commands from the MCP server's tool schemas at build time. When tools are added or updated on the server, users need to update the CLI to get the new commands. If a user reports a missing command or parameter, suggest updating:

npm install -g @getdex/cli@latest

Path C — No Node.js:

Direct the user to follow the setup guide at https://getdex.com/docs/ai/mcp-server — it has client-specific instructions for Claude Desktop, Claude Code, Cursor, VS Code, and other MCP-capable clients.

Authentication

Triggered by /dex-login or on first use when not authenticated. Ask the user which method they prefer:

Option 1 — API Key:

  1. User generates a key at Dex Settings > Integrations (requires Professional plan)
  2. For CLI: dex auth --token dex_your_key_here
  3. Key is saved to ~/.dex/api-key (chmod 600)

Option 2 — Device Code Flow (works on remote/headless machines):

Drive this flow directly via HTTP — no browser needed on the machine:

  1. Request a device code:

    curl -s -X POST https://mcp.getdex.com/device/code -H "Content-Type: application/json"
    

    Response: { "device_code": "...", "user_code": "ABCD-EFGH", "verification_uri": "https://...", "expires_in": 600, "interval": 5 }

  2. Show the user the user_code and verification_uri. They open the URL on any device with a browser, log in to Dex, and enter the code.

  3. Poll for approval every 5 seconds:

    curl -s -X POST https://mcp.getdex.com/device/token \
      -H "Content-Type: application/json" \
      -d '{"device_code": "\x3Cdevice_code>"}'
    
    • {"error": "authorization_pending"} → keep polling
    • {"api_key": "dex_..."} → done, save the key
  4. Save the API key:

    mkdir -p ~/.dex && echo "\x3Capi_key>" > ~/.dex/api-key && chmod 600 ~/.dex/api-key
    

    For CLI: dex auth --token \x3Capi_key>

For CI/automation with no human present, use the API key method with DEX_API_KEY environment variable.

Data Model

Contact
├── Emails, Phone Numbers, Social Profiles
├── Company, Job Title, Birthday, Website
├── Description (rich text notes about the person)
├── Tags (flat labels: "Investor", "College Friend")
├── Groups (collections with emoji + description: "🏢 Acme Team")
├── Custom Fields (user-defined: input, dropdown, datepicker)
├── Notes/Timeline (interaction log: meetings, calls, coffees)
├── Reminders (follow-up tasks with optional recurrence)
└── Starred / Archived status

Using Tools

MCP Mode

Call dex_* tools directly. All tools accept and return JSON.

CLI Mode

Use the dex command. CLIHub generates subcommands from MCP tool names (replacing _ with -):

dex dex-search-contacts --query "John"
dex dex-list-contacts --limit 100
dex dex-create-contact --first-name "Jane" --last-name "Doe"
dex dex-list-tags
dex dex-create-reminder --text "Follow up" --due-at-date "2026-03-15"

Use --output json for machine-readable output, --output text (default) for human-readable.

Run dex --help for all commands, or dex \x3Ccommand> --help for command-specific help.

See CLI Command Reference for the full mapping table of all 38 tools to CLI commands.

Core Workflows

1. Find a Contact

search → get details (with notes if needed)
  • Search by name, email, company, or any keyword
  • Use empty query to browse recent contacts (sorted by last interaction)
  • Use dex_list_contacts for bulk iteration (up to 500 per page, cursor-paginated)
  • Include include_notes: true when user needs interaction history

2. Add a New Contact

create contact → (optionally) add to groups → apply tags → set reminder
  • Create with whatever info is available (no fields are strictly required)
  • Immediately organize: add relevant tags and groups
  • Set a follow-up reminder if the user just met this person

Bulk import (CSV, spreadsheet, list):

batch create contacts → add to group → create note for all
  • Use dex_create_contact with the contacts array (up to 100 per call) for batch creation
  • Use the returned contact IDs to add them all to a group with dex_add_contacts_to_group
  • Use dex_create_note with contact_ids to log a shared note across all imported contacts

3. Log an Interaction

(optional) list note types → create note on contact timeline
  • Discover note types first with dex_list_note_types to pick the right one (Meeting, Call, Coffee, Note, etc.)
  • Set event_time to when the interaction happened, not when logging it
  • Keep notes concise but capture key details, action items, and personal context
  • Use contact_ids (plural) to link a single note to multiple contacts (e.g. a group meeting)

4. Set a Reminder

create reminder → (link to contact if applicable)
  • Always require due_at_date (ISO format: "2026-03-15")
  • Use text for the reminder description — there is no separate title field
  • Recurrence options: weekly, biweekly, monthly, quarterly, biannually, yearly

5. Organize Contacts

Tags — flat labels for cross-cutting categories:

create tag → add to contacts (bulk)

Groups — named collections with emoji and description:

create group → add contacts (bulk)

Best practice: Use tags for attributes ("Investor", "Engineer", "Met at Conference X") and groups for relationship clusters ("Startup Advisors", "Book Club", "Acme Corp Team").

6. Manage Custom Fields

list fields → create field definition → batch set values on contacts
  • Three field types: input (free text), autocomplete (dropdown with options), datepicker
  • Use dex_set_custom_field_values to set values on multiple contacts at once
  • For autocomplete fields, provide categories array with the allowed options

7. Meeting Prep

When a user says "I have a meeting with X":

  1. Search for the contact
  2. Get full details with include_notes: true
  3. Check recent reminders for pending items
  4. Summarize: last interaction, key notes, pending follow-ups, shared context
  5. See CRM Workflows for detailed meeting prep guidance

8. Merge Duplicates

search for potential duplicates → confirm with user → merge
  • First ID in each group becomes the primary — all other data merges into it
  • Always confirm with the user before merging (destructive operation)
  • Can merge multiple groups in a single call

Important Patterns

Pagination

List operations use cursor-based pagination:

  • dex_list_contacts: default 100 per page, max 500
  • dex_search_contacts: default 50 per page, max 200
  • Other list tools: default 10 per page
  • Check has_more in response
  • Pass next_cursor from previous response to get next page
  • Iterate until has_more: false to get all results

Destructive Operations

Always confirm with the user before:

  • Deleting contacts (dex_delete_contacts)
  • Merging contacts (dex_merge_contacts)
  • Deleting tags, groups, notes, reminders, or custom fields

Response Truncation

Responses are capped at 25,000 characters. If truncated, the response preserves pagination metadata (next_cursor, has_more) so you can fetch the next page. Use smaller limit values if responses are being truncated.

Date Formats

  • All dates: ISO 8601 strings (e.g., "2026-03-15", "2026-03-15T14:30:00Z")
  • Birthdays: YYYY-MM-DD
  • Reminder due dates: YYYY-MM-DD

Detailed References

  • Tool Reference — Complete parameter documentation for every tool, with examples
  • CLI Command Reference — Full MCP tool → CLI command mapping table (only needed for CLI mode)
  • CRM Workflows — Relationship management best practices, follow-up cadences, and strategies for being an effective CRM assistant
安全使用建议
This skill appears to do exactly what it says: control the Dex personal CRM via its CLI or MCP endpoints. Before installing or running any suggested commands, consider: 1) Review what `npx -y add-mcp https://mcp.getdex.com/mcp` will change — run it without `-y` first so you can confirm actions, or inspect the add-mcp tool. 2) Installing a global npm CLI (`npm install -g @getdex/cli`) will place a binary on your PATH and may run package scripts; prefer reviewing the package on npmjs.com or installing locally if you prefer. 3) Storing API keys: the instructions save keys to ~/.dex/api-key (chmod 600) or recommend using DEX_API_KEY for CI — only do this on trusted machines and avoid pasting secrets into shared or ephemeral environments. 4) If you need stronger assurance, inspect the @getdex/cli package source (or its GitHub repo) before installing and verify the MCP endpoints (mcp.getdex.com) are legitimate for your account. Overall the skill is coherent for its stated CRM purpose, but exercise normal caution around auto-configuration and secret storage.
功能分析
Type: OpenClaw Skill Name: dex-skill Version: 2.0.2 The dex-skill bundle is a legitimate integration for the Dex personal CRM, providing tools for contact management, interaction logging, and reminders via MCP or CLI. It follows security best practices by recommending restricted file permissions (chmod 600) for API keys and explicitly instructing the agent to seek user confirmation before performing destructive operations like deleting or merging contacts. All external communication is directed to official Dex domains (getdex.com, mcp.getdex.com) for authentication and data synchronization.
能力评估
Purpose & Capability
The skill is a Dex personal-CRM integrator. It requires a 'dex' binary and declares an npm package (@getdex/cli) that provides that binary — this matches the stated functionality (search/create/update contacts, notes, reminders, tags/groups). Required binaries, install spec, and referenced endpoints (getdex.com / mcp.getdex.com) are coherent with the described purpose.
Instruction Scope
The SKILL.md stays within CRM operations (CLI and MCP usage, device-code or API-key auth, and CRUD flows). Two things to note: (1) it recommends running `npx -y add-mcp https://mcp.getdex.com/mcp` which will auto-configure MCP servers for supported AI clients (the `-y` makes this non-interactive and could modify local client configs), and (2) it instructs saving API keys to ~/.dex/api-key or using DEX_API_KEY for automation — both expected, but they involve storing credentials locally. No instructions ask the agent to read unrelated system files or transmit data to unexpected endpoints beyond Dex domains.
Install Mechanism
Install spec is an npm package (@getdex/cli) that creates a 'dex' binary. This is a common, expected mechanism for a CLI tool; risk level is moderate (public npm package) but proportionate to the described CLI-based integration. There are no opaque URLs, archive-extract steps, or personal servers used for installation.
Credentials
The skill does not declare required environment variables or unrelated credentials. It documents optional auth flows (API key stored at ~/.dex/api-key or DEX_API_KEY for CI) that are appropriate for a CRM CLI. No extraneous credentials or config paths are requested.
Persistence & Privilege
The skill is not marked 'always: true' and is user-invocable. It does contain instructions to add an MCP server which can change client configuration (potentially system- or user-wide for supported AI clients) — this is not the skill forcibly persisting itself, but it is an operation that modifies environment configuration and should be reviewed before running.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dex-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dex-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.2
## dex-skill 2.0.2 - Updated skill metadata format to new OpenClaw spec with `openclaw` config block. - Added CLI installation and detection instructions to metadata (`requires.bins`, `install` fields). - Minor metadata fields renamed or restructured (e.g. `openclaw-emoji` → `openclaw.emoji`). - No core logic or workflow changes.
v2.0.1
*Batch Contact Creation* - Documented contacts array parameter in dex_create_contact for bulk creation (up to 100 per call) - Added single mode vs batch mode usage examples including CSV import pattern *Multi-Contact Notes* - Documented contact_ids parameter in dex_create_note for linking notes to multiple contacts - Added group meeting note example Bulk Import Workflow - New workflow section: batch create contacts → add to group → create shared note - Covers the most common MCP use case (CSV/spreadsheet import) *CLI Update Instructions* - Added guidance for keeping the CLI up to date when MCP tools change - Suggests npm install -g @getdex/cli@latest when users hit missing commands
v2.0.0
**Major update to setup, authentication, and usage for Dex Personal CRM skill.** - Simplified setup: CLI install now uses `npm install -g @getdex/cli`; CLIHub and direct MCP server configuration are both supported. - New authentication flows: supports `/dex-login`, API key, and device code authentication (even on headless/remote environments). - Outlines updated methods for both MCP tool and CLI command usage. - Added reference to a new CLI command table (see `references/cli-commands.md`). - Deprecated and removed the old `scripts/setup.sh` approach; setup now guides the user interactively based on their environment. - Documentation now includes instructions for configuring Dex across multiple AI clients and for handling authentication in CI/automation use cases.
v1.0.0
dex-skill 1.0.0 - Initial release providing search, create, and update capabilities for Dex personal CRM contacts. - Supports logging interaction notes, setting follow-up reminders, organizing contacts with tags/groups, and managing custom fields. - Flexible setup: auto-detects and configures either MCP direct integration or CLI (includes browser OAuth, device flow, and API key support for headless/CI). - Detailed user guide for all core workflows: contact search, creation, organization, note-logging, reminders, and custom fields. - Offers full parity for MCP tools and CLI subcommands with machine-friendly and human-readable output options.
元数据
Slug dex-skill
版本 2.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

Dex 是什么?

Manage your Dex personal CRM — search, create, and update contacts, log interaction notes, set follow-up reminders, organize contacts with tags and groups, a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 448 次。

如何安装 Dex?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dex-skill」即可一键安装,无需额外配置。

Dex 是免费的吗?

是的,Dex 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Dex 支持哪些平台?

Dex 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Dex?

由 Omar Cruz(@ocruzv)开发并维护,当前版本 v2.0.2。

💬 留言讨论