module-design

module-design is a skill for Claude Code, Codex from hmj1026/dhpk. It costs 66 tokens per session (1,144 once invoked), scanned A, original, MIT.

A workflow for designing or comparing module boundaries: which code owns a responsibility, what interface it exposes, and how different architecture choices trade off. A module is a unit of code with a defined responsibility and interface.

In plain words
What is it for?
Use it to design, review, compare, or challenge a module or adapter when the right structure is still undecided.
Why use it?
It helps resolve unclear boundaries before implementation and keeps architecture decisions tied to callers, data flow, constraints, and failure cases.

Skill for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also agents/openai.yaml present. Also seen: runs codex exec; mentions Codex.

Part of the dhpk plugin — 39 skills, 1 command, 1 agent, 3 hooks shipped together

Good fit Use it to design, review, compare, or challenge a module or adapter when the right structure is still undecided.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmj1026/dhpk/module-design
View source ↗ hmj1026/dhpk
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 hmj1026/dhpk --skill module-design
Clone the repo
git clone --depth 1 https://github.com/hmj1026/dhpk

Made for: Claude Code, Codex.

Or install dhpk, the plugin that ships this one along with the rest of its 39 skills, 1 command, 1 agent, 3 hooks.

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 module-design

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmj1026/dhpk/module-design"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/module-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,144 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.00066 $0.01144
Opus 5.5 $0.00026 $0.00458
Sonnet 5.5 $0.00013 $0.00229
Haiku 4.5 $0.00007 $0.00114

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

Security

Grade A, and why

module-design 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 yesterday.

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.

generated/claude-marketplace/package/skills/proposal-analyze/references/module-design/SKILL.md · 109 lines

How it starts

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

Module design

Design the smallest deep module that makes the caller's next decision easy. Keep this guidance stack-neutral until the repository evidence selects a framework or language.

Scope before scan

Start with the user's named module, subsystem, or pain point. When no direction is named, use recent commit history to find the hot spots that keep changing and weight the exploration there. Do not propose deepening across the whole codebase before a real seam, caller, and near-term change are identified; this is the YAGNI filter for architecture work.

Modes

Select exactly one mode from design, review, compare, or adversarial; design is the default. In every mode, frame the question, constraints, scope, risks, and decision criteria before recommending a seam.

  • Design proposes a boundary for a new capability or change.
  • Review evaluates an existing boundary against callers, data flow, and failure modes.
  • Compare scores concrete alternatives against the named criteria rather than treating personal preference as evidence.
  • Adversarial forms an independent Proposal A and, only when explicitly requested, a blind Proposal B; run three bounded critique rounds by default and never more than five. Preserve material disagreement and stop with unresolved disagreement when the evidence does not support convergence.

Optional second opinion

The primary path uses only the current in-process model and does not invoke a second opinion. An explicit --second-opinion=codex-exec opt-in may run codex exec as a blind, clearly labelled additional proposal or critique; it must never replace the primary recommendation or become a silent fallback. Record the question, constraints, research summary, assumptions, decision criteria, failure modes, and any changed recommendation for that opinion.

Boundary tests — SSOT: architecture/tests own runtime behavior; this skill owns boundary decisions

  • Caller leverage: define the decision the caller should make and make the module absorb the policy and variation behind that decision.
  • Deletion test: temporarily imagine deleting the proposed abstraction. If callers become simpler or no behavior is lost, delete it; a name alone is not a module boundary.
  • Interface-as-test-surface: make the public interface the behavior seam; tests should assert caller-visible outcomes through it, not private helpers.
  • Keep one hypothetical adapter inline. Introduce an abstraction only when there are two real adapters, or when a documented near-term boundary has a concrete test or deployment need. Do not design for speculative providers.
  • Make the change easy before making the easy change: prefer a small prefactor that improves locality only when the next requested behavior needs it, and record speculative candidates as deferred rather than building them.

Read the full file on GitHub · 109 lines

Files

What ships with it

3 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. yesterday Changed · +2 lines 21b5a1e06cb3
  2. 10d ago First seen · 107 lines · 66 tokens per session scan A 6d4633b1fac5

Subscribe to this mod's changes

module-design is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 1,144 once invoked, about $0.0003 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-10-07.

Related

Other skills, from other repositories

harness

A meta-skill for designing and maintaining a project harness: a coordinated set of specialist agents, skills, and project instructions. It defines their roles, connects them to the project, and updates the setup as the work changes.

revfactory/harness · 184 tokens

evolve

A workflow for improving an existing setup that guides coding agents. It collects results and feedback, compares the current setup with its starting version, and records useful changes.

revfactory/harness · 184 tokens

dev-plan

A planning tool that breaks a software project into features arranged in dependency-based waves, or groups of work that can be done in sequence or parallel.

andrewcigan/vibe-dev-plugin · 77 tokens

research

A research workflow that assigns separate agents to study open-source projects, competing products, and current development practices. Git worktrees are separate working copies used to keep those investigations isolated.

andrewcigan/vibe-dev-plugin · 69 tokens

glean

This skill should be used BEFORE any feature design. It runs structured gleaning with the user — asking 5 high-leverage questions per round, up to 3 rounds, to extract Goal / Scope / Constraints / Edges / Done. Output is saved to .mumei/scratch/ .md and used as input for /mumei:compose. Triggers include "I want to add…

iroha924/mumei · 107 tokens

validation-sample

A skill for building a reference test set of 50–100 realistic scenarios for checking an agent or product. It separates user inputs from expected answers to prevent answer leakage and requires at least 90% before shipping.

andrewcigan/vibe-dev-plugin · 85 tokens