codebase-design

codebase-design is a skill for Claude Code, Codex from sgaabdu4/building-flutter-apps. It costs 45 tokens per session (143 once invoked), scanned A, original, MIT.

A code-structure guide for deciding which parts of a codebase own modules, public interfaces, UI components, and business rules. It also covers domain models, bounded contexts, and rules that must remain true.

In plain words
What is it for?
Use it to design or review module boundaries, public interfaces, UI token and component ownership, or domain-driven models and business rules.
Why use it?
It helps prevent unclear ownership and tangled boundaries before they lead to inconsistent code. It is meant for structural decisions rather than routine edits inside an established area.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Part of the building-flutter-apps plugin — 14 skills, 5 hooks shipped together

Good fit Use it to design or review module boundaries, public interfaces, UI token and component ownership, or domain-driven models and business rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sgaabdu4/building-flutter-apps/codebase-design
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 sgaabdu4/building-flutter-apps --skill codebase-design
Clone the repo
git clone --depth 1 https://github.com/sgaabdu4/building-flutter-apps

Made for: Claude Code, Codex.

Or install building-flutter-apps, the plugin that ships this one along with the rest of its 14 skills, 5 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 codebase-design

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sgaabdu4/building-flutter-apps/codebase-design"><img src="https://agentmods.dev/badge/skills/sgaabdu4/building-flutter-apps/codebase-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 143 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.00045 $0.00143
Opus 5.5 $0.00018 $0.00057
Sonnet 5.5 $0.00009 $0.00029
Haiku 4.5 $0.00005 $0.00014

Measured 22d ago against content hash 120ecf7a59a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

.agents/skills/codebase-design/SKILL.md · 18 lines

What it actually says

Codebase Design

Load the shared structure reference + matching conditional references.

flowchart LR
  S[references/structure.md] -->|UI tokens / components / composition| U[references/ui.md]
  S -->|Domain model / business rules / context boundaries| D[references/domain.md]
  click S "references/structure.md"
  click U "references/ui.md"
  click D "references/domain.md"
Files

What ships with it

4 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. 22d ago First seen · 18 lines · 45 tokens per session scan A 120ecf7a59a2

Subscribe to this mod's changes

codebase-design is a skill published in the GitHub repository sgaabdu4/building-flutter-apps (25 stars, last pushed 4d ago), licensed MIT. It adds 45 tokens to every session and 143 once invoked, about $0.0002 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-09-29.

Related

Other skills, from other repositories

fl-ui-components

Awareness index of every reusable widget in flui, fltheme, flmedia, and core's commonwidget — name, one-line purpose, when to reach for it instead of writing a new one.

phanbaohuy96/flutter_base_structure · 44 tokens

fl-theme-usage

Applies the fltheme design system via context.themeColor and context.textTheme without hard-coded colors or Material text-style names.

phanbaohuy96/flutter_base_structure · 29 tokens

accessibility

Use when working on accessibility, a11y, WCAG, ARIA, screen readers, keyboard nav, focus order, contrast, alt text, captions, reduced motion, or target sizes; not language/culture/device (see inclusive-design).

evanca/flutter-ai-rules · 52 tokens

inclusive-design

Use when working on inclusion, i18n/localization, global name/address forms, low-end devices, slow/metered networks, affordability, or first-time/low-confidence users; not WCAG/screen readers (see accessibility).

evanca/flutter-ai-rules · 50 tokens

building-shadcn-flutter-ui

Build beautiful, accessible, and highly customizable user interfaces in Flutter using the Shadcn UI design system. This skill ensures proper framework integration (Pure, Material, or Cupertino), consistent theming, and effective use of the 30+ responsive components available in the library.

Poorgramer-Zack/dart-expert-skills · 43 tokens

flutter

Flutter 3.44 — widget catalog, layouts, interactivity, animations, navigation, assets, adaptive/responsive design, accessibility, i18n, state management, data & backend (networking, serialization, Firebase, persistence), app architecture (MVVM, DI), platform integration (Android, iOS, web, Windows, macOS, Linux…

pledgeandgrow/pledge-skills · 126 tokens