install-agent-skill 1.0.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.
@@ -0,0 +1,191 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/dataguruin/add-skill/main/.github/logo.svg" height="128">
3
+ <h1 align="center">install-agent-skill</h1>
4
+ </p>
5
+
6
+ <p align="center">
7
+ <a href="https://www.npmjs.com/package/install-agent-skill"><img src="https://img.shields.io/npm/v/install-agent-skill?style=flat&colorA=18181b&colorB=7c3aed" alt="npm version"></a>
8
+ <a href="https://www.npmjs.com/package/install-agent-skill"><img src="https://img.shields.io/npm/d18m/install-agent-skill?style=flat&colorA=18181b&colorB=7c3aed" alt="npm downloads"></a>
9
+ <a href="https://github.com/dataguruin/add-skill/blob/main/LICENSE"><img src="https://img.shields.io/github/license/dataguruin/add-skill?style=flat&colorA=18181b&colorB=7c3aed" alt="license"></a>
10
+ </p>
11
+
12
+ <p align="center">
13
+ The enterprise-grade package manager for AI Agent Skills.<br/>
14
+ Designed for the <strong>Antigravity Skills</strong> specification.
15
+ </p>
16
+
17
+ <p align="center">
18
+ <a href="#installation">Installation</a> •
19
+ <a href="#quick-start">Quick Start</a> •
20
+ <a href="#commands">Commands</a> •
21
+ <a href="#features">Features</a> •
22
+ <a href="#documentation">Docs</a>
23
+ </p>
24
+
25
+ ---
26
+
27
+ ## What is add-skill?
28
+
29
+ `install-agent-skill` is a CLI tool for managing **Agent Skills**—immutable, verifiable intelligence artifacts that extend your AI agent's capabilities. Think of it as `npm` for AI agents.
30
+
31
+ ```bash
32
+ npx -y install-agent-skill install dataguruin/coinpika-agent-skills#coinpika-doctrine-pack
33
+ ```
34
+
35
+ Skills are **data, not code**. They won't execute on your system—they're read by your agent to enhance its behavior.
36
+
37
+ ---
38
+
39
+ ## Installation
40
+
41
+ ```bash
42
+ # Using npm
43
+ npm install -g install-agent-skill
44
+
45
+ # Using pnpm
46
+ pnpm add -g install-agent-skill
47
+
48
+ # Using Yarn
49
+ yarn global add install-agent-skill
50
+
51
+ # Or run directly with npx
52
+ npx -y install-agent-skill <command>
53
+ ```
54
+
55
+ > **Requirements:** Node.js 18.0.0 or later
56
+
57
+ ---
58
+
59
+ ## Quick Start
60
+
61
+ ### 1. Initialize your workspace
62
+
63
+ ```bash
64
+ npx -y install-agent-skill init
65
+ ```
66
+
67
+ This creates the `.agent/skills` directory structure in your project.
68
+
69
+ ### 2. Install a skill
70
+
71
+ Install from GitHub with optional version pinning:
72
+
73
+ ```bash
74
+ # Latest version
75
+ npx -y install-agent-skill install dataguruin/coinpika-agent-skills#coinpika-pr-reviewer
76
+
77
+ # Specific version
78
+ npx -y install-agent-skill install dataguruin/coinpika-agent-skills#coinpika-doctrine-pack@v1.0.0
79
+ ```
80
+
81
+ ### 3. List installed skills
82
+
83
+ ```bash
84
+ npx -y install-agent-skill list
85
+ ```
86
+
87
+ ### 4. Validate compliance
88
+
89
+ ```bash
90
+ npx -y install-agent-skill validate
91
+ ```
92
+
93
+ ---
94
+
95
+ ## Commands
96
+
97
+ | Command | Description |
98
+ | :--- | :--- |
99
+ | `init` | Initialize `.agent/skills` workspace |
100
+ | `install <spec>` | Install a skill from GitHub or registry |
101
+ | `uninstall <name>` | Remove an installed skill |
102
+ | `update <name>` | Update a skill to latest version |
103
+ | `upgrade-all` | Upgrade all skills in workspace |
104
+ | `list` | List installed skills with metadata |
105
+ | `validate` | Check Antigravity compliance |
106
+ | `analyze <name>` | Inspect skill structure & Progressive Disclosure |
107
+ | `doctor` | Check health & integrity |
108
+ | `lock` | Generate `skill-lock.json` |
109
+ | `cache clear` | Clear local cache |
110
+
111
+ ---
112
+
113
+ ## Features
114
+
115
+ ### Progressive Disclosure
116
+
117
+ Skills follow a structured hierarchy that lets agents read only what they need:
118
+
119
+ ```
120
+ skill/
121
+ ├── SKILL.md # Core instructions (always read)
122
+ ├── resources/ # Reference materials (on-demand)
123
+ ├── examples/ # Implementation patterns (when coding)
124
+ ├── scripts/ # Helper utilities (when needed)
125
+ ├── constitution/ # Governing rules
126
+ └── doctrines/ # Behavioral policies
127
+ ```
128
+
129
+ ### Deterministic Locking
130
+
131
+ Pin exact versions for reproducible builds across your team:
132
+
133
+ ```bash
134
+ # Generate lockfile
135
+ npx -y install-agent-skill lock
136
+
137
+ # Install from lockfile
138
+ npx -y install-agent-skill install --locked
139
+ ```
140
+
141
+ ### Security by Design
142
+
143
+ | Feature | Description |
144
+ | :--- | :--- |
145
+ | **No Execution** | Skills are data artifacts, never executed |
146
+ | **SHA-256 Hashing** | Every skill is verified against its Merkle hash |
147
+ | **Integrity Checks** | `doctor` command detects tampering |
148
+ | **Audit Trail** | Full provenance tracking in `.skill-source.json` |
149
+
150
+ ---
151
+
152
+ ## Documentation
153
+
154
+ <table>
155
+ <tbody>
156
+ <tr>
157
+ <td><a href="https://github.com/dataguruin/add-skill/blob/main/specs/SKILL_V1.md">Skill Spec v1.0</a></td>
158
+ <td>The Antigravity Skills specification</td>
159
+ </tr>
160
+ <tr>
161
+ <td><a href="https://github.com/dataguruin/add-skill/tree/main/examples">Examples</a></td>
162
+ <td>Example skills and integration patterns</td>
163
+ </tr>
164
+ <tr>
165
+ <td><a href="https://github.com/dataguruin/add-skill/issues">Issues</a></td>
166
+ <td>Report bugs or request features</td>
167
+ </tr>
168
+ </tbody>
169
+ </table>
170
+
171
+ ---
172
+
173
+ ## Community
174
+
175
+ We welcome contributions! See our [Contributing Guide](https://github.com/dataguruin/add-skill/blob/main/CONTRIBUTING.md) to get started.
176
+
177
+ <a href="https://github.com/dataguruin/add-skill/graphs/contributors">
178
+ <img src="https://contrib.rocks/image?repo=dataguruin/add-skill" />
179
+ </a>
180
+
181
+ ---
182
+
183
+ <p align="center">
184
+ <sub>Built with ❤️ by <a href="https://github.com/dataguruin">DataGuruIn</a></sub>
185
+ </p>
186
+
187
+ <p align="center">
188
+ <a href="https://github.com/dataguruin/add-skill">GitHub</a> •
189
+ <a href="https://www.npmjs.com/package/@dataguruin/add-skill">npm</a> •
190
+ <a href="https://github.com/dataguruin/add-skill/blob/main/LICENSE">License</a>
191
+ </p>
package/README.md ADDED
@@ -0,0 +1,164 @@
1
+ <p align="center">
2
+ <img src="https://img.shields.io/badge/install--agent--skill-v1.0.0-000000?style=for-the-badge&logo=npm&logoColor=white" alt="install-agent-skill v1.0.0" />
3
+ </p>
4
+
5
+ <h1 align="center">Install Agent Skill</h1>
6
+
7
+ <p align="center">
8
+ <strong>The enterprise standard for AI agent capability management.</strong><br/>
9
+ Securely install, route, and verify abilities for Antigravity-compatible coding agents.
10
+ </p>
11
+
12
+ <p align="center">
13
+ <a href="https://www.npmjs.com/package/install-agent-skill"><img src="https://img.shields.io/npm/v/install-agent-skill?style=flat-square&color=000000" alt="npm version"></a>
14
+ <a href="https://www.npmjs.com/package/install-agent-skill"><img src="https://img.shields.io/npm/dm/install-agent-skill?style=flat-square&color=000000" alt="npm downloads"></a>
15
+ <a href="https://github.com/dataguruin/add-skill/blob/main/LICENSE"><img src="https://img.shields.io/github/license/dataguruin/add-skill?style=flat-square&color=000000" alt="license"></a>
16
+ </p>
17
+
18
+ <p align="center">
19
+ <a href="#installation">Installation</a> •
20
+ <a href="#quick-start">Quick Start</a> •
21
+ <a href="#workflow">Workflow</a> •
22
+ <a href="#architecture">Architecture</a>
23
+ </p>
24
+
25
+ ---
26
+
27
+ ## Overview
28
+
29
+ **Install Agent Skill** is a production-grade CLI for orchestrating **Agent Skills**—modular, verifiable capability packs that extend AI agents without executing arbitrary code. It treats agent capabilities as managed dependencies, ensuring reproducibility and security across your engineering organization.
30
+
31
+ ### Key Value Proposition
32
+ * **Zero-Execution Integrity**: Skills are data, not scripts. No unauthorized code runs on your machine.
33
+ * **Single Source of Truth**: 'Smart Symlinks' keep your projects in sync with a central global registry.
34
+ * **Semantic Routing**: Automatically maps skills to the agents best suited to execute them.
35
+
36
+ ---
37
+
38
+ ## Installation
39
+
40
+ ```bash
41
+ # Zero-setup execution (Recommended)
42
+ npx -y install-agent-skill dataguruin/agent-skills
43
+ ```
44
+
45
+ ```bash
46
+ # Global installation
47
+ npm install -g install-agent-skill
48
+ ```
49
+
50
+ > **System Requirements**
51
+ > * Node.js 18.0.0 or higher
52
+ > * Windows / macOS / Linux
53
+
54
+ ---
55
+
56
+ ## Workflow
57
+
58
+ ### 1. Interactive Installation
59
+ The CLI guides you through skill selection, agent targeting, and installation method.
60
+
61
+ ```bash
62
+ npx -y install-agent-skill dataguruin/agent-skills
63
+ ```
64
+
65
+ ```text
66
+ ┌ Install Agent Skill v1.0.0
67
+
68
+ ◇ Source: https://github.com/dataguruin/agent-skills.git
69
+ ◇ Repository cloned
70
+
71
+ ◇ Found 3 skills
72
+
73
+ ◆ Select skills to install
74
+
75
+ ◆ (Press <space> to select, <enter> to submit)
76
+ │ ◼ coinpika-doctrine-pack (>...)
77
+ │ ◻ coinpika-commit-formatter (>...)
78
+
79
+ ◆ Select agents to install skills to (Antigravity only)
80
+ │ ◼ Antigravity (.agent/skills)
81
+
82
+ ◇ Installation scope
83
+ │ Project
84
+
85
+ ◆ Installation method
86
+ │ ● Symlink (Recommended) (Single source of truth, easy updates)
87
+ │ ○ Copy to all agents
88
+
89
+ ◇ Installation Summary
90
+
91
+ │ ╭ Installation Summary ───────────────────────────────────────────╮
92
+ │ │ │
93
+ │ │ ~\Desktop\New Project\.agents\skills\coinpika-doctrine-pack │
94
+ │ │ symlink → Antigravity │
95
+ │ │ │
96
+ │ ╰─────────────────────────────────────────────────────────────────╯
97
+
98
+ ◆ Proceed with installation?
99
+ │ Yes
100
+
101
+ ◇ Installation complete
102
+
103
+ │ ╭ Installed 1 skills to 1 agents ─────────────────────────────────╮
104
+ │ │ │
105
+ │ │ ✓ ~\Desktop\New Project\.agents\skills\coinpika-doctrine-pack │
106
+ │ │ symlink → Antigravity │
107
+ │ │ │
108
+ │ ╰─────────────────────────────────────────────────────────────────╯
109
+
110
+ └ Done!
111
+ ```
112
+
113
+ ### 2. Choose Your Strategy
114
+ We offer two robust installation strategies tailored to your workflow:
115
+
116
+ #### 🔗 Symlink (Recommended)
117
+ * **Mechanism**: Uses `fs.symlink` (Junctions on Windows) to link your project's skill folder to a persistent global storage (`~/.gemini/antigravity/skills/storage`).
118
+ * **Benefit**: **Single Source of Truth**. Updating the skill once in global storage updates it across all your projects instantly. Ideal for core doctrines and standardized team rules.
119
+
120
+ #### 📋 Copy
121
+ * **Mechanism**: Performs a deep copy of the skill files into your project.
122
+ * **Benefit**: **Isolation**. Perfect for project-specific customization where you need to modify the skill without affecting other projects.
123
+
124
+ ---
125
+
126
+ ## Architecture
127
+
128
+ ### Progressive Disclosure
129
+ To prevent context window overflow, skills use a hierarchical loading system:
130
+
131
+ | Layer | Component | Description | Load Trigger |
132
+ |:------|:----------|:------------|:-------------|
133
+ | **L1** | `SKILL.md` | Core directives & metadata | Always Active |
134
+ | **L2** | `doctrines/` | Specific behavioral policies | Context-Sensitive |
135
+ | **L3** | `resources/` | Deep documentation & specs | On-Demand |
136
+
137
+ ### Security & Verification
138
+ Your security is our priority.
139
+ * **Merkle Hashing**: Every installed skill is fingerprinted (`SHA-256`) and stored in `.skill-source.json`.
140
+ * **Tamper Detection**: Run `install-agent-skill doctor` to verify that no files have been modified since installation.
141
+
142
+ ---
143
+
144
+ ## Commands
145
+
146
+ | Command | Usage |
147
+ |:--------|:------|
148
+ | `install <repo>` | Interactive wizard to install skills from GitHub. |
149
+ | `list` | View installed skills, versions, and health status. |
150
+ | `doctor` | Diagnose configuration and integrity issues. |
151
+ | `verify` | Cryptographically verify installed assets against their manifest. |
152
+ | `analyze <skill>` | Inspect a skill's compatibility score and structure. |
153
+ | `uninstall <skill>` | Remove a skill and clean up symlinks/artifacts. |
154
+
155
+ ---
156
+
157
+ ## License
158
+
159
+ MIT © [DataGuruIn](https://github.com/dataguruin)
160
+
161
+ <p align="center">
162
+ <a href="https://github.com/dataguruin/add-skill">GitHub</a> •
163
+ <a href="https://www.npmjs.com/package/install-agent-skill">npm</a>
164
+ </p>
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * DEPRECATED: Use bin/cli.js instead
4
+ */
5
+ import "./cli.js";
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * DEPRECATED: Use bin/cli.js instead
4
+ */
5
+ import "./cli.js";