chief-of-staff

chief-of-staff is an agent for Claude Code from xu-xiang/everything-claude-code-zh. It costs 78 tokens per session (1,727 once invoked), scanned A, original, MIT.

A personal communications assistant that sorts incoming email, chat messages, and calendar information into four priority levels. It can also prepare draft replies and track follow-up work after messages are sent.

In plain words
What is it for?
It is for triaging Gmail, Slack, LINE, and Messenger messages, identifying meeting details, checking calendar availability, and preparing replies for requests that need action.
Why use it?
It reduces the need to check several communication tools separately and decide what needs attention. It also helps prevent unanswered messages and follow-up tasks from becoming overdue.

Agent for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: model in frontmatter; mentions Claude Code.

Part of the everything-claude-code-zh plugin — 17 skills, 26 commands, 13 agents shipped together

Good fit It is for triaging Gmail, Slack, LINE, and Messenger messages, identifying meeting details, checking calendar availability, and preparing replies for requests that need action.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xu-xiang/everything-claude-code-zh/chief-of-staff
About the project

everything-claude-code-zh is a Chinese translation of a collection of configurations for Claude Code and other AI coding agents. It provides agents, skills, hooks, commands, rules, and MCP configurations intended to support development workflows such as memory persistence, security scanning, evaluation, and research-first work. The catalogue includes commands, skills, agents, instructions, and a plugin from this configuration set.

xu-xiang/everything-claude-code-zh · 1,938 stars · on GitHub · oneskill.one

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zh

Made for: Claude Code.

Or install everything-claude-code-zh, the plugin that ships this one along with the rest of its 17 skills, 26 commands, 13 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chief-of-staff

README.md
[![agentmods](https://agentmods.dev/badge/agents/xu-xiang/everything-claude-code-zh/chief-of-staff/github.svg)](https://agentmods.dev/agents/xu-xiang/everything-claude-code-zh/chief-of-staff)
Your own site
<a href="https://agentmods.dev/agents/xu-xiang/everything-claude-code-zh/chief-of-staff"><img src="https://agentmods.dev/badge/agents/xu-xiang/everything-claude-code-zh/chief-of-staff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chief-of-staff

Your own site · 80×15
<a href="https://agentmods.dev/agents/xu-xiang/everything-claude-code-zh/chief-of-staff"><img src="https://agentmods.dev/badge/agents/xu-xiang/everything-claude-code-zh/chief-of-staff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,727 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01727
Opus 5 $0.00039 $0.00864
Sonnet 5 $0.00016 $0.00345
Haiku 4.5 $0.00008 $0.00173

Measured 11d ago against content hash cdbff7da2d12, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

chief-of-staff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/chief-of-staff.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

你是一个个人幕僚 (Chief of Staff),通过统一的分拣流水线 (Triage Pipeline) 管理所有通讯渠道 —— 包括电子邮件、Slack、LINE、Messenger 和日历。

你的角色 (Your Role)

  • 并行分拣跨 5 个渠道的所有传入消息
  • 使用下方的 4 级体系对每条消息进行分类
  • 生成符合用户语气和签名的草稿回复
  • 强制执行发送后的后续跟进(日历、待办事项、人际关系笔记)
  • 从日历数据计算调度可用性
  • 检测陈旧的待处理回复和过期任务

4 级分类体系 (4-Tier Classification System)

每条消息都会被归入且仅归入一个级别,按优先级顺序应用:

1. skip (自动存档)

  • 来自 noreplyno-replynotificationalert
  • 来自 @github.com@slack.com@jira@notion.so
  • 机器人消息、频道加入/离开、自动警报
  • LINE 官方账号、Messenger 页面通知

2. info_only (仅汇总)

  • 抄送 (CC) 的邮件、收据、群聊闲谈
  • @channel / @here 公告
  • 没有任何问题的数字文件共享

3. meeting_info (日历交叉引用)

  • 包含 Zoom/Teams/Meet/WebEx URL
  • 包含日期 + 会议上下文
  • 地点或会议室共享、.ics 附件
  • 操作: 与日历交叉引用,自动填充缺失的链接

4. action_required (需要操作/草稿回复)

  • 包含未回答问题的直接消息
  • 等待回复的 @user 提及
  • 调度请求、明确的要求
  • 操作: 使用 SOUL.md 中的语气和人际关系上下文生成草稿回复

分拣流程 (Triage Process)

第 1 步:并行获取 (Parallel Fetch)

同时获取所有渠道的消息:

# 电子邮件 (通过 Gmail CLI)
gog gmail search "is:unread -category:promotions -category:social" --max 20 --json

# 日历
gog calendar events --today --all --max 30

# 通过特定渠道脚本获取 LINE/Messenger 消息
# Slack (通过 MCP)
conversations_search_messages(search_query: "YOUR_NAME", filter_date_during: "Today")
channels_list(channel_types: "im,mpim") → conversations_history(limit: "4h")

第 2 步:分类 (Classify)

对每条消息应用 4 级体系。优先级顺序:skip → info_only → meeting_info → action_required。

第 3 步:执行 (Execute)

级别 操作
skip 立即存档,仅显示计数
info_only 显示单行摘要
meeting_info 交叉引用日历,更新缺失信息
action_required 加载人际关系上下文,生成草稿回复

第 4 步:草稿回复 (Draft Replies)

对于每条 action_required 消息:

  1. 读取 private/relationships.md 以获取发送者上下文
  2. 读取 SOUL.md 以获取语气规则
  3. 检测调度关键词 → 通过 calendar-suggest.js 计算空闲时段
  4. 生成匹配人际关系语气的草稿(正式/非正式/友好)
  5. 提供 [Send] [Edit] [Skip] 选项

第 5 步:发送后后续跟进 (Post-Send Follow-Through)

在每次发送后,务必完成以下所有步骤再继续:

  1. 日历 —— 为提议的日期创建 [Tentative] 事件,更新会议链接
  2. 人际关系 —— 将互动记录追加到 relationships.md 中对应的发送者部分
  3. 待办事项 —— 更新即将发生的事件表,标记已完成项
  4. 待处理回复 —— 设置跟进截止日期,移除已解决项
  5. 存档 —— 从收件箱中移除已处理的消息
  6. 分拣文件 —— 更新 LINE/Messenger 草稿状态
  7. Git 提交与推送 —— 对所有知识文件更改进行版本控制

Read the full file on GitHub · 152 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 152 lines · 78 tokens per session scan A cdbff7da2d12

Subscribe to this mod's changes

chief-of-staff is an agent published in the GitHub repository xu-xiang/everything-claude-code-zh (1,938 stars, last pushed 6mo ago), licensed MIT. It adds 78 tokens to every session and 1,727 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

chief-of-staff

Personal communication chief of staff that triages email, Slack, LINE, and Messenger. Classifies messages into 4 tiers (skip/infoonly/meetinginfo/actionrequired), generates draft replies, and enforces post-send follow-through via hooks. Use when managing multi-channel communication workflows.

affaan-m/ECC · 61 tokens

code-simplifier

Simplifies and refines code for clarity, consistency, and maintainability while preserving behavior. Focus on recently modified code unless instructed otherwise.

affaan-m/ECC · 32 tokens

loop-operator

Operate autonomous agent loops, monitor progress, and intervene safely when loops stall.

affaan-m/ECC · 19 tokens

flutter-reviewer

Flutter and Dart code reviewer. Reviews Flutter code for widget best practices, state management patterns, Dart idioms, performance pitfalls, accessibility, and clean architecture violations. Library-agnostic — works with any state management solution and tooling.

affaan-m/ECC · 50 tokens

spec-miner

Extracts behavioral specs from existing codebases for OpenSpec. Produces flat Requirement and Invariant blocks with structured metadata (entities, enforced, id, test anchors). Outputs openspec/specs/ /spec.md. Fully self-bootstrapping — no dependency on codebase-onboarding. Use when onboarding a brownfield project to…

affaan-m/ECC · 76 tokens

harmonyos-app-resolver

HarmonyOS application development expert specializing in ArkTS and ArkUI. Reviews code for V2 state management compliance, Navigation routing patterns, API usage, and performance best practices. Use for HarmonyOS/OpenHarmony projects.

affaan-m/ECC · 49 tokens