mcp-ratchet: Skill for Windsurf

.windsurf/skills/interface-design/SKILL.md

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

A review guide for designing interfaces in Go, the programming language. It checks whether interfaces are small, focused, behavior-based, compatible with existing code, and needed at all.

In plain words
What is it for?
Use it when reviewing or writing Go code to assess interface size, naming, composition, method cohesion, empty-interface usage, and backward compatibility.
Why use it?
It helps prevent overly broad abstractions and interfaces that expose implementation details. It also highlights when a concrete type would be clearer.

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/interface-design/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 interface-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/hexxla/mcp-ratchet/interface-design/github.svg)](https://agentmods.dev/skills/hexxla/mcp-ratchet/interface-design)
Your own site
<a href="https://agentmods.dev/skills/hexxla/mcp-ratchet/interface-design"><img src="https://agentmods.dev/badge/skills/hexxla/mcp-ratchet/interface-design/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 interface-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/hexxla/mcp-ratchet/interface-design"><img src="https://agentmods.dev/badge/skills/hexxla/mcp-ratchet/interface-design.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 135 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.00135
Opus 5 $0.00005 $0.00068
Sonnet 5 $0.00002 $0.00027
Haiku 4.5 $0.00001 $0.00014

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

Security

Grade A, and why

interface-design 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/interface-design/SKILL.md · 20 lines

What it actually says

Go Interface Design Skill

When reviewing or writing Go code:

  • Ensure interfaces are small and focused (single responsibility)
  • Validate interfaces are defined by the consumer, not the implementer
  • Check that interfaces don't leak implementation details
  • Recommend interface composition over large interfaces
  • Ensure interfaces are named after behavior (e.g., Reader, Writer)
  • Validate that empty interfaces are used only for type assertions
  • Check for unnecessary interface abstraction
  • Recommend concrete types where interfaces are overkill
  • Ensure interface methods are cohesive and related
  • Validate that interface changes are backward compatible
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 56fca50aadb3

Subscribe to this mod's changes

interface-design 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 135 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