coding-guard

Repository-specific coding rules for the Explyt Spring IntelliJ plugin, including how to plan changes, follow its Kotlin and IntelliJ conventions, test code, and prepare pull requests.

In plain words
What is it for?
Use it when modifying the plugin to follow its module layout, IntelliJ threading and PSI rules, inspections, tests, message bundles, statistics tracking, and review practices.
Why use it?
It keeps changes small and consistent with the existing project, while encouraging developers to state assumptions and resolve unclear requirements before editing code.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/explyt/spring-plugin/coding-guard
Any agent
npx skills add explyt/spring-plugin --skill coding-guard
Clone the repo
git clone --depth 1 https://github.com/explyt/spring-plugin

Made for: Claude Code, Codex.

Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,718 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00067 $0.02718
Opus 5 $0.00034 $0.01359
Sonnet 5 $0.00013 $0.00544
Haiku 4.5 $0.00007 $0.00272

Measured 2d ago against content hash 3b9394caba9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coding-guard 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 2d 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.

.explyt/skills/coding-guard/SKILL.md · 168 lines

How it starts

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

Coding Guard — explyt/spring-plugin

Rules to follow when writing or modifying code in this repository (Explyt Spring IntelliJ plugin). Grounded in CONTRIBUTING.md, build.gradle.kts, gradle.properties, and existing sources.


0. Before coding (process rules)

These apply before any technical rule below. Bias toward caution over speed; for trivial tasks use judgement.

0.1 Think before coding

  • State assumptions explicitly. If uncertain about intent, data shape, or an API contract — ask. Don't guess.
  • Surface ambiguity, don't resolve it silently. If the request has multiple reasonable interpretations, list them and let the user choose.
  • Push back when warranted. If a simpler approach exists, say so before implementing the requested one.
  • Stop and name confusion. Don't patch over unclear behavior with plausible-looking code.

0.2 Simplicity first

  • Minimum code that solves the problem. No features beyond what was asked, no abstractions for single-use code, no unrequested configurability.
  • No defensive code for scenarios the type system or existing invariants already rule out (null checks on non-nullable Kotlin types, unreachable branches after an exhaustive when over a sealed type). Apply this only when an external explicit mechanism rules the case out — not your own "this can't happen" reasoning.
  • Do not remove platform-mandated guards: PSI isValid checks, VirtualFile validity checks, read/write-action wrappers, ProgressManager.checkCanceled() calls, and dumb-mode guards are required even if they look defensive.
  • If you wrote 200 lines where 50 would do — rewrite.

0.3 Surgical changes

  • Touch only what's needed. Don't "improve" adjacent code, comments, formatting, or imports outside your change.
  • Don't refactor code that isn't broken. If a rule below flags nearby code you are not editing — mention it to the user, don't silently rewrite it.
  • Match existing style, even if you'd write it differently.
  • Clean up only your own orphans: imports/variables your edit made unused. Flag pre-existing dead code instead of deleting it.
  • Traceability test: every changed line should trace directly to the user's request.

Read the full file on GitHub · 168 lines

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. 2d ago First seen · 168 lines · 67 tokens per session scan A 3b9394caba9f

Subscribe to this mod's changes

coding-guard is a skill published in the GitHub repository explyt/spring-plugin (160 stars, last pushed 4d ago), licensed Apache-2.0. It adds 67 tokens to every session and 2,718 once invoked, about $0.0003 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-30.