@votruongdanh/ai-agent-skills 3.2.0 → 3.2.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 +1 -1
- package/bin/cli.js +6 -5
- package/lib/skill-bundle.js +4 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ The `add` command:
|
|
|
101
101
|
| Cursor legacy | `.cursor/rules/<skill>.mdc` | Generated compatibility layer |
|
|
102
102
|
| Antigravity | `.agent/workflows/<skill>.md` | Generated workflow bridge |
|
|
103
103
|
| Antigravity legacy | `agent/workflows/<skill>.md` | Compatibility alias for older setups |
|
|
104
|
-
| Codex | `.
|
|
104
|
+
| Codex | `.agents/skills/<skill>/SKILL.md` | Detected from `.agents/skills`, `AGENTS.md`, and/or `memories/` |
|
|
105
105
|
| VS Code | `.github/skills/<skill>/SKILL.md` | Native SKILL.md format for Copilot Chat |
|
|
106
106
|
| GitHub Copilot | `.github/skills/<skill>/SKILL.md` | Alias of VS Code target |
|
|
107
107
|
|
package/bin/cli.js
CHANGED
|
@@ -152,11 +152,12 @@ function resolveInstallContext() {
|
|
|
152
152
|
const normalized = normalizeIDEName(manualIDE);
|
|
153
153
|
if (normalized) {
|
|
154
154
|
const projectMatch = findProjectRootForIDE(cwd, normalized);
|
|
155
|
+
const useDetectedProjectRoot = projectMatch && projectMatch.projectDir === cwd;
|
|
155
156
|
return {
|
|
156
157
|
ide: normalized,
|
|
157
158
|
source: 'flag',
|
|
158
|
-
baseDir:
|
|
159
|
-
matchedPath:
|
|
159
|
+
baseDir: useDetectedProjectRoot ? projectMatch.projectDir : cwd,
|
|
160
|
+
matchedPath: useDetectedProjectRoot ? projectMatch.matchedPath : null,
|
|
160
161
|
};
|
|
161
162
|
}
|
|
162
163
|
console.log(error(`Unknown IDE: ${manualIDE}`));
|
|
@@ -185,7 +186,7 @@ async function interactiveInit() {
|
|
|
185
186
|
{ label: 'Cursor', value: 'cursor', description: '.cursor/skills + .cursor/rules', recommended: true },
|
|
186
187
|
{ label: 'Kiro', value: 'kiro', description: '.kiro/skills' },
|
|
187
188
|
{ label: 'Antigravity', value: 'antigravity', description: '.agent/workflows' },
|
|
188
|
-
{ label: 'Codex', value: 'codex', description: '.
|
|
189
|
+
{ label: 'Codex', value: 'codex', description: '.agents/skills (+ AGENTS.md / memories)' },
|
|
189
190
|
{ label: 'VS Code', value: 'vscode', description: '.github/skills' },
|
|
190
191
|
{ label: 'GitHub Copilot', value: 'copilot', description: '.github/skills' },
|
|
191
192
|
{ label: 'All supported IDEs', value: 'all', description: 'Install for every supported IDE' },
|
|
@@ -416,7 +417,7 @@ async function addSkillFromGitHub() {
|
|
|
416
417
|
{ label: 'Cursor', value: 'cursor', description: '.cursor/skills', recommended: true },
|
|
417
418
|
{ label: 'Kiro', value: 'kiro', description: '.kiro/skills' },
|
|
418
419
|
{ label: 'Antigravity', value: 'antigravity', description: '.agent/workflows' },
|
|
419
|
-
{ label: 'Codex', value: 'codex', description: '.
|
|
420
|
+
{ label: 'Codex', value: 'codex', description: '.agents/skills (+ AGENTS.md / memories)' },
|
|
420
421
|
{ label: 'VS Code', value: 'vscode', description: '.github/skills' },
|
|
421
422
|
{ label: 'GitHub Copilot', value: 'copilot', description: '.github/skills' },
|
|
422
423
|
];
|
|
@@ -801,7 +802,7 @@ ${c.bold}Supported IDEs:${c.reset}
|
|
|
801
802
|
${c.cyan}cursor${c.reset} ${c.dim}→ .cursor/skills + .cursor/rules${c.reset}
|
|
802
803
|
${c.cyan}kiro${c.reset} ${c.dim}→ .kiro/skills${c.reset}
|
|
803
804
|
${c.cyan}antigravity${c.reset} ${c.dim}→ .agent/workflows${c.reset}
|
|
804
|
-
${c.cyan}codex${c.reset} ${c.dim}→ .
|
|
805
|
+
${c.cyan}codex${c.reset} ${c.dim}→ .agents/skills (detected via AGENTS.md / memories)${c.reset}
|
|
805
806
|
${c.cyan}vscode${c.reset} ${c.dim}→ .github/skills${c.reset}
|
|
806
807
|
${c.cyan}copilot${c.reset} ${c.dim}→ .github/skills${c.reset}
|
|
807
808
|
${c.cyan}all${c.reset} ${c.dim}→ install to all IDE targets above${c.reset}
|
package/lib/skill-bundle.js
CHANGED
|
@@ -64,17 +64,14 @@ const IDE_DEFINITIONS = {
|
|
|
64
64
|
},
|
|
65
65
|
codex: {
|
|
66
66
|
displayName: 'Codex',
|
|
67
|
-
projectRoot: '.
|
|
68
|
-
globalRoot: path.join(os.homedir(), '.
|
|
67
|
+
projectRoot: '.agents',
|
|
68
|
+
globalRoot: path.join(os.homedir(), '.agents'),
|
|
69
69
|
detectProjectPaths: [
|
|
70
|
+
'.agents/skills',
|
|
70
71
|
'AGENTS.md',
|
|
71
72
|
'memories',
|
|
72
|
-
'.github/skills',
|
|
73
|
-
'.github/copilot-instructions.md',
|
|
74
|
-
'.github/prompts',
|
|
75
|
-
'.agents/skills',
|
|
76
73
|
],
|
|
77
|
-
detectGlobalPaths: ['.codex', '.codex/memories'],
|
|
74
|
+
detectGlobalPaths: ['.agents/skills', '.codex', '.codex/memories'],
|
|
78
75
|
targets: [{ relativeDir: 'skills', format: 'skill' }],
|
|
79
76
|
},
|
|
80
77
|
vscode: {
|
package/package.json
CHANGED