From brana
Actively align a project with brana practices — assess gaps, plan fixes, implement structure, verify. Works for code and venture clients. Auto-detects type. Use when setting up a new project or realigning an existing one.
How this skill is triggered — by the user, by Claude, or both
Slash command
/brana:alignThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
DISCOVER → ASSESS → PLAN → IMPLEMENT → VERIFY → DOCUMENT.
DISCOVER → ASSESS → PLAN → IMPLEMENT → VERIFY → DOCUMENT.
Creates files, configures structure, and implements practices. Unlike /brana:onboard (diagnostic, read-only), this skill actively builds. Replaces /project-align and /venture-align.
Initial setup of a new project, or when an existing project needs structural alignment. Run /brana:onboard first for the diagnostic — /brana:align implements what /brana:onboard finds.
On entry, create a CC Task step registry. Follow the guided-execution protocol.
Register these steps: DISCOVER, ASSESS, PLAN, IMPLEMENT, VERIFY, DOCUMENT.
Plan mode: Enter plan mode for DISCOVER and ASSESS (read-only diagnostic phases). Exit plan mode before IMPLEMENT.
Before assessment, gather context. This shapes tier, CLAUDE.md content, and implementation depth.
Ask what can't be inferred. Skip what's obvious from the codebase.
Same detection as /brana:onboard: check for manifests (code) and venture dirs/keywords (venture). Classify as code, venture, or hybrid.
Spawn the client-scanner (code) or venture-scanner (venture) agent. If unavailable, run manually.
| Group | Items |
|---|---|
| Foundation (F1-F4) | Git, CLAUDE.md, rules, conventional commits |
| SDD (S1-S5) | docs/decisions/, ADR, PreToolUse hook, /decide, spec-first |
| DDD (D1-D4) | Glossary, bounded contexts, ubiquitous language, model |
| TDD (T1-T4) | Test framework, runner, tdd-guard, coverage |
| Quality (Q1-Q4) | Linter, CI, security, code review |
| PM & Memory (P1-P5) | Issues, patterns, portfolio, recall, memory hygiene |
| Verification (V1-V3) | Hook fires, tests pass, alignment report |
| Group | Items |
|---|---|
| Foundation (F1-F4) | Description, decision log, metrics, cadence |
| Validation (V1-V5) | Hypothesis, MVP, experiments, burn rate, referrers |
| Growth (G1-G5) | OKRs, SOPs, meetings, hiring, decision framework |
| Scale (S1-S5) | Org chart, dept OKRs, automation, dashboard, onboarding |
Each item: present, partial, missing. Output gap report with visual progress bars.
Items are stage-cumulative. Only implement up to the current stage.
Present the plan and wait for user approval.
Execute item by item. Ask for confirmation before each major step.
F1 — Git: Skip if .git/ exists.
F2 — CLAUDE.md: Create/merge .claude/CLAUDE.md with project description, stack, conventions, domain.
F3 — Rules: Copy relevant rules from ~/.claude/rules/. Stack-specific rules get path scoping.
F4 — Commits: Document conventional commits in CLAUDE.md.
S1: mkdir -p docs/decisions
S2: Create first ADR pre-populated from DISCOVER answers.
S3: Verify PreToolUse hook is installed (run deploy.sh if needed).
S4-S5: Verify skill availability, document convention.
T1: Detect/initialize test framework from stack. T2: Run tests, verify exit 0. T3: Check tdd-guard availability. T4: Configure coverage baseline.
F1 — Description: Create/merge CLAUDE.md with business context (stage, domain, team, framework).
F2 — Decision log: mkdir -p docs/decisions. Create ADR-001 for framework selection.
F3 — Metrics: mkdir -p docs/metrics. Create README with stage-appropriate metric tables.
F4 — Cadence: mkdir -p docs/meetings. Create cadence.md with stage-appropriate meeting schedule.
Create stage-appropriate templates: hypothesis docs, experiment tracking, OKR templates, SOP directory, hiring plan, referrer tracking — based on the assessed stage.
Re-run the checklist. Compare before/after:
ALIGNMENT REPORT
================
Type: {Code | Venture | Hybrid}
Tier/Stage: {Standard | Growth | ...}
Before After
Foundation: ■■□□ ■■■■ 2/4 → 4/4
SDD: □□□□□ ■■■■□ 0/5 → 4/5
────── ──────
Total: 2/9 8/9
Remaining gaps:
S5 — Spec-first convention (builds over time)
source "$HOME/.claude/scripts/cf-env.sh"
[ -n "$CF" ] && cd "$HOME" && $CF memory store \
-k "alignment:{PROJECT}:{date}" \
-v '{"type": "{code|venture}-alignment", "score_before": N, "score_after": N}' \
--namespace alignment \
--tags "client:{PROJECT},type:alignment" \
--upsert
.claude/alignment-report.md in the projectIf context was compressed and you've lost track of progress:
TaskList — find CC Tasks matching /brana:align — {STEP}in_progress task is your current phase — resume from there.claude/alignment-report.md if VERIFY was already reachednpx claudepluginhub martineserios/thebrana --plugin branaInitializes Agent Driven Development (ADD) via PRD interview, project scaffolding, user profile detection, and adoption of existing methodologies like CLAUDE.md or CI/CD setups.
Defines project structure, naming conventions, and workflows for consistent directory layouts, file names, and documentation across skills. Useful for project setup or initialization.
Scans codebase, infers project configuration, and interactively generates SDLC files with confidence-driven questions.