Skip to content

Commit 62e2722

Browse files
committed
feat: add scope selection step to init skill
1 parent dffa3ea commit 62e2722

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{
1111
"name": "yavy-docs",
1212
"description": "Index any knowledge source at yavy.dev and search it from Claude Code.",
13-
"version": "0.1.3",
13+
"version": "0.1.4",
1414
"author": {
1515
"name": "Yavy",
1616
"url": "https://yavy.dev"

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yavy",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Index any knowledge source at yavy.dev and search it from Claude Code.",
55
"author": {
66
"name": "Yavy",

commands/init.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,27 @@ Parse the JSON from Step 2. Filter to projects where `has_indexed_content` is tr
8585
| No indexed projects | Output: "Your account has no indexed projects yet. Add a project at yavy.dev — paste a URL and Yavy will crawl and index it. Once done, run `/yavy:init` again." **Stop here.** |
8686
| Has projects | Call `AskUserQuestion` with question "Which projects do you want to set up?" and options: first option "All {N} projects", then each project as "{org.slug}/{name} ({pages_count} pages)" |
8787

88-
### Step 4: Run yavy init
88+
### Step 4: Choose Scope
89+
90+
Call `AskUserQuestion` with question "Where should the skill be installed?" and options ["This project only", "All my projects (global)"]. Map the answer:
91+
92+
| Answer | `--scope` value |
93+
|--------|-----------------|
94+
| This project only | `project` |
95+
| All my projects (global) | `user` |
96+
97+
### Step 5: Run yavy init
8998

9099
Build the command from user selections. Use the plain `slug` field from the JSON (e.g., `knowledge-base`, NOT `org/slug`).
91100

92-
Run: `yavy init --tool claude-code --projects {comma-separated-slugs} 2>&1`
101+
Run: `yavy init --tool claude-code --projects {comma-separated-slugs} --scope {scope} 2>&1`
93102

94103
| Result | Action |
95104
|--------|--------|
96-
| Success | Report summary from CLI output → Step 5 |
105+
| Success | Report summary from CLI output → Step 6 |
97106
| Failure | Show the error, suggest retrying or running `! yavy login` |
98107

99-
### Step 5: Summary
108+
### Step 6: Summary
100109

101110
> All done! Yavy skill configured for {N} project(s).
102111
>

0 commit comments

Comments
 (0)