find-and-setup-analysis-rule

find-and-setup-analysis-rule is a skill for Claude Code from nowsprinting/unity-coding-skills. It costs 120 tokens per session (2,165 once invoked), scanned A, original, Unlicense.

A workflow for finding a code-analysis rule that flags a specified coding pattern and configuring it in a Unity project. Such a rule is an IDE inspection or analyzer that reports matching code while it is written.

In plain words
What is it for?
Use it to find and configure a Roslyn analyzer, IDE inspection, plugin, or custom analyzer for a named coding pattern.
Why use it?
It replaces manual searches and reminders with a diagnostic that points out the unwanted pattern in the project.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

Part of the unity-coding-skills plugin — 12 skills shipped together

Good fit Use it to find and configure a Roslyn analyzer, IDE inspection, plugin, or custom analyzer for a named coding pattern.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nowsprinting/unity-coding-skills/find-and-setup-analysis-rule
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 nowsprinting/unity-coding-skills --skill find-and-setup-analysis-rule
Clone the repo
git clone --depth 1 https://github.com/nowsprinting/unity-coding-skills

Made for: Claude Code.

Or install unity-coding-skills, the plugin that ships this one along with the rest of its 12 skills.

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 find-and-setup-analysis-rule

README.md
[![agentmods](https://agentmods.dev/badge/skills/nowsprinting/unity-coding-skills/find-and-setup-analysis-rule/github.svg)](https://agentmods.dev/skills/nowsprinting/unity-coding-skills/find-and-setup-analysis-rule)
Your own site
<a href="https://agentmods.dev/skills/nowsprinting/unity-coding-skills/find-and-setup-analysis-rule"><img src="https://agentmods.dev/badge/skills/nowsprinting/unity-coding-skills/find-and-setup-analysis-rule/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 find-and-setup-analysis-rule

Your own site · 80×15
<a href="https://agentmods.dev/skills/nowsprinting/unity-coding-skills/find-and-setup-analysis-rule"><img src="https://agentmods.dev/badge/skills/nowsprinting/unity-coding-skills/find-and-setup-analysis-rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,165 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.00120 $0.02165
Opus 5.5 $0.00048 $0.00866
Sonnet 5.5 $0.00024 $0.00433
Haiku 4.5 $0.00012 $0.00216

Measured 2d ago against content hash 64058c91d40b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

find-and-setup-analysis-rule 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.

skills/find-and-setup-analysis-rule/SKILL.md · 144 lines

How it starts

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

Finds an analysis rule that flags a coding pattern as the code is written, and sets it up in the Unity project. An analysis rule is an IDE inspection or a Roslyn analyzer rule, and a diagnostic is what it reports on the code it flags.

Input

Take the coding pattern from the pattern argument: a description, the code the analysis rule should flag, and optionally the code it should not, e.g., the code before and after a bug fix. Combine the argument with the coding pattern in the conversation, if any; when the argument is omitted, take it from the conversation alone. A named API, e.g., "ban GameObject.Find", is the code to flag. If the code to flag is missing, or the input fits several patterns, use AskUserQuestion to ask the user before proceeding.

When the input names a Roslyn analyzer package to install, e.g., "install BannedApiAnalyzers", take the package instead of a coding pattern: skip Step 1, and in Step 2 propose installing it per Roslyn Analyzer Package. Leave every rule at its default severity unless the user specifies one; set a specified severity per Configuration.

Workflow

Step 1: Find an Analysis Rule

Choose the option whose diagnostic meets the user's need, by where each option diagnoses:

  • A Roslyn analyzer diagnoses in every IDE and in Unity's compilation, that is, before the code runs: at error severity it stops code that would, e.g., freeze at run time, before a test runs it (see Severity)
  • An IDE inspection or plugin diagnoses in that IDE only; an IDE inspection also diagnoses when /resolve-diagnostics runs: that skill collects the diagnostics from Rider, at the severities .editorconfig sets

Look into the options in whatever order fits the pattern; when several have an analysis rule that flags the code to flag and meet the need equally, choose the earliest listed.

Analysis Rules to Apply First

Each of these analysis rules takes precedence over every other rule for its pattern. When the pattern matches one, propose it in Step 2 without searching the lists of rules below; set it up per its option below.

Read the full file on GitHub · 144 lines

Files

What ships with it

2 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. 2d ago First seen · 144 lines · 120 tokens per session scan A 64058c91d40b

Subscribe to this mod's changes

find-and-setup-analysis-rule is a skill published in the GitHub repository nowsprinting/unity-coding-skills (20 stars, last pushed 3d ago), licensed Unlicense. It adds 120 tokens to every session and 2,165 once invoked, about $0.0005 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-12-02.

Related

find-and-setup-analysis-rule compared with skills from other repositories

find-and-setup-analysis-rule next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
find-and-setup-analysis-rulenowsprinting/unity-coding-skillsSkill203d agoUnlicenseA120Claude Code
unity-debugbigdra50/unity-cliSkill395mo agoMITA51Claude Code
uloop-get-project-infohatayama/unity-cli-loopSkill612todayMITA34Claude Code, Codex
aibridge-code-indexliyingsong99/AIBridgeSkill23024d agoMITA70Claude Code, Codex
aspid-visual-element-fluentVPDPersonal/Aspid.FastToolsSkill272d agoMITA109Claude Code, Codex
aibridge-development-workflowliyingsong99/AIBridgeSkill23024d agoMITA86Codex
aspid-serializable-typeVPDPersonal/Aspid.FastToolsSkill272d agoMITA136Claude Code, Codex