Skip to main content

Coverage and enforcement layer for AI agent infrastructure

Reason this release was yanked:

Incorrect semver; canonical pre-1.0 line is 0.3.x

Project description

IntentSpec

Coverage and enforcement layer for AI agent infrastructure.

IntentSpec transforms agent development from ad-hoc documentation to versioned, testable, and enforceable intent. Document agent behavior as code, measure intent coverage, score intent debt, and enforce intent through CI/CD.

Works with any agent spec format — AGENTS.md, SKILL.md, agentskills, or CrewAI. Convert existing specs to a standardized intent.yaml, then validate, score, diff, lint, and enforce it in CI/CD.

Quickstart

pip install intentspec

# Create a new spec interactively
intentspec init --quickstart

# Or convert an existing AGENTS.md
intentspec init --from AGENTS.md ./AGENTS.md

# Validate and score
intentspec validate
intentspec score

# Run all checks for CI/CD
intentspec ci --min-coverage 80

Features

Feature Command Description
Validate validate Schema + semantic validation of intent.yaml
Score score Intent Debt Score (IDS 0-100) with 7 weighted components
Coverage coverage Structural coverage analysis against source text
Diff diff Git-integrated intent change tracking between commits
Lint lint Quality checks (goal length, tool rationale, duplicates, etc.)
CI ci Unified hook: validate + lint + score + coverage in one pass
Audit audit-report SOC 2 / EU AI Act compliance report with SHA-256 hash
Convert init --from Import from AGENTS.md, SKILL.md, agentskills, CrewAI, LangGraph, AutoGen, OpenAI Agents
Templates init --template 5 built-in agent templates
Health health Terminal dashboard — coverage, IDS, stale/orphaned specs
Drift drift Detect stale intents (source file age vs last commit)
Dashboard dashboard --serve Web dashboard for coverage trends and IDS scores

New: Source Resolution

IntentSpec now resolves original agent source files (AGENTS.md, SKILL.md, framework configs) for any intent.yaml:

  • # Source: header provenance (written by intentspec init)
  • Sibling filename matching (AGENTS.md, SKILL.md, crewai.yaml, etc.)
  • Orphaned spec detection (health and drift report specs with no source)

Installation

pip install intentspec

Requires Python 3.11+.

Why IntentSpec?

AI agents are defined by scattered markdown files, README comments, and tribal knowledge. IntentSpec makes that explicit and measurable:

  1. Document — Define agent intent in a structured intent.yaml
  2. Convert — Import existing AGENTS.md / SKILL.md / CrewAI specs
  3. Validate — Schema + semantic checks catch misconfigurations
  4. Score — Intent Debt Score (0-100) measures spec quality
  5. Coverage — Compare intent against actual source text
  6. Enforce — CI/CD integration fails builds when intent is missing or broken
  7. Audit — Generate compliance reports for SOC 2 / EU AI Act

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

intentspec-1.3.0.tar.gz (153.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

intentspec-1.3.0-py3-none-any.whl (111.3 kB view details)

Uploaded Python 3

File details

Details for the file intentspec-1.3.0.tar.gz.

File metadata

  • Download URL: intentspec-1.3.0.tar.gz
  • Upload date:
  • Size: 153.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for intentspec-1.3.0.tar.gz
Algorithm Hash digest
SHA256 3e96985ffe199d9ba90321513adc9e7935e333007fbac611c276d125448f0e90
MD5 1e19bd926287701b94640f002b1fd6e2
BLAKE2b-256 ec74f83b7da15c8e8a88bc61d3bd048a9d7c602b41ff722bd028daa0f661bc07

See more details on using hashes here.

Provenance

The following attestation bundles were made for intentspec-1.3.0.tar.gz:

Publisher: publish.yml on onicarps/intentspec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file intentspec-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: intentspec-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 111.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for intentspec-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fec1618e0a4c4d6d81fdb3f256f0e6528c568e9b25ced5e03a57e93044d688fc
MD5 dfe164c918fd76bc312f2aef1a1e895c
BLAKE2b-256 efb920ab2f6a36d515c57d8a7b93789bec077645d15fef68e6b68c1a695d2ab8

See more details on using hashes here.

Provenance

The following attestation bundles were made for intentspec-1.3.0-py3-none-any.whl:

Publisher: publish.yml on onicarps/intentspec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page