Official agent skill

Design First

by getsentry in getsentry/sentry-dart

Shape non-trivial work before writing it — decide the modules, the seams, and the public API surface up front.

OfficialMITAuto-check passedMobile

Install Design First

skills CLI
$ npx skills add getsentry/sentry-dart --skill design-first -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install getsentry/sentry-dart design-first --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/getsentry/sentry-dart.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/design-first .claude/skills/design-first && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
design-first
GitHub stars
873
Token cost
~1.8k tokens
SKILL.md length
1,004 words
Files
2 (incl. references)
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Shape non-trivial work before writing it — decide the modules, the seams, and the public API surface up front.

  • Works in 6 steps: Frame the change → Shape the modules → Design for testability → …
  • Starting a feature
  • SKILL.md covers When to run, Vocabulary and The design pass
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Design First is an agent skill from getsentry/sentry-dart, published by the product's own GitHub organization. Shape non-trivial work before writing it — decide the modules, the seams, and the public API surface up front. Use when starting a feature, adding an integration, changing a public barrel file, crossing a package or native-interop boundary, or deciding where a seam should go. Produces a design sketch to approve before implementation, then hands off to code-guidelines and test-guidelines.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/design-it-twice.md`).

It sits in Mobile, covering Cross-platform mobile apps. It works with Sentry and Flutter. The repository describes itself as: Sentry SDK for Dart and Flutter. The licence is MIT.

When your agent uses it

  • Starting a feature
  • Adding an integration
  • Changing a public barrel file
  • Crossing a package

Example prompts

  • “/design-first”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Frame the change
  2. Shape the modules
  3. Design for testability
  4. Check the SDK constraints
  5. Write the design sketch and get approval
  6. Hand off

What it can do on your machine

Read from SKILL.md and the folder at commit 96d6367. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Design First loads about 1.8k tokens when it runs, and up to ~2.5k if it reads all its reference files. Until then it costs about 101 tokens; SKILL.md has 1,004 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~101
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from getsentry/sentry-dart at commit 96d6367, republished under its MIT licence (© getsentry). 1,004 words, ~1,766 tokens.

Download SKILL.mdSave it as .claude/skills/design-first/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
design-first
description
Shape non-trivial work before writing it — decide the modules, the seams, and the public API surface up front. Use when starting a feature, adding an integration, changing a public barrel file, crossing a package or native-interop boundary, or deciding where a seam should go. Produces a design sketch to approve before implementation, then hands off to code-guidelines and test-guidelines.

Design the shape before writing the code. The pass ends in a design sketch the user approves; implementation does not start until it does. Aim for deep modules placed at clean seams — so callers get leverage, maintainers get locality, and tests get a surface to push against.

This is a design pass, not an implementation plan. Decide what shape the code takes and why; leave the line-level rules to code-guidelines and the test structure to test-guidelines.

When to run

Run for work where the shape is a real decision:

  • A new feature or a new Integration
  • A change to a public barrel file (lib/sentry.dart, lib/sentry_flutter.dart) — it cascades to every downstream package and user
  • Work that crosses a package boundary or the native-interop (JNI/FFI) boundary
  • Any moment you are choosing where a seam goes, or how a module is shaped to be testable

Skip it — and say you are skipping it — for one-line fixes, localized bug fixes with obvious placement, and refactors that change no interface.

Vocabulary

Use these terms exactly in the sketch and the discussion — consistent language is what makes the design legible across sessions. Don't substitute "component," "service," "layer," or "boundary."

  • Module — anything with an interface and an implementation: a function, class, or package.
  • Interface — everything a caller must know to use it correctly: the signature, plus invariants, ordering, error modes, and required config.
  • Deep module — a lot of behavior behind a small interface. The goal. A shallow module has an interface nearly as complex as its implementation — avoid it.
  • Seam — the place where you can swap behavior without editing in that place. Where a module's interface lives, and where a test double crosses.
  • Adapter — a concrete thing satisfying an interface at a seam.

Two checks settle most design questions:

  • The deletion test. Imagine deleting the module. If complexity vanishes, it was a pass-through — don't build it. If complexity reappears across N callers, it earns its keep.
  • The interface is the test surface. Callers and tests cross the same seam. If you need to test past the interface, the module is the wrong shape — and per test-guidelines, tests through a clean interface survive refactors.

The design pass

1. Frame the change

State the behavior the change introduces, in the domain's own words. Name the package(s) it lands in. Read the relevant AGENTS.md (root, packages/dart/, packages/flutter/) for the area you're touching.

Find the nearest well-shaped precedent and align to it. The codebase has almost certainly solved something adjacent; locate its best current example and match it — or improve on it deliberately, noting why. The repo's own best-organized case is a stronger guide than any rule (e.g. follow telemetry/span/ v2, not the v1 span scatter). This auto-updates as the codebase evolves.

2. Shape the modules

Decide the modules and where their seams go. Prefer fewer, deeper modules over many shallow ones. For each module, name its interface — not just the signature, but the invariants and error modes a caller must know. Run the deletion test on anything you suspect is a pass-through.

Decide where the code lives as part of shaping it — a locality call: co-locate what changes together so one change stays directory-local. The discriminator is shared vs owned:

  • A cohesive subsystem owns its model, lifecycle, and pipeline as one concept — group it together, sized to the change (a big subsystem earns its own dir; a small addition matches the surrounding convention).
  • Peel a piece into a shared module only when it has its own lifecycle and more than one consumer — the deletion test decides it (would extracting it concentrate complexity, or just move it?).
  • If you can't name the concern a piece serves, that's a smell — it's doing two things, or belongs to a concept you haven't named yet. A cross-cutting concern (enrichment, exceptions) is still a concept with a home; a truly nameless one means the design is off.

For the repo's concrete layout — which dirs are layer vs concept, the native/ seam exception, the legacy loose tier — see code-guidelines' File Organization.

Show full SKILL.md (339 more words)Show less
3. Design for testability

A seam exists so a test can cross it. For each module, name the seam its tests will cross and what fake injects there (test-guidelines builds these via Fixture + getSut()). Three rules make that possible:

  • Accept dependencies, don't create them. A module that constructs its own transport or client can't be faked; one that receives it can.
  • Return results, don't bury side effects. A function that returns a value is testable; one that only mutates shared state is not.
  • Keep the surface small. Fewer methods and params mean less test setup.

Native interop is special: JNI/FFI cannot be faked or mocked (see packages/flutter/AGENTS.md). Put the seam at the Dart boundary above native so the logic is unit-testable, and plan an integration test for the native path itself.

4. Check the SDK constraints

Resolve these before sketching — each has a canonical home; consult it rather than guessing:

  • Public API surface. Does this add or change exports in a barrel file? Keep new types in src/ unless they're meant for SDK users. See packages/dart/AGENTS.md.
  • Integration shape. If the feature is an Integration, it implements call()/close(), gates on its prerequisites early, and stays order-independent. See code-guidelines.
  • Package boundary. Core behavior belongs in packages/dart/; integration-specific behavior in its own package. A new dependency in core cascades everywhere.
5. Write the design sketch and get approval

Write a short sketch — prose or bullets, not code — and present it. Do not start implementing until the user approves it.

The sketch is complete when it states, for the change:

  • Each module, its interface, and whether it's new or modified
  • The seam each module's tests cross, and the fake that injects there (or "integration test" where native)
  • The public-API-surface impact (barrel-file exports added/changed, or "none")
  • One alternative shape you considered and why you rejected it

If the solution space is wide and the best interface isn't obvious, design it twice before sketching — see references/design-it-twice.md.

6. Hand off

On approval, implement under code-guidelines, and write tests under test-guidelines at the seams this sketch named.

© getsentry, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in .agents/skills/design-first of getsentry/sentry-dart.

  • SKILL.md
  • references/design-it-twice.md

Open the folder on GitHubat commit 96d6367

Compare with similar skills

Design First next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Design First compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Design First this skillgetsentry/sentry-dart873—~1.8kAutomated safety check: PassMIT
Sentry Flutter SDKgetsentry/sentry-for-ai268—~7.1kAutomated safety check: PassApache-2.0
Sentry SDK Setupgetsentry/sentry-for-ai268—~1.7kAutomated safety check: PassApache-2.0
Add Flutter Docusaurus Localematthiasn/lotti1.2k—~1.2kAutomated safety check: PassGPL-3.0
Tm Launcher DesignFar-Se/tabame371—~3.1kAutomated safety check: PassMIT
Mobile App UI Designceorkm/mobile-app-ui-design400—~2kAutomated safety check: PassNone

Similar skills

  • Sentry Flutter SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for Flutter and Dart. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~7.1k tokensUpdated today
    MobileAuto-check passed
  • Sentry SDK Setup

    getsentry/sentry-for-ai

    Official

    Set up Sentry in any language or framework. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~1.7k tokensUpdated today
    MobileAuto-check passed
  • Add, complete, or audit a locale across a Flutter application's ARB catalogs and a localized Docusaurus manual, including generated localization code, locale selectors, native platform declarations…

    1.2k GitHub stars~1.2k tokensUpdated today
    MobileAuto-check passed
  • Tm Launcher Design

    Far-Se/tabame

    Create or revise Tabame's Flutter launcher designs: frames, search bars, result rows, palettes, typography, and action dialogs.

    371 GitHub stars~3.1k tokensUpdated yesterday
    MobileAuto-check passed
  • Mobile App UI Design

    ceorkm/mobile-app-ui-design

    Design high-quality mobile app UI/UX screens, flows, and components.

    400 GitHub stars~2k tokensUpdated 3 mo ago
    MobileAuto-check passed
  • Marionette Flutter Drive App

    leancodepl/marionette_mcp

    Set up and drive a running Flutter app (debug or profile) with Marionette — an AI agent's hands and eyes for the app.

    473 GitHub stars~11k tokensUpdated yesterday
    MobileAuto-check passed

More from getsentry/sentry-dart

  • Code Guidelines

    getsentry/sentry-dart

    Official

    Enforce Sentry Dart/Flutter SDK code guidelines for implementation, refactoring, and review.

    873 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Test Guidelines

    getsentry/sentry-dart

    Official

    Enforce Sentry Dart/Flutter SDK test conventions for naming, structure, and fixtures.

    873 GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Review

    getsentry/sentry-dart

    Official

    Three-axis review of the branch diff — Standards (this repo's documented standards + public API surface), Spec (the originating Linear issue / PR), and Correctness (runtime bugs + the SDK threat…

    873 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Diagnosing Bugs

    getsentry/sentry-dart

    Official

    A discipline for hard bugs, flaky tests, CI hangs, and performance regressions in this SDK.

    873 GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Design First

What does Design First do?

Shape non-trivial work before writing it — decide the modules, the seams, and the public API surface up front. Design First is an agent skill from getsentry/sentry-dart, published by the product's own GitHub organization. Shape non-trivial work before writing it — decide the modules, the seams, and the public API surface up front.

When should I use Design First?

Design First fits situations like: starting a feature; adding an integration; changing a public barrel file; crossing a package.

How do I install Design First in Claude Code?

Run `npx skills add getsentry/sentry-dart --skill design-first -a claude-code`. Or copy the skill folder (.agents/skills/design-first in getsentry/sentry-dart) into .claude/skills/design-first in your project. Claude Code loads it when a task matches its description.

How do I install Design First in Codex?

Run `npx skills add getsentry/sentry-dart --skill design-first -a codex`. Or copy the skill folder (.agents/skills/design-first in getsentry/sentry-dart) into .agents/skills/design-first in your project. Codex loads it when a task matches its description.

Can I use Design First in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add getsentry/sentry-dart --skill design-first -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/design-first, .gemini/skills/design-first, .github/skills/design-first and .opencode/skills/design-first in your project.

What does Design First need to run?

SKILL.md names no scripts, command-line tools or credentials: Design First is instructions for the agent only.

Does Design First access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Design First safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Design First use?

Design First is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Design First use?

About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 716 tokens, read only when the agent opens those files.

What are the alternatives to Design First?

Skills that share tags, products or a category with Design First: Sentry Flutter SDK (getsentry/sentry-for-ai, 268 stars), Sentry SDK Setup (getsentry/sentry-for-ai, 268 stars), Add Flutter Docusaurus Locale (matthiasn/lotti, 1.2k stars) and Tm Launcher Design (Far-Se/tabame, 371 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Design First?

getsentry (a GitHub organization, an official publisher) maintains it in getsentry/sentry-dart, which has 873 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 7, 2026.

Source: getsentry/sentry-dart on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.