Check

From x-cmd/x-cmd · View interactive version

Check is an AI agent skill from the GitHub repository x-cmd/x-cmd. Comprehensive rule-based check. Triggered by "/check [target]" to evaluate all source files against project rules and report every violation.

How to use this skill

Skill file

Rule Checker

Trigger

Use when:

Do NOT use when:

Steps

Step 1: Parse Arguments

/check [--ruleset <dir>] [target_root]

Default: current directory.

Step 2: Load Rules

x rule which      # locate ruleset
ls $ruleset_dir/*.yml
cat $ruleset_dir/*.yml

Step 3: Evaluate All Files Against All Rules

For each file under target_root:

  1. Determine applicable rules based on rule apply field
  2. Check each applicable rule
  3. Record violations (score < 81)

Rule apply values:

| Apply Value | Files Matched |

|-------------|---------------|

| all posix shell files | *.sh |

| all shell files | *.sh, *.bash, *.zsh |

| all yaml files | *.yml, *.yaml |

| all json files | *.json |

| all source files | source code files |

| all files | any file |

Step 4: Output Results

Output Format

TSV with header:

root    target    ruleid    score    hint

Scoring:

If all pass: output header row only.

Constraints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.