regra

regra is a skill for Claude Code from wharley/DevCommandCenter. It costs 90 tokens per session (1,075 once invoked), scanned A, original, Apache-2.0.

A way to add a project rule that every session must follow, with an optional check for changed files. Dev Command Center applies the rule and can send work back once when the check fails.

In plain words
What is it for?
Use it to define requirements such as adding tests with code, including a rollback with a database migration, or updating a changelog for an API change.
Why use it?
It turns a team requirement into a repeatable check instead of leaving it in someone's memory. This helps catch related work that was missed when files changed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dcc plugin — 3 skills, 3 hooks, 1 MCP server shipped together

Good fit Use it to define requirements such as adding tests with code, including a rollback with a database migration, or updating a changelog for an API change.

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

Made for: Claude Code.

Or install dcc, the plugin that ships this one along with the rest of its 3 skills, 3 hooks, 1 MCP server.

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 regra

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wharley/devcommandcenter/regra"><img src="https://agentmods.dev/badge/skills/wharley/devcommandcenter/regra.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,075 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.00090 $0.01075
Opus 5.5 $0.00036 $0.00430
Sonnet 5.5 $0.00018 $0.00215
Haiku 4.5 $0.00009 $0.00108

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

Security

Grade A, and why

regra 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 today.

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/dcc/skills/regra/SKILL.md · 57 lines

How it starts

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

Add a project rule

A project rule lives in .devcommandcenter/rules/<name>.md. Every session in the project reads it, and DCC's plugin and the DCC app both apply it. A rule with a check ("when these files change, one of those must change too") is checked with no model when each turn ends. A turn that misses it is sent back once to finish the work.

Talk to the person in their language. Write the rule's title and instruction in that language too.

Steps

  1. Ask what the rule is for. If they named a template below or described one, use it. If not, offer the templates in one short list plus "something else", and wait for their answer.
  2. Fit it to this project before proposing anything. Look at the repository (git ls-files, the manifest files, the test and migration folders) and use the folders and file names it really has. A check whose patterns match nothing never fires.
  3. Check what already exists. Call dcc_rules_check to see the rules already checked, or list .devcommandcenter/rules/. Do not add a rule that repeats one.
  4. Show the rule and wait for the person's OK. Show the title, the instruction, and the check in words: "when src/** changes, *.test.ts or tests/ must change too".
  5. Write it with dcc_rules_add. Pass title, instruction, and for a check when_changed and requires_changed, each a list of patterns.
  6. Report what the tool said. That includes where the file went, and whether the uncommitted changes already miss the rule. Remind the person to commit the file so the team gets it.

Patterns

  • Patterns are relative to the project's root.
  • * matches inside one folder, ** matches across folders, and ? matches one character.
  • A pattern with no / matches a file name anywhere, for example *.test.ts.
  • A pattern ending in / matches a whole folder, for example tests/.
  • Braces, brackets and commas are not supported. Give one pattern per item instead.
  • If only some of the files should count, list the ones that do. A check has no exclusions.

Read the full file on GitHub · 57 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. today First seen · 57 lines · 90 tokens per session scan A c1845dcd603b

Subscribe to this mod's changes

regra is a skill published in the GitHub repository wharley/DevCommandCenter (21 stars, last pushed today), licensed Apache-2.0. It adds 90 tokens to every session and 1,075 once invoked, about $0.0004 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-05.

Related

regra compared with skills from other repositories

regra next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
regrawharley/DevCommandCenterSkill21todayApache-2.0A90Claude Code
Write testsAuraVixStudio/caeloSkill261mo agoApache-2.0A20Claude Code, Codex
test-fixture-designerlfyxhappy/lfcodeSkill22mo agoMITA60Claude Code, Codex
unit-test-engineerlfyxhappy/lfcodeSkill22mo agoMITA58Claude Code, Codex
dsh-ci-test-reliabilityqufei1993/skills-hubSkill1.9k6d agoMITA76Codex
agentbro-pr-mergeshirenchuang/agentbroSkill167todayApache-2.0A38Claude Code, Codex
fix-bugnowsprinting/unity-coding-skillsSkill203d agoUnlicenseA45Claude Code