warden

GitHub

Warden 是一个代码提交前的静态分析工具,用于自动检测代码变更中的问题。支持自定义规则、特定文件分析及 Git 引用对比,可自动修复或按严重等级阻断提交,帮助开发者在合并前确保代码质量。

.agents/skills/warden/SKILL.md getsentry/MobileBuildMCP

触发场景

运行 Warden 分析代码变更 提交前检查代码 配置 warden.toml 使用 warden CLI 命令

安装

npx skills add getsentry/MobileBuildMCP --skill warden -g -y
更多选项

非标准路径

npx skills add https://github.com/getsentry/MobileBuildMCP/tree/main/.agents/skills/warden -g -y

不安装直接使用

npx skills use getsentry/MobileBuildMCP@warden

指定 Agent (Claude Code)

npx skills add getsentry/MobileBuildMCP --skill warden -a claude-code -g -y

安装 repo 全部 skill

npx skills add getsentry/MobileBuildMCP --all -g -y

预览 repo 内 skill

npx skills add getsentry/MobileBuildMCP --list

SKILL.md

Frontmatter
{
    "name": "warden",
    "description": "Run Warden to analyze code changes before committing. Use when asked to \"run warden\", \"check my changes\", \"review before commit\", \"warden config\", \"warden.toml\", \"create a warden skill\", \"add trigger\", or any Warden-related local development task."
}

Run Warden to analyze code changes before committing.

References

Read the relevant reference when the task requires deeper detail:

Document Read When
${CLAUDE_SKILL_ROOT}/references/cli-reference.md Full option details, per-command flags, examples
${CLAUDE_SKILL_ROOT}/references/configuration.md Editing warden.toml, triggers, patterns, troubleshooting
${CLAUDE_SKILL_ROOT}/references/config-schema.md Exact field names, types, and defaults
${CLAUDE_SKILL_ROOT}/references/creating-skills.md Writing custom skills, remote skills, skill discovery

Running Warden

# Analyze uncommitted changes (uses warden.toml triggers)
warden

# Run a specific skill
warden --skill <skill-name>

# Analyze specific files
warden src/auth.ts src/database.ts

# Analyze changes from a git ref
warden main..HEAD
warden HEAD~3

# Auto-apply suggested fixes
warden --fix

# Fail on high-severity findings
warden --fail-on high

Set WARDEN_ANTHROPIC_API_KEY or log in via claude login before running.

Pre-Commit Workflow

After making code changes and before committing:

  1. Run warden to analyze uncommitted changes
  2. Review the findings
  3. Fix issues Warden reports (or use warden --fix to auto-apply)
  4. Commit the changes

Run Warden once to validate work. Do not loop re-running Warden on the same changes.

Reading Output

Severity levels:

  • high - Must fix before merge
  • medium - Worth reviewing
  • low - Minor improvement

Exit codes: 0 = no findings at or above fail threshold. 1 = findings at or above fail threshold.

Verbosity: -v shows real-time findings. -vv shows debug info (tokens, latency). -q shows errors and summary only.

Commands

Command Description
warden Run analysis (default)
warden init Initialize warden.toml and GitHub workflow
warden add [skill] Add skill trigger to warden.toml
warden sync [remote] Update cached remote skills
warden setup-app Create GitHub App via manifest flow

For full options and flags, read ${CLAUDE_SKILL_ROOT}/references/cli-reference.md.

版本历史

  • c79f4eb 当前 2026-07-25 11:09

同 Skill 集合

.agents/skills/mobilebuildmcp-docs-command-review/SKILL.md
.agents/skills/mobilebuildmcp-docs-release-review/SKILL.md
.agents/skills/mobilebuildmcp-packaging-resource-review/SKILL.md
.agents/skills/mobilebuildmcp-rendering-streaming-review/SKILL.md
.agents/skills/mobilebuildmcp-runtime-boundary-review/SKILL.md
.agents/skills/mobilebuildmcp-snapshot-fixture-review/SKILL.md
.agents/skills/mobilebuildmcp-structured-output-review/SKILL.md
.agents/skills/mobilebuildmcp-test-boundary-review/SKILL.md
.agents/skills/mobilebuildmcp-tool-contract-review/SKILL.md
.agents/skills/warden-sweep/SKILL.md
.agents/skills/xcodebuildmcp-docs-command-review/SKILL.md
.agents/skills/xcodebuildmcp-docs-release-review/SKILL.md
.agents/skills/xcodebuildmcp-packaging-resource-review/SKILL.md
.agents/skills/xcodebuildmcp-rendering-streaming-review/SKILL.md
.agents/skills/xcodebuildmcp-runtime-boundary-review/SKILL.md
.agents/skills/xcodebuildmcp-snapshot-fixture-review/SKILL.md
.agents/skills/xcodebuildmcp-structured-output-review/SKILL.md
.agents/skills/xcodebuildmcp-test-boundary-review/SKILL.md
.agents/skills/xcodebuildmcp-tool-contract-review/SKILL.md
skills/mobilebuildmcp-cli/SKILL.md
skills/mobilebuildmcp/SKILL.md
skills/xcodebuildmcp-cli/SKILL.md
skills/xcodebuildmcp/SKILL.md

元信息

文件数
0
版本
2998ac7
Hash
f521ff42
收录时间
2026-07-25 11:09

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-21 07:54
浙ICP备14020137号-1