compose-contextual-design-system
Skill2 starsChanged 5 months agoMITView on GitHub
Use for creating or reviewing a Compose Material 3 design system whose tokens, components, previews, accessibility and performance rules fit the app context after build/tests pass.
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- super-android-kotlin-firebaseSkill
- accessibilitySkill
- agp9-kotlin-migrationSkill
- android-architectureSkill
- android-coreSkill
- android-navigation-3Skill
- code-review-refactorSkill
- compose-performanceSkill
- context-aware-ui-designSkill
- debuggingSkill
- dependency-injectionSkill
- dependency-upgrade-safetySkill
- design-test-gateSkill
- edge-to-edge-adaptive-uiSkill
- firebase-ai-logicSkill
- firebase-authSkill
- firebase-cloud-functionsSkill
- firebase-coreSkill
- firebase-crashlytics-analyticsSkill
- firebase-emulator-ciSkill
- firebase-messagingSkill
- firestore-costs-quotasSkill
- firestoreSkill
- gradle-buildSkill
- jetpack-composeSkill
- kotlin-coreSkill
- macrobenchmark-baseline-profilesSkill
- networking-retrofit-ktorSkill
- play-store-releaseSkill
- r8-proguard-optimizationSkill
- room-datastoreSkill
- screen-ux-auditSkill
- security-privacySkill
- testingSkill
- ui-state-designSkill
- workmanager-background-syncSkill
- xml-to-compose-migrationSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Add or recommend previews/tests for component states and accessibility.
- Distinctive: line 37
Use existing Material 3 theme tokens before adding new ones.
- Distinctive: line 38
Do not create a design system for one-off UI.
- Distinctive: line 39
Keep reusable components stateless where possible.
- Distinctive: line 40
Do not pass ViewModels into reusable design components.
- Distinctive: line 41
Avoid experimental APIs unless the user explicitly accepts the risk.
- Distinctive: line 42
Check performance risks for reusable list items and animated components.
- Distinctive: line 56
Do not assume these companion skills are installed.
- Distinctive: line 97
Use $super-android-kotlin-firebase to create a contextual Compose design system for this app after tests pass.
- Distinctive: line 98
Use $super-android-kotlin-firebase to review these AI-generated Material 3 components for reuse and accessibility.
- Distinctive: line 99
Use $super-android-kotlin-firebase to extract shared UI without changing ViewModels or navigation.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
Shape a Compose design system around the product context, while preserving architecture and testability.
When to use
- Creating or refactoring reusable Compose components.
- Defining Material 3 color, typography, spacing, shape, elevation or motion decisions.
- Turning repeated screen UI into a small component system.
- Reviewing whether AI-generated components are reusable, accessible and consistent.
Inputs to inspect
- Gate result from
design-test-gate. - Existing theme files and Material 3 setup.
- Reusable components, previews and component tests.
- Product context from
context-aware-ui-design. - Edge-to-edge/adaptive requirements.
- Performance-sensitive components such as lists, cards, images and animations.
Required workflow
- Confirm build/tests passed before changing theme or components.
- Identify existing tokens and component ownership.
- Decide which components are product-specific and which should stay local to a screen.
- Define component contracts: state, slots, callbacks, semantics and preview states.
- Preserve stable APIs and avoid broad visual rewrites.
- Add or recommend previews/tests for component states and accessibility.
Rules
- Use existing Material 3 theme tokens before adding new ones.
- Do not create a design system for one-off UI.
- Keep reusable components stateless where possible.
- Do not pass ViewModels into reusable design components.
- Avoid experimental APIs unless the user explicitly accepts the risk.
- Check performance risks for reusable list items and animated components.
Related existing skills
Local skills to invoke
- jetpack-compose
- xml-to-compose-migration
- edge-to-edge-adaptive-ui
- compose-performance
- accessibility
External companion skills to use when installed
Do not assume these companion skills are installed. Prefer the local skills above first, then consult Companion Skills for install and verification commands.
- aldefy/compose-skill — use for deeper Jetpack Compose, Material 3, design-to-code, theming or Compose architecture guidance.
- skydoves/compose-performance-skills — use for deeper Compose performance, recomposition, stability or release-mode measurement guidance.
Files commonly touched
ui/theme/*ui/components/*- Compose preview files
- Component UI tests
- Screen files that consume shared components
Commands to validate
./gradlew assembleDebug
./gradlew test
./gradlew connectedDebugAndroidTest
./gradlew lintCommon mistakes to avoid
- Adding abstract tokens without a product need.
- Moving screen-specific layout into global components too early.
- Hard-coding colors, typography or dimensions inside reusable components.
- Creating components without loading, disabled, error or long-text previews.
- Breaking semantics or test tags when replacing local UI.
Checklist
- Build/tests gate passed.
- Existing theme inspected.
- Product context known.
- Component ownership clear.
- State and callback contract defined.
- Previews cover major states.
- Accessibility and performance considered.
Example prompts
- Use $super-android-kotlin-firebase to create a contextual Compose design system for this app after tests pass.
- Use $super-android-kotlin-firebase to review these AI-generated Material 3 components for reuse and accessibility.
- Use $super-android-kotlin-firebase to extract shared UI without changing ViewModels or navigation.
Expected response style
Respond with: gate status, design-system diagnosis, token/component plan, files affected, related skills, validation commands and risks. Keep recommendations scoped to reusable UI that the app actually needs.
References
- ../../docs/audits/FUENTES_LOCALES.md
- references/design-system-scope-notes.md
- templates/component-contract-template.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

