/project:skill-scripts
Analyze plugin skills to identify opportunities where supporting scripts would improve performance (fewer tokens, faster execution, consistent results), then optionally create those scripts.
When to Use This Skill
| Use this skill when... |
Use alternative when... |
| Analyzing skill improvement opportunities |
Need to create a single script for a skill |
| Bulk script creation across plugins |
One-off script for one specific need |
| Measuring coverage of scripts across portfolio |
Script generation is already done |
Context
- Plugin root: !
git rev-parse --show-toplevel
- Total plugins: !
find . -maxdepth 2 -name 'plugin.json' -type f
- Skills with scripts: !
find . -name 'scripts/*.sh' -type f
Parameters
Parse $ARGUMENTS for:
--analyze: Scan all skills, report candidates (default)
--create <plugin/skill>: Create script for specific skill only
--all: Analyze and create scripts for all high-scoring candidates
Execution
Execute this skill script analysis and creation workflow:
Step 1: Run analysis script
Execute analyzer to get structured data on all skills:
- Run analyzer:
bash "${CLAUDE_PLUGIN_ROOT}/skills/project-discovery/scripts/analyze-skills.sh" $(git rev-parse --show-toplevel 2>/dev/null || echo '.')
- Parse output to identify:
- Current coverage (skills with scripts)
- High-scoring candidates (score >= 8)
- Script type recommendations
Step 2: Analyze candidates (--create or --all modes)
For each candidate skill:
- Read SKILL.md to understand the workflow
- Identify script opportunity patterns:
- Multiple sequential git/gh commands → context-gather script
- Multi-phase workflow → workflow script
- Project type detection + conditional execution → multi-tool script
- Repeated command with different args → utility script
- Evaluate benefit: >= 4 tool calls, consistency, error handling, reuse frequency
- Skip if: single simple commands, interactive/creative, already well-structured
Step 3: Create scripts
For approved candidates:
- Use standard script template with structured output (KEY=value, section markers)
- Follow design principles: structured output, error resilience, bounded output, portable
- Place in
<plugin>/skills/<skill-name>/scripts/<script-name>.sh
- Make executable:
chmod +x <path>
- Update SKILL.md with "Recommended" section referencing the script
- Update
modified: date in frontmatter
Step 4: Report results
Present findings:
- Current coverage (X/Y skills have scripts)
- Scripts created (plugin, skill, script, type, commands replaced)
- Remaining candidates (plugin, skill, score, type, recommendation)
- Next steps (test, commit)
Step 5: Commit changes
If scripts created:
feat(<affected-plugins>): add supporting scripts to skills
Include in body:
- Which scripts were created
- What they replace (token/call savings)
- Which SKILL.md files were updated
Examples
Analyze Only
$ /project:skill-scripts --analyze
Skill Scripts Analysis
Current Coverage: 5/191 skills have supporting scripts
Top Candidates:
git-plugin/gh-cli-agentic score=14 type=context-gather
kubernetes-plugin/kubectl-debugging score=12 type=multi-tool
testing-plugin/playwright-testing score=10 type=workflow
Create for Specific Skill
$ /project:skill-scripts --create testing-plugin/playwright-testing
Analyzing testing-plugin/playwright-testing...
Found: 6 bash blocks, 3 phases, 12 commands
Creating scripts/run-tests.sh...
- Consolidates: test discovery, execution, report parsing
- Replaces: 5 individual tool calls
- Output: structured test results with file:line references
Updated SKILL.md with "Recommended" section.
Error Handling
| Situation |
Action |
| Skill has no bash patterns |
Skip, report "no script opportunity" |
| Script already exists |
Report existing, ask to overwrite |
| SKILL.md is read-only |
Report error, suggest manual update |
| Plugin not found |
List available plugins |
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: project-skill-scripts3description: Analyze plugin skills to identify opportunities where supporting scripts would improve performance (fewer tokens, faster execution, consistent results), then optionally create those scripts. Use when this capability is needed.4---56# /project:skill-scripts78Analyze plugin skills to identify opportunities where supporting scripts would improve performance (fewer tokens, faster execution, consistent results), then optionally create those scripts.910## When to Use This Skill1112| Use this skill when... | Use alternative when... |13|------------------------|--------------------------|14| Analyzing skill improvement opportunities | Need to create a single script for a skill |15| Bulk script creation across plugins | One-off script for one specific need |16| Measuring coverage of scripts across portfolio | Script generation is already done |1718## Context1920- Plugin root: !`git rev-parse --show-toplevel`21- Total plugins: !`find . -maxdepth 2 -name 'plugin.json' -type f`22- Skills with scripts: !`find . -name 'scripts/*.sh' -type f`2324## Parameters2526Parse `$ARGUMENTS` for:2728- `--analyze`: Scan all skills, report candidates (default)29- `--create <plugin/skill>`: Create script for specific skill only30- `--all`: Analyze and create scripts for all high-scoring candidates3132## Execution3334Execute this skill script analysis and creation workflow:3536### Step 1: Run analysis script3738Execute analyzer to get structured data on all skills:39401. Run analyzer: `bash "${CLAUDE_PLUGIN_ROOT}/skills/project-discovery/scripts/analyze-skills.sh" $(git rev-parse --show-toplevel 2>/dev/null || echo '.')`412. Parse output to identify:42 - Current coverage (skills with scripts)43 - High-scoring candidates (score >= 8)44 - Script type recommendations4546### Step 2: Analyze candidates (--create or --all modes)4748For each candidate skill:49501. Read SKILL.md to understand the workflow512. Identify script opportunity patterns:52 - Multiple sequential git/gh commands → context-gather script53 - Multi-phase workflow → workflow script54 - Project type detection + conditional execution → multi-tool script55 - Repeated command with different args → utility script563. Evaluate benefit: >= 4 tool calls, consistency, error handling, reuse frequency574. Skip if: single simple commands, interactive/creative, already well-structured5859### Step 3: Create scripts6061For approved candidates:62631. Use standard script template with structured output (KEY=value, section markers)642. Follow design principles: structured output, error resilience, bounded output, portable653. Place in `<plugin>/skills/<skill-name>/scripts/<script-name>.sh`664. Make executable: `chmod +x <path>`675. Update SKILL.md with "Recommended" section referencing the script686. Update `modified:` date in frontmatter6970### Step 4: Report results7172Present findings:73- Current coverage (X/Y skills have scripts)74- Scripts created (plugin, skill, script, type, commands replaced)75- Remaining candidates (plugin, skill, score, type, recommendation)76- Next steps (test, commit)7778### Step 5: Commit changes7980If scripts created:8182```83feat(<affected-plugins>): add supporting scripts to skills84```8586Include in body:87- Which scripts were created88- What they replace (token/call savings)89- Which SKILL.md files were updated9091## Examples9293### Analyze Only9495```96$ /project:skill-scripts --analyze9798Skill Scripts Analysis99100Current Coverage: 5/191 skills have supporting scripts101102Top Candidates:103 git-plugin/gh-cli-agentic score=14 type=context-gather104 kubernetes-plugin/kubectl-debugging score=12 type=multi-tool105 testing-plugin/playwright-testing score=10 type=workflow106```107108### Create for Specific Skill109110```111$ /project:skill-scripts --create testing-plugin/playwright-testing112113Analyzing testing-plugin/playwright-testing...114Found: 6 bash blocks, 3 phases, 12 commands115116Creating scripts/run-tests.sh...117- Consolidates: test discovery, execution, report parsing118- Replaces: 5 individual tool calls119- Output: structured test results with file:line references120121Updated SKILL.md with "Recommended" section.122```123124## Error Handling125126| Situation | Action |127|-----------|--------|128| Skill has no bash patterns | Skip, report "no script opportunity" |129| Script already exists | Report existing, ask to overwrite |130| SKILL.md is read-only | Report error, suggest manual update |131| Plugin not found | List available plugins |132133---134> Converted and distributed by [TomeVault](https://tomevault.io/claim/laurigates) — claim your Tome and manage your conversions.135<!-- tomevault:4.0:skill_md:2026-04-11 -->