Scan

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

Scan is an AI agent skill from the GitHub repository x-cmd/x-cmd. Quick greedy scan for critical violations. Triggered by "/scan [target]" to find the top 1-5 most severe issues and stop early.

How to use this skill

Skill file

Quick Scanner

Trigger

Use when:

Do NOT use when:

Steps

Step 1: Parse Arguments

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

Default: current directory.

Step 2: Load Rules

x rule which
ls $ruleset_dir/*.yml
cat $ruleset_dir/*.yml

Step 3: Greedy Scan

Strategy:

Step 4: Output Results

Output Format

TSV with header:

root    target    ruleid    score    hint

If nothing obviously wrong: 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.