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.
npx skills add msbaek/msbaek-claude-plugins --skill discover-value-objectgit clone --depth 1 https://github.com/msbaek/msbaek-claude-pluginsWrote 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.
[](https://agentmods.dev/skills/msbaek/msbaek-claude-plugins/discover-value-object)<a href="https://agentmods.dev/skills/msbaek/msbaek-claude-plugins/discover-value-object"><img src="https://agentmods.dev/badge/skills/msbaek/msbaek-claude-plugins/discover-value-object/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.
<a href="https://agentmods.dev/skills/msbaek/msbaek-claude-plugins/discover-value-object"><img src="https://agentmods.dev/badge/skills/msbaek/msbaek-claude-plugins/discover-value-object.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00124 | $0.02287 |
| Opus 5.5 | $0.00050 | $0.00915 |
| Sonnet 5.5 | $0.00025 | $0.00457 |
| Haiku 4.5 | $0.00012 | $0.00229 |
Grade A, and why
discover-value-object 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Discover Value Object Skill
Primitive Obsession을 제거하여 도메인 개념을 명시적으로 표현하는 Value Object 발견.
GOAL
- 성공 = Primitive 타입이 Value Object로 치환되어 커밋 완료됨
- Primitive 타입(int, String 등)에 도메인 로직이 산재함
- 반복되는 검증/변환/포맷팅 로직이 식별됨
- 사용자 확인 후 Value Object 추출
- 모든 테스트 통과
CONSTRAINTS
- 계열: System-wide — 후보 제시 후 승인 받고 적용 (
../../references/refactoring-procedure.md§0·§3-B)
Hard Rules
- 동작 변경 금지 — 구조 개선만 수행
- 테스트 수정 금지 — 구조 변경이 테스트를 실패시키면 되돌리기
- 사용자 확인 없이 리팩토링 금지 — 모든 후보는 사용자 승인 후 실행
- 커밋 단위 — 1파일 x 1기법 = 1커밋 (논리적으로 연결된 파일은 함께)
- git add -A 금지 — 변경된 파일만 명시적으로 추가
적용 패턴
Discover Value Object 리팩토링 단계:
-
Primitive Obsession 패턴 식별
- Entity 필드가 primitive 타입
- 해당 primitive에 대한 검증/변환/포맷팅 로직 산재
- 동일한 검증/변환 로직 반복
-
Value Object 클래스 생성
- 도메인 개념을 명시하는 이름 부여
- Immutable record 또는 class 사용
- 생성자에서 검증 수행
-
관련 로직 이동
- 검증 로직을 생성자로 이동
- 변환/포맷팅 로직을 메서드로 이동
- 비즈니스 규칙을 메서드로 캡슐화
-
사용처 변경
- Entity 필드 타입을 Value Object로 변경
- 산재된 로직을 Value Object 메서드 호출로 치환
Before/After 예시
// Before: Primitive Obsession
public class Order {
private int amount; // primitive 타입
private String currency; // primitive 타입
public Order(int amount, String currency) {
// 검증 로직 산재
if (amount < 0) {
throw new IllegalArgumentException("Amount cannot be negative");
}
if (currency == null || currency.isEmpty()) {
throw new IllegalArgumentException("Currency is required");
}
this.amount = amount;
this.currency = currency;
}
// 비즈니스 로직 산재
public boolean isExpensive() {
return amount > 1000;
}
public String formattedPrice() {
return currency + " " + amount;
}
public double convertToUSD(double exchangeRate) {
if ("USD".equals(currency)) {
return amount;
}
return amount * exchangeRate;
}
}
// After: Value Object 추출
record Money(int amount, String currency) {
// 생성자에서 검증
public Money {
if (amount < 0) {
throw new IllegalArgumentException("Amount cannot be negative");
}
if (currency == null || currency.isEmpty()) {
throw new IllegalArgumentException("Currency is required");
}
}
// 비즈니스 로직을 Value Object로 이동
public boolean isOver(int threshold) {
return amount > threshold;
}
public String formatted() {
return currency + " " + amount;
}
public Money convertTo(String targetCurrency, double exchangeRate) {
if (currency.equals(targetCurrency)) {
return this;
}
return new Money((int) (amount * exchangeRate), targetCurrency);
}
public Money add(Money other) {
if (!currency.equals(other.currency)) {
throw new IllegalArgumentException("Cannot add different currencies");
}
return new Money(amount + other.amount, currency);
}
}
public class Order {
private Money price; // Value Object
public Order(Money price) {
this.price = price;
}
// 비즈니스 로직이 간결해짐
public boolean isExpensive() {
return price.isOver(1000);
}
public String formattedPrice() {
return price.formatted();
}
}
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.
- 2mo ago Changed · +1 lines · +91 tokens per session 8c05bb4c9398
- 2mo ago Changed eab20b16a1e0
- 3mo ago First seen · 247 lines · 33 tokens per session scan A fa5e8d5932f9
discover-value-object is a skill published in the GitHub repository msbaek/msbaek-claude-plugins (8 stars, last pushed 1mo ago), licensed MIT. It adds 124 tokens to every session and 2,287 once invoked, about $0.0005 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-08-31.
discover-value-object compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| discover-value-objectmsbaek/msbaek-claude-plugins | Skill | 8 | 1mo ago | MIT | A | 124 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 333k | 7d ago | MIT | A | 21 | Claude Code |