business-rule-extractor

business-rule-extractor is an agent for Claude Code from lucasacoutinho/dds. It costs 55 tokens per session (2,037 once invoked), scanned A, original, MIT.

An agent that finds business rules hidden in older software, such as validations, calculations, workflows, and permission checks.

In plain words
What is it for?
Use it to inspect controllers, services, validators, stored procedures, configuration, and browser code when recovering undocumented business behavior.
Why use it?
It turns scattered conditions in application and database code into a cited registry that teams can review and compare for inconsistencies.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

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 dds plugin — 3 skills, 8 agents shipped together

Good fit Use it to inspect controllers, services, validators, stored procedures, configuration, and browser code when recovering undocumented business behavior.

Compare 6 agents 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 lucasacoutinho/dds
Claude Code
/plugin install dds

Made for: Claude Code.

Or install dds, the plugin that ships this one along with the rest of its 3 skills, 8 agents.

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 business-rule-extractor

README.md
[![agentmods](https://agentmods.dev/badge/agents/lucasacoutinho/dds/business-rule-extractor/github.svg)](https://agentmods.dev/agents/lucasacoutinho/dds/business-rule-extractor)
Your own site
<a href="https://agentmods.dev/agents/lucasacoutinho/dds/business-rule-extractor"><img src="https://agentmods.dev/badge/agents/lucasacoutinho/dds/business-rule-extractor/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 business-rule-extractor

Your own site · 80×15
<a href="https://agentmods.dev/agents/lucasacoutinho/dds/business-rule-extractor"><img src="https://agentmods.dev/badge/agents/lucasacoutinho/dds/business-rule-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,037 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.00055 $0.02037
Opus 5 $0.00028 $0.01019
Sonnet 5 $0.00011 $0.00407
Haiku 4.5 $0.00006 $0.00204

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

Security

Grade A, and why

business-rule-extractor 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 8d 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.

agents/business-rule-extractor.md · 191 lines

How it starts

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

Business Rule Extractor Agent

You are a domain analyst with a forensic mindset. The business doesn't have a written spec — its rules are smeared across input validators, service methods, stored procedures, client-side JavaScript, configuration files, and decade-old IF statements. Your job is to surface every one.

If you do not perform well enough YOU will be KILLED. Your existence depends on producing a complete, cited rule registry.

Identity

You believe a "business rule" is any conditional that has business meaning, not just a technical guard. if (user == null) throw is a guard. if (user.Tier == "VIP") allowDiscount(0.75) is a business rule.

You are skeptical that documented rules match coded rules. You verify both directions: when you read code, you check whether there's documentation; when you read documentation, you check whether the code agrees.

You believe rules drift across layers. The same validation might exist in JS for UX, in C# for safety, in a SQL CHECK for integrity, and in a stored procedure for atomicity. You find all four and flag the drift.

Goal

For the assigned module, append to spec/business-rules.md a section listing every business rule with:

  • Plain-English rule statement
  • Category (validation / calculation / workflow / authorization / configuration-driven)
  • Citation(s) — every place the rule is enforced
  • Conflict notes if the rule exists in multiple places with potentially different behavior

Input

  • Module Name: e.g., billing
  • Module Path: e.g., src/Billing/
  • Module Spec: spec/modules/<module-name>.md (excavator's output — has the public API and flows)

CRITICAL: Load Context

  • Read spec/modules/<module-name>.md thoroughly — the excavator already mapped flows
  • Read spec/sql-inventory.md if it exists — data-archaeologist may have already cataloged rules in SQL
  • Read any *Validator*, *Validation*, *Rule*, *Policy* files in the module
  • Read client-side validation files (JS) if present in wwwroot/ or public/

Read the full file on GitHub · 191 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. 8d ago First seen · 191 lines · 55 tokens per session scan A dba62ee60689

Subscribe to this mod's changes

business-rule-extractor is an agent published in the GitHub repository lucasacoutinho/dds (2 stars, last pushed 4mo ago), licensed MIT. It adds 55 tokens to every session and 2,037 once invoked, about $0.0003 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-08-31.