盖茨
- 作者仓库星标 330
- 许可证 MIT
- 作者仓库 claude-skill-registry
- 领域
- 数据
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @majiayu000 · MIT
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- macOS · Linux · Windows
- 运行环境要求
- Node.js · Python
- 检测到的文件与系统行为
-
- 只读
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
/gates # Run all quality gates
ralph gates # Via CLI
ralph gates src/ # Specific directory
# Gates - Quality Validation (v2.37)
Comprehensive quality validation across 9 programming languages with **TLDR-assisted analysis**.
## Quick Start
```bash
/gates # Run all quality gates
ralph gates # Via CLI
ralph gates src/ # Specific directory
```
## Pre-Gates: TLDR Language Detection (v2.37)
**AUTOMATIC** - Detect project languages efficiently:
```bash
# Get codebase structure to detect languages (95% token savings)
tldr structure . > /tmp/project-structure.md
# From structure, identify:
# - Primary language(s)
# - Config files present
# - Test frameworks used
```
## Supported Languages
| Language | Linter | Formatter | Types |
|----------|--------|-----------|-------|
| TypeScript | ESLint | Prettier | tsc |
| JavaScript | ESLint | Prettier | - |
| Python | Ruff | Black | mypy |
| Rust | Clippy | rustfmt | cargo check |
| Go | golint | gofmt | go vet |
| Java | Checkstyle | google-java-format | - |
| Ruby | RuboCop | - | Sorbet |
| PHP | PHP_CodeSniffer | php-cs-fixer | PHPStan |
| Solidity | Solhint | prettier-solidity | - |
## Workflow
### 1. Detect Languages
```bash
# Auto-detect based on file extensions and config files
```
### 2. Run Linters
```bash
# Per-language linting
npx eslint src/ # TypeScript/JavaScript
ruff check . # Python
cargo clippy # Rust
golangci-lint run # Go
```
### 3. Check Formatting
```bash
npx prettier --check . # JS/TS
black --check . # Python
rustfmt --check src/ # Rust
gofmt -l . # Go
```
### 4. Type Checking
```bash
npx tsc --noEmit # TypeScript
mypy . # Python
cargo check # Rust
go vet ./... # Go
```
### 5. Run Tests
```bash
npm test # Node projects
pytest # Python
cargo test # Rust
go test ./... # Go
```
## Exit Codes
| Code | Meaning |
|------|---------|
| 0 | All gates passed |
| 1 | Lint errors |
| 2 | Format errors |
| 3 | Type errors |
| 4 | Test failures |
## Gate Configuration
### Minimal (fast)
```bash
ralph gates --minimal # Lint only
```
### Standard (default)
```bash
ralph gates # Lint + Format + Types
```
### Full (CI)
```bash
ralph gates --full # Lint + Format + Types + Tests
```
## Integration
- Invoked by /orchestrator in Step 6
- **Pre-step: tldr structure for language detection** (v2.37)
- Must pass before VERIFIED_DONE
- Hooks: `quality-gates.sh` (PostToolUse)
## TLDR Integration (v2.37)
| Phase | TLDR Command | Purpose |
|-------|--------------|---------|
| Language detection | `tldr structure .` | Identify languages |
| Error context | `tldr context $FILE .` | Understand failing code |
| Impact analysis | `tldr deps $FILE .` | Find related tests |
## Anti-Patterns
- Never skip gates for "quick fixes"
- Never ignore type errors
- Never commit with lint warnings
章节与文件索引
按说明文件中的顺序排列。
Pre-Gate:TLDR 语言检测 (v2.37)
支持的语言
退出代码
整合
TLDR 集成 (v2.37)
文件/命令 -> quality-gates.sh · tldr structure . · tldr context $FILE . · tldr deps $FILE .
内容校验值 -> 5dcf676b89cd
当前原文的自动摘译,尚未人工审校。
Pre-Gate:TLDR 语言检测 (v2.37)
自动 - 有效检测项目语言:
退出代码
代码·含义 0·所有门均通过 1·Lint 错误 2·格式错误 3·类型错误
整合
在步骤 6 中由 /orchestrator 调用 前置步骤:用于语言检测的 tldr 结构 (v2.37) 必须在 VERIFIED_DONE 之前通过 挂钩:
quality-gates.sh(PostToolUse)TLDR 集成 (v2.37)
阶段 · TLDR 命令 · 目的 语言检测 ·
tldr structure .· 识别语言 错误上下文 ·tldr context $FILE .· 了解失败代码 影响分析 ·tldr deps $FILE .· 查找相关测试