plan-add-test-coverage

📁 codyswanngt/lisa 📅 3 days ago
1
总安装量
1
周安装量
#45902
全站排名
安装命令
npx skills add https://github.com/codyswanngt/lisa --skill plan-add-test-coverage

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
codex 1
github-copilot 1
gemini-cli 1

Skill 文档

Increase Test Coverage

Target threshold: $ARGUMENTS%

If no argument provided, prompt the user for a target.

Step 1: Gather Requirements

  1. Find coverage config (jest.config.js, vitest.config.ts, .nycrc, etc.)
  2. Run coverage report to get current state:
    bun run test:cov 2>&1 | head -100
    
  3. Identify the 20 files with lowest coverage, noting:
    • File path
    • Current coverage % (lines, branches, functions)
    • Which lines/branches are uncovered

Step 2: Compile Brief and Delegate

Compile the gathered information into a structured brief:

Increase test coverage from [current]% to $ARGUMENTS%.

Files needing coverage (ordered by coverage gap):
1. [file] - [current]% coverage (target: $ARGUMENTS%)
   - Uncovered: [lines]
   - Missing branch coverage: [lines]
2. ...

Configuration: [config file path], update thresholds to $ARGUMENTS%

Verification: `bun run test:cov` → Expected: All thresholds pass at $ARGUMENTS%

Invoke /plan-create with this brief to create the implementation plan.