archguardian: Skill for Claude Code

.claude/skills/check/SKILL.md

check is a skill for Claude Code from ysfAskri/archguardian. It costs 11 tokens per session (322 once invoked), scanned A, original, MIT.

A pre-commit review command that analyzes only the changes staged in Git. Staged changes are the files you have selected to include in the next commit.

In plain words
What is it for?
Use it to inspect staged files, review each finding with its file and line, enforce quality thresholds, preview fixes, or produce CI annotations for GitHub Actions.
Why use it?
It catches architecture and dependency issues in the exact changes about to be committed, before they become part of the repository history.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is ysfAskri/archguardian's own configuration. It tells Claude Code how to work on archguardian itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything archguardian configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ysfAskri/archguardian. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ysfAskri/archguardian/master/.claude/skills/check/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ysfAskri/archguardian

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for check

README.md
[![agentmods](https://agentmods.dev/badge/skills/ysfaskri/archguardian/check/github.svg)](https://agentmods.dev/skills/ysfaskri/archguardian/check)
Your own site
<a href="https://agentmods.dev/skills/ysfaskri/archguardian/check"><img src="https://agentmods.dev/badge/skills/ysfaskri/archguardian/check/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for check

Your own site · 80×15
<a href="https://agentmods.dev/skills/ysfaskri/archguardian/check"><img src="https://agentmods.dev/badge/skills/ysfaskri/archguardian/check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.00322
Opus 5.5 $0.00004 $0.00129
Sonnet 5.5 $0.00002 $0.00064
Haiku 4.5 $0.00001 $0.00032

Measured 1mo ago against content hash 9a29c46777ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/check/SKILL.md · 42 lines

What it actually says

archguardian check

Analyze only the staged git changes to catch issues before they are committed.

Instructions

  1. Verify there are staged changes:

    git diff --cached --stat
    

    If nothing is staged, tell the user and suggest staging files first.

  2. Run the check command:

    npx archguardian check --format json $ARGUMENTS
    
  3. Parse the JSON output and present findings, focusing only on the staged files.

  4. For each finding:

    • Show the file, line, and rule
    • Explain what's wrong and how to fix it
    • Offer to apply the fix directly
  5. If all checks pass, tell the user they're clear to commit.

Tips

  • This is the same analysis that runs in the pre-commit hook.
  • If the user wants to commit despite warnings, suggest using // archguard-ignore-line for intentional exceptions.
  • Offer /fix --dry-run to preview auto-fixes before applying.
  • Use --quality-gate to enforce quality thresholds and get a pass/fail result (see /gate).
  • Use --ci github in CI pipelines to output findings as GitHub Actions annotations.
  • Use --post-to-pr to post findings as inline review comments on a GitHub PR (requires GITHUB_TOKEN).
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 42 lines · 11 tokens per session scan A 9a29c46777ac

Subscribe to this mod's changes

check is a skill published in the GitHub repository ysfAskri/archguardian (4 stars, last pushed 8mo ago), licensed MIT. It adds 11 tokens to every session and 322 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

autofix-pr

Watch a pull request and fix it from a worktree of its own - CI failures, review feedback from trusted authors and merge conflicts are fixed, pushed to the PR branch and answered on the PR under the user's git and gh identity. Usage - /autofix-pr [ | ] [--once] [--every ] [--no-reply] [--yes] [instructions]…

QwenLM/qwen-code · 123 tokens

ring:generating-pr-descriptions

Generating pull request descriptions from git branch changes with automatic title generation, change-type detection, and smart analysis. Uses branch-only scope to avoid full history analysis. Use when preparing a PR for review. Skip when the PR is a single trivial commit or description already exists.

LerianStudio/ring · 61 tokens

argot-setup

Set argot up for a repository end to end — audit its history, decide what should shape its voice, fit, verify the fit actually catches things, tune the rules its own history says are noisy, and wire the places it runs (pre-write hook, pre-commit, MCP, CI). One sitting, one decision at a time, each proposed with the…

get-tmonier/argot · 129 tokens

loop-gh-pr

A recipe for a scheduled GitHub pull-request watcher. It checks open pull requests for new activity and prepares read-only review drafts without posting comments or merging anything.

restarter/lets-workflow · 118 tokens

review

Structured code review with parallel audit agents, confidence-scored triage, and optional auto-fix. Examines uncommitted changes, staged diffs, commit ranges, or specific paths. Produces a tiered report (MUST-FIX / RECOMMENDED / NIT) backed by evidence, then optionally applies fixes with verification.

greglas75/zuvo · 70 tokens

git-flow-pr

Executes the full PR-driven development workflow: create an isolated feature branch from the current work, commit all staged changes, rebase cleanly onto the selected base branch (skipping any ancestor commits already merged), push the branch, and open a GitHub pull request linked to a related issue. Includes guidance…

soulcodex/agentic · 103 tokens