AgentSkillsCN

agent-ready

采用 10 大支柱 / 5 级框架,分析仓库是否已做好 AI 代理的准备。适用于以下场景:(1) 评估代码库质量以适配 AI 代理;(2) 了解代理原生配置;(3) 生成缺失的配置文件;(4) 回答“这个仓库距离 AI 代理有多近?”等问题。可通过“检查代理就绪度”、“分析仓库成熟度”、“评估代理就绪情况”、“这个仓库处于哪个级别”、“/agent-ready”等短语触发。

SKILL.md
--- frontmatter
name: agent-ready
description: Analyze repositories for AI agent readiness using the 10-pillar / 5-level framework. Use when (1) evaluating codebase quality for AI agents, (2) understanding agent-native configuration, (3) generating missing config files, or (4) answering "how ready is this repo for AI agents". Triggers on "check agent readiness", "analyze repo maturity", "evaluate agent readiness", "what level is this repo", "/agent-ready".
license: MIT
metadata:
  author: robotlearning123
  version: "0.0.2"

Agent-Ready Analysis

Evaluate repository maturity for AI agent collaboration using the 10 Pillars / 5 Levels model.

What Makes This Different

Traditional scanners: Check if files exist (README.md ✓) Agent-Ready v0.0.2: Assess quality and AI-friendliness (README clear? AGENTS.md actionable? MCP configured?)

Key differentiator: The agent_config pillar - we evaluate Agent Native configurations that no other tool checks:

  • .claude/ directory (settings, commands, hooks)
  • .cursorrules / .cursor/rules
  • mcp.json and MCP server implementations
  • Multi-agent collaboration configs
  • Autonomous workflow definitions

Analysis Framework

10 Pillars (v0.0.2)

#PillarFocus
1docsREADME, AGENTS.md, API docs
2styleLinting, formatting, types
3buildBuild scripts, CI/CD
4testUnit, integration, coverage
5securitySecrets, dependabot, SAST
6observabilityLogging, tracing, metrics
7env.env.example, devcontainer
8task_discoveryIssue/PR templates
9productFeature flags, analytics
10agent_configAgent Native configs

5 Levels

LevelNameScore RangeDescription
L1Functional0-20Basic functionality works
L2Documented21-40Essential documentation
L3Standardized41-60Standard practices
L4Optimized61-80Advanced automation
L5Autonomous81-100Self-improving, AI-ready

How to Analyze

Step 1: Quick Baseline (Optional)

For fast file-existence checks, run the CLI:

bash
npx agent-ready scan . --output json

This gives you a quick snapshot but only checks file existence, not quality.

Step 2: Deep Analysis

Use Read/Glob/Grep tools to analyze each pillar:

  1. Discover project structure

    code
    Glob: **/*.{json,yml,yaml,md,ts,js}
    
  2. Read key files

    • README.md - Project overview
    • package.json - Scripts, dependencies
    • AGENTS.md - Agent instructions
    • .claude/ - Claude Code config
  3. Evaluate quality using references/scoring-rubric.md

  4. Follow patterns in references/analysis-patterns.md

Step 3: Generate Report

Output format:

markdown
## Agent Readiness Report

**Level: L3** (Standardized)
**Overall Score: 72/100**

### Pillar Breakdown
| Pillar | Score | Key Finding |
|--------|-------|-------------|
| docs | 85/100 | README clear, missing API docs |
| agent_config | 45/100 | AGENTS.md exists, no MCP |
| test | 65/100 | Good unit tests, no e2e |
...

### Top Recommendations
1. Configure MCP server (+15 agent_config)
2. Add integration tests (+10 test)
3. Add API documentation (+5 docs)

Agent Configuration Analysis (New in v0.0.2)

What to Look For

L1 - Basic:

  • AGENTS.md or CLAUDE.md exists
  • .gitignore covers .claude/, .cursor/

L2 - Structured:

  • .claude/settings.json
  • .claude/commands/*.md
  • .cursorrules
  • .aider.conf.yml
  • .github/copilot-instructions.md

L3 - MCP Integration:

  • mcp.json configured
  • MCP server implementation
  • Claude hooks defined

L4 - Advanced:

  • Multi-agent collaboration
  • Context injection system
  • Permission boundaries

L5 - Autonomous:

  • Autonomous workflows
  • Self-improvement mechanisms

Quality Assessment

For AGENTS.md, check:

  • Does it explain key commands?
  • Does it describe architecture?
  • Does it list code conventions?
  • Does it specify files to ignore?
  • Is it actionable for AI agents?

For .claude/settings.json, check:

  • Are permissions properly restricted?
  • Are dangerous commands blocked?
  • Are allowed tools specified?

CLI Reference (For Quick Scans)

bash
# Basic scan
npx agent-ready scan .

# JSON output
npx agent-ready scan . --output json

# Generate missing files
npx agent-ready init . --level L2

# Preview what would be created
npx agent-ready init . --level L2 --dry-run

References

  • Scoring rubric: references/scoring-rubric.md
  • Analysis patterns: references/analysis-patterns.md
  • Pillar details: references/pillars.md
  • Level requirements: references/levels.md