ZA

zhanghandong/agent-spec

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

464 stars Качество 62 Тренд 8MIT

zhanghandong/agent-spec — это кандидат на навык агента, импортированный из https://github.com/zhanghandong/agent-spec.

Обзор

zhanghandong/agent-spec — это кандидат на навык агента, импортированный из https://github.com/zhanghandong/agent-spec.

Обзор (машинный перевод)

agent-spec — это компилятор intent(意图编译器) для кодирования агентов ИИ: он компилирует человеческое намерение — через структурированные требования как промежуточное представление (IR) — в проверяемые контракты задач, затем механически проверяет реализацию против них. Проверка BDD/спецификаций — это бэкенд этого компилятора.

Конвейер компиляции:

  • intent (PRD, вопросы, разговоры) фиксируется как структурированные requirements — IR
  • требования ниже в Контракты задач — проверяемую цель
  • агенты реализуют по контракту; машина проверяет, что код ему удовлетворяет
  • трассировка живости сохраняет честность собранных знаний после факта

Основной цикл проверки остаётся простым: люди проверяют контракт, агенты реализуют По контракту машина проверяет, соответствует ли код контракту.

Архитектура: компилятор намерений

Текущий конвейер ниже; подробные контракты на управление требованиями, Code Graph IR, linker Intent-Code, Quality Planning и Execution Bundles живу в docs/intent-compiler/architecture.md.

ИИ участвует только на периферии — разрабатывает требования к кандидатам и реализует контракты.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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"]
Открыть полный README на GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add zhanghandong/agent-spec
Новичок в MCP? Начните с руководства на mcpskill.org →