mcp-ratchet: Skill for Windsurf

.windsurf/skills/context-usage/SKILL.md

context-usage is a skill for Windsurf from hexxla/mcp-ratchet. It costs 11 tokens per session (150 once invoked), scanned A, original, MIT.

A review guide for using Go's context.Context, a standard way to carry cancellation, deadlines, and request-specific data through function calls.

In plain words
What is it for?
Reviewing or writing Go functions that accept contexts, pass them through calls, handle cancellation, set deadlines, or use context values.
Why use it?
It catches context patterns that can cause requests to run too long, lose cancellation signals, or misuse request data.

Skill for Windsurf

Written for Windsurf: installed under .windsurf/.

This is hexxla/mcp-ratchet's own configuration. It tells Windsurf how to work on mcp-ratchet 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 mcp-ratchet configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hexxla/mcp-ratchet. 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/hexxla/mcp-ratchet/main/.windsurf/skills/context-usage/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hexxla/mcp-ratchet

Made for: Windsurf.

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 context-usage

README.md
[![agentmods](https://agentmods.dev/badge/skills/hexxla/mcp-ratchet/context-usage.svg)](https://agentmods.dev/skills/hexxla/mcp-ratchet/context-usage)
Your own site
<a href="https://agentmods.dev/skills/hexxla/mcp-ratchet/context-usage"><img src="https://agentmods.dev/badge/skills/hexxla/mcp-ratchet/context-usage.svg" alt="Measured on agentmods" 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 150 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.00150
Opus 5 $0.00005 $0.00075
Sonnet 5 $0.00002 $0.00030
Haiku 4.5 $0.00001 $0.00015

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

Security

Grade A, and why

context-usage 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 8d 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.

.windsurf/skills/context-usage/SKILL.md · 20 lines

What it actually says

Go Context Usage Skill

When reviewing or writing Go code:

  • Ensure context.Context is the first parameter in functions that need it
  • Validate context is not stored in struct fields
  • Check that context is not used as a value in struct fields
  • Ensure context is passed through the call chain properly
  • Validate context cancellation is checked with select statements
  • Ensure context is not nil when used
  • Check that context is not used in exported API signatures incorrectly
  • Validate context deadlines are set appropriately
  • Ensure context values are used sparingly and for request-scoped data
  • Check that context.WithValue is used for request-scoped metadata only
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. 8d ago First seen · 20 lines · 11 tokens per session scan A d724b5917670

Subscribe to this mod's changes

context-usage is a skill published in the GitHub repository hexxla/mcp-ratchet (2 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 150 once invoked, about $0.0001 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

go-code-review

Use when reviewing Go code or checking code against community style standards. Also use proactively before submitting a Go PR or when reviewing any Go code changes, even if the user doesn't explicitly request a style review. Does not cover language-specific syntax — delegates to specialized skills.

cxuu/golang-skills · 56 tokens

design-review

Deep design review of Go codebase — naming, structure, consistency, interfaces, error handling. Scores each dimension and provides actionable fixes.

dimetron/pi-go · 30 tokens

agents-md

Generate AGENTS.md files for Go, Rust, TypeScript, and Java projects. Use this skill whenever the user asks to create, scaffold, bootstrap, update, or review an AGENTS.md (or agent-instructions, CLAUDE.md, repo guide for agents) file in a codebase. Also trigger when the user says "add AGENTS.md", "make this repo…

dimetron/pi-go · 138 tokens

go-expert

Expert-level Go development with Go 1.22+ features, concurrency, standard library, and production-grade best practices. Use when the user mentions concurrency, microservices, or backend, or when the task involves idiomatic Go, goroutines and channels, context-based cancellation, or writing an HTTP server.

personamanagmentlayer/pcl · 65 tokens

code-review

Structured code review prompt with language and focus area.

gridctl/gridctl · 12 tokens

gemtracker

Analyze Ruby gem dependencies, vulnerabilities, outdated packages, maintenance health, and insecure gem sources with the gemtracker CLI. Use when asked to audit Ruby gems, check Gemfile.lock security, review dependency health, or run gemtracker.

spaquet/gemtracker · 49 tokens