Back to Skills

brownfield-onboarder

verified

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 GitHub

Marketplace

specweave

anton-abyzov/specweave

Plugin

sw

development

Repository

anton-abyzov/specweave
27stars

plugins/specweave/skills/brownfield-onboarder/SKILL.md

Last Verified

January 25, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/anton-abyzov/specweave/blob/main/plugins/specweave/skills/brownfield-onboarder/SKILL.md -a claude-code --skill brownfield-onboarder

Installation paths:

Claude
.claude/skills/brownfield-onboarder/
Powered by add-skill CLI

Instructions

# 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' : 

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
23807 chars