{"_id":"@agent-ready/cli","name":"@agent-ready/cli","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agent-ready/cli","version":"0.1.0","description":"CLI that checks whether a repository is ready for coding agents.","type":"module","repository":{"type":"git","url":"git+ssh://git@github.com/carloss765/agent-ready.git"},"bugs":{"url":"https://github.com/carloss765/agent-ready/issues"},"homepage":"https://github.com/carloss765/agent-ready#readme","bin":{"agent-ready":"dist/cli.js"},"scripts":{"dev":"tsx src/cli.ts","build":"tsc -p tsconfig.json","start":"node dist/cli.js","test":"vitest run","test:watch":"vitest","lint":"eslint .","format":"prettier --write .","format:check":"prettier --check .","check":"pnpm lint && pnpm test && pnpm build","pack:dry-run":"npm pack --dry-run","prepack":"pnpm build","prepublishOnly":"pnpm check"},"keywords":["agents","cli","repository","codex","claude","opencode"],"license":"MIT","publishConfig":{"access":"public"},"dependencies":{"commander":"^12.1.0"},"devDependencies":{"@types/node":"^22.10.2","@typescript-eslint/eslint-plugin":"^8.18.1","@typescript-eslint/parser":"^8.18.1","eslint":"^9.17.0","prettier":"^3.4.2","tsx":"^4.19.2","typescript":"^5.7.2","vitest":"^2.1.8"},"engines":{"node":">=20"},"packageManager":"pnpm@10.0.0","gitHead":"06023841b5aaac5175dc272ccf6ac8c916d0519e","_id":"@agent-ready/cli@0.1.0","_nodeVersion":"24.14.0","_npmVersion":"11.14.0","dist":{"integrity":"sha512-Nvgb+wPjWNvTXMqfgdg6tuK3X/tlgIOrhSA53CCPoZQyjjkX9LvGVEvvLe7mqwfOaiDXvYXiHrPsZLlIFrZHqA==","shasum":"82f705738810f21150bd2ecaf2d97ef920feb2c5","tarball":"https://registry.npmjs.org/@agent-ready/cli/-/cli-0.1.0.tgz","fileCount":46,"unpackedSize":72340,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAlxmYUtVT3wmCbeuQShv593LwPwYVGWL9YLdBKlvvd2AiEAosfXphueLQ/4NYxseEOFkpzvxfx3ByrZqf9Howv5pZM="}]},"_npmUser":{"name":"carloss765","email":"carlosandresmartinezortiz632@gmail.com"},"directories":{},"maintainers":[{"name":"carloss765","email":"carlosandresmartinezortiz632@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_0.1.0_1778788698492_0.25600257494876355"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-14T19:58:18.364Z","0.1.0":"2026-05-14T19:58:18.645Z","modified":"2026-05-14T19:58:18.866Z"},"maintainers":[{"name":"carloss765","email":"carlosandresmartinezortiz632@gmail.com"}],"description":"CLI that checks whether a repository is ready for coding agents.","homepage":"https://github.com/carloss765/agent-ready#readme","keywords":["agents","cli","repository","codex","claude","opencode"],"repository":{"type":"git","url":"git+ssh://git@github.com/carloss765/agent-ready.git"},"bugs":{"url":"https://github.com/carloss765/agent-ready/issues"},"license":"MIT","readme":"<p align=\"center\">\n  <img src=\"./landing/public/favicon.svg\" alt=\"Agent Ready favicon\" width=\"72\" height=\"72\" />\n</p>\n\n<h1 align=\"center\">AGENT READY</h1>\n\n<p align=\"center\">\n  Diagnose whether a repository is ready for AI coding agents.\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/carloss765/agent-ready\">Repository</a>\n  ·\n  <a href=\"./docs/technical-decisions.md\">Technical decisions</a>\n  ·\n  <a href=\"./docs/publishing.md\">Publishing</a>\n</p>\n\n---\n\n## What It Is\n\nAgent Ready is an open source Node.js CLI that checks whether a project has the context,\ncommands, safety files, and setup signals that coding agents need before they start changing code.\n\nIt does not provide an AI model and does not call any hosted AI service. It prepares your repository\nfor the agent you already use, such as Codex, Claude Code, OpenCode, Cursor, Windsurf, or another\ntool that can read files in your project.\n\n```text\nagent-ready = scanner + generator + prescription builder\nyour coding agent = executor\n```\n\n## Why Use It\n\nCoding agents work better when a repository tells them what matters. Many projects are missing that\ncontext:\n\n- `AGENTS.md` with project-specific instructions\n- documented `dev`, `build`, `test`, `lint`, and `format` commands\n- `.env.example` with safe placeholders\n- clear safety rules for secrets and destructive commands\n- a simple readiness summary before delegating work\n\nAgent Ready finds those gaps and gives you a concrete next step instead of making your coding agent\nguess.\n\n## What It Checks\n\nThe current version focuses on Node.js and TypeScript projects. It scans for:\n\n- repository basics: Git, manifests, package manager, lockfile\n- context files: `README.md`, `AGENTS.md`, `.env.example`\n- scripts: `dev`, `build`, `test`, `lint`, `format`\n- agent tooling signals: Codex, Claude Code, OpenCode, Cursor, Windsurf\n- local skills under `.agents/skills`\n- readiness score, status, and recommended next steps\n\n## Install\n\nRun it directly with `npx`:\n\n```bash\nnpx @agent-ready/cli scan\n```\n\nThe public package uses the scoped npm package `@agent-ready/cli` and exposes the `agent-ready` binary.\n\nFor local development:\n\n```bash\npnpm install\npnpm build\npnpm dev -- scan\n```\n\n## Commands\n\n### `scan`\n\nScans the repository without modifying files.\n\n```bash\nnpx @agent-ready/cli scan\n```\n\nUseful when you want to know what the repo already has and what is missing.\n\nYou can scan another directory with `--root`:\n\n```bash\nnpx @agent-ready/cli scan --root ./path/to/project\n```\n\n### `init`\n\nCreates safe starter files without overwriting existing files.\n\n```bash\nnpx @agent-ready/cli init\n```\n\nCurrently generated files:\n\n- `AGENTS.md`\n- `.env.example`\n\nIf either file already exists, Agent Ready skips it.\n\n### `prescribe`\n\nCreates a prescription file for your coding agent.\n\n```bash\nnpx @agent-ready/cli prescribe\n```\n\nGenerated file:\n\n- `.agent-ready/prescription.md`\n\nGive that file to your coding agent and ask it to apply the recommended repository setup fixes.\n\n## Suggested Workflow\n\n1. Diagnose the project:\n\n```bash\nnpx @agent-ready/cli scan\n```\n\n2. Generate missing base files:\n\n```bash\nnpx @agent-ready/cli init\n```\n\n3. Create instructions for your coding agent:\n\n```bash\nnpx @agent-ready/cli prescribe\n```\n\n4. Ask your agent to read the prescription:\n\n```text\nRead .agent-ready/prescription.md and apply the recommended repository setup fixes.\nDo not modify secrets or run destructive commands.\n```\n\n5. Re-scan after changes:\n\n```bash\nnpx @agent-ready/cli scan\n```\n\n## Commands To Test The Tool\n\nFrom this repository:\n\n```bash\npnpm install\npnpm dev -- scan\npnpm dev -- init --yes\npnpm dev -- prescribe --yes\npnpm test\npnpm build\npnpm lint\npnpm check\n```\n\nAfter building, you can test the compiled CLI:\n\n```bash\npnpm build\nnode dist/cli.js scan\nnode dist/cli.js init --yes\nnode dist/cli.js prescribe --yes\n```\n\nTo test against a temporary project:\n\n```bash\nmkdir /tmp/agent-ready-demo\ncd /tmp/agent-ready-demo\npnpm init\nnode /path/to/agent-ready/dist/cli.js scan\nnode /path/to/agent-ready/dist/cli.js init --yes\nnode /path/to/agent-ready/dist/cli.js prescribe --yes\n```\n\nReplace `/path/to/agent-ready` with the absolute path to this repository.\n\n## Development\n\nMain commands:\n\n```bash\npnpm dev          # default scan\npnpm dev -- scan\npnpm dev -- init --yes\npnpm dev -- prescribe --yes\npnpm test\npnpm lint\npnpm build\npnpm check\npnpm format\n```\n\nLanding page:\n\n```bash\npnpm --dir landing dev\npnpm --dir landing build\npnpm --dir landing preview\n```\n\n## Project Structure\n\n```text\nsrc/\n  analyzer/      readiness scoring and next steps\n  cli/           command output, parsing, presentation helpers\n  generator/     AGENTS.md, .env.example, and prescription generation\n  scanner/       repository inspection\ntests/           Vitest coverage\ndocs/            technical and publishing notes\nlanding/         Astro landing page\n.agents/         project agent roles, messages, and workflows\n```\n\n## Safety Model\n\nAgent Ready is intentionally conservative:\n\n- `scan` is read-only.\n- `init` does not overwrite existing files.\n- `prescribe` does not overwrite an existing prescription.\n- no API keys are required.\n- no model provider account is required.\n- generated instructions warn agents not to modify secrets or run destructive commands.\n\n## Current Status\n\nImplemented:\n\n- TypeScript CLI scaffold\n- `scan`, `init`, and `prescribe` commands\n- readiness analyzer and score\n- Node.js project signal detection\n- package manager and script detection\n- agent tool and skill detection\n- Vitest test suite\n- Astro landing page\n\nPlanned:\n\n- richer framework detection\n- stable JSON report output\n- CI-friendly mode\n- adapter-specific prescriptions for Codex, Claude Code, and OpenCode\n- broader language support beyond Node.js\n\n## License\n\nMIT. See [LICENSE](./LICENSE).\n","readmeFilename":"README.md","_rev":"1-02fc0c3cea34c1baf4932857cc25872e"}