AI Engineering Framework
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:
- Project Charter — Vision, scope, non-goals, principles, and milestones.
- Canonical Workflow (
docs/WORKFLOW.md) — Complete 15-phase operational SDLC specification. - Architecture Guide (
docs/ARCHITECTURE.md) — 4-tier architecture, state handoffs, and Graphify integration. - Getting Started & Consumer Usage (
docs/GETTING_STARTED.md) — Install, first feature walkthrough, session handoffs, and bounded readiness (v0.7.1). - Customization & Auto-Loading Guide (
docs/CUSTOMIZATION_GUIDE.md) — Recipe guide for.aief/custom/(rules, skills, agents, prompts, MCP),disabled.*toggles, and.aief/scripts/compose.py. - Platform Compatibility Matrix (
adapters/compatibility-matrix.md) — Configuration mapping and platform support across all 5 platforms. - Installation Guide (
docs/INSTALLATION.md) — Prerequisites,aiefCLI /bootstrap.pymodes, and non-destructive updates. - Configuration Reference (
docs/CONFIGURATION.md) — Configuring.aief/config.json, lockfilev2.0.0, ownership classes, and validation severities. - Security Policy (
docs/SECURITY.md) — Vulnerability reporting, secret prevention, and authorized security testing (Strix). - Skills Catalog & Matrix (
docs/SKILL_COMPATIBILITY_MATRIX.md) — Packs, Policy A/B/C, external CLIs (rtk,graphify), and compatibility matrix for all 37 skills. - Token Optimization Guide (
docs/TOKEN_OPTIMIZATION.md) — Progressive disclosure principles, Ponytail, Caveman, RTK, and filesystem context offloading. - Changelog (
CHANGELOG.md) — Release history fromv0.1.0throughv0.7.1. - Contributing, Versioning & Release (
docs/CONTRIBUTING.md) — Authoring rules, SemVer2.0.0, release checklist, and commit conventions. - Roadmap (
docs/ROADMAP.md) — Release progression fromv0.1.0throughv0.7.1+.
License & Rationale
This project is licensed under the Apache License, Version 2.0.
Why Apache 2.0?
- Explicit Patent Grant (Section 3): Protects individual developers and enterprise engineering teams adopting the framework and its scripts against contributor patent litigation.
- 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.
- Trademark Protection (Section 6): Preserves the integrity of the official
ai-engineering-frameworkname while allowing unrestricted forking and adaptation. - Ecosystem Compatibility: Fully compatible with the Agent Skills open standard and MIT-licensed dependencies.
Metadata
Release files for ai-engineering-framework 0.7.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai_engineering_framework-0.7.3.tar.gz | 1.0 MB | With provenance | Details for ai_engineering_framework-0.7.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_engineering_framework-0.7.3-py3-none-any.whl | Python 3 | none | any | Details for ai_engineering_framework-0.7.3-py3-none-any.whl |
Total release size: 2.2 MB
Release files / ai_engineering_framework-0.7.3.tar.gz
| Download URL | ai_engineering_framework-0.7.3.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1ce5740efc5c5950c421e8b4aa22a64710796e0db8d0b41cee4c58abcfb26a7
|
|
BLAKE2b-256 checksum How to use checksums |
074bf5ff5b28234b7479294cfa540ecf50e19353a25074dbf4a50202f28cc557
|
| 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 logRelease files / ai_engineering_framework-0.7.3-py3-none-any.whl
| Download URL | ai_engineering_framework-0.7.3-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13ff81ea6aa5158979016dd06e20108fa8d0f5baef92191865101ce53898abb2
|
|
BLAKE2b-256 checksum How to use checksums |
a86289e4a258555d49308ca7435944d2b3a622f40ca07768ad5769fd98156d98
|
| 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 logSecurity for ai-engineering-framework 0.7.3
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.
Attestation for ai_engineering_framework-0.7.3.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 logA 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.