@buiducnhat/agent-skills 0.5.3 → 0.5.4
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/dist/index.js +44 -35
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2062,39 +2062,48 @@ const SUPPORTED_AGENTS = [
|
|
|
2062
2062
|
}
|
|
2063
2063
|
];
|
|
2064
2064
|
const AGENT_SKILLS_DIRS = {
|
|
2065
|
-
".adal": "adal",
|
|
2066
|
-
".agent": "antigravity",
|
|
2067
|
-
".agents":
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
".
|
|
2078
|
-
".
|
|
2079
|
-
".
|
|
2080
|
-
".
|
|
2081
|
-
".
|
|
2082
|
-
".
|
|
2083
|
-
".
|
|
2084
|
-
".
|
|
2085
|
-
".
|
|
2086
|
-
".
|
|
2087
|
-
".
|
|
2088
|
-
".
|
|
2089
|
-
".
|
|
2090
|
-
".
|
|
2091
|
-
".
|
|
2092
|
-
".
|
|
2093
|
-
".
|
|
2094
|
-
".
|
|
2095
|
-
".
|
|
2096
|
-
".
|
|
2097
|
-
|
|
2065
|
+
".adal": ["adal"],
|
|
2066
|
+
".agent": ["antigravity"],
|
|
2067
|
+
".agents": [
|
|
2068
|
+
"opencode",
|
|
2069
|
+
"codex",
|
|
2070
|
+
"github-copilot",
|
|
2071
|
+
"gemini-cli",
|
|
2072
|
+
"cline",
|
|
2073
|
+
"kimi-cli",
|
|
2074
|
+
"replit",
|
|
2075
|
+
"amp"
|
|
2076
|
+
],
|
|
2077
|
+
".augment": ["augment"],
|
|
2078
|
+
".claude": ["claude-code"],
|
|
2079
|
+
".codebuddy": ["codebuddy"],
|
|
2080
|
+
".commandcode": ["command-code"],
|
|
2081
|
+
".continue": ["continue"],
|
|
2082
|
+
".cortex": ["cortex"],
|
|
2083
|
+
".crush": ["crush"],
|
|
2084
|
+
".cursor": ["cursor"],
|
|
2085
|
+
".factory": ["droid"],
|
|
2086
|
+
".gemini": ["gemini-cli", "antigravity"],
|
|
2087
|
+
".goose": ["goose"],
|
|
2088
|
+
".iflow": ["iflow-cli"],
|
|
2089
|
+
".junie": ["junie"],
|
|
2090
|
+
".kilocode": ["kilo"],
|
|
2091
|
+
".kiro": ["kiro-cli"],
|
|
2092
|
+
".kode": ["kode"],
|
|
2093
|
+
".mcpjam": ["mcpjam"],
|
|
2094
|
+
".mux": ["mux"],
|
|
2095
|
+
".neovate": ["neovate"],
|
|
2096
|
+
".openhands": ["openhands"],
|
|
2097
|
+
".pi": ["pi"],
|
|
2098
|
+
".pochi": ["pochi"],
|
|
2099
|
+
".qoder": ["qoder"],
|
|
2100
|
+
".qwen": ["qwen-code"],
|
|
2101
|
+
".roo": ["roo"],
|
|
2102
|
+
".trae": ["trae"],
|
|
2103
|
+
".vibe": ["mistral-vibe"],
|
|
2104
|
+
".windsurf": ["windsurf"],
|
|
2105
|
+
".zencoder": ["zencoder"],
|
|
2106
|
+
skills: ["openclaw"]
|
|
2098
2107
|
};
|
|
2099
2108
|
const AGENT_RULES_MAP = {
|
|
2100
2109
|
"github-copilot": "AGENTS.md",
|
|
@@ -2285,9 +2294,9 @@ function parseArgs(argv) {
|
|
|
2285
2294
|
}
|
|
2286
2295
|
function detectAgentsFromFilesystem(projectDir) {
|
|
2287
2296
|
const detected = [];
|
|
2288
|
-
for (const [dirPrefix,
|
|
2297
|
+
for (const [dirPrefix, agentIds] of Object.entries(AGENT_SKILLS_DIRS)) {
|
|
2289
2298
|
const skillsDir = path.join(projectDir, dirPrefix, "skills");
|
|
2290
|
-
if (fs.existsSync(skillsDir)) detected.push(
|
|
2299
|
+
if (fs.existsSync(skillsDir)) detected.push(...agentIds);
|
|
2291
2300
|
}
|
|
2292
2301
|
return detected;
|
|
2293
2302
|
}
|