Claude-skill-registry btr-curate
Add context to LOCAL BTR tree (NOT ByteRover/brv). Use `btr` CLI or `mcp__btr__*` MCP tools. Add or update context in the BTR tree with AI-powered metadata extraction. Use when the user wants to "add to context tree", "store this in BTR", "curate to BTR", or needs to organize knowledge with intelligent tagging.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/btr-curate" ~/.claude/skills/majiayu000-claude-skill-registry-btr-curate && rm -rf "$T"
skills/data/btr-curate/SKILL.mdBTR Curate
⚠️ CRITICAL: BTR ≠ ByteRover
This skill uses
(local context tree), NOT btr
(ByteRover CLI).brv
| Command | Tool | Syntax |
|---|---|---|
| ✓ CORRECT | | |
| ✗ WRONG | | Different tool, different syntax, requires auth |
PREFER MCP tools when available:
- Structured, type-safemcp__btr__curate_context
- Validated searchmcp__btr__query_context
Only use Bash
btr commands if MCP tools are unavailable.
Add or update context with intelligent metadata extraction.
Preferred Method
-
FIRST: Use MCP tools if available
mcp__btr__curate_context(domain="auth", topic="jwt-flow", content="...", tags=["security"]) -
FALLBACK: Use
CLI via Bashbtrbtr curate auth jwt-flow --content "..." --tags security -
NEVER: Use
(different product entirely)brv
Quick Start
btr curate <domain> <topic> --content "<content>" [--tags tag1,tag2]
Instructions
- Analyze the content to curate
- Suggest appropriate domain and topic
- Auto-extract relevant tags from content
- Generate a brief summary
- Run the CLI command
- Confirm successful curation
Auto-Tagging Guidelines
Extract tags based on:
- Technology names (react, typescript, postgresql)
- Patterns (singleton, middleware, decorator)
- Concepts (authentication, caching, validation)
- Categories (security, performance, best-practice)
Interactive Mode
For complex content, use interactive mode:
btr curate --interactive
This walks through domain selection, topic naming, and tag extraction step by step.
Domain Selection Guide
| Content Type | Suggested Domain |
|---|---|
| Login, tokens, sessions | |
| REST endpoints, GraphQL | |
| SQL, ORM, migrations | |
| Components, hooks, CSS | |
| Unit tests, integration tests | |
| CI/CD, containers, monitoring | |
| Design decisions, patterns | |
| Security rules, validation | |
| Performance tuning | |
Topic Naming Conventions
Use kebab-case with descriptive names:
Good:
jwt-refresh-token-flowpostgres-connection-pool-configreact-form-validation-hook
Avoid:
(too generic)jwt
(not descriptive)myStuff
(not permanent-sounding)temp_notes
Updating Existing Context
To update an existing topic:
btr curate auth jwt-validation --content "..." --update
The
--update flag merges new content with existing content.
Content Guidelines
When curating content, include:
- The What: Actual code or configuration
- The Why: Reason for this approach
- The When: When to use this pattern
- Usage Examples: How to apply it
- Caveats: Any gotchas or limitations
Example Curation Flow
User provides a code snippet for database connection pooling.
- Analyze content: PostgreSQL connection pool configuration
- Suggest domain:
database - Suggest topic:
postgres-connection-pooling - Extract tags:
,postgresql
,connection-pool
,performanceconfiguration - Execute:
btr curate database postgres-connection-pooling \ --content "..." \ --tags postgresql,connection-pool,performance,configuration - Confirm: "Curated to database/postgres-connection-pooling with 4 tags"
For metadata extraction scripts, see scripts/extract-metadata.py.