design

design is a skill for Claude Code from pitimon/8-habit-ai-dev. It costs 42 tokens per session (3,493 once invoked), scanned A, original, MIT.

An architecture-planning step for deciding how a change should handle areas such as databases, user sign-in, APIs, and technical limits.

In plain words
What is it for?
Use it after defining requirements and before breaking work into tasks when a feature affects system structure or technical constraints.
Why use it?
It keeps architectural choices tied to the agreed requirements and makes trade-offs and unanswered questions visible before task planning.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; mentions Claude Code.

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 8-habit-ai-dev plugin — 24 skills, 2 agents, 1 hook shipped together

Good fit Use it after defining requirements and before breaking work into tasks when a feature affects system structure or technical constraints.

Compare 6 skills 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 pitimon/8-habit-ai-dev
Claude Code
/plugin install 8-habit-ai-dev

Made for: Claude Code.

Or install 8-habit-ai-dev, the plugin that ships this one along with the rest of its 24 skills, 2 agents, 1 hook.

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 design

README.md
[![agentmods](https://agentmods.dev/badge/skills/pitimon/8-habit-ai-dev/design.svg)](https://agentmods.dev/skills/pitimon/8-habit-ai-dev/design)
Your own site
<a href="https://agentmods.dev/skills/pitimon/8-habit-ai-dev/design"><img src="https://agentmods.dev/badge/skills/pitimon/8-habit-ai-dev/design.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,493 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.00042 $0.03493
Opus 5 $0.00021 $0.01747
Sonnet 5 $0.00008 $0.00699
Haiku 4.5 $0.00004 $0.00349

Measured 7d ago against content hash 7697e728161e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

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 7d 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.

plugin/skills/design/SKILL.md · 223 lines

How it starts

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

Step 2: Design (วางโครงสร้าง)

Habit: H8 — Find Your Voice | Anti-pattern: Letting AI decide architecture without human judgment

Process

  1. Read existing architecture and context contract: Check CLAUDE.md, AGENTS.md, SPEC.md, DOMAIN.md, CONTEXT.md, CONTEXT-MAP.md, DESIGN.md, ARCHITECTURE.md, docs/agents/domain.md, and ADR directories. Understand current state and project vocabulary before proposing changes.

1b. Validate scope alignment: read the SKILL_OUTPUT:requirements block from docs/specs/<slug>/prd.md when persisted; otherwise recover scope_in / success criteria / risks from the PRD prose in context (non-persisted runs carry no block since v2.21.39, #375). Then verify:

  • Proposed architecture decisions don't expand beyond scope_in
  • Success criteria are achievable with the proposed design
  • Identified risks are addressed or accepted in design constraints

1c. Select the smallest safe pass level before producing design output:

Pass level Use when Expected output
Scan Small, bounded, exploratory, or unclear architecture impact Compact architecture note, key constraints, open questions, and safe next step
Focus One module, workflow, subsystem, integration, or boundary is in scope Targeted decisions, local trade-offs, risks, and any needed ADRs
Full Whole-system design, unclear ownership, 3+ interacting modules, persistence, authentication, payment, security, deployment, or future-agent handoff is needed Full decision set, ADR coverage, risk register, human approvals, and handoff-ready constraints

Read the full file on GitHub · 223 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. 7d ago First seen · 223 lines · 42 tokens per session scan A 7697e728161e

Subscribe to this mod's changes

design is a skill published in the GitHub repository pitimon/8-habit-ai-dev (3 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 3,493 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-31.

Related

Other skills, from other repositories

fastapi

FastAPI best practices + Pydantic. Use when building or reviewing FastAPI APIs.

martineserios/thebrana · 21 tokens

architect

This skill should be used when the user asks to "design system architecture", "evaluate microservices vs monolith", "create architecture diagrams", "analyze dependencies", "choose a database", "plan for scalability", "make technical decisions", or "review system design".

Joncik91/ucai · 56 tokens

backend

This skill should be used when the user asks to "design REST APIs", "optimize database queries", "implement authentication", "build microservices", "review backend code", "set up GraphQL", "handle database migrations", or "load test APIs".

Joncik91/ucai · 54 tokens

documentation

Use when shipping features with public interfaces that lack docs, generating documentation, updating README files, writing API docs, creating architecture documentation, or when documentation is incomplete or outdated. Also use when adding breaking changes, implementing complex algorithms, or before shipping any phase…

lgbarn/shipyard · 66 tokens

auth-doctor

Diagnose and fix issues in existing auth setups. Scans environment, files, security, middleware, OAuth, database, and dangerous code patterns. Produces scored health report with actionable fixes.

ShipWithAI/shipwithai-plugins · 42 tokens

python-patterns

Python backend patterns: layered architecture, async I/O, dependency injection, repository/service separation. TRIGGER when: creating routes, models, schemas, or services in a Python backend. SKIP: REST contract design (use api-design); schema/index tuning (use database-optimization). (Examples: FastAPI + SQLAlchemy +…

komluk/scaffolding · 73 tokens