@stefkec/agent-ready
v0.3.1
Published
Scan sites for agent readiness and scaffold framework-specific machine-readable endpoints.
Maintainers
Readme
agent-ready
agent-ready is a TypeScript-first CLI and library for scanning agent-readiness signals and scaffolding framework-specific machine-readable endpoints.
What it does
- Scans live sites against an agent-readiness surface modeled on
isitagentready.com - Inspects local projects with framework-aware path and route conventions
- Scaffolds agent-facing files and endpoints for supported JavaScript/TypeScript frameworks
- Supports CI-friendly exit behavior with score and status thresholds
Install
npm install @stefkec/agent-readyOr run it directly:
npx @stefkec/agent-ready scan https://example.comCLI
agent-ready scan <url> [--json] [--report-file <path>] [--min-score <n>] [--fail-on-status <list>]
agent-ready doctor [cwd] [--cwd <path>] [--json] [--report-file <path>] [--min-score <n>] [--fail-on-status <list>]
agent-ready init [--cwd <path>] [--framework <name>] [--preset <name>] [--features <list>] [--dry-run] [--json] [--report-file <path>]
agent-ready add <feature> [--cwd <path>] [--json] [--report-file <path>]
agent-ready explain <check>Examples
Scan a live site:
npx agent-ready scan https://example.comScan a live site and fail CI on warnings or failures:
npx agent-ready scan https://example.com --min-score 80 --fail-on-status warn,failWrite a JSON report artifact:
npx agent-ready doctor --json --report-file ./reports/agent-ready.jsonInspect a local project:
npx agent-ready doctorScaffold a Next.js project:
npx agent-ready init --framework nextScaffold an application-style project:
npx agent-ready init --framework express --preset applicationScaffold an exact feature set:
npx agent-ready init --framework next --features robots,llms,mcpScaffold into another directory:
npx agent-ready init --cwd ./apps/web --framework next --preset content-siteAdd only an MCP server card scaffold:
npx agent-ready add mcpConfig file
Supported config files:
agent-ready.config.jsonagent-ready.config.mjsagent-ready.config.cjs
Example:
{
"defaults": {
"output": "human"
},
"scan": {
"minScore": 80,
"failOnStatuses": ["warn", "fail"]
},
"doctor": {
"minScore": 75,
"failOnStatuses": ["fail", "error"]
},
"init": {
"framework": "next",
"preset": "content-site",
"features": ["api-catalog", "robots", "sitemap", "llms", "mcp"]
}
}Config is optional. CLI flags still take precedence.
Presets
content-siteIntended for marketing sites, docs sites, and content-heavy apps.applicationIntended for API-capable apps and authenticated products.
Default behavior:
next,astro,sveltekit,nuxt,vite-react, andvite-vuedefault tocontent-siteexpressandhonodefault toapplication
Supported scaffold features
api-catalogrobotssitemapllmsmarkdownmcpagent-cardoauth-discoveryoauth-protected-resource
Supported frameworks
nextastrosveltekitexpresshononuxtvite-reactvite-vue
Framework support is uneven right now. next, astro, sveltekit, express, and hono have the strongest scaffold behavior.
TypeScript usage
import { scanSite, scaffoldProject, scanProject } from "agent-ready";
const report = await scanSite({ url: "https://example.com" });
const local = await scanProject({ cwd: process.cwd() });
await scaffoldProject({
cwd: process.cwd(),
framework: "next",
features: ["api-catalog", "robots", "llms", "mcp"]
});CI example
npx agent-ready doctor --min-score 80 --fail-on-status fail,errornpx agent-ready scan https://example.com --min-score 85 --fail-on-status warn,fail,errorDevelopment
npm install
npm run check
npm run test
npm run build