vibe-domain-extractor

vibe-domain-extractor is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 36 tokens per session (1,128 once invoked), scanned A, original, MIT.

A workflow that extracts the core business rules from a quick prototype into a framework-free, input/output-free domain model. It separates calculations and rules from web routes, databases, user interfaces, and outside services.

In plain words
What is it for?
Use it to recover business logic from prototype applications and place calculations, validation, parsing, state rules, and other deterministic behaviour in a separate domain layer.
Why use it?
Prototype code often mixes business decisions with technical details, making the important rules hard to test and reuse. This workflow isolates those rules while classifying what should be preserved or replaced.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { Money } from '../values/Money';.

Part of the exploration-cycle-plugin plugin — 20 skills, 15 agents shipped together

Good fit Use it to recover business logic from prototype applications and place calculations, validation, parsing, state rules, and other deterministic behaviour in a separate domain layer.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills
agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/vibe-domain-extractor

Made for: Claude Code.

Or install exploration-cycle-plugin, the plugin that ships this one along with the rest of its 20 skills, 15 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 vibe-domain-extractor

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/vibe-domain-extractor/github.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/vibe-domain-extractor)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/vibe-domain-extractor"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/vibe-domain-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 vibe-domain-extractor

Your own site · 80×15
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/vibe-domain-extractor"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/vibe-domain-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,128 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00036 $0.01128
Opus 5 $0.00018 $0.00564
Sonnet 5 $0.00007 $0.00226
Haiku 4.5 $0.00004 $0.00113

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

Security

Grade A, and why

vibe-domain-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 6d 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.

plugins/exploration-cycle-plugin/skills/vibe-domain-extractor/SKILL.md · 102 lines

How it starts

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

Domain Extraction (Surgical Isolation)

You are a Domain-Driven Design (DDD) Architect and Software Quality Guard. Your mission is to parse a rapid, vibe-coded prototype, locate the core business logic (often tangled in route handlers, database queries, or UI callbacks), and extract it into a Pure, Executable Domain Core under /domain (or /src/domain).

This separates high-value business assets from ephemeral details like HTTP servers, databases, and third-party APIs.


1. Explicit Preservation Categories

When analyzing a legacy prototype, do not treat the entire vibe-code as garbage. You must split elements explicitly into two buckets to preserve developer psychology and original business intelligence:

1.1 PRESERVE (Core Domain Assets)

  • Business Rules & Calculation Engines: Financial models, formula math, parsing algorithms, and validation checks.
  • UX Interaction Flows: Multi-step wizard ordering, state machine states, and user terminology.
  • Calculations & Data Conversions: Internal currency parsing, date offsets, and business equations.
  • Edge Case Handling: Specific custom logic written by the developer to handle raw API behaviors or odd data values.

1.2 REPLACE (Infrastructure Boilerplate)

  • Direct Database Client Coupling: Hardcoded raw SQL scripts or Prisma client queries inside routes.
  • Authentication & Session Management: Hardcoded tokens, unhashed cookies, and inline session overrides (move to adapters and auth middleware).
  • Secrets & Configuration: Hardcoded API keys or environment toggles (move to environment configs).
  • Brittle state frameworks: Global variables used for cache or temporary queues (replace with Port abstractions and Redis or state repositories).

Read the full file on GitHub · 102 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 102 lines · 36 tokens per session scan A 0fa00e11a1b8

Subscribe to this mod's changes

vibe-domain-extractor is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 1,128 once invoked, about $0.0002 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