rules

rules is a skill for Claude Code from AcKeskin/contexture. It costs 87 tokens per session (970 once invoked), scanned A, original, MIT.

A tool for managing layered architectural rules that apply to a project, from shared defaults through company, user, and project settings.

In plain words
What is it for?
Use it to list active rules, find why a rule applies, edit or override rules, enable or disable them, and synchronise rule settings.
Why use it?
It shows which rule is active and lets you safely change, disable, or restore rules without losing track of where they came from.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it to list active rules, find why a rule applies, edit or override rules, enable or disable them, and synchronise rule settings.

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

Made for: Claude Code.

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 rules

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ackeskin/contexture/rules"><img src="https://agentmods.dev/badge/skills/ackeskin/contexture/rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 970 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.00087 $0.00970
Opus 5 $0.00044 $0.00485
Sonnet 5 $0.00017 $0.00194
Haiku 4.5 $0.00009 $0.00097

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

Security

Grade A, and why

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 5d 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/rules/SKILL.md · 59 lines

How it starts

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

rules

Front door for the architectural-rule overlay system. Manages the user/company/project tiers that layer over the shipped architectural-rules/ tree. See docs/architectural-rules-overlay.md for the model.

Mode A only. Every mutating command previews the before→after effect on the effective corpus and waits for explicit confirmation before writing. Never auto-fires.

Tier directories

  • shipped: ~/.claude/architectural-rules/ (read-only here — never edit through this skill)
  • company: ~/.claude/architectural-rules-company/
  • user: ~/.claude/architectural-rules-local/
  • project: <project>/.claude/rules/

Manifests: ~/.claude/architectural-rules.config.yaml (user), <project>/.claude/rules.config.yaml (project).

Subcommands

/rules list

Run the resolver (see docs/architectural-rules-overlay.md § Resolution). Show the effective corpus grouped by winning tier. Annotate only non-default rules: overridden, patched, disabled, or locked-and-diverged. Plain shipped rules show name + scope only.

/rules where <key>

The debug command. For one <scope>/<name> key, list every tier that defines it, which wins, and why (override / patch deltas / disable / lock). Show orphaned patch anchors if any.

/rules disable <key> [--project | --session]

  1. Resolve the key; show exactly which rule(s) vanish from the effective corpus.
  2. Default scope = global (user manifest disabled:). --project → project manifest. --session → ephemeral, in-context note only, nothing written.
  3. If the target carries locked: true, require explicit confirmation naming the lock; on confirm, append a divergences: entry to the project manifest.
  4. Preview → confirm → write.

/rules enable <key>

Remove the key from whichever manifest disabled: set holds it (project checked before user). Preview → confirm → write.

/rules edit <key> [--editor]

  1. Resolve the current winning tier for the key.
  2. Ask: whole-file override or field patch?
    • whole-file → create ~/.claude/architectural-rules-local/<key>.md seeded with the resolved lower-tier body (a real baseline, not blank). Set origin: user.
    • field patch → create the same path with override: <key>, mode: patch, and empty remove/replace/add sections to fill in.
  3. Conversational by default: load the body into the chat; the user describes the change; apply via Edit with propose-confirm. --editor instead opens the file in $EDITOR for raw hand-editing.
  4. If the target is locked: true, confirm + write a divergence entry (as in disable).
  5. Show the resulting effective rule (post-resolution) so the user sees the merged outcome.

Read the full file on GitHub · 59 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. 5d ago First seen · 59 lines · 87 tokens per session scan A b90a28c2981e

Subscribe to this mod's changes

rules is a skill published in the GitHub repository AcKeskin/contexture (2 stars, last pushed 1mo ago), licensed MIT. It adds 87 tokens to every session and 970 once invoked, about $0.0004 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-09-03.

Related

Other skills, from other repositories