@buiducnhat/agent-skills 0.4.3 → 0.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.
Files changed (3) hide show
  1. package/dist/index.js +1 -25
  2. package/package.json +1 -1
  3. package/README.md +0 -32
package/dist/index.js CHANGED
@@ -2064,7 +2064,7 @@ const SUPPORTED_AGENTS = [
2064
2064
  const AGENT_SKILLS_DIRS = {
2065
2065
  ".adal": "adal",
2066
2066
  ".agent": "antigravity",
2067
- ".agents": "amp",
2067
+ ".agents": "opencode",
2068
2068
  ".augment": "augment",
2069
2069
  ".claude": "claude-code",
2070
2070
  ".codebuddy": "codebuddy",
@@ -2291,29 +2291,6 @@ function detectAgentsFromFilesystem(projectDir) {
2291
2291
  }
2292
2292
  return detected;
2293
2293
  }
2294
- function copyDirectory(src, dest) {
2295
- fs.mkdirSync(dest, { recursive: true });
2296
- const entries = fs.readdirSync(src, { withFileTypes: true });
2297
- for (const entry of entries) {
2298
- const srcPath = path.join(src, entry.name);
2299
- const destPath = path.join(dest, entry.name);
2300
- if (entry.isDirectory()) copyDirectory(srcPath, destPath);
2301
- else fs.copyFileSync(srcPath, destPath);
2302
- }
2303
- }
2304
- function copyClaudeTemplate(tempDir, projectDir) {
2305
- const srcClaude = path.join(tempDir, "templates", ".claude");
2306
- const destClaude = path.join(projectDir, ".claude");
2307
- if (!fs.existsSync(srcClaude)) return;
2308
- fs.mkdirSync(destClaude, { recursive: true });
2309
- for (const entry of fs.readdirSync(srcClaude, { withFileTypes: true })) {
2310
- if (entry.name === "skills") continue;
2311
- const src = path.join(srcClaude, entry.name);
2312
- const dest = path.join(destClaude, entry.name);
2313
- if (entry.isDirectory()) copyDirectory(src, dest);
2314
- else fs.copyFileSync(src, dest);
2315
- }
2316
- }
2317
2294
  function printHelp() {
2318
2295
  console.log(`
2319
2296
  @buiducnhat/agent-skills - Install AI agent workflow skills for coding assistants
@@ -2439,7 +2416,6 @@ async function main() {
2439
2416
  tempDir = await fetchTemplates();
2440
2417
  const agentsContent = fs.readFileSync(path.join(tempDir, "templates", "AGENTS.md"), "utf-8");
2441
2418
  const results = injectRules(baseDir, selectedAgents, agentsContent);
2442
- copyClaudeTemplate(tempDir, baseDir);
2443
2419
  printSummary(selectedAgents, results);
2444
2420
  Le(import_picocolors.default.green("Done! Your AI agent skills are ready."));
2445
2421
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buiducnhat/agent-skills",
3
- "version": "0.4.3",
3
+ "version": "0.5.1",
4
4
  "description": "Install AI agent workflow skills for coding assistants",
5
5
  "type": "module",
6
6
  "bin": {
package/README.md DELETED
@@ -1,32 +0,0 @@
1
- # @buiducnhat/agent-skills
2
-
3
- ## Quick start
4
-
5
- ### Run with npx
6
-
7
- ```bash
8
- npx @buiducnhat/agent-skills
9
- ```
10
-
11
- ### Select agents non-interactively
12
-
13
- ```bash
14
- npx @buiducnhat/agent-skills --agents claude,cursor,copilot
15
- ```
16
-
17
- ## CLI options
18
-
19
- - `--agents <list>`: comma-separated agent IDs (also enables non-interactive mode)
20
- - `--non-interactive`: skip prompts and use defaults
21
- - `-h, --help`: show help
22
- - `-v, --version`: show version
23
-
24
- ## Requirements
25
-
26
- - Node.js `>=18`
27
- - `git` available in your environment
28
-
29
- ## Repository
30
-
31
- - Source: https://github.com/buiducnhat/agent-skills
32
- - Issues: https://github.com/buiducnhat/agent-skills/issues