code-review-local
Review a GitHub pull request or local changes and write the review to local files instead of posting
Enhance an existing CLAUDE.md with Bitwarden's standardized template structure and supplementary research
> /plugin marketplace add bitwarden/ai-pluginsHow it fires
How this command gets triggered: by you, by Claude, or both.
/enhanceContext preview
What this command does when you run it.
Enhance an existing CLAUDE.md with Bitwarden's standardized template structure and supplementary research
description: Enhance an existing CLAUDE.md with Bitwarden's standardized template structure and supplementary research allowed-tools: Read, Edit(CLAUDE.md), WebFetch, Grep, Glob
Enhance the existing CLAUDE.md file with Bitwarden's standardized template format.
**Prerequisites**: This command expects a CLAUDE.md file to already exist in the repository root (typically generated by Anthropic's `/init` command).
**Instructions:**
1. **Read Existing CLAUDE.md**: First, read the current CLAUDE.md file to understand what has already been documented about the project.
2. **Supplementary Research**: Perform additional codebase analysis to fill gaps and gather information for Bitwarden's extended sections:
3. **Enhance CLAUDE.md**: Restructure the file to use **exactly** the following sections.
**CRITICAL REQUIREMENTS:**
---
**Required Sections (use these exact headings):**
Brief description of the project and its primary purpose.
---
[ASCII diagram showing high-level request flow]
Example:
Client Request
↓
Entry Point (index.ts)
↓
┌─────────────┬─────────────┐
│ Handler A │ Handler B │
│ ↓ │ ↓ │
│ Service A │ Service B │
└─────────────┴─────────────┘src/ ├── handlers/ # Request handlers ├── schemas/ # Validation schemas ├── services/ # Business logic ├── utils/ # Shared utilities └── index.ts # Entry point
1. **Principle One**: Brief explanation 2. **Principle Two**: Brief explanation 3. **Principle Three**: Brief explanation
**Purpose**: Why this pattern exists
**Implementation**:
// Code example showing the canonical implementation
**Usage**:
// Code example showing how to use the pattern
---
Step-by-step checklist for the most common development task.
**1. Define the Schema** (`src/schemas/[domain].ts`)
// Template code
**2. Define the [Entity]** (`src/[entities]/[domain].ts`)
// Template code
**3. Implement the Handler** (`src/handlers/[domain].ts`)
// Template code
**4. Register the Handler** (`src/index.ts`)
// Where and how to register
**5. Write Tests** (`tests/[domain].spec.ts`)
// Test template
**6. Update Documentation**
// Code example with comments explaining key parts
// Code example with comments explaining key parts
// Standard response structure
return {
// ...
};---
// Key interfaces and types used throughout the project
interface ExampleModel {
id: string;
name: string;
// ...
}// Zod schemas or similar validation definitions
const exampleSchema = z.object({
// ...
});---
**MANDATORY - These rules have no exceptions:**
1. **Rule One**: Explanation and rationale 2. **Rule Two**: Explanation and rationale 3. **Rule Three**: Explanation and rationale
| Function | Purpose | Usage | | ---------------- | ------------ | -------------- | | `functionName()` | What it does | When to use it |
| Variable | Required | Description | Example | | ---------- | -------- | ------------------ | --------------- | | `VAR_NAME` | Yes/No | What it configures | `example-value` |
---
tests/ ├── unit/ # Unit tests ├── integration/ # Integration tests └── fixtures/ # Test data
**Unit Test Template**:
describe("[Feature]", () => {
it("should [expected behavior]", () => {
// Arrange
// Act
// Assert
});
});**Integration Test Template**:
describe("[Feature] Integration", () => {
// Setup/teardown
// Test cases
});npm test # Run all tests npm run test:watch # Watch mode npm test -- [file] # Run specific file
---
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
Set up a user-level ~/.claude/CLAUDE.md with opt-in Bitwarden behavioral modules through a guided Q&A
Set up a workspace-level CLAUDE.md (Bitwarden domain context) for the folder containing all locally-cloned Bitwarden repos