@@ -17,7 +17,32 @@ What llms.txt URL would you like to convert?
1717Example: https://code.claude.com/docs/llms.txt
1818```
1919
20- ### Step 2: Ask Output Location
20+ ### Step 2: Validate Bun Runtime
21+
22+ Check if Bun is installed before proceeding:
23+
24+ ``` bash
25+ bun --version
26+ ```
27+
28+ ** If Bun is not found:**
29+ - Report error: "Bun runtime is required but not installed."
30+ - Provide installation instructions:
31+ ```
32+ Install Bun:
33+ • macOS/Linux: curl -fsSL https://bun.sh/install | bash
34+ • Homebrew: brew install oven-sh/bun/bun
35+ • Windows: powershell -c "irm bun.sh/install.ps1|iex"
36+
37+ After installation, restart your terminal and try again.
38+ More info: https://bun.sh
39+ ```
40+ - Stop execution (do not proceed with workflow)
41+
42+ ** If Bun is found:**
43+ - Continue silently (no output needed)
44+
45+ ### Step 3: Ask Output Location
2146
2247Use AskUserQuestion:
2348- ** Question:** "Where should I create the skill?"
@@ -26,35 +51,35 @@ Use AskUserQuestion:
2651 2 . ` ~/.claude/skills/ ` - Global, available everywhere
2752 3 . Custom path...
2853
29- ### Step 3 : Parse llms.txt and Save to File
54+ ### Step 4 : Parse llms.txt and Save to File
3055
3156``` bash
3257bun run ${CLAUDE_PLUGIN_ROOT} /skills/llmstxt-to-skill/scripts/fetch-llmstxt.ts " URL" /tmp/llmstxt-data.json
3358```
3459
3560This saves the parsed data to a temp file. Read the file to get title and skillName.
3661
37- ### Step 4 : Create Directory
62+ ### Step 5 : Create Directory
3863
3964``` bash
4065mkdir -p " OUTPUT_PATH/SKILL_NAME/references"
4166```
4267
43- ### Step 5 : Fetch References
68+ ### Step 6 : Fetch References
4469
4570``` bash
4671bun run ${CLAUDE_PLUGIN_ROOT} /skills/llmstxt-to-skill/scripts/fetch-references.ts /tmp/llmstxt-data.json " OUTPUT_PATH/SKILL_NAME/references"
4772```
4873
4974Report: "Fetching X references..." then "Fetched X/Y (Z warnings)"
5075
51- ### Step 6 : Generate SKILL.md
76+ ### Step 7 : Generate SKILL.md
5277
5378``` bash
5479bun run ${CLAUDE_PLUGIN_ROOT} /skills/llmstxt-to-skill/scripts/generate-skill.ts " OUTPUT_PATH/SKILL_NAME" /tmp/llmstxt-data.json
5580```
5681
57- ### Step 7 : Cleanup and Report
82+ ### Step 8 : Cleanup and Report
5883
5984``` bash
6085rm /tmp/llmstxt-data.json
@@ -74,6 +99,7 @@ The skill will auto-trigger when asking about TOPIC.
7499
75100| Error | Action |
76101| -------| --------|
102+ | Bun not installed | Show installation instructions, stop workflow |
77103| Reference fetch fails | Log warning, continue with others |
78104| Invalid llms.txt URL | Report clear error message |
79105| Directory not writable | Suggest alternative location |
0 commit comments