findskill 0.1.2 → 0.1.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 +11 -2
- package/package.json +11 -3
package/dist/index.js
CHANGED
|
@@ -11509,11 +11509,14 @@ var updateCommand = new Command("update").description("Update installed skills t
|
|
|
11509
11509
|
|
|
11510
11510
|
// src/commands/submit.ts
|
|
11511
11511
|
var import_picocolors7 = __toESM(require_picocolors(), 1);
|
|
11512
|
-
var submitCommand = new Command("submit").description("Submit a new skill from a GitHub URL").argument("<github-url>", "GitHub URL to a skill.md file").action(async (githubUrl) => {
|
|
11512
|
+
var submitCommand = new Command("submit").description("Submit a new skill from a GitHub URL (folder or SKILL.md file)").argument("<github-url>", "GitHub URL to a skill folder or SKILL.md file").action(async (githubUrl) => {
|
|
11513
11513
|
if (!githubUrl.includes("github.com") && !githubUrl.includes("gist.github")) {
|
|
11514
11514
|
consola.error("Please provide a valid GitHub or Gist URL.");
|
|
11515
11515
|
process.exit(1);
|
|
11516
11516
|
}
|
|
11517
|
+
if (!githubUrl.endsWith(".md") && !githubUrl.includes("gist.github")) {
|
|
11518
|
+
githubUrl = githubUrl.replace(/\/$/, "") + "/SKILL.md";
|
|
11519
|
+
}
|
|
11517
11520
|
const spinner = ora("Submitting skill...").start();
|
|
11518
11521
|
try {
|
|
11519
11522
|
const skill = await submitSkill(githubUrl);
|
|
@@ -11531,12 +11534,18 @@ var submitCommand = new Command("submit").description("Submit a new skill from a
|
|
|
11531
11534
|
|
|
11532
11535
|
// src/index.ts
|
|
11533
11536
|
var program2 = new Command;
|
|
11534
|
-
program2.name("findskill").description("CLI for discovering and installing
|
|
11537
|
+
program2.name("findskill").description("CLI for discovering and installing SKILL.md format skills").version("0.1.0").addCommand(searchCommand).addCommand(infoCommand).addCommand(installCommand).addCommand(listCommand).addCommand(updateCommand).addCommand(submitCommand);
|
|
11535
11538
|
program2.action(() => {
|
|
11536
11539
|
console.log("");
|
|
11537
11540
|
console.log(import_picocolors8.default.bold(import_picocolors8.default.cyan(" findskill.md")));
|
|
11538
11541
|
console.log(import_picocolors8.default.dim(" Discover and install skills for Claude"));
|
|
11539
11542
|
console.log("");
|
|
11540
11543
|
program2.outputHelp();
|
|
11544
|
+
console.log("");
|
|
11545
|
+
console.log(import_picocolors8.default.yellow(" Tip:"), "Install the", import_picocolors8.default.cyan("use-findskill"), "skill to teach your agent to");
|
|
11546
|
+
console.log(" automatically search for skills when it encounters new problems.");
|
|
11547
|
+
console.log("");
|
|
11548
|
+
console.log(import_picocolors8.default.dim(" npx findskill install use-findskill"));
|
|
11549
|
+
console.log("");
|
|
11541
11550
|
});
|
|
11542
11551
|
program2.parse();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "findskill",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "CLI for discovering and installing
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "CLI for discovering and installing SKILL.md format skills",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"findskill": "./dist/index.js"
|
|
@@ -26,7 +26,15 @@
|
|
|
26
26
|
"@types/bun": "^1.1.6",
|
|
27
27
|
"typescript": "^5.5.0"
|
|
28
28
|
},
|
|
29
|
-
"keywords": [
|
|
29
|
+
"keywords": [
|
|
30
|
+
"skill",
|
|
31
|
+
"cli",
|
|
32
|
+
"claude",
|
|
33
|
+
"ai",
|
|
34
|
+
"skills",
|
|
35
|
+
"findskill",
|
|
36
|
+
"SKILL.md"
|
|
37
|
+
],
|
|
30
38
|
"author": "alentodorov",
|
|
31
39
|
"license": "MIT",
|
|
32
40
|
"repository": {
|