
zhanghandong/agent-spec
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
張漢洞/エージェントスペックは、https://github.com/zhanghandong/agent-spec.からインポートされたエージェントスキル候補です。
概要
張漢洞/エージェントスペックは、https://github.com/zhanghandong/agent-spec.からインポートされたエージェントスキル候補です。
概要(AI 翻訳)
agent-spec は AI エージェントコーディングのための 意図コンパイラ(意图编译器) です。これは
人間の意図 — 中間表現としての構造化された要件を通じた
(IR)—検証可能なタスク契約に変換し、その後機械的に実装を検証します
彼らに対して。BDD/スペック検証はそのコンパイラのバックエンドです。
コンピレーションのパイプライン:
- 意図(PRD、問題、会話)は構造化された要件として捉えられます — IR
- タスク契約の下位にある要件 — 検証可能な目標
- エージェントが契約に反して実装する;機械がコードがそれを満たしているか検証する。
- ライブネストレース は、蓄積された知識を事後的に正直に保つ
基本的なレビューループはシンプルです。人間が契約を確認し、エージェントが実行します 契約に対して、機械はコードが契約を満たしているかどうかを確認します。
アーキテクチャ:意図コンパイラ
以下の現在のパイプライン;要件ガバナンスに関する詳細な契約書、 コードグラフIR、インテントコードリンカー、品質計画、実行バンドル
docs/intent-compiler/architecture.mdに住んでいます。
AIは候補者要件の作成や実施の端にしか関与しません 契約。
このページは 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