fix: correct CLI flags in plugin slash commands (create uses --preset, package uses --target)
This commit is contained in:
@@ -9,7 +9,7 @@ Create an AI-ready skill from a source. The source type is auto-detected.
|
||||
## Usage
|
||||
|
||||
```
|
||||
/skill-seekers:create-skill <source> [--target <platform>] [--output <dir>]
|
||||
/skill-seekers:create-skill <source> [--preset <level>] [--output <dir>]
|
||||
```
|
||||
|
||||
## Instructions
|
||||
@@ -17,36 +17,46 @@ Create an AI-ready skill from a source. The source type is auto-detected.
|
||||
When the user provides a source via `$ARGUMENTS`, run the `skill-seekers create` command to generate a skill.
|
||||
|
||||
1. Parse the arguments: extract the source (first argument) and any flags.
|
||||
2. If no `--target` is specified, default to `claude`.
|
||||
2. If no `--preset` is specified, default to `quick` for fast results.
|
||||
3. If no `--output` is specified, default to `./output`.
|
||||
4. Run the command:
|
||||
4. Run the create command:
|
||||
```bash
|
||||
skill-seekers create "$SOURCE" --target "$TARGET" --output "$OUTPUT"
|
||||
skill-seekers create "$SOURCE" --preset quick --output "$OUTPUT"
|
||||
```
|
||||
5. After completion, read the generated `SKILL.md` and summarize what was created.
|
||||
6. If the user wants to target a specific platform (e.g., Claude, OpenAI, LangChain), run the package command after:
|
||||
```bash
|
||||
skill-seekers package "$SKILL_DIR" --target "$PLATFORM"
|
||||
```
|
||||
|
||||
## Presets
|
||||
|
||||
- `-p quick` — 1-2 minutes, basic skill
|
||||
- `-p standard` — 5-10 minutes, good coverage
|
||||
- `-p comprehensive` — 20-60 minutes, full analysis
|
||||
|
||||
## Source Types (auto-detected)
|
||||
|
||||
- **URL** (https://...) → Documentation scraping
|
||||
- **owner/repo** or github.com URL → GitHub repo analysis
|
||||
- **file.pdf** → PDF extraction
|
||||
- **file.ipynb** → Jupyter notebook
|
||||
- **file.docx** → Word document
|
||||
- **file.epub** → EPUB book
|
||||
- **YouTube/Vimeo URL** → Video transcript
|
||||
- **./directory** → Local codebase analysis
|
||||
- **file.yaml** with OpenAPI → API spec
|
||||
- **file.pptx** → PowerPoint
|
||||
- **file.adoc** → AsciiDoc
|
||||
- **file.html** → HTML page
|
||||
- **file.rss** → RSS/Atom feed
|
||||
- **cmd.1** → Man page
|
||||
- **URL** (https://...) — Documentation scraping
|
||||
- **owner/repo** or github.com URL — GitHub repo analysis
|
||||
- **file.pdf** — PDF extraction
|
||||
- **file.ipynb** — Jupyter notebook
|
||||
- **file.docx** — Word document
|
||||
- **file.epub** — EPUB book
|
||||
- **YouTube/Vimeo URL** — Video transcript
|
||||
- **./directory** — Local codebase analysis
|
||||
- **file.yaml** with OpenAPI — API spec
|
||||
- **file.pptx** — PowerPoint
|
||||
- **file.adoc** — AsciiDoc
|
||||
- **file.html** — HTML page
|
||||
- **file.rss** — RSS/Atom feed
|
||||
- **cmd.1** — Man page
|
||||
|
||||
## Examples
|
||||
|
||||
```
|
||||
/skill-seekers:create-skill https://react.dev
|
||||
/skill-seekers:create-skill pallets/flask --target langchain
|
||||
/skill-seekers:create-skill ./docs/api.pdf --target openai
|
||||
/skill-seekers:create-skill pallets/flask -p standard
|
||||
/skill-seekers:create-skill ./docs/api.pdf
|
||||
/skill-seekers:create-skill https://youtube.com/watch?v=abc123
|
||||
```
|
||||
|
||||
@@ -1,44 +1,41 @@
|
||||
---
|
||||
description: One-command skill installation — fetch config, scrape, enhance, package, and install
|
||||
description: One-command skill creation and packaging for a target platform
|
||||
---
|
||||
|
||||
# Install Skill
|
||||
|
||||
Complete end-to-end workflow: fetch a config (from preset or URL), scrape the source, optionally enhance with AI, package for the target platform, and install.
|
||||
End-to-end workflow: create a skill from any source, then package it for a target LLM platform.
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
/skill-seekers:install-skill <config-or-source> [--target <platform>] [--enhance]
|
||||
/skill-seekers:install-skill <source> [--target <platform>] [--preset <level>]
|
||||
```
|
||||
|
||||
## Instructions
|
||||
|
||||
When the user provides a source or config via `$ARGUMENTS`:
|
||||
When the user provides a source via `$ARGUMENTS`:
|
||||
|
||||
1. Determine if the argument is a config preset name, config file path, or a direct source.
|
||||
2. Use the `install_skill` MCP tool if available, or run the equivalent CLI commands:
|
||||
1. Parse the arguments: extract source, `--target` (default: claude), `--preset` (default: quick).
|
||||
2. Run the create command:
|
||||
```bash
|
||||
# For preset configs
|
||||
skill-seekers install --config "$CONFIG" --target "$TARGET"
|
||||
|
||||
# For direct sources
|
||||
skill-seekers create "$SOURCE" --target "$TARGET"
|
||||
skill-seekers create "$SOURCE" --preset "$PRESET" --output ./output
|
||||
```
|
||||
3. If `--enhance` is specified, run enhancement after initial scraping:
|
||||
3. Find the generated skill directory (look for the directory containing SKILL.md in ./output/).
|
||||
4. Run the package command for the target platform:
|
||||
```bash
|
||||
skill-seekers enhance "$SKILL_DIR" --target "$TARGET"
|
||||
skill-seekers package "$SKILL_DIR" --target "$TARGET"
|
||||
```
|
||||
4. Report the final skill location and how to use it.
|
||||
5. Report what was created and where to find the packaged output.
|
||||
|
||||
## Target Platforms
|
||||
|
||||
`claude`, `openai`, `gemini`, `langchain`, `llamaindex`, `haystack`, `cursor`, `windsurf`, `continue`, `cline`, `markdown`
|
||||
`claude` (default), `openai`, `gemini`, `langchain`, `llamaindex`, `haystack`, `cursor`, `windsurf`, `continue`, `cline`, `markdown`
|
||||
|
||||
## Examples
|
||||
|
||||
```
|
||||
/skill-seekers:install-skill react --target claude
|
||||
/skill-seekers:install-skill https://fastapi.tiangolo.com --target langchain --enhance
|
||||
/skill-seekers:install-skill pallets/flask
|
||||
/skill-seekers:install-skill https://react.dev --target claude
|
||||
/skill-seekers:install-skill pallets/flask --target langchain -p standard
|
||||
/skill-seekers:install-skill ./docs/api.pdf --target openai
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user