用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Arete-Consortium/ai-skills --skill lint命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Intelligent CI failure diagnosis and guided remediation for GitHub Actions, GitLab CI, and local builds
Pre-execution mapping of codebases, document collections, or problem spaces. Runs BEFORE any Gorgon workflow to give all agents shared situational awareness
Investigative methodology for analyzing document collections — provenance analysis, anomaly detection, redaction detection, and cross-document validation
正在显示 SKILL.md
| name | lint |
| description | Run ruff linter and formatter. Checks code quality and auto-fixes issues. Invoke with /lint or /lint <path>. |
| lifecycle | experimental |
Run ruff to check and format Python code.
/lint # Check entire project
/lint src/ # Check specific directory
/lint --fix # Auto-fix issues
/lint --format # Format code
Check for ruff
which ruff || pip install ruff
Run linter
# Check for issues
ruff check .
# Check with auto-fix
ruff check . --fix
# Format code
ruff format .
# Check formatting without changing
ruff format --check .
Report issues
# Full lint + format
ruff check . && ruff format .
# Fix everything
ruff check . --fix && ruff format .
# Check single file
ruff check src/main.py
# Show specific rule info
ruff rule E501
| Code | Issue | Fix |
|---|---|---|
| E501 | Line too long | Break line or disable |
| F401 | Unused import | Remove it |
| F841 | Unused variable | Remove or prefix with _ |
| I001 | Import order | Run ruff check --fix |
| UP035 | Deprecated typing | Use collections.abc |
In pyproject.toml:
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
ignore = ["E501"] # Optional: ignore long lines
src/api.py:45:1: F401 `os` imported but unused
src/utils.py:20:5: F841 Local variable `x` assigned but never used
Found 2 errors (1 fixable with --fix)