跳到正文
Skillpedia
智能体48k · #5466

polis-protocol-a-self-optimizing-city-of-agents

它能做什么

这个系统让不同的人工智能(智能体,即 agents)协同完成一个长期项目。它们的组织方式像一座城市:每个智能体都有自己的角色,并且会从过往经验中学习,从而不断提升协作效率。

适用场景

  • ✓当你需要多个 AI 共同完成一个复杂项目时。
  • ✓当你想根据各个 AI 的技能,优化由谁来做哪项任务时。
  • ✓当你希望工作流程能随时间自动改进时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/polis-protocol-a-self-optimizing-city-of-agents/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/polis-protocol-a-self-optimizing-city-of-agents/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我们怎样才能让 Claude 和 Gemini 两个 AI 合作,共同写一本关于巴西历史的书?”

每周 5 个新技能,1 分钟读完。

工作原理

这个系统就像一座城市,每个 AI 都是这座城市的一名市民。它们遵守规则(即协议),通过能力卡片介绍自己的技能,接受任务(即合约),并把学到的经验记录在编年史中,让所有成员一起进步。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Bundled upstream support

Supporting files are included at skill-relative paths. See UPSTREAM-NOTICE.md for their pinned sources, licenses, hashes, and import changes.

Polis Protocol: A Self-Optimizing City of Agents

When to Use

Use this skill when you need polis Protocol: A Self-Optimizing City of Agents.

A protocol that lets AI agents from different vendors collaborate on a long-running project, route work to whoever is best at it, and get measurably better over time. Everything lives in a folder of markdown files, so any tool that reads and writes text can participate — no central server, no required runtime.

The core idea

Treat the project as a small polis: citizens (the agents) that share a constitution (the protocol), publish public identities (capability cards), enter contracts (tasks), and leave a public record of how things went (lessons). Three institutions plus a self-change mechanism:

  1. The Register — identity and capability discovery (capability cards).
  2. The Contract — structured tasks with learned routing.
  3. The Chronicle — lessons that compound and feed back into routing.
  4. The Amendment — citizens change the rules when reality demands it.

This buys what shared-vault setups don't: cross-vendor optimization (work goes to whoever is best at it), self-development (routing improves with use), and constitutional evolution (the protocol updates itself from friction). For pure note-passing without routing, prefer agent-vault.

When this skill is active

Any multi-agent scenario where "who should do this" is a real question: founding or joining a polis; writing, claiming, or settling a contract; running a chavruta review; proposing or ratifying an amendment; or diagnosing a stalled contract, sync conflict, router pathology, or stuck quorum. Upgrading from agent-vault → references/troubleshooting.md ("Migrating from agent-vault").

Structure of a polis

A polis lives in a _polis/ folder at the project root; everything outside it is project content the protocol never touches.

  • CONSTITUTION.md — canonical tool-agnostic protocol · index.md — current state · README.md — human explainer
  • chronicle.md — append-only event log
  • citizens/<agent-id>/ — capability_card.yml, status.md, inbox.md, journal.md
  • contracts/open/<id>.md · contracts/settled/<id>.md · contracts/routing_stats.yml (learned policy, updated on settle)
  • lessons/<capability-tag>/<id>.md · reviews/<YYYY-MM-DD-HHMM>-<contract>.md · amendments/proposed|ratified/
  • Project root also gets CLAUDE.md / AGENTS.md / GEMINI.md bridge pointers and .agents/skills/polis-protocol/SKILL.md (Codex/Antigravity copy), all pointing at CONSTITUTION.md.

Citizens link to project files with wikilinks ([[path/to/note]]). The _polis/ folder is the only thing the protocol owns.

The first thing to do every session

Before touching any project file, run the entry routine, in order:

  1. Polis exists? Look for _polis/CONSTITUTION.md. If absent, scaffold it (see "Founding a polis").
  2. You are registered? Look for _polis/citizens/<self>/capability_card.yml. If absent, register (see "Registering a citizen").
  3. Read _polis/CONSTITUTION.md once per session — it is the canonical protocol for this polis; this SKILL.md is the seed it grew from.
  4. Read _polis/index.md — where things stand (a two-minute read).
  5. Read your inbox — _polis/citizens/<self>/inbox.md.
  6. Scan the tail of chronicle.md backward until you reach the last_seen_event: in your status.md. That is your catch-up.
  7. Read your open contracts — anything in _polis/contracts/open/ with owner: <self>.
  8. Update last_seen_event and last_active in your status.md.
  9. Report back to the user — state of the project, what's in flight, what needs their input, a concrete first move.

If chronicle.md has grown large, the rollover policy (references/troubleshooting.md) keeps it bounded.

The chronicle: recording what you did

After each meaningful action, append exactly one line to _polis/chronicle.md. The format is rigid because the router and other citizens parse it:

- YYYY-MM-DD HH:MM | <agent-id> | <verb-phrase> | [[<wikilink>]] | <one-line note or - >
- 2026-05-14 09:15 | codex-frontend-pesaj | settled contract | [[contracts/settled/auth-refactor]] | tests passing, lesson filed

…

常见问题

什么是“智能体”(agents)?

智能体指的是参与项目的每一个独立的人工智能。

什么是“协议”(protocol)?

协议是所有智能体在协作和做决策时都要遵守的一套规则。

AI 如何学习和改进?

它们会记录每项任务中的经验教训,并利用这些信息判断谁最适合承担未来的任务,从而让整个流程更加高效。

详情

作者的原始描述

Polis Protocol: A Self-Optimizing City of Agents

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5466
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能