@skillkit/core 1.7.7 → 1.7.9
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 +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -637,7 +637,7 @@ function loadMetadata(skillPath) {
|
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
function readSkillContent(skillPath) {
|
|
640
|
-
const skillMdPath = join(skillPath, "SKILL.md");
|
|
640
|
+
const skillMdPath = skillPath.endsWith(".md") ? skillPath : join(skillPath, "SKILL.md");
|
|
641
641
|
if (!existsSync(skillMdPath)) {
|
|
642
642
|
return null;
|
|
643
643
|
}
|
|
@@ -677,8 +677,9 @@ function findAllSkills(searchDirs) {
|
|
|
677
677
|
function validateSkill(skillPath) {
|
|
678
678
|
const errors = [];
|
|
679
679
|
const warnings = [];
|
|
680
|
-
const
|
|
681
|
-
const
|
|
680
|
+
const isStandalone = skillPath.endsWith(".md");
|
|
681
|
+
const dirName = isStandalone ? basename(skillPath, ".md") : basename(skillPath);
|
|
682
|
+
const skillMdPath = isStandalone ? skillPath : join(skillPath, "SKILL.md");
|
|
682
683
|
if (!existsSync(skillMdPath)) {
|
|
683
684
|
errors.push("Missing SKILL.md file");
|
|
684
685
|
return { valid: false, errors };
|
|
@@ -16397,7 +16398,7 @@ var AGENT_DISCOVERY_PATHS = {
|
|
|
16397
16398
|
"antigravity": [".antigravity/agents"],
|
|
16398
16399
|
"amp": [".amp/agents"],
|
|
16399
16400
|
"clawdbot": [".clawdbot/agents", "agents"],
|
|
16400
|
-
"droid": [".
|
|
16401
|
+
"droid": [".droid/agents"],
|
|
16401
16402
|
"github-copilot": [".github/agents", ".github/instructions", ".github/custom-agents"],
|
|
16402
16403
|
"goose": [".goose/agents"],
|
|
16403
16404
|
"kilo": [".kilocode/agents", ".kilocode/modes"],
|
|
@@ -16437,6 +16438,7 @@ var ALL_AGENT_DISCOVERY_PATHS = [
|
|
|
16437
16438
|
".crush/agents",
|
|
16438
16439
|
".cursor/agents",
|
|
16439
16440
|
".cursor/commands",
|
|
16441
|
+
".droid/agents",
|
|
16440
16442
|
".factory/agents",
|
|
16441
16443
|
".gemini/agents",
|
|
16442
16444
|
".github/agents",
|