Relations 标志

Relations

组织
Lifecycle-Innovations-Limited
relations

OPS 按需调用:当用户询问“who do I owe a reply”(我还欠谁一个回复)、“relationship…”时,应使用此技能。

概览

发布者Lifecycle-Innovations-Limited
代码仓库claude-ops
技能名称relations
星标数
543
复刻数
64
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 Lifecycle-Innovations-Limited 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Relations AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Lifecycle-Innovations-Limited/claude-ops/tree/main/claude-ops/skills/relations
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lifecycle-Innovations-Limited/claude-ops.git /tmp/claude-ops
mkdir -p .claude/skills
cp -r /tmp/claude-ops/claude-ops/skills/relations .claude/skills/relations
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Relations,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Relations。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Relations 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

/ops:relations — Relationship Manager

Load ops-rules before acting. Public repo (no personal data). Outbound: one draft → one approval → one send. If AskUserQuestion / Workflow are missing, follow Rule 10 in ops-rules (Hermes: numbered options / two-turn Telegram card; delegate_task).

Relationship ledger and decision queue. Answers: who is owed a reply, what was promised, what is going cold, and what context a draft needs before it is written. It never sends anything.

Configuration

Every path and toggle comes from plugin userConfig, an env var, or $HOME. Nothing in this skill is machine-specific.

userConfig keyEnv overrideDefaultMeaning
relations_cliRELATIONS_CLI$HOME/.claude-ops/relations/bin/relations-cliLedger CLI entry point (JSON out)
relations_db_pathRELATIONS_DB$HOME/.claude-ops/relations/people.dbSQLite ledger, the factual source of truth
relations_shadow_modeRELATIONS_SHADOW_MODEtrueWhen true, no external send on any channel
relations_queue_limitRELATIONS_QUEUE_LIMIT10Max decision-queue items per report
relations_followup_limit_personal—1Unanswered follow-ups allowed, personal
relations_followup_limit_business—2Unanswered follow-ups allowed, business
relations_suppress_days—30Minimum suppression after a dismissal

Resolve in this order, first non-empty wins. Never hardcode an absolute path:

bash
PREFS_PATH="${PREFS_PATH:-${CLAUDE_PLUGIN_DATA_DIR:-$HOME/.claude/plugins/data/ops-ops-marketplace}/preferences.json}"
read_pref() { [ -f "$PREFS_PATH" ] && python3 -c 'import json,sys;print(json.load(open(sys.argv[1])).get(sys.argv[2],"") or "")' "$PREFS_PATH" "$1" 2>/dev/null; }

RELATIONS_CLI="${RELATIONS_CLI:-$(read_pref relations_cli)}"
RELATIONS_CLI="${RELATIONS_CLI:-$HOME/.claude-ops/relations/bin/relations-cli}"
RELATIONS_DB="${RELATIONS_DB:-$(read_pref relations_db_path)}"
RELATIONS_DB="${RELATIONS_DB:-$HOME/.claude-ops/relations/people.db}"

if [ ! -x "$RELATIONS_CLI" ]; then
  echo "relations: no ledger CLI at $RELATIONS_CLI — set userConfig relations_cli or RELATIONS_CLI" >&2
fi

A missing CLI is reported as a missing CLI. Never fall back to an empty result: "no follow-ups" and "the ledger is not installed" must never look the same.

Hard rules

  1. Shadow mode is the default. With relations_shadow_mode true, this skill drafts and stages only. No email, chat, SMS, or calendar invite leaves the box.
  2. Never merge two records on a name. Hard keys only: contact-provider id, normalized email, E.164 phone, or a previously verified alias. Everything else goes to the review queue.
  3. Every fact, commitment and follow-up carries a source reference. No source, no row, no draft sentence.
  4. Facts and inference are separate. An inference never justifies an outbound.
  5. Silence is the default. Nothing meaningful changed means send nothing.
  6. Contact history never enters agent memory. Person facts belong in the ledger DB, not in a memory plane or a committed file. See ops-rules Rule 0.
  7. Progressive disclosure. Never load the contact list into context. Query the one person you need.

Operations

SubcommandWhat it does
queue (default)Ranked decision queue, max relations_queue_limit, one per person
brief <person>Contact methods, open commitments, sourced facts, recent threads
find <key>Resolve an identity by email / phone / name; ambiguity → review
draft <person>Full-context draft, staged for approval, never sent
close <id>Close a follow-up with a reason
snooze <id> <ts>Defer with a reason
suppress <id>Dismiss for at least relations_suppress_days
auditDuplicates, unsourced rows, stale facts, integrity
bash
"$RELATIONS_CLI" queue --limit "${RELATIONS_QUEUE_LIMIT:-10}"
"$RELATIONS_CLI" brief <person_id>
"$RELATIONS_CLI" find --email user@example.com
"$RELATIONS_CLI" close <follow_up_id> --reason "they replied on chat"

Draft order (fixed)

  1. Resolve identity across every channel the person owns — never answer on one channel while the real conversation is on another.
  2. Read the COMPLETE thread, not the latest message. Check both directions (sent and received) and every account the channel has.
  3. Read messages from the recipient and anyone relevant on copy.
  4. Check the calendar and open commitments.
  5. Check vip tier first (see the vip skill) — a tier-1 person is drafted with more care and never batched into a digest.
  6. Load humanizer, write ONE draft in the owner's voice, in the language the thread is already in.
  7. Stage it for approval with recipient, channel, thread, and a content hash. If any of those change, ask again. Send only the exact approved content.

Never send. Never produce several near-duplicate drafts.

Follow-up gate

States: i_owe_them, they_owe_me, waiting_date, waiting_document, waiting_decision, going_cold, no_action, suppressed.

The gate blocks on: do-not-automate, archived person, snoozed, suppressed, not due yet, they responded elsewhere, upcoming meeting, unanswered limit (relations_followup_limit_personal / _business), missing source reference, cross-channel duplicate.

Not every unanswered message is overdue. Was a response actually requested? Was something promised? Has that date arrived? Would silence be more natural?

Report format

Plain text, no decoration, recommendation first, max relations_queue_limit items, numbered actions per item. If nothing survives the gate, output nothing.

relationship desk — monday

1. <person>
business, a revised proposal was promised friday (email thread, <date>)
recommendation: send the prepared draft, confidence high

1 approve   2 edit   3 snooze 2 days   4 close   5 show context

Source authority

Current complete thread > verified identity > current calendar event > current conversation > signed document > this ledger > recent public primary source > search result > existing summary > draft. A draft is never a source of truth. On conflict: record it, prefer the newest authoritative primary source, surface it, and do not send until it is resolved.

Related skills

  • vip — who is checked and answered first; always consulted before triage
  • ops-inbox — channel sweeps feed this ledger
  • ops-comms — the send path, gated by Rule 6
  • people — contact directory sync (identity layer under this ledger)
  • humanizer — voice pass before any draft is staged
  • ops-rules — Rule 0 (public repo), Rule 6 (per-message approval)

常见问题

Relations AI 技能有什么作用?

OPS 按需调用:当用户询问“who do I owe a reply”(我还欠谁一个回复)、“relationship…”时,应使用此技能。

为什么在 TypingMind 中使用 Relations?

因为您只需安装一次,就能搭配任何模型使用。Relations 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Relations?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Lifecycle-Innovations-Limited/claude-ops/tree/main/claude-ops/skills/relations。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Relations?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Relations 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Relations 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Relations AI 技能免费吗?

是的。Lifecycle-Innovations-Limited 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇