enforce-boundaries

enforce-boundaries is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 63 tokens per session (2,773 once invoked), scanned A, original, MIT.

A repository check that turns written rules about which parts of a codebase may depend on each other into tested boundary checks.

In plain words
What is it for?
Use it to record boundary rules, test that a deliberate violation fails, and confirm the check passes after the violation is removed.
Why use it?
It helps catch architecture violations instead of relying on developers to notice them during review. It uses the repository's existing checking approach where possible.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the architecture plugin — 16 skills, 1 plugin shipped together

Good fit Use it to record boundary rules, test that a deliberate violation fails, and confirm the check passes after the violation is removed.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install architecture

Made for: Claude Code.

Or install architecture, the plugin that ships this one along with the rest of its 16 skills, 1 plugin.

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 enforce-boundaries

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/enforce-boundaries"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/enforce-boundaries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,773 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.00063 $0.02773
Opus 5.5 $0.00025 $0.01109
Sonnet 5.5 $0.00013 $0.00555
Haiku 4.5 $0.00006 $0.00277

Measured yesterday against content hash 62fb77224f68, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

enforce-boundaries 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 yesterday.

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.

plugins/architecture/skills/enforce-boundaries/SKILL.md · 189 lines

How it starts

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

Arguments. [boundaries findings file ...] [--repo <repo> ...]. Optional path to a findings file the boundaries lens wrote, in $ARGUMENTS; its rules that ## Boundary rules does not hold yet are offered for recording in Phase 1. --repo and the other target forms in ${CLAUDE_PLUGIN_ROOT}/reference/target-scope.md run the skill in several repositories ("Several repositories" below); the default stays this repository. With several, the findings file argument may repeat, and each file applies only to the repository whose memory root holds it.

This skill ships no tool, config, template or per-language file. It brings the process and the rule vocabulary; the mechanism is the one each repository already has, or one researched at run time. The check's config and tests are the repository's own files, and ## Boundary rules stays the tool-neutral source they are derived from.

Several repositories

With no target form, the skill runs in this repository, exactly as the phases below say. A target form resolves, counts and fans out the repositories as target-scope.md says. The subagents run Phases 1 to 3 read-only, once per repository with its root anchored: that repository's rules, its own mechanism and its own plan, each rule row carrying its repository (owner/name). A rule Phase 1 would append is only proposed there. Phases 1 to 3 read the files on disk under the root; when its checked-out HEAD is not origin/HEAD after the fetch, or its working tree has uncommitted changes, the plan says so for that repository, since the writes start from a worktree that may not hold what the plan names. The questions are then asked once, from the merged plans, and the yes in "Consent" is given per repository, for that repository's plan and appends. The writes (the Phase 1 appends, then Phases 4 to 7) run in one repository at a time, as target-scope.md "Writes stay per repository" says: for a repository other than the session's own, in a worktree that repository's convention creates, never its main checkout. Each repository's change is its own pull request, when the user asks for one.

Read the full file on GitHub · 189 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. yesterday Changed · -22 tokens per session 62fb77224f68
  2. 5d ago Changed 831e90f911df
  3. 7d ago Changed 3d405c698b0a
  4. 10d ago Changed · +20 lines 15cf44501de7
  5. 11d ago Changed b655a012a8e5
  6. 13d ago First seen · 169 lines · 85 tokens per session scan A e1fc111a3402

Subscribe to this mod's changes

enforce-boundaries is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 2,773 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-11-17.

Related

enforce-boundaries compared with skills from other repositories

enforce-boundaries next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
enforce-boundariesmelodic-software/claude-code-pluginsSkill33todayMITA63Claude Code
refactor-decompose-functionjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA28Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex