Project skill scripts

From laurigates/claude-plugins · View interactive version

Project skill scripts is an AI agent skill from the GitHub repository laurigates/claude-plugins. Find and create supporting scripts for plugin skills. Use when auditing skills for script opportunities, improving token efficiency, or extracting bash blocks from SKILL.md.

How to use this skill

Skill file

/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

Parameters

Parse $ARGUMENTS for:

Execution

Execute this skill script analysis and creation workflow:

Step 1: Run analysis script

Execute analyzer to get structured data on all skills:

  1. Run analyzer: bash "${CLAUDE_PLUGIN_ROOT}/skills/project-discovery/scripts/analyze-skills.sh" (it scans the git toplevel; pass a path to scan another root)
  2. Parse output to identify:

Step 2: Analyze candidates (--create or --all modes)

For each candidate skill:

  1. Read SKILL.md to understand the workflow
  2. Identify script opportunity patterns:
  1. Evaluate benefit: >= 4 tool calls, consistency, error handling, reuse frequency
  2. Skip if: single simple commands, interactive/creative, already well-structured

Step 3: Create scripts

For approved candidates:

  1. Use standard script template with structured output (KEY=value, section markers)
  2. Follow design principles: structured output, error resilience, bounded output, portable
  3. Place in <plugin>/skills/<skill-name>/scripts/<script-name>.sh
  4. Make executable: chmod +x <path>
  5. Update SKILL.md with "Recommended" section referencing the script
  6. Update modified: date in frontmatter

Step 4: Report results

Present findings:

Step 5: Commit changes

If scripts created:

feat(<affected-plugins>): add supporting scripts to skills

Include in body:

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 |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.