@agentver/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +123 -0
- package/dist/agentver.js +10189 -0
- package/dist/agentver.js.map +1 -0
- package/package.json +58 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Agentver
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# agentver
|
|
2
|
+
|
|
3
|
+
Agent skill registry — store, version, and distribute AI agent skills.
|
|
4
|
+
|
|
5
|
+
Agentver is a CLI for managing reusable skills, prompts, and configurations across AI coding agents like Claude Code, Cursor, Windsurf, Copilot, and more. Install skills from Git repositories, keep them in sync, and share improvements back.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# npm
|
|
11
|
+
npm install -g @agentver/cli
|
|
12
|
+
|
|
13
|
+
# bun
|
|
14
|
+
bun install -g @agentver/cli
|
|
15
|
+
|
|
16
|
+
# pnpm
|
|
17
|
+
pnpm add -g @agentver/cli
|
|
18
|
+
|
|
19
|
+
# or run directly without installing
|
|
20
|
+
npx @agentver/cli
|
|
21
|
+
bunx @agentver/cli
|
|
22
|
+
pnpm dlx @agentver/cli
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick start
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Install a skill from a Git repository
|
|
29
|
+
agentver install github.com/owner/repo
|
|
30
|
+
|
|
31
|
+
# Install from a subdirectory
|
|
32
|
+
agentver install github.com/owner/repo/path/to/skill
|
|
33
|
+
|
|
34
|
+
# Scan your project for existing agent configs
|
|
35
|
+
agentver scan
|
|
36
|
+
|
|
37
|
+
# Adopt existing configs into agentver management
|
|
38
|
+
agentver adopt
|
|
39
|
+
|
|
40
|
+
# Check the status of installed skills
|
|
41
|
+
agentver status
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Commands
|
|
45
|
+
|
|
46
|
+
| Command | Description |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| `install <source>` | Install a skill from a Git repository or well-known domain |
|
|
49
|
+
| `remove <name>` | Remove an installed package |
|
|
50
|
+
| `update` | Update installed skills to their latest upstream version |
|
|
51
|
+
| `list` | Show installed packages |
|
|
52
|
+
| `status` | Show status of installed skills (upstream changes, local modifications) |
|
|
53
|
+
| `diff <name>` | Show diff between local and upstream version of a skill |
|
|
54
|
+
| `sync` | Push local installation state to platform |
|
|
55
|
+
| `search <query>` | Search for skills across registries |
|
|
56
|
+
| `scan` | Scan directory for agent configs and skills |
|
|
57
|
+
| `adopt` | Adopt existing skills and configs into agentver management |
|
|
58
|
+
| `init` | Scaffold a new package (skill, agent, plugin, script, or prompt) |
|
|
59
|
+
| `save` | Commit local skill changes to the platform |
|
|
60
|
+
| `publish` | Publish a skill to the registry |
|
|
61
|
+
| `audit` | Run a security scan on installed skills or an arbitrary directory |
|
|
62
|
+
| `verify <name>` | Verify a skill — checks publisher, integrity, and security |
|
|
63
|
+
| `suggest <title>` | Create a suggestion from local modifications |
|
|
64
|
+
| `suggestions` | List suggestions for a skill |
|
|
65
|
+
| `draft` | Manage skill drafts (branches) |
|
|
66
|
+
| `version` | Manage skill versions (tags) |
|
|
67
|
+
| `log <name>` | Show commit history for a skill |
|
|
68
|
+
| `login` | Authenticate with the agentver registry |
|
|
69
|
+
| `logout` | Log out from the agentver registry |
|
|
70
|
+
| `whoami` | Show authentication state |
|
|
71
|
+
|
|
72
|
+
Use `agentver <command> --help` for detailed usage of any command.
|
|
73
|
+
|
|
74
|
+
## Global options
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
--json Output results as structured JSON
|
|
78
|
+
--help Show help
|
|
79
|
+
--version Show version
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Supported agents
|
|
83
|
+
|
|
84
|
+
Agentver automatically detects which AI coding agents are present in your project and places skills in the correct location:
|
|
85
|
+
|
|
86
|
+
- Claude Code (`.claude/`)
|
|
87
|
+
- Cursor (`.cursor/rules/`)
|
|
88
|
+
- Windsurf (`.windsurfrules/`)
|
|
89
|
+
- GitHub Copilot (`.github/copilot/`)
|
|
90
|
+
- Codex (`.codex/`)
|
|
91
|
+
- Aider (`.aider/`)
|
|
92
|
+
- Cline (`.cline/rules/`)
|
|
93
|
+
- Roo Code (`.roo/rules/`)
|
|
94
|
+
- And more
|
|
95
|
+
|
|
96
|
+
## Security
|
|
97
|
+
|
|
98
|
+
Every skill is scanned on install using 28 built-in security rules that check for:
|
|
99
|
+
|
|
100
|
+
- Credential harvesting and secret exfiltration
|
|
101
|
+
- Command injection and shell escape patterns
|
|
102
|
+
- Instruction override and prompt injection
|
|
103
|
+
- Unsafe network access and data exfiltration
|
|
104
|
+
- File system abuse and path traversal
|
|
105
|
+
|
|
106
|
+
Run `agentver audit` at any time to re-scan your installed skills.
|
|
107
|
+
|
|
108
|
+
## How it works
|
|
109
|
+
|
|
110
|
+
1. **Install** — fetches skill files from a Git repository (via API, archive, or sparse checkout)
|
|
111
|
+
2. **Place** — detects your agents and writes files to the correct config directories
|
|
112
|
+
3. **Track** — records the source, version, and integrity hash in a manifest and lockfile
|
|
113
|
+
4. **Sync** — keeps skills up to date with upstream and tracks local modifications
|
|
114
|
+
|
|
115
|
+
The manifest (`agentver.json`) and lockfile (`agentver-lock.json`) are designed to be committed to your repository so your team stays in sync.
|
|
116
|
+
|
|
117
|
+
## Well-known domains
|
|
118
|
+
|
|
119
|
+
Repositories can advertise their skills via a `/.well-known/skills/index.json` endpoint, enabling `agentver install example.com` to resolve skills automatically.
|
|
120
|
+
|
|
121
|
+
## Licence
|
|
122
|
+
|
|
123
|
+
MIT
|