Intelligently onboards brownfield projects by merging existing CLAUDE.md backups into SpecWeave structure. Extracts project-specific knowledge, domain context, team conventions, and technical details from backup CLAUDE.md files, then distributes content to appropriate SpecWeave folders without bloating CLAUDE.md. Activates for: merge docs, merge claude, onboard brownfield, import existing docs, claude backup, specweave merge-docs.
View on GitHubanton-abyzov/specweave
sw
January 25, 2026
Select agents to install to:
npx add-skill https://github.com/anton-abyzov/specweave/blob/main/plugins/specweave/skills/brownfield-onboarder/SKILL.md -a claude-code --skill brownfield-onboarderInstallation paths:
.claude/skills/brownfield-onboarder/# Brownfield Onboarder - Intelligent CLAUDE.md Merger
**Purpose**: Intelligently merge existing CLAUDE.md backups into SpecWeave's structure without bloating the main CLAUDE.md file.
**When to Use**: After installing SpecWeave into an existing project that had CLAUDE.md
**Philosophy**: Keep CLAUDE.md as a concise guide, distribute detailed content to appropriate SpecWeave folders.
**Modes**: Supports both Quick Start (incremental) and Comprehensive (upfront) approaches π
---
## Two-Mode Support π
The brownfield-onboarder works differently based on the chosen documentation path:
### Quick Start Mode (Incremental)
**Philosophy**: Merge only essential context, defer detailed docs to per-increment
**What to merge immediately**:
- β
Core architecture overview (high-level)
- β
Tech stack and infrastructure
- β
Critical patterns (auth, payment, security)
- β
Team conventions and workflows
- β
Project summary and domain context
**What to defer** (document per increment):
- βΈοΈ Detailed business rules (extract when modifying that code)
- βΈοΈ Module-specific documentation (extract when working on that module)
- βΈοΈ API-level documentation (extract when touching those APIs)
- βΈοΈ Code examples (extract as needed)
**Result**: Minimal upfront merge (30-60 minutes), detailed docs grow incrementally
### Comprehensive Mode (Upfront)
**Philosophy**: Merge everything upfront for complete context
**What to merge**:
- β
All architecture documentation
- β
All business rules
- β
All module-specific docs
- β
All API documentation
- β
All conventions and patterns
- β
All code examples
**Result**: Complete merge (1-3 hours), full context available immediately
### Mode Selection
**Auto-detection**:
```typescript
// Settings auto-detected
const mode = config.brownfield?.mode || 'auto';
if (mode === 'auto') {
// Use complexity from brownfield-analyzer
const complexity = await readComplexityAssessment();
mode = complexity.recommendedPath === 'Quick Start' ? 'incremental' :