add-skill-kit 1.4.0 → 1.5.1
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/README.md +17 -0
- package/bin/cli.js +2 -2
- package/bin/lib/commands/install.js +14 -0
- package/bin/lib/ui.js +30 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,7 @@ npx -y add-skill-kit agentskillkit/agent-skills
|
|
|
20
20
|
- 40+ skills chuyên môn
|
|
21
21
|
- 20 specialist agents
|
|
22
22
|
- 11 workflows có sẵn
|
|
23
|
+
- **✅ Agent CLI (`npx agent`) đã sẵn sàng**
|
|
23
24
|
|
|
24
25
|
### 🧩 Không Bao Giờ Copy-Paste Prompts Nữa
|
|
25
26
|
|
|
@@ -108,6 +109,7 @@ add-skill-kit doctor
|
|
|
108
109
|
### 🎯 Intelligent Installation
|
|
109
110
|
|
|
110
111
|
- **Interactive selection** - Chọn skills cần cài
|
|
112
|
+
- **Auto-Install CLI** - Tự động cài `@agent-skill-kit/cli`
|
|
111
113
|
- **Symlink mode** - Tiết kiệm disk space
|
|
112
114
|
- **Copy mode** - Offline support
|
|
113
115
|
- **Merkle verification** - Đảm bảo integrity
|
|
@@ -128,6 +130,21 @@ Một lệnh cài đặt tất cả:
|
|
|
128
130
|
└── ARCHITECTURE.md
|
|
129
131
|
```
|
|
130
132
|
|
|
133
|
+
### ⚡ 11 Slash Commands Có Sẵn
|
|
134
|
+
| Command | Chức năng |
|
|
135
|
+
|---------|-----------|
|
|
136
|
+
| `/brainstorm` | Khám phá options trước khi code |
|
|
137
|
+
| `/create` | Tạo features/apps mới |
|
|
138
|
+
| `/debug` | Debug có hệ thống |
|
|
139
|
+
| `/deploy` | Deploy production |
|
|
140
|
+
| `/enhance` | Thêm/cập nhật features |
|
|
141
|
+
| `/orchestrate` | Điều phối multi-agents |
|
|
142
|
+
| `/plan` | Lập kế hoạch task |
|
|
143
|
+
| `/preview` | Quản lý dev server |
|
|
144
|
+
| `/status` | Xem tiến độ project |
|
|
145
|
+
| `/test` | Tạo và chạy tests |
|
|
146
|
+
| `/ui-ux-pro-max` | Thiết kế UI chuyên sâu |
|
|
147
|
+
|
|
131
148
|
---
|
|
132
149
|
|
|
133
150
|
## 🛠️ Development
|
package/bin/cli.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Install Agent Skill CLI
|
|
4
4
|
* @description Package manager for AI Agent Skills
|
|
5
5
|
*/
|
|
6
|
-
import { c,
|
|
6
|
+
import { c, brandedIntro } from "./lib/ui.js";
|
|
7
7
|
import { command, params, VERSION } from "./lib/config.js";
|
|
8
8
|
|
|
9
9
|
// --- Command Registry ---
|
|
@@ -52,7 +52,7 @@ function findCommand(cmd) {
|
|
|
52
52
|
|
|
53
53
|
// --- MAIN ---
|
|
54
54
|
async function main() {
|
|
55
|
-
|
|
55
|
+
brandedIntro(VERSION);
|
|
56
56
|
|
|
57
57
|
try {
|
|
58
58
|
// Handle version flag
|
|
@@ -543,6 +543,20 @@ export async function run(spec) {
|
|
|
543
543
|
|
|
544
544
|
fs.rmSync(tmp, { recursive: true, force: true });
|
|
545
545
|
|
|
546
|
+
// Install CLI package as devDependency
|
|
547
|
+
stepLine();
|
|
548
|
+
const cliSpinner = spinner();
|
|
549
|
+
cliSpinner.start("Installing Agent CLI");
|
|
550
|
+
|
|
551
|
+
try {
|
|
552
|
+
await execAsync("npm install -D @agent-skill-kit/cli", { timeout: 120000 });
|
|
553
|
+
cliSpinner.stop("Agent CLI installed");
|
|
554
|
+
step(c.dim("Run: npx agent"));
|
|
555
|
+
} catch (e) {
|
|
556
|
+
cliSpinner.stop(c.yellow("CLI installation skipped"));
|
|
557
|
+
step(c.dim("Run manually: npm i -D @agent-skill-kit/cli"));
|
|
558
|
+
}
|
|
559
|
+
|
|
546
560
|
stepLine();
|
|
547
561
|
console.log(` ${c.cyan("Done!")}`);
|
|
548
562
|
console.log();
|
package/bin/lib/ui.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import kleur from "kleur";
|
|
6
|
+
import boxen from "boxen";
|
|
6
7
|
import { intro, outro, multiselect, select, confirm, isCancel, cancel, text } from "@clack/prompts";
|
|
7
8
|
import ora from "ora";
|
|
8
9
|
|
|
@@ -130,3 +131,32 @@ export function success(msg) {
|
|
|
130
131
|
export function outputJSON(data, jsonMode) {
|
|
131
132
|
if (jsonMode) console.log(JSON.stringify(data, null, 2));
|
|
132
133
|
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Create a nice box message
|
|
137
|
+
* @param {string} message - Message content
|
|
138
|
+
* @param {object} options - Box options
|
|
139
|
+
*/
|
|
140
|
+
export function box(message, options = {}) {
|
|
141
|
+
return "\n" + boxen(message, {
|
|
142
|
+
padding: { top: 0, bottom: 0, left: 1, right: 1 },
|
|
143
|
+
margin: { top: 0, bottom: 0, left: 0, right: 0 },
|
|
144
|
+
borderStyle: "round",
|
|
145
|
+
borderColor: "blue",
|
|
146
|
+
...options
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Show branded intro with version
|
|
152
|
+
* @param {string} version - Package version
|
|
153
|
+
* @param {string} [status] - Optional status text
|
|
154
|
+
*/
|
|
155
|
+
export function brandedIntro(version, status = "") {
|
|
156
|
+
const statusLine = status ? `\n\n ${c.dim(status)}` : "";
|
|
157
|
+
console.log(box(
|
|
158
|
+
`📦 Add Skill Kit v${version}${statusLine}`,
|
|
159
|
+
{ borderColor: status.includes("✓") ? "green" : "blue" }
|
|
160
|
+
));
|
|
161
|
+
}
|
|
162
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "add-skill-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Enterprise-grade Agent Skill Manager with Antigravity Skills support, Progressive Disclosure detection, and semantic routing validation",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "agentskillkit <agentskillkit@gmail.com>",
|