Four Color Cards logo

Four Color Cards

CommunityPopular
anbeime
four-color-cards

基于解析后的文档与用户意图,生成四色卡片——事实蓝卡、解释绿卡、风险黄卡、行动红卡,是八官署方法论的核心分析输出。

Overview

Publisheranbeime
Repositoryskill
Skill namefour-color-cards
Stars
6.9K
Forks
645
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by anbeime on GitHub. Read the source before you install it.

Installation

Install the Four Color Cards AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/anbeime/skill.git /tmp/skill
mkdir -p .claude/skills
cp -r /tmp/skill/antinet-agentteams/skills/four-color-cards .claude/skills/four-color-cards
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Four Color Cards in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Four Color Cards on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Four Color Cards is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

四色卡片生成 Skill(通政司 + 监察院 + 丞相府)

使用方式

  • 由通政司 Worker 主调用,生成蓝卡(事实)/ 绿卡(解释)。
  • 黄卡(风险)交由监察院复核过度声明;红卡(行动)交由丞相府补全策略建议。
  • 四卡片统一经太史阁留痕,保证每张卡片可溯源。

输入(Input)

  • markdown:密卷房解析产出的结构化文档
  • intent:用户意图 / 查询目标
  • llm_available:LLM 是否可用(影响黄卡生成路径)

输出(Output)

  • blue_card:事实卡——可溯源的陈述,附来源片段
  • green_card:解释卡——对事实的机制/背景说明
  • yellow_card:风险卡——过度声明、不确定性与潜在偏差(经监察院复核)
  • red_card:行动卡——下一步建议(经丞相府补全)

依赖(Dependencies)

  • LLM API(生成蓝/绿/红卡)
  • 过度声明检测规则集(监察院提供,用于黄卡)
  • 解析置信度(来自 doc-parse,低置信度触发人工复核标记)

失败处理(Failure Handling)

  • LLM 不可用 → 降级到规则引擎生成卡片,黄卡/红卡显式标注「未启用 LLM」。
  • 监察院复核超时 → 黄卡暂以规则引擎结果交付,并标记 pending_review
  • 来源缺失 → 对应事实在蓝卡中标注「无来源」,不直接生成断言。

复用价值(Reuse Value)

  • 方法论通用:科研分析、金融研报、法律文档分析均可套用四色卡片框架。
  • 可审计性强:每张卡片带来源与生成方式,天然契合 Agent Infra 的可观测/审计评审维度。

复赛代码包执行(runnable package)

  • 真实入口:scripts/run_four_color_cards.py --stage {extract|review|propose}
  • 三个子任务映射:
    • extract → 通政司 comm.tongzhengsi.TongZhengSiAgent(蓝卡:事实抽取)
    • review → 监察院 audit.jichayuan.JianChaYuanAgent(绿卡:Gap/解释)
    • propose → 丞相府 strategy.chengxiangfu.ChengXiangFuAgent(红卡:行动建议)
  • 运行示例:
    • python skills/four-color-cards/scripts/run_four_color_cards.py --stage extract
    • python skills/four-color-cards/scripts/run_four_color_cards.py --stage review
    • python skills/four-color-cards/scripts/run_four_color_cards.py --stage propose
  • 产物:examples/snse_survey/skill_outputs/four_color_<stage>.json
  • 溯源铁律:绿卡 cite 蓝卡、红卡 cite 绿卡/蓝卡,无来源不得入库(由 card_model 强制)。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Four Color Cards AI skill do?

基于解析后的文档与用户意图,生成四色卡片——事实蓝卡、解释绿卡、风险黄卡、行动红卡,是八官署方法论的核心分析输出。

Why use Four Color Cards on TypingMind?

Because you install it once and use it with any model. Four Color Cards is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Four Color Cards in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/anbeime/skill/tree/main/antinet-agentteams/skills/four-color-cards. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Four Color Cards?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Four Color Cards?

As many as you like. As long as a model supports skills, you can use Four Color Cards with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Four Color Cards AI skill free?

It is published on GitHub by anbeime. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇