AgentSkillsCN

sniper-check

用于在修改后验证代码质量。在隔离的分支上下文中运行狙击手代理,以实现干净、快速的验证。

SKILL.md
--- frontmatter
name: sniper-check
description: Use when validating code quality after modifications. Runs sniper agent in isolated forked context for clean, fast validation.
context: fork
agent: fuse-ai-pilot:sniper
user-invocable: true
argument-hint: "[file-or-directory]"

Target: $ARGUMENTS

Sniper Check

Overview

Quick code quality validation using the sniper agent in an isolated forked context. Executes the full 6-phase workflow without polluting the main conversation context.

FeatureDetail
ContextForked (isolated sub-agent)
Agentsniper (Sonnet)
Phases6-phase code-quality workflow
ResultOnly final report returns to parent

When to Use

ScenarioUse
After code modifications/sniper-check src/
Validate specific file/sniper-check path/to/file.ts
Full project check/sniper-check .
After refactoring/sniper-check src/components/

Workflow

Execute the mandatory 6-phase code-quality workflow:

  1. PHASE 1+2 (PARALLEL): Launch both in parallel:
    • explore-codebase (Haiku) → Architecture discovery
    • research-expert (Sonnet) → Documentation verification
  2. PHASE 3: Grep all usages → Impact analysis
  3. PHASE 4: Run linters → Detect errors
  4. PHASE 5: Apply corrections → Minimal changes
  5. PHASE 6: Re-run linters → Zero errors

CRITICAL: Phases 1+2 must run in PARALLEL (two Task calls in one message).


Critical Rules

RuleReason
Never skip phases 1+2Documentation-backed fixes only
Always run phases in orderDependencies between phases
Zero linter errorsNon-negotiable exit criteria
Minimal changes onlySmallest fix necessary

Report Format

Return a validation report with:

  • Architecture summary (from explore-codebase)
  • Documentation references (from research-expert)
  • Impact analysis table (usages, risk level)
  • Errors fixed (critical, high, medium, low)
  • SOLID compliance status
  • Final linter status (must be ZERO errors)