refining-android-requirements

작성자: bitwarden

요구사항 격차 분석 및 Bitwarden Android용 구조화된 명세서. 요구사항 정제, 명세 분석, 격차 식별 또는 생성 시 사용합니다.

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의 다른 스킬

figma-to-angular
bitwarden
이 스킬은 Figma 디자인 스펙을 Bitwarden Clients 모노레포 내에서 Storybook 스토리와 함께 완전히 구현된 Angular 컴포넌트로 변환합니다. 출력물은 모든 코드베이스 규칙을 따르면서 시각적으로 디자인과 일치해야 합니다.
force-multiplier
bitwarden
하나의 의도를 여러 대상에 동시에 적용합니다 — Bitwarden 생태계 전반의 저장소 플릿, 또는 모노레포 내 많은 프로젝트 — N개의 일관된 작업으로, …
analyzing-git-sessions
bitwarden
특정 기간이나 커밋 범위 내의 Git 커밋과 변경 사항을 분석하여 코드 리뷰, 회고, 작업 로그 또는 세션을 위한 구조화된 요약을 제공합니다.
coordinating-cross-team-breakdown
bitwarden
크로스 팀 리뷰 및 Bitwarden 기술 분석에 대한 승인을 조정합니다. 영향을 받는 팀을 식별하고, 파트 3 승인 테이블을 작성하며, 후속 조치를 진행할 때 사용하세요.
assessing-jira-issue-relevance
bitwarden
사용자가 개별 Jira 이슈 키를 제공하고 그것이 여전히 관련이 있는지, 여전히 적용 가능한지, 여전히 보류 중인지, 여전히 버그인지, 수정되었는지, 또는 …인지 물을 때 사용합니다.
assessing-test-coverage
bitwarden
특정 변경(PR, Jira 키, Tech Breakdown 문서, Testmo CSV, 변경된 경로 또는 명명된 항목)에 대해 이미 존재하는 테스트 커버리지를 파악할 때 사용합니다.
retrospecting
bitwarden
Claude Code 세션에 대한 포괄적인 분석을 수행하며, git 히스토리, 대화 로그, 코드 변경 사항을 검토하고 사용자 피드백을 수집하여 생성합니다…
reviewing-incremental-changes
bitwarden
이미 코멘트가 달린 PR을 재검토하거나 초기 리뷰 후 개발자의 변경 사항에 응답할 때 이 스킬을 사용하세요. PR 스레드가 존재하거나...