design-solution
$
npx mdskill add HoangNguyen0403/agent-skills-standard/design-solution> [!IMPORTANT] > Turn an approved PRD or implementation goal into SRS/FRS technical requirements (How), architecture, contracts, and verification decisions.
SKILL.md
.github/skills/design-solutionView on GitHub ↗
---
name: design-solution
description: "Turn an approved PRD or implementation goal into SRS/FRS technical requirements (How), architecture, contracts, and verification decisions."
metadata:
triggers:
keywords:
- design solution
- workflow
---
# Design Solution Skill
> [!IMPORTANT]
> Turn an approved PRD or implementation goal into SRS/FRS technical requirements (How), architecture, contracts, and verification decisions.
## Instructions
When the user asks to perform this workflow, execute the following steps:
# Design Solution Workflow (SRS/FRS / How)
Goal: Produce a build-ready technical design with explicit boundaries, contracts, risks, and tests.
## Steps
1. Load inputs:
- Load baseline: `docs/requirements-standards-baseline.md` (SRS/FRS section).
- Load `common-software-requirements`.
- PRD or ticket
- Existing implementation plan if present
- Relevant `AGENTS.md` and matched framework skills
- Existing code patterns and architecture docs
- Trace source: `BRD-OBJ-* -> REQ-* -> AC-*`
2. Define architecture:
- Name bounded contexts and module owners.
- Define dependency direction.
- Choose sync, async, or hybrid communication.
- Record data ownership and migration needs.
3. Define contracts:
- Functional flows (FRS): user/system steps, inputs/outputs, validations, and error states.
- For complex flows, use one actor, one goal, one session; split normal course from alternatives and exceptions.
- Requirement cards: statement, priority, status, source, behavior, NFRs, measurement, and verification lane.
- API inputs/outputs and interface contracts.
- Events/jobs and async guarantees.
- Storage shape, ownership, retention, and migration rules.
- Security, permission, and privacy checks.
- NFR thresholds for performance, reliability, and scalability.
4. Plan verification:
- Unit, integration, E2E, visual, mobile, security, and migration checks.
- Save technical requirements to `docs/specs/srs-[slug].md` when file writes are allowed.
- Record evidence in `docs/templates/walkthrough.md`.
- Rollback or degradation path.
5. Record ADR:
- Write one concise ADR when architecture or public contract changes.
- Route next step to `implement-feature` or `dev-fix`.
## Output
## Output Template
```md
# Technical Design (SRS/FRS): [Name]
## Context
## Requirement Trace
## Architecture
## Functional Flows (FRS)
## Requirement Cards
## Contracts
## Data And Migration
## NFR Thresholds
## Measurement Methods
## Security And Privacy
## Failure Modes
## Verification Plan
## ADR
## Next Workflow
implement-feature | dev-fix
## Cost Report
```
More from HoangNguyen0403/agent-skills-standard
- android-agp-upgradeUpgrade an Android project to Android Gradle Plugin (AGP) 9. Use when migrating to AGP 9, updating Gradle build files, migrating to built-in Kotlin, or adopting the new AGP DSL.
- android-architectureApply Clean Architecture layering, modularization, and Unidirectional Data Flow in Android projects. Use when setting up project structure, placing code in layers, configuring feature/core modules, or implementing UDF patterns.
- android-background-workImplement WorkManager and background processing correctly on Android. Use when creating Worker classes, scheduling tasks, choosing between WorkManager and Foreground Services, or setting up Hilt in workers.
- android-composeBuild high-performance declarative UI with Jetpack Compose. Use when writing Composable functions, optimizing recomposition, hoisting state, or working with LazyColumn and side effects.
- android-compose-migrationMigrate an Android XML View to Jetpack Compose following a structured 10-step workflow. Use when converting XML layouts to Compose, setting up Compose in an existing View-based project, or incrementally adopting Compose.
- android-concurrencyWrite correct coroutine scopes, Flow collection, and dispatcher injection in Android. Use when writing suspend functions, choosing between StateFlow and SharedFlow, or injecting Dispatchers for testability.
- android-deploymentConfigure release signing, R8 obfuscation, and App Bundle publishing for Android. Use when setting up signing configs, enabling minification, adding ProGuard keep rules, or preparing for Play Store submission.
- android-design-systemEnforce Material Design 3 theming and design token usage in Jetpack Compose. Use when implementing M3 components, color schemes, typography, or design tokens.
- android-diConfigure Hilt dependency injection with proper scoping, modules, and constructor injection in Android. Use when setting up Hilt DI, defining modules, or configuring component scoping.
- android-edge-to-edgeMigrate a Jetpack Compose app to edge-to-edge display and fix system bar inset issues. Use when UI components are obscured by navigation/status bars, fixing IME insets, or enabling edge-to-edge for SDK 35+.