← 返回
开发者工具 中文

Tribunal Install

Install and initialise Tribunal — the Claude Code quality enforcement plugin. Use when setting up a new project for AI-assisted development, when a project l...
安装并初始化 Tribunal(Claude Code 质量强制插件)。适用于为 AI 辅助开发设置新项目或项目缺失该插件时。
koshaji
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 485
下载
💾 7
安装
1
版本
#latest

概述

Tribunal — Install & Initialise

Tribunal enforces code quality when Claude Code writes files: TDD enforcement, secret scanning, context monitoring, Agent Teams quality gates, and a live dashboard.

Install

Python / uv (recommended)

pip install tribunal
# or
uv add tribunal

npm

npm install -g tribunal

Homebrew

brew install thebotclub/tap/tribunal

Verify install:

tribunal --version

Initialise a project

Run in your project root (where .claude/ lives or will live):

tribunal init

The wizard asks:

  • Primary language (Python / TypeScript / Go / Other)
  • TDD enforcement level (Strict = block on fail / Advisory = warn / Off)
  • Secret scanning (On/Off — default On)
  • Spec workflow (Yes/No — default Yes)
  • Context monitor (On/Off — default On)

For non-interactive / agent use:

tribunal init --non-interactive --project-dir /path/to/project

Outputs .claude/tribunal.json and merges into .claude/settings.json.

Verify setup

tribunal doctor

Checks all hooks, Python deps, worker service, and .claude/settings.json links.

Exits 1 if anything is broken — safe to use in CI.

Quick install + init (one-liner for agents)

pip install tribunal && tribunal init --non-interactive && tribunal doctor

Install a quality pack

tribunal list-packs          # see available packs
tribunal install python-strict
tribunal install go-tdd
tribunal install nextjs-quality

Workflow

Once installed, Tribunal hooks into Claude Code automatically:

  1. Every file Claude writes → file_checker runs (secrets, language quality)
  2. Every test run → tdd_enforcer checks pass/fail
  3. Context usage → context_monitor warns before window fills
  4. Agent Teams → teammate_idle + task_completed gate sub-agent output
  5. Dashboard → tribunal/ui/viewer.html shows live hook feed

Run standalone quality check (no Claude Code needed)

tribunal ci                        # check changed files
tribunal ci --json                 # machine-readable output
tribunal ci --coverage-threshold 80

Troubleshoot

tribunal doctor              # health check with fix suggestions
tribunal status              # show current config + audit summary

Full docs: https://tribunal.dev · GitHub: https://github.com/thebotclub/tribunal

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 19:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,376
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,450
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,920