用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/coreindustries/core-ai-template --skill lint命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | lint |
| description | Run code quality checks including linting, formatting, and type checking. |
Run code quality checks including linting, formatting, and type checking.
/lint [target] [--fix] [--strict]
target: Specific file or directory (default: src/ tests/)--fix: Auto-fix issues where possible--strict: Fail on warnings (for CI)When this skill is invoked:
Read prd/00_technology.md to find the correct commands
Run all checks in sequence:
# Linting (see prd/00_technology.md for specific command)
{lint_check_command} src/ tests/
# Formatting check
{format_check_command} src/ tests/
# Type checking
{type_check_command} src/
Report Results:
==================== Lint Results ====================
📋 Linting
✅ No issues found
📐 Formatting
⚠️ 2 files need formatting:
- src/{project}/api/routes
- tests/unit/test_config
🔍 Type Checking
✅ No type errors
==================== Summary ====================
✅ Linting: Passed
⚠️ Formatting: 2 issues (run with --fix)
✅ Type Checking: Passed
Run '/lint --fix' to auto-fix formatting issues.
# Fix linting issues
{lint_fix_command} src/ tests/
# Fix formatting
{format_fix_command} src/ tests/
Report what was fixed:
🔧 Auto-fixed issues:
Linting:
- src/{project}/api/routes: Removed unused import
- src/{project}/services/user: Sorted imports
Formatting:
- src/{project}/api/routes: Reformatted
- tests/unit/test_config: Reformatted
✅ All issues fixed!
Run individual checks (commands from prd/00_technology.md):
# Linting only
{lint_check_command} src/
# Formatting only
{format_check_command} src/
# Type checking only
{type_check_command} src/
# Security rules only (if supported)
{security_lint_command} src/
For CI pipelines, use strict mode:
From .claude/rules/code-quality.md:
$ /lint
🔍 Running code quality checks...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Linting
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ All 15 files passed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Formatting
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ All files formatted correctly
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 Type Checking
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Success: no issues found in 15 source files
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ All checks passed!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━