guards-setup

guards-setup is a skill for Claude Code from jx-hxxx/hi-vibe. It costs 83 tokens per session (2,918 once invoked), scanned A, original, MIT.

A setup guide for installing automatic code-quality checks, such as linting, type checking, dependency-cycle checks, and optional CI checks.

In plain words
What is it for?
Adding or reviewing quality checks for Python and JavaScript or TypeScript projects, including local checks and continuous integration.
Why use it?
It helps catch common code problems automatically and preserves existing project settings instead of replacing them.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; mentions Claude Code.

Part of the hi-vibe plugin — 6 skills, 10 commands, 2 agents, 5 hooks shipped together

Good fit Adding or reviewing quality checks for Python and JavaScript or TypeScript projects, including local checks and continuous integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jx-hxxx/hi-vibe/guards-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jx-hxxx/hi-vibe --skill guards-setup
Clone the repo
git clone --depth 1 https://github.com/jx-hxxx/hi-vibe

Made for: Claude Code.

Or install hi-vibe, the plugin that ships this one along with the rest of its 6 skills, 10 commands, 2 agents, 5 hooks.

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 guards-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/jx-hxxx/hi-vibe/guards-setup/github.svg)](https://agentmods.dev/skills/jx-hxxx/hi-vibe/guards-setup)
Your own site
<a href="https://agentmods.dev/skills/jx-hxxx/hi-vibe/guards-setup"><img src="https://agentmods.dev/badge/skills/jx-hxxx/hi-vibe/guards-setup/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 guards-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/jx-hxxx/hi-vibe/guards-setup"><img src="https://agentmods.dev/badge/skills/jx-hxxx/hi-vibe/guards-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,918 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.00083 $0.02918
Opus 5 $0.00042 $0.01459
Sonnet 5 $0.00017 $0.00584
Haiku 4.5 $0.00008 $0.00292

Measured 11d ago against content hash e570090c3ccb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

guards-setup 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 11d 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.

skills/guards-setup/SKILL.md · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

guards-setup

답변 언어: 이 지침은 한국어로 쓰였지만, 출력은 항상 사용자가 대화에서 쓰는 언어를 따른다 (한국어→한국어, 영어→영어). 기존 문서·코드에 언어가 있으면 그쪽을 우선한다.

텍스트 규칙은 잊히지만 기계 게이트는 잊히지 않는다. 이 스킬은 규율의 절반을 린트/CI로 내려보낸다. 스니펫은 이 스킬의 templates/에 있다.

절차 (순서 엄수)

  1. 감지: pyproject.toml/requirements*.txt/*.py → Python; package.json/tsconfig.json → JS/TS; 둘 다면 둘 다.

  2. 기존 설정 읽기: ruff/mypy/eslint/import-linter 설정이 이미 있으면 먼저 읽는다. 절대 덮어쓰지 않는다. 이미 같은 일을 하는 도구가 있으면 그 항목을 아예 빼고 제안한다. 타입 검사는 mypy 말고도 basedpyright·pyright가 흔하다 (pyproject.toml[tool.basedpyright]/[tool.pyright], pyrightconfig.json, package.json의 pyright 스크립트). 있으면 mypy를 권하지 마라 — 타입체커 둘을 돌리면 서로 다른 소리를 한다. 비밀키도 gitleaks·detect-secrets 설정이 있으면 마찬가지다. 겹치는 걸 또 깔아주는 건 도움이 아니라 짐이다.

  3. 묻기 (AskUserQuestion, 필수): 설치할 가드를 multiSelect로 고르게 한다. 사용자는 대개 입문자다 — 아래를 지켜라.

    • 쉬운 말로. 전문용어(complexity·max-depth·dpdm·exit 1·no-any· OAuth 등)를 앞세우지 말고, "이게 나한테 뭘 해주는지"를 한 줄로 먼저 쓴다. 정확한 규칙값은 괄호로 뒤에 짧게. 예: "코드가 너무 길고 복잡해지면 빨간불로 알려줘요 (함수 60줄·복잡도 10 넘으면)".
    • 추천 표시. 로컬에서 외부 설정 없이 바로 되는 가드(복잡도 린트 + 순환 의존 검사)를 **맨 앞에 두고 label에 "(추천)"**을 붙인다. 입문자 기본값은 이 둘이면 충분하다 — GitHub도 토큰도 필요 없는 순수 이득.
    • CI 가드GitHub 리모트(git remote)가 있을 때만 추천으로 올린다 — "GitHub에 올릴 때마다 자동 검문, 통과 못 하면 못 올려요 (초반엔 답답할 수 있어요)". 리모트가 없으면 목록에서 빼거나 "나중에"로.
    • 격주 구조 감사는 label에 "(고급)"을 붙이고, 켜기 전에 OAuth 토큰 등록·Actions 권한 설정이 필요하다고 설명에 미리 밝힌다. 처음이면 나중에 해도 된다고 안내.
    • "다 켜라"고 밀지 마라. 4개 전부 체크된 기본값처럼 몰아가지 말고, 입문자에겐 로컬 2종을 권하고 나머지는 필요해지면 그때 켜라고 말한다.
    • 플래그로 켜게 하지 마라. CI를 목록에 넣을지는 git remote로 직접 확인해 정한다 — 사용자가 --ci를 외워서 쳐야 보이면, 모르는 사람은 영영 못 켠다. 리모트가 없으면 목록에서 빼고 왜 뺐는지 한 줄 ("GitHub에 안 올리는 프로젝트라 CI는 돌 자리가 없어요"). 안 도는 워크플로 파일은 보호받는다는 착각만 준다.
  4. 병합: 스니펫의 키를 기존 설정에 정중히 병합. 사용자가 이미 정한 값(예: 기존 max-complexity)은 유지하고 차이만 보고.

  5. 실측 검증 (grounded-answers 계약): 설치 후 도구를 실제로 한 번 실행해 실제 출력을 보여준다. "될 겁니다"가 아니라 실행 결과로 보고.

  6. 위반이 쏟아지면 — 하나씩 묻지 마라. 이미 다 만든 프로젝트에 켜면 위반이 수백 개 나오는 게 정상이다. 그걸 하나하나 "의도한 거예요?"라고 물으면 수백 번 묻는 것이고, 사용자도 코드를 다시 열어보기 전엔 답할 수 없다. 묻는 횟수 자체가 이 기능의 성패다.

Read the full file on GitHub · 148 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 148 lines · 83 tokens per session scan A e570090c3ccb

Subscribe to this mod's changes

guards-setup is a skill published in the GitHub repository jx-hxxx/hi-vibe (3 stars, last pushed today), licensed MIT. It adds 83 tokens to every session and 2,918 once invoked, about $0.0004 per session on Opus 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

writing-checks

Build the machinery that enforces a convention instead of documenting it — PreToolUse guards that block an action before it runs, CI gates that judge the worktree, selftests that prove a check can turn red, and structural tests that enforce layering. Use this whenever a rule keeps getting violated despite being…

WangChangxin0809/repo-agent-harness · 105 tokens

procoder

Work like a senior developer in a repository governed by procoder: run the commit gate before calling anything done, format and lint through the binary, and drive the spec, plan, todo, backlog, and sprint chain in .procoder/. Use this skill when the repository contains a .procoder/ directory or an AGENTS.md naming…

azrtydxb/procoder · 101 tokens

code-review

The depth half of a review - the dimensions a diff is read against (correctness, boundaries, concurrency, failure paths, secrets, data access, structure, test quality) and the rule that a finding is refuted before it is reported. The verdict stays with the reviewer agent. Use when reviewing a diff or a pull request…

jjanczur/tyran · 80 tokens

fidelity-gate

Build a UI against a frozen visual reference without drift - an inventory extracted before any code, a relics list, and a gate that MEASURES computed styles on a fixture carrying the reference's own data. Use when a mockup, design spec or screenshot is the contract.

jjanczur/tyran · 56 tokens

prompt-tuning

Tune a prompt, or anything whose quality is measured by non-deterministic model output, without chasing noise - a noise baseline before the first edit, medians over repeated runs, enforcement AFTER generation rather than in the wording. Use when iterating on prompts or model-judged output.

jjanczur/tyran · 58 tokens

root-cause

Find the mechanism behind a failure instead of patching its symptom - reproduce first, one variable per experiment with the prediction written before the run, exit by naming the mechanism and pinning it with a failing test. Use for a bug, an unexplained red test, or a failure that will not reproduce.

jjanczur/tyran · 61 tokens