@arkyn/cli
v3.0.8
Published
Command-line tool for the Arkyn ecosystem, generates and maintains an AGENTS.md file so AI coding assistants know how to use installed @arkyn/* packages.
Maintainers
Readme
@arkyn/cli
Command-line tool for the Arkyn ecosystem, generates and maintains an AGENTS.md file so AI coding assistants (Claude Code, Cursor, Copilot, and others that read AGENTS.md/CLAUDE.md) know how to use the @arkyn/* packages installed in your project.
🎯 What it solves
When an AI assistant works inside a project that consumes Arkyn packages, it has no built-in knowledge of which components, hooks, or utilities are available, or how to use them correctly. @arkyn/cli closes that gap without requiring a permanent install: it inspects your project's package.json, finds which @arkyn/* packages are installed, and wires their AGENTS.md docs (shipped inside each package) into your project's own AGENTS.md, so your AI assistant picks them up automatically.
✨ Features
- 🔍 Detects installed packages, reads
dependencies/devDependenciesto find every@arkyn/*package in your project - 🔗 Wires up AGENTS.md, links to each installed package's shipped
AGENTS.mdfrom your project's rootAGENTS.md - ♻️ Idempotent, safe to run multiple times, it updates its own block instead of duplicating content
- ✍️ Non-destructive, never touches content outside its own managed block, your existing
AGENTS.mdnotes are preserved - 📦 Zero install, designed to be run with
npx/bunx, nothing lingers in your project afterward
📋 Prerequisites
- Node.js
>=18.0.0 - Bun
>=1.0.0
📦 Installation
No installation needed. Run it directly with
npxorbunxfrom your project root.
npx @arkyn/cli init --agents
# or
bunx @arkyn/cli init --agentsIf you prefer, you can still add it as a dev dependency and run it through a script:
npm install --save-dev @arkyn/cli🚀 Quick Start
cd my-app
npx @arkyn/cli init --agentsUpdated AGENTS.md with docs for: @arkyn/components, @arkyn/serverRe-run the same command any time you install or remove @arkyn/* packages, it keeps the list in AGENTS.md in sync.
📖 Commands
arkyn init --agents
Creates AGENTS.md in the current directory if it doesn't exist, or updates it in place if it does. It:
- Reads
package.jsonin the current working directory. - Collects every
@arkyn/*package listed independenciesordevDependencies. - For each one, checks whether
node_modules/@arkyn/<package>/AGENTS.mdexists. - Writes a
<!-- arkyn:agents:start -->/<!-- arkyn:agents:end -->block in yourAGENTS.mdlinking to each doc found.
If no @arkyn/* package is installed, or none of them ship an AGENTS.md yet, the command logs why and exits without modifying anything.
arkyn --help
Prints usage information.
📚 Documentation
Full documentation: https://docs.arkyn.dev/docs/cli/introduction
📄 License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
