Skip to content

[PM-33571] llm: Add requirements refinement and planning skills#2445

Merged
SaintPatrck merged 2 commits intomainfrom
llm/planning-skills
Apr 8, 2026
Merged

[PM-33571] llm: Add requirements refinement and planning skills#2445
SaintPatrck merged 2 commits intomainfrom
llm/planning-skills

Conversation

@SaintPatrck
Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-33571

📔 Objective

Adds two new Claude skills and a command for the planning phase of iOS feature development.

What changed:

  • skills/refining-ios-requirements — Ingests Jira/Confluence tickets via MCP, extracts structured requirements and acceptance criteria, performs gap analysis (error states, edge cases, multi-account, extension memory, accessibility), and maps work to the correct iOS domain (Auth/Autofill/Platform/Tools/Vault). Produces a structured requirements doc and pauses for user confirmation before proceeding.

  • skills/planning-ios-implementation — Classifies the change type (new feature, enhancement, service, bug fix), explores existing codebase patterns, lists all files to create/modify with domain placement, produces dependency-ordered implementation phases (Core → Services → Processors → Views → DI → Tests), and assesses risks (security, extensions, multi-account, SDK).

  • /plan-ios-work command — Orchestrates both skills end-to-end: ingests a ticket via MCP, refines requirements, confirms with user, plans implementation, and saves the design doc to .claude/outputs/plans/<ticket-id>.md.

  • CLAUDE.md — Compresses the directory tree listing from 45 to 5 lines; removes the Auth/Authorization detail section (now discoverable via the refining-ios-requirements skill); removes the redundant Core Directives numbered list (covered by the DO/DON'T section and Docs/ pointers); replaces the external style guide URL with local Docs/Architecture.md and Docs/Testing.md references.

@SaintPatrck SaintPatrck force-pushed the llm/planning-skills branch from 9e6d14b to a0c5553 Compare March 13, 2026 19:49
@github-actions github-actions bot added the t:llm Change Type - LLM related change (e.g. CLAUDE.md files) label Mar 13, 2026
@SaintPatrck SaintPatrck added the ai-review Request a Claude code review label Mar 13, 2026
@claude
Copy link
Copy Markdown

claude bot commented Mar 13, 2026

Claude finished @SaintPatrck's task in 4m 4s —— View job


I'll analyze this and get back to you.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 13, 2026

Logo
Checkmarx One – Scan Summary & Details8b9d6b0c-b035-4401-af17-5db09c9695c0

Great job! No new security vulnerabilities introduced in this pull request

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.95%. Comparing base (8bf3557) to head (ec645fc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2445      +/-   ##
==========================================
- Coverage   87.09%   85.95%   -1.14%     
==========================================
  Files        1859     2089     +230     
  Lines      164348   179153   +14805     
==========================================
+ Hits       143132   153995   +10863     
- Misses      21216    25158    +3942     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@fedemkr fedemkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some minor tweaks.

## Phase 3: Plan Implementation

Once requirements are confirmed, invoke the `planning-ios-implementation` skill to:
- Classify the change type
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Maybe it's defined in another place but which would be the possible change types? Or is it just general for the LLM to figure out?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Classifying is a step in the planning-ios-implementation skill. This is "priming" Claude so it knows what the skill will be doing. I see that planning-ios-implementation doesn't mirror the Android version, though, so I'll fix that up.

Comment on lines +10 to +14
## Prerequisites

- Requirements must be clear. If not, invoke `refining-ios-requirements` first.
- Read `Docs/Architecture.md` before proceeding — it is the authoritative source for all patterns.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Should it also read the Testing.md file as prerequisite? As sometimes having the structure to be testable changes how it's implemented.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not run into that as an issue on the Android side of things. I would wait until we see Claude exhibiting undesirable behavior before preemptively telling it to consume more context. If that turns out to be needed, I would prefer a simple directive like, "consider testability while designing implementation." before having it re-ingest the entire Testing.md.

- refining-ios-requirements skill: ingests Jira/Confluence via MCP, extracts
  requirements, performs gap analysis (error states, edge cases, extensions,
  accessibility), maps to iOS domain (Auth/Autofill/Platform/Tools/Vault)
- planning-ios-implementation skill: classifies change type, explores existing
  patterns, lists files to create/modify with domain placement, produces
  dependency-ordered implementation phases, assesses risk
- /plan-ios-work command: orchestrates both skills end-to-end with user
  confirmation between phases, saves design doc to .claude/outputs/plans/
- CLAUDE.md: compress directory tree listing, remove Auth/Authorization detail
  section (now in refining-ios-requirements skill), remove redundant Core
  Directives list, replace external style URL with local Docs/ references
@SaintPatrck SaintPatrck force-pushed the llm/planning-skills branch from a0c5553 to ec645fc Compare April 8, 2026 14:27
@github-actions github-actions bot added the t:docs Change Type - Documentation label Apr 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR adds two Claude skills (refining-ios-requirements, planning-ios-implementation) and a /plan-ios-work command for the iOS planning workflow. It also compresses the CLAUDE.md directory tree, removes sections now covered by skills or existing docs, and centralizes the domain subdirectory list into Docs/Architecture.md as the single source of truth. The Billing domain has been added to the canonical list. Prior review feedback from the team has been addressed in the latest commit.

No findings were identified. The changes are documentation and LLM configuration only, with no impact on application code, security, or build behavior.

@SaintPatrck
Copy link
Copy Markdown
Contributor Author

@fedemkr I replaced the various domain lists with a single reference in Architecture.md to avoid unnecessary maintenance when new ones are added, like "Billing".

@SaintPatrck SaintPatrck marked this pull request as ready for review April 8, 2026 14:38
@SaintPatrck SaintPatrck requested review from a team and matt-livefront as code owners April 8, 2026 14:38
@SaintPatrck SaintPatrck enabled auto-merge (squash) April 8, 2026 14:43
@SaintPatrck SaintPatrck merged commit db693ec into main Apr 8, 2026
20 checks passed
@SaintPatrck SaintPatrck deleted the llm/planning-skills branch April 8, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review t:docs Change Type - Documentation t:llm Change Type - LLM related change (e.g. CLAUDE.md files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants