workspace-rules

workspace-rules is a skill for Claude Code from smk-labs/claude-plugins. It costs 83 tokens per session (2,598 once invoked), scanned A, original, MIT.

A set of guidelines for deciding which rules belong in a repository's workspace instructions and which should be enforced by its build or checks.

In plain words
What is it for?
Use it to organize repository rules, decide where each rule should live, and document facts, defaults, dependencies, and checks that coding agents need before changing files.
Why use it?
It helps avoid filling instructions with rules the model already knows, while ensuring important project-specific facts and requirements are still covered.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the spring-clean plugin — 2 skills shipped together

Good fit Use it to organize repository rules, decide where each rule should live, and document facts, defaults, dependencies, and checks that coding agents need before changing files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smk-labs/claude-plugins/workspace-rules
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 smk-labs/claude-plugins --skill workspace-rules
Clone the repo
git clone --depth 1 https://github.com/smk-labs/claude-plugins

Made for: Claude Code.

Or install spring-clean, the plugin that ships this one along with the rest of its 2 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 workspace-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/smk-labs/claude-plugins/workspace-rules/github.svg)](https://agentmods.dev/skills/smk-labs/claude-plugins/workspace-rules)
Your own site
<a href="https://agentmods.dev/skills/smk-labs/claude-plugins/workspace-rules"><img src="https://agentmods.dev/badge/skills/smk-labs/claude-plugins/workspace-rules/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 workspace-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/smk-labs/claude-plugins/workspace-rules"><img src="https://agentmods.dev/badge/skills/smk-labs/claude-plugins/workspace-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,598 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.00083 $0.02598
Opus 5.5 $0.00033 $0.01039
Sonnet 5.5 $0.00017 $0.00520
Haiku 4.5 $0.00008 $0.00260

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

Security

Grade A, and why

workspace-rules 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.

spring-clean/skills/workspace-rules/SKILL.md · 67 lines

How it starts

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

A repo's rules sit at two layers: what its workspace tells a model before a line exists, and what its build catches after one is written. Telling costs a line in a file the model already reads; catching costs a red build, a turn, and a check somebody maintains forever. A rule belongs at the cheapest layer that holds it, and getting that call right is most of this pass. One test governs both: if you could have written the rule without opening this repo, the model already knows it and the line is a tax.

Which layer, and this is the judgment the rest hangs on

Take the capability away before writing any rule. Delete the export, narrow the visibility, drop the dependency, remove the tool. A reviewer shipped without an edit tool cannot fix the code it reviews, which no instruction achieves and no compacted context forgets. Then read the default posture, because omission from an allow list is not removal.

Sort what is left by what it hands the model. Information it could not infer costs nothing to obey and holds with no gate, no judge and no repetition: what this repo does not have, which of two sources wins, where the local default is wrong and how widely. A cost it must pay against its own task is not held by prose at any volume. Loudness and frequency buy nothing, and the loudest rule in this evidence sits beside a settings file granting the very access it forbids.

If a script could count compliance, something must count it. Best-evidenced claim here, and it runs one way only: every countable rule nobody counted was found violated, most often by the file stating it. A file carrying a two hundred line target ran five hundred and fifty three, and a field no downstream reader consumed was blank in thirty-seven of thirty-nine notes.

Where a cost remains and the capability cannot go, put the result in front of somebody who did not produce it, reading primary evidence rather than the producer's account. The one controlled comparison here is exactly that: reviews handed a summary found none of the blockers, reviews handed the diff found twelve. A self-reported pass is worse than no check, because it launders trust downstream.

What is left is a cost no script can count, and that is the handful worth writing down. No script reads degree or intent, so none tells a surgical cut from a rewrite. None reaches a truth living outside the repo, like what someone else's binary does with your flags after their next release. None sees how you checked, only what you wrote, so render it and look at it is out of reach. And none gets any signal when the violation still works, which covers every judgment about where a thing belongs. Write those. Write almost nothing else twice.

Read the full file on GitHub · 67 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. 1mo ago Changed · +4 lines · -230 tokens per session e322bd72eeef
  2. 1mo ago First seen · 63 lines · 313 tokens per session scan A 375145a9bd0c

Subscribe to this mod's changes

workspace-rules is a skill published in the GitHub repository smk-labs/claude-plugins (11 stars, last pushed 28d ago), licensed MIT. It adds 83 tokens to every session and 2,598 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

pmm-resume

Reviews and tailors a PMM resume (IC to VP, including AI PMM roles): dissects the job description, ranks bullets by impact fit and rebuilds the complete resume in one pass. Trigger on: resume + JD paste, "tailor this", "which bullets for this role", "rebuild for [company]", "review my PMM resume", "reframe for…

stefanoskarakasis/Product-Marketing-Skills · 98 tokens

product-marketing-context

Builds and maintains the shared GTM brain (product context, ICP, positioning, voice, market context, proof points, plus optional strategy and execution sections and the deal-reality fields) that every other skill reads before producing output. Works standalone from your own answers, and gets stronger when you connect…

stefanoskarakasis/Product-Marketing-Skills · 139 tokens

competitor-deep-dive

Builds a long-form, fully sourced deep-dive on one competitor for a named decision (strategy call, RFP, pricing change, roadmap bet), with dated reviews, deal evidence, a head-to-head per offering and where they win. Triggers: "deep-dive on [competitor]", "full competitor write-up", "what do users really say about…

stefanoskarakasis/Product-Marketing-Skills · 107 tokens

workflow-orchestrator

Chains positioning, competitive, GTM strategy, campaign briefs, stakeholder maps and retros into one coherent PMM program with a master document and brain updates. Trigger on: "run full GTM workflow", "run a full launch", "launch [product] end to end", "positioning refresh", "quarterly PMM cycle", "competitive…

stefanoskarakasis/Product-Marketing-Skills · 105 tokens

positioning-messaging

Builds or audits positioning statements, messaging hierarchies, homepage copy and persona cards using April Dunford's Obviously Awesome framework, in five modes (build, audit, fletch, sales-enablement, homepage). Refuses to generate without a named primary persona and 3+ alternatives including status quo, and blocks…

stefanoskarakasis/Product-Marketing-Skills · 97 tokens

writing-assistant

Rewrites, sharpens and drafts B2B writing in the writer's real voice: Slack messages, emails, memos, PRDs, decks, plus marketing content (blog posts, landing pages, press releases, case studies, newsletters, social posts). Use whenever someone wants to rewrite, tighten, draft or audit copy, asks why copy isn't landing…

stefanoskarakasis/Product-Marketing-Skills · 117 tokens