SuperAPI AI 工具集

oc-status

办公与效率

查看项目

更新于 10-15 14:11

技能介绍

用途

每周向外部律师(outside counsel)发送状态询问邮件,在 5 至 15 个案件上重复同样的内容,是一种机械性的认知负担。每个案件的内容结构一致(状态、待决事项、预算检查),收件对象一致(外部律师主办合伙人),语气也一致(遵循本所的外部律师指令风格)。oc-status 技能通过定时任务一次性起草全部邮件,由律师审核后发送。

主要能力

  • 加载案件日志 ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/_log.yaml,按默认规则或参数筛选案件。
  • 加载 ~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md,获取外部律师指令风格、签署人默认值、预算姿态。
  • 对范围内每个案件读取 matter.md 与 history.md,起草逐案件邮件。
  • 将 markdown 写入 ~/.claude/plugins/config/claude-for-legal/litigation-legal/oc-status/[YYYY-MM-DD]/[slug].md。
  • 若 Gmail MCP 已认证,创建 Gmail 草稿;否则仅生成 markdown,并在摘要中说明。
  • 写入运行摘要 ~/.claude/plugins/config/claude-for-legal/litigation-legal/oc-status/[YYYY-MM-DD]/_summary.md,记录运行内容、跳过内容及原因。

使用方式

筛选规则

默认筛选条件:

  • status != closed
  • outside_counsel.firm != null 且 outside_counsel.lead != null
  • 满足以下任一:最后更新超过 10 天,或 next_deadline 在 21 天内

跳过最近 10 天内刚有状态更新的案件,以及 outside_counsel.email 为空的案件(Gmail 草稿需要邮箱地址,但仍会生成 markdown)。

可用参数:

  • --all:为所有活跃案件起草,不考虑时效
  • --slug=[slug]:仅为单个案件起草(临时请求)
  • --no-gmail:即使 MCP 可用也跳过 Gmail 草稿创建

逐案件邮件草稿

每封邮件骨架相同,内容因案件而异。

主题:按本所惯例(来自 ~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md 的外部律师指令风格;回退格式:[Matter: [matter name]] — Weekly status update)。

正文骨架:

[lead partner first name],

[One sentence opener — natural, matches house tone.]

Checking in on [matter name]. A few items:

1. **Status since [date of last update captured in history.md]** — what's moved, what's pending? Any filings, hearings, correspondence, or calls since we last touched base?

2. **Upcoming deadlines** — I show [next_deadline from log + any deadlines in matter.md]. Confirm coverage plan and any dates we should add.

3. **Decisions pending** — [pull open questions from matter.md that require OC input; if none, omit this numbered item and renumber]

4. **Budget** — [monthly / quarterly / on-request per `~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md` budget posture]. Where are we against [budget authorization from matter.md]? Any variance to flag?

[If material and relevant: 5. Specific ask — e.g., "Please send me the latest draft of the motion to dismiss before [date]" — drawn from matter.md open questions.]

[Signoff — name, role, contact. From `~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md` signer default for OC directives.]

语气按 ~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md 的外部律师指令风格调整——有的律所采用“dear counsel”正式风格,有的采用直呼其名加要点的风格,需匹配。

输出

Markdown 草稿写入:~/.claude/plugins/config/claude-for-legal/litigation-legal/oc-status/[YYYY-MM-DD]/[slug].md

每个文件是一封邮件,格式如下:

[WORK-PRODUCT HEADER — per plugin config ## Outputs — differs by role; see `## Who's using this`]

# [Matter name] — OC status request — [YYYY-MM-DD]

**To:** [outside_counsel.email from log] ([outside_counsel.lead], [outside_counsel.firm])
**From:** [signer name / email from `~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md`]
**Subject:** [subject line]

> The work-product header above applies to this internal record. The outgoing email body below goes to outside counsel on a retained matter, which is itself a privileged communication — apply the house privilege marking (`~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md` privilege conventions) at the top of the email sent, typically `Privileged & Confidential — Attorney-Client Communication / Attorney Work Product`, not this internal work-product header.

---

[body per skeleton]

发送门禁

在每个 markdown 草稿正文下方、运行元数据上方追加以下内容(发送前删除):

This is a draft status email for attorney review before sending to outside counsel. Check for privileged content you did not intend to share outside the engagement circle, factual accuracy, tone, and budget posture. Do not send unreviewed — even routine weekly check-ins can surface theory, strategy, or concessions the sender didn't mean to put in writing.

Gmail 草稿

若 Gmail 草稿创建 MCP 已认证:

  • 按案件在用户 Gmail 中创建草稿,填充 to、from、subject、body
  • 草稿位于 Drafts 文件夹,用户周一早上审核并发送

若 Gmail MCP 不可用或失败:回退为仅 markdown,并告知用户。

运行摘要

处理完所有案件后,写入 ~/.claude/plugins/config/claude-for-legal/litigation-legal/oc-status/[YYYY-MM-DD]/_summary.md:

# OC Status Run — [YYYY-MM-DD]

**Matters processed:** [N]
**Drafts created:** [N]
**Gmail drafts:** [created / skipped — reason]

## Drafted for

| Matter | OC lead | Last updated | Reason for inclusion |
|---|---|---|---|
| [slug] | [lead] | [date] | [stale / upcoming deadline / --all / --slug] |

## Skipped

| Matter | Reason |
|---|---|
| [slug] | recent update (last touched [date]) |
| [slug] | no OC email in log — update with `/matter-update [slug]` |

## Anomalies

- Matters without outside counsel assigned: [list — if any are high/critical risk, flagged]
- Matters with outside counsel but no email in log: [list]

调度

该技能设计为每周运行。自动调度需要计划任务集成,该集成未随插件捆绑。要每周运行,请设置重复提醒来调用 /litigation-legal:oc-status,例如日历上的周一早上。

临时使用:随时 /oc-status;单案件使用 /oc-status --slug=foo。

适用场景

  • 法务团队需要每周向多个外部律师发送状态询问邮件
  • 案件数量在 5 至 15 个之间,内容结构重复
  • 希望统一语气、签署人和预算姿态
  • 需要 Gmail 草稿自动创建(在 MCP 可用时)

限制

  • 不发送邮件,仅生成草稿,由律师审核并发送。
  • 不生成其没有的内容。若 matter.md 内容单薄,邮件就简短并询问宽泛的状态问题;技能不会凭空编造具体问题。
  • 不重试失败。若 Gmail 草稿创建在运行中途失败,技能记录失败并继续生成 markdown;用户可在修复认证后重试。
  • 不重写 history.md,仅读取作为上下文;若外部律师回复带来新事件,使用 /matter-update [slug] 记录。
  • 不强制最低模板。若本所语气是“一行、直呼其名、结束”,草稿会遵循该风格并跳过要点结构,匹配 ~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md。
  • 自动调度需要未捆绑的计划任务集成。