plan-reduce-max-lines-per-function
18
总安装量
17
周安装量
#19088
全站排名
安装命令
npx skills add https://github.com/codyswanngt/lisa --skill plan-reduce-max-lines-per-function
Agent 安装分布
codex
17
opencode
16
gemini-cli
16
github-copilot
16
kimi-cli
16
amp
16
Skill 文档
Reduce Max Lines Per Function
Target threshold: $ARGUMENTS lines per function
If no argument provided, prompt the user for a target.
Step 1: Gather Requirements
- Read current config from eslint thresholds (eslint.thresholds.json or similar)
- Run lint with the new threshold to find violations:
bun run lint 2>&1 | grep "max-lines-per-function" - Note for each violation:
- File path and line number
- Function name
- Current line count
If no violations at $ARGUMENTS, report success and exit.
Step 2: Compile Brief and Delegate
Compile the gathered information into a structured brief:
Reduce max lines per function threshold to $ARGUMENTS.
Functions exceeding threshold (ordered by line count):
1. [file:function] (lines: X, target: $ARGUMENTS) - Line Y
2. ...
Configuration change: eslint.thresholds.json, maxLinesPerFunction to $ARGUMENTS
Refactoring strategies: extract functions, early returns, extract conditions, use lookup tables, consolidate logic
Verification: `bun run lint 2>&1 | grep "max-lines-per-function" | wc -l` â Expected: 0
Invoke /plan-execute with this brief to create the implementation plan.