Skills / 插件

The Polyglot Protocol|面向多语言项目的编码 Agent 工程规范技能

The Polyglot Protocol

一套可移植的 Skill,为 Codex、Claude Code、OpenCode 等编码 Agent 提供多语言项目的仓库勘察、语言选型、依赖、测试、安全与最终验证规范。

获取与使用

需要部署

按官方资料自行安装或部署

使用难度待核验
国内可用性待核验

2026-11-09 更新 · 本站尚未实测

项目介绍

Skills / 插件 · 2026-11-09 更新 · 本站尚未实测

The Polyglot Protocol 是一套面向“多语言代码库”的工程协议,以可移植 Skill 的形式分发,用于 Codex、Claude Code、OpenCode 以及其他支持 Skill 的编码 Agent。README 明确说明:它是 protocol,不是 framework,不替代 Agent 运行时、命令系统、规划器或编排层,而是规定这些系统应遵循的工程标准。

它要解决的问题是:编码 Agent 往往写得快,但会猜测 API、忽略仓库既有约定、选错语言、随意加依赖、跳过验证。该项目把这些环节写成可复用的规则,让 Agent 在生成代码前先做仓库勘察,并遵守既有语言、框架与项目模式。

核心能力

点击能力名称查看输入、输出和原文依据。

  • 仓库勘察优先:要求 Agent 先检查仓库,再决定实现路径。
  • 语言选型规则:docs/language-guidelines.md 给出语言选择与默认脚本策略;运维类脚本默认 Python,除非项目已有更合适的原生脚本运行方式。
  • 22 种语言的独立指引:覆盖 Bash、C、C#、C++、CSS、Dart、Go、HTML、Java、JavaScript、Kotlin、Lua、PHP、Python、R、Ruby、Rust、Shopify Liquid、SQL、Swift、TypeScript、Zig;每门语言另有面向人阅读的 readme.md 解释质量与准确性决策。
  • 依赖与安全约束:新增依赖需说明理由、核对版本并做风险审查;验证不适用时须标记为 N/A 并给出依据。
  • 工作流文档:docs/workflow/dev-workflow.md 规定规划、审计、验证与 N/A 规则。
  • 本地校验脚本:scripts/validate-workspace.py 用于完整本地验证,README 给出的预期输出为语言文件 22、语言说明 22、运行文件 11、评分 100/100。
  • 适配器:adapters/ 下含 Codex、Claude Code、OpenCode 的轻量指引与说明文件。

实际应用场景

适用场景

适合:跨多语言、多框架或多运行时工作;用编码 Agent 写生产代码而非一次性原型;希望统一验证、安全、测试与评审标准;已在用 Codex、Claude Code、OpenCode 或自建 Agent 工作流。

不适合:想要一个全自动 Agent 框架;不在意生成代码是否符合仓库既有约定;只做无需验证的临时原型。README 还给出一个自测方法:让 Agent 改一个多语言真实项目,检查它是否先勘察仓库、是否保留既有约定、是否编造 API 或包名、是否说明新增依赖理由、是否运行了正确验证。

安装与接入

README 说明可直接把 skill 文件夹用于支持本地 skill 目录的 Agent,或把对应适配器复制到目标 Agent 期望的指引位置。其给出的安装命令为(原文,按 Agent 区分):

Codex:

git clone https://github.com/sabir-gbs/the-polyglot-protocol.git /tmp/the-polyglot-protocol && python /tmp/the-polyglot-protocol/scripts/install-skill.py --agent codex --force

Claude Code:

git clone https://github.com/sabir-gbs/the-polyglot-protocol.git /tmp/the-polyglot-protocol && python /tmp/the-polyglot-protocol/scripts/install-skill.py --agent claude-code --force

OpenCode:

git clone https://github.com/sabir-gbs/the-polyglot-protocol.git /tmp/the-polyglot-protocol && python /tmp/the-polyglot-protocol/scripts/install-skill.py --agent opencode --force

自定义位置:

git clone https://github.com/sabir-gbs/the-polyglot-protocol.git /tmp/the-polyglot-protocol && python /tmp/the-polyglot-protocol/scripts/install-skill.py --target ~/path/to/skills/the-polyglot-protocol --force

校验工作区:

python scripts/validate-workspace.py

注意:上述命令依赖 Python 与 Git,README 未声明具体 Python 版本要求;各 Agent 对 skill 目录的实际识别路径以其官方文档为准,待核验。README 未提供 MCP 接入方式,仓库 releases 与 MCP 配置文件本次采集失败。

使用条件与限制

是否需要部署
需自行准备运行环境,具体要求见正文
是否需要注册
账号和认证要求见正文;未明确说明的项目仍待核验
是否需要 API Key
待核验
费用与额度
费用边界见正文,项目许可不代表模型或托管服务免费
所需权限
待核验
许可证与服务条款
待核验

权限费用与限制

  • 项目本身是规则与文档集合,不托管模型服务;使用时仍需自备对应编码 Agent 与模型账户,费用取决于所用 Agent 或模型供应商,待核验。
  • 安装脚本带 --force 参数,可能覆盖目标目录中的既有 skill 文件,执行前需确认目标路径。
  • 校验脚本运行于本地工作区,其权限范围取决于运行用户权限。
  • README 声明评分 100/100 属于项目自述状态,非第三方实测。
  • 项目未提供安全审计报告、性能基准或对国内网络环境的兼容性说明,相关结论待核验。

国内使用情况

网友核验 用户经验分享

与站长实测独立,不代表官方认证或本站已实测。

我要核验
0 位参与者0 份有效分项记录

最近核验:暂无有效核验。参与人数按当前项目有效身份去重;不同核验项分别统计,不合并成用户总结果。仅统计审核通过且未过期的记录。

分项统计、有效期与样本量
核验项目有效人数成功 / 部分 / 失败 / 无法判断成功率最近核验 / 有效期
官方网站访问00 / 0 / 0 / 0样本不足暂无 / 7 天
GitHub 仓库访问00 / 0 / 0 / 0样本不足暂无 / 7 天
安装与运行00 / 0 / 0 / 0样本不足暂无 / 30 天
官方服务国内连接 / MCP 连接00 / 0 / 0 / 0样本不足暂无 / 30 天
国内网络情况00 / 0 / 0 / 0样本不足暂无 / 7 天
国内模型兼容性00 / 0 / 0 / 0样本不足暂无 / 30 天
自定义 API00 / 0 / 0 / 0样本不足暂无 / 30 天
海外服务依赖
00 / 0 / 0 / 0样本不足暂无 / 30 天
海外账号要求
00 / 0 / 0 / 0样本不足暂无 / 30 天
中文界面
00 / 0 / 0 / 0样本不足暂无 / 30 天
客户端兼容性00 / 0 / 0 / 0样本不足暂无 / 30 天
账号及费用信息
00 / 0 / 0 / 0样本不足暂无 / 30 天

成功率 = 成功 ÷(成功 + 部分成功 + 失败);无法判断不计入分母。至少 5 份可判断结果才显示成功率。账号、费用、海外依赖与语言等事实项,成功表示核查结论与资料吻合,具体观察另行统计;不表示免费或没有海外依赖。不同网络、客户端和版本的结果不能直接等同。

最近有效核验

暂无审核通过且未过期的网友核验。欢迎提交真实使用记录。

查看全部有效核验 →

国内实测状态:国内可用性待核验。协议兼容和官方资料说明不等于国内网络可用。

官方网站访问
尚未实测 待核验
GitHub 仓库访问
尚未实测 待核验
官方服务国内连接
尚未实测 待核验
国内网络情况
尚未实测 待核验
国内模型兼容性
尚未实测 待核验
自定义 API
尚未实测 待核验
海外服务依赖
尚未实测 待核验
海外账号要求
尚未实测 待核验
中文界面
尚未实测 待核验
国内最后核验时间
尚未实测

许可与国内使用

仓库以 Apache License 2.0 授权,版权声明为 “Copyright (C) 2026 Growth by Sabir Inc.”,README 与 license.md 均写明允许商业与非商业使用,须遵守许可证条款(保留版权与许可声明、修改文件须标注等)。GitHub 元数据的 license 字段显示为 “Other/NOASSERTION”,与文件内容中的 Apache-2.0 声明存在差异,建议以仓库内 license.md 为准并人工复核。许可证仅覆盖本仓库代码与文档,不涉及第三方 Agent、模型或云服务。国内网络下克隆 GitHub、调用境外模型服务的可用性与合规性未在资料中说明,待核验。

项目资料与来源

官方网站 ↗

GitHub 仓库 ↗

官方文档 ↗

字段依据与待核验事项

access:来源确认 · git clone https://github.com/sabir-gbs/the-polyglot-protocol.git /tmp/the-polyglot-protocol && python /tmp/the-polyglot-protocol/scripts/install-skill.py --agent codex --force

project_type:来源确认 · This project packages a portable skill for Codex, Claude Code, OpenCode, and

原始 README(折叠技术参考)
# The Polyglot Protocol

![The Polyglot Protocol featured graphic](assets/polyglot-protocol-featured.png)

A senior-engineer protocol for polyglot code generation (codebases that span
multiple programming languages, frameworks, or runtimes), architecture,
testing, security, performance, and agent validation.

This project packages a portable skill for Codex, Claude Code, OpenCode, and
other skill-capable coding agents. It helps agents make disciplined coding
decisions across languages without inventing APIs, skipping repository
discovery, overengineering, or ignoring validation.

The Polyglot Protocol is a protocol, not a framework: it does not replace an
agent runtime, command system, planner, or orchestration layer. Instead, it
defines the engineering standards those systems should follow. Frameworks such
as OAC Framework and other agent-control systems can use it as a complementary
quality layer for language choice, repository discovery, dependency discipline,
testing, security, validation, and final review.

## The Problem

Most coding agents can write code quickly, but speed is not the same as
engineering judgment. In polyglot projects (projects that use multiple
programming languages, frameworks, or runtimes), agents often guess at APIs,
ignore repository conventions, choose the wrong language for the job, add
unnecessary dependencies, skip validation, or produce code that looks plausible
but fails under review.

Without explicit guardrails, LLMs and coding agents do a lot of guesswork. Some
models guess well enough to get by. Others burn tokens chasing dead ends:
invented package names, unsupported flags, stale API assumptions, mismatched
framework patterns, or fixes that solve the wrong problem.

That problem compounds across languages and tools. A useful agent has to know
when to preserve TypeScript patterns, when an operational script should be
Python, when SQL needs parameterized queries and rollback notes, when
platform-native code is required, and when a missing test, unsafe dependency, or
unsupported toolchain is a hard stop.

Without a protocol, every agent session becomes a one-off negotiation. You
spend time re-explaining standards, correcting invented behavior, tightening
vague plans, and asking for the validation the agent should have run already.

## The Solution

The Polyglot Protocol gives coding agents a portable senior-engineer operating
standard before they generate code.

It tells agents how to inspect the repository, preserve existing conventions,
choose the right language, verify current tooling, avoid invented APIs,
document risk, handle unsupported checks honestly, and validate the result
before calling work complete.

The result is not a new agent framework. It is the quality layer you can place
inside the tools and frameworks you already use: Codex, Claude Code, OpenCode,
OAC Framework, custom agent workflows, or team-specific automation.

Frameworks control the workflow. The Polyglot Protocol controls the engineering
bar.

## Why Use A Protocol?

| Without A Protocol | With The Polyglot Protocol |
|---|---|
| Agents guess at APIs and flags | Agents verify before relying on tools or APIs |
| Generic code ignores repository conventions | Code follows existing language, framework, and project patterns |
| Language and runtime choices drift | Language choice follows documented decision rules |
| Validation is skipped or vague | Validation is required, and unsupported checks are marked `N/A` with evidence |
| Dependencies get added casually | Dependencies require justification, version checks, and risk review |
| Every session needs the same standards explained again | Standards are portable and reusable across agents |

## How It Works

```text
Your coding request
↓
Repository discovery
↓
Language and framework decision rules
↓
Security, dependency, and validation guardrails
↓
Agent implementation
↓
Protocol audit and final verification
```

## Best Used With Agent Frameworks

The Polyglot Protocol does not replace frameworks such as OAC Framework,
OpenCode workflows, Claude Code plugins, or custom agent systems. It gives
those systems a stronger engineering standard to follow.

Use your framework for orchestration, commands, approvals, and agent routing.
Use The Polyglot Protocol for language choice, dependency discipline,
repository conventions, validation, security, and final review.

## Is This For You?

Use The Polyglot Protocol if you:

- Work across multiple languages, frameworks, or runtimes.
- Use coding agents for production code, not just prototypes.
- Want agents to stop guessing at APIs, dependencies, and project conventions.
- Need repeatable validation, security, testing, and review expectations.
- Already use Codex, Claude Code, OpenCode, OAC Framework, or custom agent
  workflows.

Skip it if you:

- Only want a fully autonomous agent framework.
- Do not care whether generated code follows existing repository conventions.
- Are experimenting with throwaway prototypes where validation does not matter.

## Try This Test

Ask your coding agent to modify a real project that uses more than one language
or framework. Then check:

- Did it inspect the repository before choosing an approach?
- Did it preserve existing conventions?
- Did it invent any APIs, flags, package names, or config keys?
- Did it justify new dependencies?
- Did it run the right validation?
- Did it explain unsupported checks honestly?

If you have to ask for these things manually, you need a protocol.

## What It Includes

- `SKILL.md`: skill entrypoint
- `docs/languages/`: individualized guidance for 22 languages
- `docs/languages/<language>/readme.md`: human-readable quality,
  completeness, and accuracy decisions for each language
- `docs/language-guidelines.md`: language selection and default-script policy
- `docs/workflow/dev-workflow.md`: planning, audit, validation, and `N/A` rules
- `scripts/validate-workspace.py`: full local validation
- `adapters/`: lightweight guidance and human-readable README files for Codex,
  Claude Code, and OpenCode

## Quick Start

Use the skill folder directly from an agent that supports local skill folders,
or copy the relevant adapter into the target agent's expected guidance location.

## One-Line Install

Codex:

```sh
git clone https://github.com/sabir-gbs/the-polyglot-protocol.git /tmp/the-polyglot-protocol && python /tmp/the-polyglot-protocol/scripts/install-skill.py --agent codex --force
```

Claude Code:

```sh
git clone https://github.com/sabir-gbs/the-polyglot-protocol.git /tmp/the-polyglot-protocol && python /tmp/the-polyglot-protocol/scripts/install-skill.py --agent claude-code --force
```

OpenCode:

```sh
git clone https://github.com/sabir-gbs/the-polyglot-protocol.git /tmp/the-polyglot-protocol && python /tmp/the-polyglot-protocol/scripts/install-skill.py --agent opencode --force
```

Custom location:

```sh
git clone https://github.com/sabir-gbs/the-polyglot-protocol.git /tmp/the-polyglot-protocol && python /tmp/the-polyglot-protocol/scripts/install-skill.py --target ~/path/to/skills/the-polyglot-protocol --force
```

Validate the project:

```sh
python scripts/validate-workspace.py
```

Expected result:

```text
language guidance validation: PASS
language files: 22
language readmes: 22
operational files: 11
score: 100/100
workspace validation: PASS
```

## Language Coverage

Bash, C, C#, C++, CSS, Dart, Go, HTML, Java, JavaScript, Kotlin, Lua, PHP,
Python, R, Ruby, Rust, Shopify Liquid, SQL, Swift, TypeScript, and Zig.

## Core Principles

- Preserve existing repository conventions.
- Default operational scripts to Python unless the project already has a better
  native script runner.
- Use platform-native languages for product surfaces.
- Prefer the shortest reliable supported path.
- Verify dependency, runtime, and API claims from local code or official docs.
- Treat unsupported checks as explicit `N/A` items with evidence.

## Human-Readable Decision Guides

Each language has a dedicated README folder, for example:

- `docs/languages/python/readme.md`
- `docs/languages/typescript/readme.md`
- `docs/languages/rust/readme.md`

These README files summarize the decisions that control codegen quality,
completeness, and accuracy. The full enforceable rules remain in the matching
top-level language file such as `docs/languages/python.md`.

Each coding environment adapter also has a README:

- `adapters/codex/readme.md`
- `adapters/claude-code/readme.md`
- `adapters/opencode/readme.md`

## Project Status

Current validation score: `100/100`.

See `docs/languages/score-report.md` for the score report and
`docs/languages/scoring-rubric.md` for the rubric.

## License

Copyright (C) 2026 Growth by Sabir Inc.

Licensed under the Apache License, Version 2.0 (`Apache-2.0`). Commercial and
non-commercial use are permitted under the license terms.
历史前置条件说明(补充参考)

需要 Git 与 Python(具体版本待核验)以执行安装与校验脚本;需要一个支持 skill 的编码 Agent(如 Codex、Claude Code、OpenCode);模型或 Agent 账户与费用由使用者自备,价格待核验;无需单独 API Key 的资料说明,待核验;仓库克隆依赖 GitHub 访问,国内网络可用性待核验。

项目来源与清单版权许可

https://github.com/sabir-gbs/the-polyglot-protocol

整理来源:https://github.com/slavakurilyak/awesome-ai-agents

清单版权与许可:

MIT License

Copyright (c) 2024 Slava Kurilyak

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.