[PR #6849] [MERGED] llm: Codify when-branch brace rule in implementation and review skills #55134

Closed
opened 2026-05-01 21:05:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/6849
Author: @SaintPatrck
Created: 4/29/2026
Status: Merged
Merged: 4/30/2026
Merged by: @SaintPatrck

Base: mainHead: llm/when-brace-style-rule


📝 Commits (1)

  • 8fcc042 llm: Codify when-branch brace rule in implementation and review skills

📊 Changes

3 files changed (+71 additions, -3 deletions)

View changed files

📝 .claude/skills/implementing-android-code/SKILL.md (+37 -2)
📝 .claude/skills/reviewing-changes/SKILL.md (+2 -1)
.claude/skills/reviewing-changes/reference/style-patterns.md (+32 -0)

📄 Description

🎟️ Tracking

Recurring style feedback from PR review on #6828 (comment). No Jira ticket — Claude tooling change.

📔 Objective

Encode the team's when-branch brace convention into the Claude skills so it is followed at authoring time and flagged during review:

  • implementing-android-code SKILL.md — adds section I. Kotlin Style Rules with do/don't examples; bumps version to 0.1.3
  • reviewing-changes SKILL.md — adds a new reference pointer for project-specific style questions
  • reviewing-changes/reference/style-patterns.md — new file holding the rule with flag/accept examples and a SUGGESTED severity classification

The rule: when a when branch's right-hand side wraps to its own line, wrap the body in { }. Single-line branches do not require braces.

Future Kotlin style rules surfaced in review can join style-patterns.md rather than scatter across checklists.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/6849 **Author:** [@SaintPatrck](https://github.com/SaintPatrck) **Created:** 4/29/2026 **Status:** ✅ Merged **Merged:** 4/30/2026 **Merged by:** [@SaintPatrck](https://github.com/SaintPatrck) **Base:** `main` ← **Head:** `llm/when-brace-style-rule` --- ### 📝 Commits (1) - [`8fcc042`](https://github.com/bitwarden/android/commit/8fcc042926f3534bcf1a5df71b4eb15ed1eaf903) llm: Codify when-branch brace rule in implementation and review skills ### 📊 Changes **3 files changed** (+71 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.claude/skills/implementing-android-code/SKILL.md` (+37 -2) 📝 `.claude/skills/reviewing-changes/SKILL.md` (+2 -1) ➕ `.claude/skills/reviewing-changes/reference/style-patterns.md` (+32 -0) </details> ### 📄 Description ## 🎟️ Tracking Recurring style feedback from PR review on #6828 ([comment](https://github.com/bitwarden/android/pull/6828#discussion_r3157515767)). No Jira ticket — Claude tooling change. ## 📔 Objective Encode the team's `when`-branch brace convention into the Claude skills so it is followed at authoring time and flagged during review: - **`implementing-android-code` SKILL.md** — adds section _I. Kotlin Style Rules_ with do/don't examples; bumps version to 0.1.3 - **`reviewing-changes` SKILL.md** — adds a new reference pointer for project-specific style questions - **`reviewing-changes/reference/style-patterns.md`** — new file holding the rule with flag/accept examples and a SUGGESTED severity classification The rule: when a `when` branch's right-hand side wraps to its own line, wrap the body in `{ }`. Single-line branches do not require braces. Future Kotlin style rules surfaced in review can join `style-patterns.md` rather than scatter across checklists. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-01 21:05:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#55134