code-review-local
Review a GitHub pull request or local changes and write the review to local files instead of posting
Set up a user-level ~/.claude/CLAUDE.md with opt-in Bitwarden behavioral modules through a guided Q&A
> /plugin marketplace add bitwarden/ai-pluginsHow it fires
How this command gets triggered: by you, by Claude, or both.
/init-userContext preview
What this command does when you run it.
Set up a user-level ~/.claude/CLAUDE.md with opt-in Bitwarden behavioral modules through a guided Q&A
description: Set up a user-level ~/.claude/CLAUDE.md with opt-in Bitwarden behavioral modules through a guided Q&A allowed-tools: Read, Write, Edit, Bash(diff:*), Bash(cp:*), Bash(date:*), Bash(rm:*), Glob
Walk the user through a guided Q&A to assemble a user-level CLAUDE.md at `~/.claude/CLAUDE.md`. The file contains behavioral rules that apply to **every project and every conversation** Claude Code is launched in.
This represents one engineer's opinion on what belongs at the user scope. Modules are opt-in; the user picks which to include and is free to edit afterward.
`~/.claude/CLAUDE.md` (resolve the `~` against the current user's home directory).
The plugin ships ten user-level modules under `${CLAUDE_PLUGIN_ROOT}/templates/user/`:
| Module file | One-line summary | | -------------------------- | -------------------------------------------- | | `intellectual-honesty.md` | Don't fake progress; surface uncertainty | | `think-before-coding.md` | State assumptions, surface tradeoffs | | `simplicity.md` | Minimum code that solves the problem | | `no-comments-default.md` | Comments only when the WHY is non-obvious | | `surgical-changes.md` | Touch only what you must | | `goal-driven-execution.md` | Define success criteria, loop until verified | | `verify-references.md` | Never hallucinate APIs or packages | | `security-baseline.md` | Sanitize inputs, never hardcode secrets | | `testing-discipline.md` | Test behavior, not implementation | | `code-review-lockdown.md` | PR mutations locked down; gh tools only |
1. **Detect existing file.** Read `~/.claude/CLAUDE.md`. If it exists, use `AskUserQuestion` to ask whether to:
Default: Abort. If it doesn't exist, proceed straight to step 2.
2. **Module selection.** Use `AskUserQuestion` with `multiSelect: true` and the ten modules above as options. Each option's `description` should be the one-line summary from the table.
3. **Render preview.** For each selected module:
Concatenate the selected module bodies in the order shown above, separated by a single blank line. Prepend this header (do NOT include the surrounding code fence):
# CLAUDE.md
<!-- Generated by bitwarden-init v{VERSION} on {YYYY-MM-DD}.
This is a starting point assembled from opt-in modules — not a Bitwarden standard.
Edit freely; remove what doesn't fit you; replace [YOUR-PREFERENCE] placeholders with your actual preferences. -->Read the current plugin version from `${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json` to substitute `{VERSION}`. Use today's date for `{YYYY-MM-DD}`.
4. **Diff + confirm.**
Then use `AskUserQuestion` with options **Apply**, **Show diff again**, **Cancel**. On **Show diff again**, redisplay and ask again. On **Cancel**, stop without writing.
5. **Backup, then write.**
6. **Summary.** Report:
A curated collection of plugins for AI-assisted development at Bitwarden. Enables discovery and distribution of quality-controlled plugins for use with Claude Code.
Review a GitHub pull request or local changes and write the review to local files instead of posting
Review a GitHub pull request and post findings directly to GitHub
Refresh an existing user-level ~/.claude/CLAUDE.md by adding missing modules from the Bitwarden init template library
Refresh an existing workspace-level CLAUDE.md by adding missing Bitwarden domain modules
Enhance an existing CLAUDE.md with Bitwarden's standardized template structure and supplementary research
Set up a workspace-level CLAUDE.md (Bitwarden domain context) for the folder containing all locally-cloned Bitwarden repos