Agent Skills
› alamenai/terrae
› lint
lint
GitHub对 Terrae 代码库执行 TypeScript 类型检查、ESLint 静态分析及 Prettier 格式校验,报告错误并提供自动修复选项,最后重新验证以确保问题已解决。
Trigger Scenarios
需要检查代码类型安全时
需要统一代码风格和格式时
提交代码前进行质量门禁检查时
Install
npx skills add alamenai/terrae --skill lint -g -y
SKILL.md
Frontmatter
{
"name": "lint",
"description": "Run linting and type checking across the Terrae codebase",
"allowed-tools": "Bash(npx tsc *), Bash(npm run lint*), Bash(npm run format*)"
}
Lint Skill
Run linting and type checking across the Terrae codebase.
Instructions
-
Run Type Checking
npx tsc --noEmitThis checks TypeScript types without emitting files.
-
Run ESLint
npm run lintThis runs ESLint on the codebase.
-
Run Prettier Check
npm run format:checkThis checks if files are properly formatted.
-
Report Results
- List any type errors with file locations
- List any linting errors/warnings
- List any formatting issues
-
Offer to Fix If issues are found, ask the user if they want to:
- Auto-fix linting issues:
npm run lint -- --fix - Auto-format files:
npm run format - Manually address type errors (show each error)
- Auto-fix linting issues:
-
Re-verify After fixes, run the checks again to confirm all issues are resolved.
Version History
- ea9a480 Current 2026-07-25 11:49


