refining-android-requirements

작성자: bitwarden

Requirements gap analysis and structured specification for Bitwarden Android. Use when refining requirements, analyzing specs, identifying gaps, or producing…

npx skills add https://github.com/bitwarden/android --skill refining-android-requirements

Requirements Refinement

This skill takes raw requirements (from Jira tickets, Confluence pages, or free-text descriptions) and produces a structured, implementation-ready specification through systematic gap analysis.

Key principle: This skill identifies gaps and produces specifications. It does NOT propose solutions or architecture — that is the responsibility of the planning-android-implementation skill.


Step 1: Source Consolidation

Combine all input sources into a single working document. For each requirement, note its source:

- [Source: PM-12345] User must be able to configure timeout
- [Source: Confluence] Timeout range is 1-60 minutes
- [Source: User] Default timeout should be 15 minutes

Flag any contradictions between sources for immediate resolution.


Step 2: Gap Analysis

Evaluate the consolidated requirements against the following 5-category rubric. For each category, check every item and note whether it is covered, partially covered, or missing.

A. Functional Requirements

CheckQuestion to Ask If Missing
User actions defined?What specific user actions trigger this feature?
All states covered? (empty, loading, error, success)What should the user see in [empty/loading/error] state?
Edge cases identified?What happens when [boundary condition]?
Cancellation/back navigation flows?Can the user cancel mid-flow? What happens to partial data?
Input validation rules?What are the valid ranges/formats for [input]?
Success/failure criteria?How does the user know the operation succeeded or failed?
Offline behavior?What happens if this is attempted offline?

B. Technical Requirements

CheckQuestion to Ask If Missing
Module scope identified? (:app, :authenticator, shared)Which module(s) does this feature belong to?
SDK dependencies?Does this require Bitwarden SDK operations? Which ones?
Data storage approach? (Room, DataStore, in-memory)Where is the data for this feature persisted?
Network API endpoints?Which API endpoints are involved? Are they existing or new?
Process death handling?What state needs to survive process death?
Migration requirements?Does existing data need migration?
Feature flag needed?Should this be behind a feature flag for staged rollout?
Product flavors (standard vs fdroid)?Does this feature depend on Google Play Services? Available on F-Droid?
Data layer tier?Does this need a new Manager (single-responsibility) or only Repository/DataSource? Consult docs/ARCHITECTURE.md Data Layer section.
Streaming vs discrete data?Is data continuously observed (DataState<T> + StateFlow) or a one-shot operation (custom sealed class)? See docs/ARCHITECTURE.md Repositories section.

C. Security Requirements

CheckQuestion to Ask If Missing
Data sensitivity classified?What sensitivity level does this data have? (vault-level, account-level, non-sensitive)
Storage encryption required?Must this data be encrypted at rest? Via SDK or Android Keystore?
Logout cleanup behavior?What must be cleared when the user logs out?
Auth-gating?Does accessing this feature require active authentication?
Input sanitization?Are there URL or credential inputs that need validation?
Sensitive data in ViewModel state?Will passwords, tokens, or keys appear in state? Must use @IgnoredOnParcel. See implementing-android-code skill Section F.
SDK crypto context isolation?Does this use vault encryption? Must use ScopedVaultSdkSource for multi-account safety. See CLAUDE.md Security Rules.

D. UX/UI Requirements

CheckQuestion to Ask If Missing
UI copy/strings defined?What text should appear for [label/button/message]?
Error messages specified?What should the error message say when [failure case]?
Loading states designed?Should loading show a spinner, skeleton, or shimmer?
Navigation flow clear?Where does the user go after [action]? Back stack behavior?
Accessibility considerations?Are there content descriptions or focus order requirements?
Toast/snackbar/dialog for feedback?What feedback mechanism for [action result]?

E. Cross-Cutting Concerns

CheckQuestion to Ask If Missing
Multi-account behavior?How does this behave with multiple accounts? Per-account or global?
Backwards compatibility?Does this affect existing users? Migration path?
Feature flag strategy?Is this behind a server-side or local feature flag?
Analytics/logging?Are there analytics events to track?
Bitwarden Authenticator impact?Does this affect the :authenticator module?
F-Droid compatibility?Does this degrade gracefully without Google Play Services (no push notifications, no Play Integrity)?

Step 3: Present Gaps

Organize all identified gaps into two categories:

Blocking Questions

Questions that must be answered before implementation can begin because they change the architecture, data model, or core flow.

Format each question as:

**G[N]** ([Category]) — [Question text]
  Context: [Why this matters / what depends on the answer]

Non-Blocking Questions

Questions that have reasonable defaults and can be resolved during implementation. Note the assumed default.

Format each question as:

**G[N]** ([Category]) — [Question text]
  Default assumption: [What we'll assume if not answered]
  Context: [Why this matters]

Step 4: Produce Specification

After the user answers blocking questions (and optionally non-blocking ones), produce a structured specification:

## Overview

[1-2 paragraph summary of the feature, its purpose, and scope]

## Functional Requirements

| ID | Requirement | Source | Notes |
|----|------------|--------|-------|
| FR1 | [requirement] | [source] | [any notes] |
| FR2 | ... | ... | ... |

## Technical Requirements

| ID | Requirement | Source | Notes |
|----|------------|--------|-------|
| TR1 | [requirement] | [source] | [any notes] |
| TR2 | ... | ... | ... |

## Security Requirements

| ID | Requirement | Source | Notes |
|----|------------|--------|-------|
| SR1 | [requirement] | [source] | [any notes] |

## UX Requirements

| ID | Requirement | Source | Notes |
|----|------------|--------|-------|
| UX1 | [requirement] | [source] | [any notes] |

## Open Items

Non-blocking items with assumed defaults that may be revisited:

| ID | Question | Assumed Default | Category |
|----|----------|----------------|----------|
| G[N] | [question] | [default] | [category] |

## Source Documentation

| Source | Type | Link |
|--------|------|------|
| [name] | Jira / Confluence / User-provided | [link if available] |

Output Guidelines

  • Requirements use numbered IDs (FR1, TR1, SR1, UX1) for traceability through implementation
  • Each requirement cites its source (ticket, page, or user-provided)
  • Technical requirements use table format for structured key/value data
  • Interface signatures are included as fenced code blocks when applicable
  • Open items preserve the gap ID (G[N]) for cross-referencing

bitwarden의 다른 스킬

analyzing-git-sessions
bitwarden
특정 기간이나 커밋 범위 내의 Git 커밋과 변경 사항을 분석하여 코드 리뷰, 회고, 작업 로그 또는 세션을 위한 구조화된 요약을 제공합니다.
official
figma-to-angular
bitwarden
이 스킬은 Figma 디자인 스펙을 Bitwarden Clients 모노레포 내에서 Storybook 스토리와 함께 완전히 구현된 Angular 컴포넌트로 변환합니다. 출력물은 모든 코드베이스 규칙을 따르면서 시각적으로 디자인과 일치해야 합니다.
official
agent-access
bitwarden
Retrieve login credentials, API keys, and secrets (username, password, TOTP) from the user's Bitwarden vault via aac. Use when you need credentials to sign…
official
action-audit
bitwarden
조직 전반의 GitHub Actions 사용을 감사합니다. 특정 액션을 검색하거나(인시던트 모드) 모든 워크플로 파일을 스캔하여 비준수 액션을 찾습니다…
official
action-remediate
bitwarden
Remediate GitHub Actions action findings identified by the action-audit skill. Applies the appropriate fix per action type — `@main` ref for internal…
official
analyzing-code-security
bitwarden
이 스킬은 사용자가 "코드의 보안 문제를 분석"하거나, "OWASP 취약점을 확인"하거나, "CWE Top 25에 대해 코드를 검토"하도록 요청할 때 사용해야 합니다. "찾…
official
applying-bitwarden-branding
bitwarden
Apply Bitwarden brand standards — logo usage, color palette, typography, iconography, and capitalization rules — grounded in bitwarden.com/brand and the…
official
architecting-solutions
bitwarden
Architecting solutions at the team level while staying coherent with Bitwarden's holistic architecture. Covers security mindset, architectural judgment,…
official