findskill 0.1.3 → 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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "findskill",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "CLI for discovering and installing SKILL.md format skills",
5
5
  "type": "module",
6
6
  "bin": {