Skip to content

Improve skill discovery to support skill.md in repository root #8

@leeeezx

Description

@leeeezx

Problem Description

The install command currently fails to discover a skill if the skill.md file is located in the root directory of the repository and the URL is provided without a trailing
/..

For example, using the repository github.com/comeonzhj/Auto-Redbook-Skills:

  • skillshare install github.com/comeonzhj/Auto-Redbook-Skills -> Fails ("can't find skill")
  • skillshare install github.com/comeonzhj/Auto-Redbook-Skills/. -> Succeeds, but the skill is automatically named repo (requiring --name to rename it properly).

Request

The current workflow is slightly cumbersome for root-level skills.

Proposed Solution:

  • Enhance the discovery mechanism to include the repository root directory when scanning for skill.md.
  • Ensure that when installed from the root, the skill name is derived correctly (e.g., from the repo name) instead of defaulting to repo or requiring manual renaming.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions