From lisa
Nightly direct-execution skill for reducing code complexity thresholds. Receives pre-computed threshold data, refactors violations, updates thresholds, commits, and creates a PR.
npx claudepluginhub codyswanngt/lisa --plugin lisaThis skill is limited to using the following tools:
The caller provides pre-computed context:
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
The caller provides pre-computed context:
npm, yarn, or bun)You have a limited turn budget. Optimize for fewer tool calls:
wc -l for ALL violating files in a single command after lintnpm run lint, yarn lint, or bun run lint) to find functions that violate the new stricter thresholdswc -l on ALL violating files in a single command (e.g., wc -l file1.ts file2.ts file3.ts). If a file is within 20 lines of its max-lines ESLint limit (typically 300), extract helpers into a separate companion file (e.g., fooHelpers.ts) instead of adding them to the same file. Extracting functions into the same file adds net lines and can create new max-lines violations.bun run format) to ensure line counts reflect the final formatted statenpx tsc --noEmit 2>&1 | head -30. If there are type errors, fix them now — do NOT wait until the commit step. Pre-commit hooks run type checking, and discovering errors at commit time wastes turns.npm run test, yarn test, or bun run test) to verify no tests are broken by the refactoringgh pr create with a title like "refactor: reduce code complexity: [metrics being reduced]" summarizing the changes