med-paper-assistant: Skill for Claude Code

.claude/skills/ddd-architect/SKILL.md

ddd-architect is a skill for Claude Code from u9401066/med-paper-assistant. It costs 32 tokens per session (365 once invoked), scanned A, original, Apache-2.0.

A software-architecture guide based on Domain-Driven Design, a way to organise code around the business concepts it represents. It defines layers, allowed dependencies, architecture checks, and a workflow for adding features.

In plain words
What is it for?
Use it when creating modules or files, adding features, or checking imports. It supports scaffolding domain entities, application use cases and data objects, and infrastructure implementations.
Why use it?
It helps prevent business logic from depending directly on databases or external services. This keeps the code structure consistent and makes architecture violations easier to spot.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is u9401066/med-paper-assistant's own configuration. It tells Claude Code how to work on med-paper-assistant itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything med-paper-assistant configures →

Reuse

Borrowing it

Nothing to install: this file belongs to u9401066/med-paper-assistant. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/u9401066/med-paper-assistant/master/.claude/skills/ddd-architect/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/u9401066/med-paper-assistant

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 ddd-architect

README.md
[![agentmods](https://agentmods.dev/badge/skills/u9401066/med-paper-assistant/ddd-architect/github.svg)](https://agentmods.dev/skills/u9401066/med-paper-assistant/ddd-architect)
Your own site
<a href="https://agentmods.dev/skills/u9401066/med-paper-assistant/ddd-architect"><img src="https://agentmods.dev/badge/skills/u9401066/med-paper-assistant/ddd-architect/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 ddd-architect

Your own site · 80×15
<a href="https://agentmods.dev/skills/u9401066/med-paper-assistant/ddd-architect"><img src="https://agentmods.dev/badge/skills/u9401066/med-paper-assistant/ddd-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 365 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.00032 $0.00365
Opus 5 $0.00016 $0.00182
Sonnet 5 $0.00006 $0.00073
Haiku 4.5 $0.00003 $0.00036

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

Security

Grade A, and why

ddd-architect 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 10d 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.

.claude/skills/ddd-architect/SKILL.md · 40 lines

What it actually says

DDD 架構輔助技能

觸發:新增功能/模組、架構檢查、建立新檔案時自動檢查

工具:grep_search(搜尋 import)、list_dirread_filecreate_file


層級結構

src/domain/ → entities, value_objects, aggregates, repositories(介面), services src/application/ → use_cases, dtos src/infrastructure/ → persistence, services(外部服務實作) src/interfaces/ → api, mcp

依賴規則

✅ Presentation → Application → Domain ← Infrastructure(實作介面) ❌ Domain → Infrastructure, Domain → Application, Application → Presentation

違規檢查

違規 修復
Domain → Infrastructure 使用 Repository 介面
直接 SQL 在 Domain 抽出到 Repository
Application → DB 透過 Repository

檢查方法:grep_search(query="from.*infrastructure.*import", isRegexp=True, includePattern="**/domain/**/*.py")

工作流

A: 新功能腳手架 — 依序建立 Domain(entity+repo介面) → Application(use_case+dto) → Infrastructure(repo實作) B: 架構違規檢查 — grep Domain 層的 Infrastructure import → 有結果即違規

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. 10d ago First seen · 40 lines · 32 tokens per session scan A 9f16d2c0be6c

Subscribe to this mod's changes

ddd-architect is a skill published in the GitHub repository u9401066/med-paper-assistant (12 stars, last pushed 9d ago), licensed Apache-2.0. It adds 32 tokens to every session and 365 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-08-30.