oastools: Skill for Claude Code

.claude/skills/quality-gate/SKILL.md

quality-gate is a skill for Claude Code from erraggy/oastools. It costs 33 tokens per session (445 once invoked), scanned A, original, MIT.

A quality-check procedure for Go code that runs the repository’s checks and collects gopls diagnostics. gopls is the Go language server that reports code errors, warnings, and hints.

In plain words
What is it for?
Use it to validate all changed Go packages or selected packages and receive a structured pass/fail report.
Why use it?
It puts formatting, dependency checks, linting, tests, and editor-style diagnostics into one repeatable review.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is erraggy/oastools's own configuration. It tells Claude Code how to work on oastools 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 oastools configures →

Reuse

Borrowing it

Nothing to install: this file belongs to erraggy/oastools. 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/erraggy/oastools/main/.claude/skills/quality-gate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/erraggy/oastools

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 quality-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/erraggy/oastools/quality-gate/github.svg)](https://agentmods.dev/skills/erraggy/oastools/quality-gate)
Your own site
<a href="https://agentmods.dev/skills/erraggy/oastools/quality-gate"><img src="https://agentmods.dev/badge/skills/erraggy/oastools/quality-gate/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 quality-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/erraggy/oastools/quality-gate"><img src="https://agentmods.dev/badge/skills/erraggy/oastools/quality-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 445 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.00033 $0.00445
Opus 5.5 $0.00013 $0.00178
Sonnet 5.5 $0.00007 $0.00089
Haiku 4.5 $0.00003 $0.00044

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

Security

Grade A, and why

quality-gate 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/quality-gate/SKILL.md · 78 lines

What it actually says

quality-gate

Run the complete quality pipeline and report structured results.

Usage:

  • /quality-gate — validate all changed packages
  • /quality-gate parser validator — validate specific packages

Step 1: Identify Scope

Determine which packages to check.

If packages were specified as arguments, use those.

Otherwise, find changed .go files:

git diff --name-only HEAD

Then extract unique package directories from the output using string processing — do NOT use piped bash commands (they trigger permission prompts). Convert relative paths to absolute paths (prepend the repo root) for Step 3.

Step 2: Run make check

This runs tidy, fmt, lint, and tests in one command:

make check

Record pass/fail and capture any output.

Step 3: Run gopls Diagnostics

Use the go_diagnostics MCP tool on changed .go files (NOT bash). Pass absolute paths.

Categorize results:

  • 🔴 Errors — must fix
  • 🟡 Warnings — should fix
  • 💡 Hints — fix for performance (5-15% impact documented)

Step 4: Report

Present results in this format:

## Quality Gate Results

### `make check`: ✅ PASS / ❌ FAIL
[details if failed]

### gopls Diagnostics
| File | Level | Message | Suggested Fix (if any) |
|------|-------|---------|------------------------|
| ... | ... | ... | ... |

### Verdict: ✅ READY / ❌ NOT READY

Issues to address:
1. [issue]
2. [issue]

Step 5: Offer Actions

If there are fixable issues, offer:

  1. Fix all — address all findings automatically
  2. Fix errors only — address blocking issues
  3. Skip — acknowledge and continue
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 · 78 lines · 33 tokens per session scan A 50a53c2792f4

Subscribe to this mod's changes

quality-gate is a skill published in the GitHub repository erraggy/oastools (6 stars, last pushed 9d ago), licensed MIT. It adds 33 tokens to every session and 445 once invoked, about $0.0001 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

go-127

What changed in Go 1.27 (released August 2026) and how it changes the way Go is written in pi-go. Use this skill when writing or reviewing Go that could use a 1.27 feature, when bumping the go directive in go.mod, when a build or test behaves differently after a toolchain upgrade, or when code-guidelines-go points…

dimetron/pi-go · 177 tokens

bubbletea-testing

Use this skill whenever writing tests for Bubble Tea (charmbracelet/bubbletea) TUI applications in Go. Triggers include any mention of testing Bubble Tea models, teatest, golden file testing for TUIs, testing tea.Cmd or tea.Msg, snapshot testing terminal output, or writing tests for any Go CLI/TUI that uses the Elm…

dimetron/pi-go · 139 tokens

check-linters-before-commit

Before any commit, run linters, vet, tests, and build verification; do not commit until checks pass.

dimetron/pi-go · 30 tokens

test-runner

Run and triage Go tests with correct environment handling; produce compact, actionable failure summaries.

pilinux/gorest · 22 tokens

functions-development

Build serverless Go or Python functions for Falcon Foundry apps. TRIGGER when user asks to "create a function", "write a serverless function", "build backend logic", runs foundry functions create, or needs help with FDK handler patterns, function testing, or collection integration from functions. Also TRIGGER when…

CrowdStrike/foundry-skills · 195 tokens

test-new-skill

Skill "test-new-skill" from dimetron/pi-go, covering test-new-skill, examples and guidelines.

dimetron/pi-go · 4 tokens