@eddyli1989/agent-spec
v0.1.0
Published
CLI for managing and syncing AI agent prompts, skills, MCP, and plugin configuration across tools.
Maintainers
Readme
Agent Spec
Agent Spec is a CLI-first open source project for managing AI agent configuration across tools.
The current MVP treats Claude-style configuration as the canonical base, then helps import, push, and pull that configuration across:
- Claude Code
- Codex
- OpenCode
Agent Spec is local-first and GitHub-backed. It uses normal files, normal Git commits, and the GitHub CLI (gh) instead of a hosted sync service.
Why
AI agent tools use different conventions for prompts, skills, MCP servers, plugins, and runtime configuration.
That creates drift:
CLAUDE.mdmay contain one set of instructions.AGENTS.mdmay contain another.- Skills may live in different folders depending on the tool.
- Moving to another machine often means copying the same files again.
Agent Spec gives those files one Git-backed home and provides adapters for the tools you use locally.
Current Behavior
Import and Merge
agentspec init and agentspec push scan supported local tool config directories and merge them into one workspace.
Prompt files are appended into the canonical CLAUDE.md with source headings:
## From Claude Code
...
## From Codex
...
## From OpenCode
...Original non-Claude prompts are also preserved:
prompts/codex/AGENTS.md
prompts/opencode/AGENTS.mdShared folders such as skills/, mcp/, and plugins/ are also merged into the Claude-style workspace folders when present. This applies to both init and push, so changes made under Codex or OpenCode are still collected into the canonical Agent Spec repository.
Pull
agentspec pull applies the canonical workspace back to supported local tools.
By default it writes to discovered local tool config directories. For inspection or testing, use --output-dir to write converted files somewhere else.
Install
For development:
npm install
npm run buildInstall from npm:
npm install -g @eddyli1989/agent-spec
agentspec --helpRun the compiled CLI:
node dist/src/cli.js --helpBuild a standalone binary with Bun:
npm run build:binary
./dist-bin/agentspec --helpRequirements
- Node.js for development.
- Bun for standalone binary builds.
- Git.
- GitHub CLI (
gh) forauthandinit.
Authenticate with GitHub:
gh auth loginor:
agentspec authCommands
agentspec init [workspace] [--home <dir>]
agentspec push [workspace] [--home <dir>]
agentspec pull [workspace] [--output-dir <dir>] [--home <dir>]
agentspec auth
agentspec doctor
agentspec --helpinit
Scans supported local tool configuration, merges it into an Agent Spec workspace, creates a GitHub repository, commits the initial files, and pushes them.
The default repository name is agent-spec. If that repository already exists, Agent Spec treats it as an existing remote configuration repository and clones it into the requested workspace instead of creating a numbered fallback.
agentspec init ~/agent-specpush
Pulls the workspace, rescans local configuration, merges changes, and pushes a new commit only when files changed.
agentspec push ~/agent-specagentspec update is currently kept as a compatibility alias for agentspec push.
pull
Pulls the workspace and applies the canonical configuration to supported tools found on the machine.
agentspec pull ~/agent-specInspect converted output without touching real tool config directories:
agentspec pull ~/agent-spec --output-dir /tmp/agent-spec-outputagentspec sync is currently kept as a compatibility alias for agentspec pull.
auth
Delegates GitHub authentication to gh auth login.
agentspec authdoctor
Currently a placeholder for future environment checks.
agentspec doctorTesting
npm test
npm run build
npm run build:binaryProject Status
Agent Spec is early MVP software.
Implemented:
- CLI command dispatch.
- Tool discovery for Claude Code, Codex, and OpenCode.
- Prompt merge into canonical
CLAUDE.md. - Preservation of Codex/OpenCode prompt files.
- Merging of
skills/,mcp/, andplugins/into Claude-style workspace folders when present. - GitHub repository creation through
gh. - Existing repository recovery during
init. pull --output-dirfor safe inspection.- Standalone binary build through Bun.
Not implemented yet:
- Conflict resolution beyond simple append/copy behavior.
- Prompt de-duplication.
- Rich MCP format adaptation.
- Secret handling.
- Desktop UI.
- Release packaging for all platforms.
Design Notes
See PROPOSAL.md for the project proposal and longer-term direction.
