staffdeck-cli

staffdeck-cli is a skill for Claude Code, Codex from OpenBMB/StaffDeck. It costs 45 tokens per session (2,743 once invoked), scanned A, original, Apache-2.0.

A command-line tool for managing StaffDeck digital employees, standard operating procedure drafts and versions, knowledge bases, documents, and background jobs. A command-line tool is operated by typing commands in a terminal.

In plain words
What is it for?
Use it to manage digital employees, edit or version operating procedures, maintain knowledge bases and documents, and handle asynchronous jobs.
Why use it?
It gives shell-based coding agents a documented way to work with these StaffDeck resources and jobs. The description does not provide details about individual commands.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to manage digital employees, edit or version operating procedures, maintain knowledge bases and documents, and handle asynchronous jobs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openbmb/staffdeck/staffdeck-cli
About the project

StaffDeck is an enterprise platform for creating and managing digital employees that represent professional knowledge, business processes, and decision rules. Organizations use it to automate repetitive work and preserve expertise as reusable digital workers. The catalogue includes skills, agents, rules, and instructions for the platform.

OpenBMB/StaffDeck · 2,376 stars · on GitHub · staffdeck.openbmb.cn

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.

Any agent
npx skills add OpenBMB/StaffDeck --skill staffdeck-cli
Clone the repo
git clone --depth 1 https://github.com/OpenBMB/StaffDeck

Made for: Claude Code, Codex.

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 staffdeck-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/openbmb/staffdeck/staffdeck-cli/github.svg)](https://agentmods.dev/skills/openbmb/staffdeck/staffdeck-cli)
Your own site
<a href="https://agentmods.dev/skills/openbmb/staffdeck/staffdeck-cli"><img src="https://agentmods.dev/badge/skills/openbmb/staffdeck/staffdeck-cli/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 staffdeck-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/openbmb/staffdeck/staffdeck-cli"><img src="https://agentmods.dev/badge/skills/openbmb/staffdeck/staffdeck-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,743 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.00045 $0.02743
Opus 5.5 $0.00018 $0.01097
Sonnet 5.5 $0.00009 $0.00549
Haiku 4.5 $0.00005 $0.00274

Measured 1mo ago against content hash d5a7b13fb247, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

staffdeck-cli 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 1mo 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.

backend/src/staffdeck/skills/staffdeck-cli/SKILL.md · 193 lines

How it starts

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

StaffDeck SOP 与知识库操作

适用目标:让 Codex、PilotDeck(PD)或其他能执行命令的 coding agent,通过 StaffDeck 的公共 API 管理数字员工的 SOP 和知识库。实际命令是 staffdeck-api, 也可用 python -m staffdeck。这里的“SD CLI”不是名为 sd 的可执行文件。 执行引擎在 StaffDeck 服务端;不需要导入后端或访问数据库。

先确认环境和授权

安装 staffdeck-sdk 后先运行 staffdeck-api --help。 由用户配置 STAFFDECK_BASE_URL(例如 http://localhost:5173/api/v1)和 STAFFDECK_API_KEY。管理 SOP/知识库必须使用有管理权限的账号密钥;员工运行密钥 只能调用员工,不能编辑配置。不要尝试通过换路径绕过 403/404。 密钥只通过环境注入,不放在命令参数、文件、聊天或日志里。

staffdeck-api agents list
staffdeck-api agents get --agent-id "$AGENT_ID"
staffdeck-api agents resources --agent-id "$AGENT_ID"
staffdeck-api sops list --agent-id "$AGENT_ID"
staffdeck-api knowledge-bases list --agent-id "$AGENT_ID"

从真实返回值选取 ID,不猜 ID。普通成员仅能修改自己管理的员工。 需要新员工时:printf '{"name":"制度助手"}' | staffdeck-api agents create --json -。 创建后保存响应的 data.id。创建员工不会替用户配置模型供应商。

API 命令 stdout 是 JSON envelope:data、status_code、request_id、etag。 --json FILE 从 UTF-8 文件读取,--json - 从 stdin 读取;不要在命令参数里嵌入敏感正文。 列表通常位于 data.data,不会自动翻页;以响应契约为准。 guide 是本地 Markdown 输出,runs events 是 NDJSON,其他 API 命令是单个 JSON。

知识库:创建 → 导入 → 等待 → 检索 → 修改

printf '{"name":"报销制度","description":"差旅政策","capability_scope":"general"}' |
  staffdeck-api knowledge-bases create --agent-id "$AGENT_ID" --json -

保存 data.id 为 KB_ID。创建知识库会绑定到目标员工。 文本导入 payload 示例(保存为 entries.json):

{"entries":[{"external_id":"travel-policy-1","title":"差旅报销","content":"# 差旅报销\n交通费用可以报销。","source_ref":"内部制度"}]}
staffdeck-api knowledge-bases upsert-entries --agent-id "$AGENT_ID" \
  --knowledge-base-id "$KB_ID" --json entries.json --idempotency-key "$OPERATION_ID"

OPERATION_ID 应由调用方为这一次业务写入生成并保存,不同写入不要共用。 每次最多 100 条;external_id 是来源标识,不保证按该 ID 覆盖已有文档。 修改已入库正文应使用 update-document,不要反复导入来替代更新。

上传文件使用 multipart,单文件最多 20 MiB,格式支持以服务端为准:

staffdeck-api knowledge-bases upload-document --agent-id "$AGENT_ID" \
  --knowledge-base-id "$KB_ID" --file-path policy.md --title "差旅制度"

两种导入都返回 HTTP 202 和 data.id(保存为 JOB_ID),此时尚未完成入库。 上传接口不保证幂等;连接中断后先查询已有任务/文档,不要盲目重新上传。

Read the full file on GitHub · 193 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. 1mo ago First seen · 193 lines · 45 tokens per session scan A d5a7b13fb247

Subscribe to this mod's changes

staffdeck-cli is a skill published in the GitHub repository OpenBMB/StaffDeck (2,376 stars, last pushed yesterday), licensed Apache-2.0. It adds 45 tokens to every session and 2,743 once invoked, about $0.0002 per session on Opus 5.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-10-22.

Related

staffdeck-cli compared with skills from other repositories

staffdeck-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
staffdeck-cliOpenBMB/StaffDeckSkill2.4kyesterdayApache-2.0A45Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k5d agoMITA21Claude Code