张汉洞/agent-spec 是从 https://github.com/zhanghandong/agent-spec. 导入的特工技能候选人。
概览
张汉洞/agent-spec 是从 https://github.com/zhanghandong/agent-spec. 导入的特工技能候选人。
概述(AI 翻译)
agent-spec 是一个意图编译器(意图编译器) 用于人工智能代理编码的编译器:它编译
人类意图——通过结构化需求作为中间表征
(IR)——转换为可验证的任务合同,然后机械地验证其实施
对抗它们。BDD/规范验证是该编译器的后端。
合辑流程:
- 意图(PRD、问题、对话)被捕捉为结构化的需求——IR
- 任务合同以下的需求——可验证的目标
- 代理对合同进行实现;机器验证代码是否满足该合同
- 活体追踪 事后保持汇编知识的完整性
核心审查循环保持简单:人工审核合同,代理人执行 机器会根据合同验证代码是否满足合同。
架构:意图编译器
当前的流程如下;需求治理的详细合同, 代码图 IR、意图-代码链接器、质量规划和执行包 住在
docs/intent-compiler/architecture.md。
人工智能只参与边缘工作——起草候选人需求并执行 合同。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
agent-spec
agent-spec is an intent compiler(意图编译器) for AI agent coding: it compiles
human intent — through structured requirements as the intermediate representation
(IR) — into verifiable Task Contracts, then mechanically verifies the implementation
against them. BDD/spec verification is the backend of that compiler.
The compilation pipeline:
- intent (PRDs, issues, conversations) is captured as structured requirements — the IR
- requirements lower into Task Contracts — the verifiable target
- agents implement against the contract; the machine verifies the code satisfies it
- liveness tracing keeps compiled knowledge honest after the fact
The core review loop stays simple: humans review the contract, agents implement against the contract, the machine verifies whether the code satisfies the contract.
Architecture: the Intent Compiler
Current pipeline below; the detailed contracts for Requirement Governance, Code Graph IR, Intent-Code Linker, Quality Planning, and Execution Bundles live in
docs/intent-compiler/architecture.md.
flowchart TD
subgraph SRC["源 · Human Intent"]
A["PRD · Issues · 对话"]
end
subgraph FE["前端 · Intake"]
B["agent-spec-intent-compiler skillAI drafts Candidate Requirement Blocks,a human reviews and accepts"]
C["agent-spec requirements importdeterministic — marked blocks or YAML dialect"]
CG{"Requirement Governance Gateproposed → accepted / rejected"}
end
subgraph IR["中间表示 · Requirement IR"]
D["accepted knowledge/requirements/*.mdREQ-* clauses · MUST / SHOULD / MAY"]
E["lint-knowledge --gateEARS · ISO-29148 · governance"]
F["requirements graph --gatedependency DAG validation"]
end
subgraph PIR["程序中间表示 · Code Graph IR"]
P["Language code-intelligence providersRust Atlas · F1 adapter kit · future F2 providers"]
PG["derived project graphsymbols · impls · references · calls"]
P --> PG
end
subgraph ME["中端 · Lowering & Planning"]
G["requirements work-unitsexecutable or blocked units"]
X["Code Grounding / Intent-Code LinkerREQ × work-unit × code bindings"]
K["Task Contracts (specs/*.spec.md)satisfies: REQ-* · Boundaries · Symbols"]
H["requirements plan --gateREQ × work-unit × spec DAGtyped code bindings"]
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add zhanghandong/agent-spec