ai-court

ai-court is a skill for Claude Code, Codex from wanikua/danghuangshang. It costs 20 tokens per session (511 once invoked), scanned A, original, MIT.

A multi-agent collaboration system organized around the structure of a historical Chinese government. Different AI agents take roles in a chosen system and communicate through Feishu or Discord.

In plain words
What is it for?
Use it to set up an agent organization, choose a governing model, connect an instant-messaging platform, check the installation, and start the system.
Why use it?
It provides a defined way to divide work among several agents instead of coordinating every role manually.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to set up an agent organization, choose a governing model, connect an instant-messaging platform, check the installation, and start the system.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wanikua/danghuangshang/ai-court-skill
About the project

danghuangshang is a multi-agent collaboration system that organizes specialized AI agents into a hierarchy modeled on historical Chinese government institutions. Users delegate tasks to these agents through platforms such as Discord or Feishu, with roles for coordination, coding, review, memory, and automation. Its catalogue entries are the project's agents and skills.

wanikua/danghuangshang · 2,715 stars · on GitHub · danghuangshang.com

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 wanikua/danghuangshang --skill ai-court-skill
Clone the repo
git clone --depth 1 https://github.com/wanikua/danghuangshang

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 ai-court

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wanikua/danghuangshang/ai-court-skill"><img src="https://agentmods.dev/badge/skills/wanikua/danghuangshang/ai-court-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 511 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00020 $0.00511
Opus 5.5 $0.00008 $0.00204
Sonnet 5.5 $0.00004 $0.00102
Haiku 4.5 $0.00002 $0.00051

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

Security

Grade A, and why

ai-court 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/doctor.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/ai-court-skill/SKILL.md · 90 lines

What it actually says

AI Court | 当皇上

一行命令起王朝,三省六部皆 AI。

安装

clawdhub install ai-court

使用

1. 选择制度

明朝内阁制(推荐):

cd ~/.openclaw && cp -r clawd/skills/ai-court/configs/ming-neige/* .

唐朝三省制:

cd ~/.openclaw && cp -r clawd/skills/ai-court/configs/tang-sansheng/* .

现代企业制:

cd ~/.openclaw && cp -r clawd/skills/ai-court/configs/modern-ceo/* .

2. 选择 IM 平台

飞书(国内推荐)⭐
cd ~/.openclaw && cp -r clawd/skills/ai-court/configs/feishu/* .

配置飞书凭证:

  • App ID 和 App Secret
  • 详见 references/feishu-setup.md
Discord(国际推荐)
cd ~/.openclaw && cp -r clawd/skills/ai-court/configs/ming-neige/* .

配置 Discord Bot Token:

  • 详见 references/discord-setup.md

3. 配置 API Key

{
  "models": {
    "providers": {
      "dashscope": {
        "apiKey": "sk-your-api-key"
      }
    }
  }
}

4. 验证安装

bash clawd/skills/ai-court/scripts/doctor.sh

5. 启动

openclaw start

IM 平台对比

平台 适用场景 优势
飞书 国内用户、企业团队 无需翻墙、WebSocket 长连接
Discord 国际用户、开源社区 功能强大、机器人生态好

链接

GitHub: https://github.com/wanikua/ai-court-skill

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. 3mo ago First seen · 90 lines · 20 tokens per session scan A 991d6cd1a522

Subscribe to this mod's changes

ai-court is a skill published in the GitHub repository wanikua/danghuangshang (2,715 stars, last pushed 6mo ago), licensed MIT. It adds 20 tokens to every session and 511 once invoked, about $0.0001 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-08-30.

Related

ai-court compared with skills from other repositories

ai-court next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-courtwanikua/danghuangshangSkill2.7k6mo agoMITA20Claude Code, Codex
setup-discord-multibotLihan-Zhong/claude-code-discord-multibotSkill5yesterdayMITC179Claude Code
kimaki-debugremorses/kimakiSkill1.5kyesterdayMITA95Claude Code, Codex
kimaki-tunnelremorses/kimakiSkill1.5kyesterdayMITA91Claude Code, Codex
switchsandbox-quantum/switchSkill4.9ktodaynoneA135Claude Code, Codex
npm-packageremorses/kimakiSkill1.5kyesterdayMITC78Claude Code, Codex
new-skillremorses/kimakiSkill1.5kyesterdayMITC61Claude Code, Codex