360 Secure SkillHub
360 安全技能中心

Tribunal Install

指导通过 pip/uv、npm 或 Homebrew 安装 Tribunal 质量强制插件,在项目根目录执行 tribunal init 生成 .claude/tribunal.json 并合并 .claude/settings.json,再用 tribunal doctor 与 tribunal ci 验证钩子、密钥扫描、上下文监控和 TDD 强制是否生效,并可按需安装质量包。

分类:开发
koshaji
koshaji
热度 30.00
最近更新 2026-05-11 17:29:14

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add koshaji/tribunal-install
兼容性
Claude Code 专属
联网要求
需要联网
数据出网
数据出网未确认
Metadata
name
tribunal-install
description
Install and initialise Tribunal — the Claude Code quality enforcement plugin. Use when setting up a new project for AI-assisted development, when a project lacks TDD enforcement, secret scanning, or Claude Code quality gates, or when asked to "add quality enforcement", "set up tribunal", or "protect this project". Works with pip, uv, npm, and brew.
metadata
{"openclaw":{"emoji":"🏛","requires":{"bins":[]},"install":[],"keywords":["tdd","quality","claude-code","enforcement","hooks","testing","ci","agent-teams","secret-scanning","tribunal"],"homepage":"https://tribunal.dev","repository":"https://github.com/thebotclub/tribunal"}}

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