Skip to content

Conversation

@theMickster
Copy link
Contributor

@theMickster theMickster commented Oct 23, 2025

🎟️ Tracking

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

📔 Objective

Establish Claude AI-assisted code review infrastructure for the Bitwarden Android project, including automated workflows, comprehensive development guidelines, and team ownership configuration.

Infrastructure & Automation

  • GitHub Actions workflows (.github/workflows/review-code.yml, .github/workflows/respond.yml) - Automated Claude code review triggers and response handling
    • CODEOWNERS - Routes .claude/ changes to @bitwarden/team-ai-sme

Claude Configuration

  • .claude/CLAUDE.md - Comprehensive guidelines covering:
    • Core directives (architecture adherence, code style, security requirements)
    • Module organization (:core, :data, :network, :ui, :app, :authenticator)
    • MVVM + UDF, Hilt DI, and testing patterns
    • Workflow practices and anti-patterns
  • .claude/skills/reviewing-changes/SKILL.md - Structured code review skill with step-by-step guidance for compliance checks, documentation validation, and feedback generation
  • .claude/prompts/review-code.md - Slash command prompt for initiating code reviews

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.80%. Comparing base (78b1676) to head (6f297ba).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #6072    +/-   ##
========================================
  Coverage   84.80%   84.80%            
========================================
  Files         737      720    -17     
  Lines       53128    52777   -351     
  Branches     7657     7655     -2     
========================================
- Hits        45056    44760   -296     
+ Misses       5391     5336    -55     
  Partials     2681     2681            

☔ 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.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2025

Logo
Checkmarx One – Scan Summary & Details70fbc7e2-672e-469f-a7e3-ac92c0c28c77

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

This commit overhauls the `CLAUDE.md` file to provide a more comprehensive set of guidelines for AI-assisted development on the Bitwarden Android project.

The updated document establishes clear directives and standards, including:
*   Core directives emphasizing adherence to project architecture, code style, and established patterns.
*   An overview of module organization and key architectural patterns like MVVM, Hilt, and UDF.
*   Security requirements that must be considered with every change.
*   A structured workflow covering pre-implementation, implementation, and post-implementation steps.
*   A list of anti-patterns to avoid.
*   Guidelines for communication, decision-making, and when to seek clarification.
*   A refined list of essential reference documents.
This commit introduces a new `reviewing-changes` skill to formalize the code review process for Bitwarden Android. The skill provides a structured, step-by-step guide for conducting comprehensive code reviews, covering context, compliance, documentation, and providing actionable feedback.

The primary `CLAUDE.md` file has been refactored to be more concise by removing redundant horizontal rule separators. Additionally, the `review-code.md` prompt has been updated to directly invoke the new `reviewing-changes` skill, simplifying the review initiation process.
@SaintPatrck SaintPatrck requested a review from a team October 23, 2025 19:54
This commit updates the `.github/CODEOWNERS` file to establish ownership for Claude-related files.

A new rule has been added that assigns ownership of all files and subdirectories within the `.claude/` directory to the `@bitwarden/team-ai-sme` team. This ensures that the appropriate team is automatically requested for review on any pull requests modifying these files.
withinfocus
withinfocus previously approved these changes Oct 23, 2025
This commit removes parenthetical line number references from the `reviewing-changes/SKILL.md` file. These references pointed to the `CLAUDE.md` file and were removed to improve readability and prevent them from becoming outdated as `CLAUDE.md` changes.
This commit updates the `reviewing-changes/SKILL.md` document to improve readability. Code formatting (using backticks) has been applied to file paths, file extensions, and code-specific terms such as `StateFlow`, `@HiltViewModel`, and `biometricPrompt`.
@SaintPatrck SaintPatrck added hold do not merge yet and removed hold do not merge yet labels Oct 24, 2025
@SaintPatrck SaintPatrck added this pull request to the merge queue Oct 27, 2025
Merged via the queue into main with commit 52304a2 Oct 27, 2025
15 checks passed
@SaintPatrck SaintPatrck deleted the arch/pm-26935/reusable-code-review-workflow branch October 27, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants