Skip to main content

AI Engineering Framework

License Version PRs Welcome

A vendor-neutral engineering workflow, role system, and skill library for AI coding agents.

It keeps engineering rules, specs, ADRs, TDD checks, and platform configurations in one source of truth synced across GitHub Copilot, Google Antigravity, Claude Code, OpenAI Codex, and Gemini CLI.


Core Design

Most multi-tool AI setups drift quickly: rules get copied across CLAUDE.md, AGENTS.md, GEMINI.md, and .github/copilot-instructions.md, and long agent chats drop edge cases between tasks.

The framework keeps three parts separate:

  • 15-Phase Workflow (docs/WORKFLOW.md): Explicit inputs, outputs, role ownership, and human approval gates (Gate-01a..Gate-05) before code, security scans, or releases.
  • Filesystem Handoffs (core/rules/context-handoff-protocol.md): Phase outputs live in docs/ and .aief/state/handoffs/ on disk rather than long chat summaries.
  • Platform Adapters (adapters/): Maintain canonical rules, roles, and skills once; generate platform configs with scripts/sync_adapters.py (upstream) or .aief/scripts/compose.py (consumer repos).

Architecture Overview

flowchart TB
    subgraph Tier1["Tier 1: Canonical Framework Core (Single Source of Truth)"]
        Rules["core/rules/ & core/schemas/"]
        Workflow["docs/WORKFLOW.md & workflows/"]
        Roles["agents/ (13 Canonical Roles)"]
        Skills["skills/core/ & skills/optional/ (SKILL.md)"]
    end

    subgraph Tier2["Tier 2: Thin Platform Adapters (scripts/sync_adapters.py)"]
        Copilot[".github/copilot-instructions.md & .github/agents/"]
        Antigravity["GEMINI.md & .agents/rules/ & hooks.json"]
        Claude["CLAUDE.md & .claude/agents/ & .claude/commands/"]
        Codex["AGENTS.md & .codex/config.toml"]
        GeminiCLI["GEMINI.md & .gemini/commands/"]
    end

    subgraph Tier3["Tier 3: Consumer Project Artifacts (Never Overwritten on Update)"]
        ProjectCfg[".aief/config.json & .aief/custom/"]
        Specs["docs/specs/ & docs/adr/ & docs/plans/"]
    end

    subgraph Tier4["Tier 4: Runtime State (.aief/state/)"]
        Manifest[".aief/state/manifest.json"]
        Handoffs[".aief/state/handoffs/"]
        Graph["graphify-out/ (Knowledge Graph)"]
    end

    Tier1 --> Tier2
    Tier2 --> Tier3
    Tier3 --> Tier4

Supported Platforms

All 5 platforms ship complete inline entry files, adapters, native skill projections, custom prompts/MCP support, and schema contracts (90/90 automated checks green):

Platform Entry Point Adapter & Projection Layout Status
Google Antigravity GEMINI.md, AGENTS.md .agents/rules/, .agents/skills/, hooks.json SUPPORTED
Claude Code CLAUDE.md, AGENTS.md .claude/skills/, .claude/agents/, .claude/commands/, .claude/settings.json SUPPORTED
GitHub Copilot .github/copilot-instructions.md, AGENTS.md .github/instructions/, .github/prompts/, .github/agents/, .agents/skills/ SUPPORTED
OpenAI Codex AGENTS.md .agents/skills/*/SKILL.md, .codex/config.toml SUPPORTED
Gemini CLI GEMINI.md, AGENTS.md .gemini/commands/*.toml, .gemini/settings.json, .agents/skills/ SUPPORTED

See adapters/compatibility-matrix.md and docs/README.md for full documentation navigation.


Quick Start

1. Validate the Framework Repository

Requires Python 3.11+ and Git 2.30+ (zero external pip packages required for core scripts):

python scripts/sync_adapters.py --check
python scripts/validate.py --mode framework
python scripts/run_tests.py --fail-on-skip
# Or via standard Python unittest discovery:
python -m unittest discover -s tests -v

2. Install into a New or Existing Project (Packaged aief CLI or Direct Python)

Install via standard Python packaging (uvx / pipx) or directly from source checkout without overwriting existing project files:

# Option A: Install/upgrade via PyPI (`pipx` / `uvx`) — interactive TUI wizard on TTY; --yes for defaults
pipx install ai-engineering-framework                   # First-time global install
pipx upgrade ai-engineering-framework                   # Future upgrades
pipx install --force ai-engineering-framework           # One-time migration from git+https://...
uvx ai-engineering-framework init /path/to/your-project # Zero-install run
# Fallback from GitHub main:
# pipx install --force git+https://github.com/Raele24/ai-engineering-framework.git

aief init /path/to/your-project --yes --no-import       # Zero-prompt bootstrap without legacy auto-import
aief init /path/to/your-project --interactive           # Force interactive discovery & legacy migration TUI
aief update /path/to/your-project                       # Upgrade an existing project non-destructively
aief compose /path/to/your-project

# Option B: Direct invocation from local framework clone
python scripts/bootstrap.py /path/to/your-project
python scripts/bootstrap.py /path/to/your-project --yes --no-import
python scripts/bootstrap.py /path/to/your-project --dry-run
python /path/to/your-project/.aief/scripts/compose.py
python /path/to/your-project/.aief/scripts/preflight.py --stacks dotnet,node/angular

3. Synchronize Platform Adapters After Editing Canonical Rules

python scripts/sync_adapters.py
python scripts/sync_adapters.py --check

Repository Structure

Path Tier Purpose
core/ Tier 1 Canonical engineering rules (core/rules/), JSON schemas (core/schemas/), and platform-capabilities.json
agents/ Tier 1 13 canonical agent role specifications (ai-engineer through ui-ux-designer)
skills/ Tier 1 Modular SKILL.md packages (skills/core/ + opt-in skills/optional/ packs) and skills/registry.json
workflows/ Tier 1 Step-by-step stage runbooks implementing the 15-phase canonical SDLC
templates/ Tier 3 Artifact templates (PRD, SPEC, ADR, TEST_PLAN, HANDOFF_PACKET, project.framework.json, stack .gitignore presets)
adapters/ Tier 2 Platform-specific adapter configurations and compatibility-matrix.md
quality/ Tier 1 TDD protocol, code review rubric, Definition of Done, and tool classification matrix
security/ Tier 1 Security authorization policy, secret prevention rules, and conditional Strix profile template
integrations/ Tier 1 MCP server templates, Graphify knowledge graph runner, and optional orchestrator specs
aief_cli/ Tier 1 Packaged aief CLI entrypoint (init, update, compose, validate, preflight, check-sync) and bundled assets
scripts/ Tier 1 Pure-stdlib Python CLIs (bootstrap.py, compose.py, validate.py, sync_adapters.py, preflight.py, platform_capabilities.py, readiness.py, run_tests.py)
docs/ Tier 1 Complete documentation suite (Architecture, Workflow, Getting Started, Consumer Usage Guide, Installation, Security, Roadmap)
tests/ Tier 1 Automated 6-tier offline regression suite (90 stdlib tests via scripts/run_tests.py)

Documentation Index (docs/README.md)

Start from docs/README.md for the full structured documentation map. Key guides:


License & Rationale

This project is licensed under the Apache License, Version 2.0.

Why Apache 2.0?

  1. Explicit Patent Grant (Section 3): Protects individual developers and enterprise engineering teams adopting the framework and its scripts against contributor patent litigation.
  2. Clear Derivative Work Rules (Section 4): Consumer projects can embed, customize, and redistribute framework templates and adapters in proprietary or open-source software without viral copyleft obligations.
  3. Trademark Protection (Section 6): Preserves the integrity of the official ai-engineering-framework name while allowing unrestricted forking and adaptation.
  4. Ecosystem Compatibility: Fully compatible with the Agent Skills open standard and MIT-licensed dependencies.

Metadata

Release files for ai-engineering-framework 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-engineering-framework 0.7.2
File Size Uploaded Provenance Actions
ai_engineering_framework-0.7.2.tar.gz 1.0 MB With provenance Details for ai_engineering_framework-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-engineering-framework 0.7.2
File Interpreter ABI Platform Actions
ai_engineering_framework-0.7.2-py3-none-any.whl Python 3 none any Details for ai_engineering_framework-0.7.2-py3-none-any.whl

Total release size: 2.2 MB

Release files / ai_engineering_framework-0.7.2.tar.gz

Download URL ai_engineering_framework-0.7.2.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
159ab6b3e4dd29b889a0dba44def7588ed3ecde24a5371081103d60c7daa34cd
BLAKE2b-256 checksum
How to use checksums
94ffd8f92845e3144f7994a95af18a0d0c2050ae5ca4981b1f16e5558ed0ff49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / ai_engineering_framework-0.7.2-py3-none-any.whl

Download URL ai_engineering_framework-0.7.2-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8e3c0cb0cbb358d936c10658a5518ce63d9ec07fe313736de0612553c6715383
BLAKE2b-256 checksum
How to use checksums
5653c54c427b4002016b7865e62b9e66ddacfaf09811dfb77925b1e05c3559f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for ai-engineering-framework 0.7.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ai_engineering_framework-0.7.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page