AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Designsystem

skill-arbazkhan971-godmode-designsystem · by arbazkhan971

Design system architecture. design tokens, theme systems, Figma to code, component API, Storybook, light/dark, versioning.

No reviews yet
0 installs
29 views
0.0% view→install

Install

$ agentstack add skill-arbazkhan971-godmode-designsystem

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-arbazkhan971-godmode-designsystem)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Designsystem? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Design System — Design System Architecture

Activate When

  • User invokes /godmode:designsystem
  • User says "design system," "design tokens," "theme architecture," "Figma to code"
  • Creating a shared component library or establishing token architecture
  • Building theme support (light/dark, multi-brand) or Figma-to-code pipeline
  • Versioning/distributing a design system package or auditing for consistency

Workflow

Step 1: Assess Current State

DESIGN SYSTEM ASSESSMENT:
Project:   Framework: 
Existing system: 
Token coverage: Colors/Spacing/Typography/Shadows/Borders/Motion —  each
Theme support: 
Component count:   Storybook:   Figma integration: 
Maturity: NONE | STARTER | GROWING | MATURE

Step 2: Token Architecture

Three-tier architecture is mandatory:

TIER 1: PRIMITIVES (raw values)      --primitive-blue-500: #3b82f6;
TIER 2: SEMANTIC (meaning)           --color-primary: var(--primitive-blue-500);
TIER 3: COMPONENT (specific)         --button-bg: var(--color-primary);

Colors: Neutral scale (50-950), brand scale, feedback (red/green/amber). Semantic: bg, surface, text-primary/secondary/tertiary, primary/hover/active, error/success/warning, border/border-strong/border-focus.

Spacing: 4px base unit scale: 0, px, 0.5, 1, 1.5, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24 (in rem).

Typography: Font families (sans, mono), sizes (xs-5xl modular 1.25 scale), weights (400-700), line heights (tight/normal/relaxed).

Shadows: xs through 2xl + inner + focus ring.

Step 3: Component API Standards

STANDARDS:
- variant: "primary"|"secondary"|"ghost"|"danger"  size: "sm"|"md"|"lg"
- Extend native HTML element props. Export all prop types.
- forwardRef on every component wrapping native elements. Set displayName.
- Compound components: 
- Defaults: variant="primary", size="md"
- on convention. Support controlled and uncontrolled modes.
- className always accepted as escape hatch.

Step 4: Theme System

Light/dark via CSS custom properties on [data-theme]. ThemeProvider with system preference detection, localStorage persistence, flash-free SSR. Multi-brand via [data-brand] overriding primitive tokens.

Step 5: Design-to-Code Pipeline

Figma Variables/Tokens Studio -> tokens.json (W3C format) -> Style Dictionary -> outputs (CSS variables, TypeScript constants, Tailwind config). CI automation: Figma webhook -> generate -> PR -> visual regression test.

Step 6: Versioning & Distribution

Semantic versioning: MAJOR (remove token/component, rename, change defaults), MINOR (add component/token/variant), PATCH (fix values/bugs). Package structure: dist/css/, dist/js/, dist/tokens/. Release: version bump -> build -> changelog -> publish -> deploy Storybook.

Step 7: Storybook Documentation

Initialize with essential addons (a11y, viewport, docs, designs). Structure: Introduction > Foundations (Colors, Typography, Spacing, Shadows) > Components (Atoms, Molecules, Organisms) > Patterns > Theming.

Step 8: Audit Report

DESIGN SYSTEM AUDIT:
  Token Coverage: Colors/Spacing/Typography/Shadows — / used,  hardcoded
  Component API Compliance: / standards-compliant
  Theme System: Light/Dark/System preference/Persistence/Flash-free
  Pipeline: Figma sync automated/manual/none
  Documentation: Storybook coverage %
  Score: /100  Maturity: NONE | STARTER | GROWING | MATURE

Step 9: Remediation Plan

Priority 1 (Critical): blocks adoption. Priority 2 (High): degrades consistency. Priority 3 (Medium): improves DX. Priority 4 (Low): polish.

Step 10: Commit

Commit per area: "designsystem:  — "
Transition: Run /godmode:ui for component audit, /godmode:a11y for accessibility

Key Behaviors

  1. Tokens are the single source of truth. Every visual decision is a token.
  2. Three-tier architecture is mandatory. Primitives -> Semantic -> Component.
  3. Keep component APIs predictable. Same prop naming, composition, typing everywhere.
  4. Theming is infrastructure. Dark mode requires complete semantic token layer.
  5. Automate the pipeline. Manual sync guarantees drift.
  6. Version like a product. Semver, changelogs, migration guides.
  7. Storybook is the documentation. If not in Storybook, it does not exist.

Flags & Options

| Flag | Description | |--|--| | --audit | Audit existing design system maturity | | --tokens | Token architecture only | | --theme | Theme system setup | | --pipeline | Figma-to-code pipeline setup | | --storybook | Storybook documentation setup | | --init | Initialize complete design system from scratch |

# Build and test design system
npx storybook build --ci
npx chromatic --exit-zero-on-changes
npx style-dictionary build

IF token coverage 10 hardcoded) | STARTER ( visual regression test -> unified report


## TSV Logging
Log to `.godmode/designsystem-results.tsv`:
`timestamp\tskill\ttarget\taction\ttokens_count\tcomponents_count\tcoverage_pct\tstatus`

## Success Criteria
1. All tokens in single source (Style Dictionary/Figma Tokens)
2. Semantic layer between primitives and components
3. Every component references only semantic tokens
4. Light + dark themes work by swapping tokens only
5. Every component has Storybook story with all variants
6. Token pipeline generates CSS custom properties
7. Token coverage >= 90%

## Error Recovery
- **Tokens out of sync with Figma:** Re-export, rebuild, diff, update only if changed.
- **Theme switching breaks:** Check semantic token usage, verify data-theme attribute, inspect computed styles.
- **Storybook fails:** Check imports, addon compatibility, clear cache.
- **Visual regression false positives:** Font rendering diffs, update baselines, use threshold tolerance.

## Platform Fallback
Run sequentially if `Agent()` or `EnterWorktree` unavailable. Branch per task: `git checkout -b
godmode-designsystem-{task}`. See `adapters/shared/sequential-dispatch.md`.

## Output Format
Print: `DesignSystem: {tokens} tokens, {components} components. Theme: {light_dark|single}. Storybook:
{passing|failing}. Status: {DONE|PARTIAL}.`

## Keep/Discard Discipline

After EACH design system change: KEEP if: all components use semantic tokens AND Storybook builds AND visual regression passes DISCARD if: primitive token used directly OR Storybook breaks OR visual regression detected On discard: revert. Fix token mapping before retrying.


## Stop Conditions

Loop until target or budget. Never ask to continue — loop autonomously. Measure before/after. Guard: testcmd && lintcmd. On failure: git reset --hard HEAD~1.

STOP when ALL of:

  • All components reference semantic tokens only
  • Storybook builds and deploys successfully
  • Theme switching works (light/dark) without layout breaks
  • Visual regression baseline established

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [arbazkhan971](https://github.com/arbazkhan971)
- **Source:** [arbazkhan971/godmode](https://github.com/arbazkhan971/godmode)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.