Skip to main content

CLI that scores how ready a repo is for AI coding agents (Claude Code, Cursor, Copilot, Codex)

Project description

agent-ready: AI Agent Readiness Checker

agent-ready is a Python CLI that evaluates a code repository's structure and content for optimal performance with AI coding agents like Claude Code, Cursor, and GitHub Copilot.

AI coding agents are now standard development tools. The quality and relevance of their suggestions, refactors, and code generation heavily depend on the clarity, consistency, and discoverability of a repository's codebase. agent-ready helps identify areas for improvement to maximize agent effectiveness.

Quick Start

To check a repository, simply run the script with the path to your repository:

# Clone the agent-ready repository
git clone https://github.com/your-org/agent-ready.git
cd agent-ready

# Run the check against your target repository
python3 agent_ready.py /path/to/your/project

What It Checks

agent-ready performs the following checks, assigning points based on best practices for AI agent comprehension:

Check Points
README.md exists and is substantial 10
.gitignore exists and is comprehensive 8
requirements.txt or equivalent exists 7
pyproject.toml or setup.py exists 7
Clear project structure (e.g., src/) 8
Docstrings/comments present (sample check) 10
Type hints used (sample check) 8
Test suite detected (tests/ folder) 9
Linter config detected (.flake8, pyproject.toml) 6
Formatter config detected (.prettierrc, pyproject.toml) 6
CI/CD config detected (.github/workflows, gitlab-ci.yml) 5
CONTRIBUTING.md exists 4
LICENSE file exists 4
Recent activity (last 3 months) 8
Total Possible Score 100

Grading Scale

The final score translates to a grade:

Grade Score Range
A 90-100
B 80-89
C 70-79
D 60-69
F < 60

Flags

agent-ready supports the following flags:

  • --json: Output results as a JSON object. Useful for programmatic consumption.
  • --badge: Output a Markdown badge string representing the grade.
  • --strict: Exit with a non-zero status code if the grade is below 'B'. Useful for CI/CD pipelines.

Badge Example

![Agent Readiness Grade](https://img.shields.io/badge/agent--ready-A-brightgreen)

Use in CI

Integrate agent-ready into your CI/CD pipeline to ensure ongoing agent readiness.

name: Agent Readiness Check

on: [push, pull_request]

jobs:
  check-readiness:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout agent-ready
        uses: actions/checkout@v4
        with:
          repository: your-org/agent-ready # Replace with actual repo URL
          path: agent-ready

      - name: Checkout target repository
        uses: actions/checkout@v4
        with:
          path: target-repo

      - name: Run agent-ready check
        run: python3 agent-ready/agent_ready.py target-repo --strict

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

agent_ready_cli-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

agent_ready_cli-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file agent_ready_cli-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for agent_ready_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 affee7382913bb8d4bb181b849fd7c622acfe32e12427470b8791e1ff34b5e50
MD5 34a9cc327c8bf3a533def16f42fdb71e
BLAKE2b-256 c574b50e10c3f670308a0f4a2fb81e39009fd8c52c1d4afc1fa9cddf89ffa122

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_ready_cli-0.1.0.tar.gz:

Publisher: publish.yml on RLASAF12/agent-ready

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

File details

Details for the file agent_ready_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_ready_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e263709f24da8a41ac8496423b4d4a905a4dea3ee33d6841c8a726112aa2c2a
MD5 1c7d8505128a8176ccab394506404136
BLAKE2b-256 ca5bc4276ae6c8f02fee725aa3ec8f42ec5ae4f5142ed45bf0e8c6cd48f99bbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_ready_cli-0.1.0-py3-none-any.whl:

Publisher: publish.yml on RLASAF12/agent-ready

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