Agent Skills
› alamenai/terrae
› lint
lint
GitHub对 Terrae 代码库执行类型检查、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


