advise
Critical thinking analysis - validates alignment, challenges assumptions, identifies risks
Unified alignment command (--project, --docs, --retrofit, --content)
$ npx -y skills add akaszubski/autonomous-dev --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/alignContext preview
What this command does when you run it.
Unified alignment command (--project, --docs, --retrofit, --content)
name: align description: "Unified alignment command (--project, --docs, --retrofit, --content)" argument-hint: "[--project [--invariants] | --docs | --retrofit | --content] [--dry-run] [--auto]" version: 3.1.0 category: core allowed-tools: [Read, Write, Edit, Grep, Glob] disable-model-invocation: true user-invocable: true user_facing: true
**Purpose**: Validate and fix alignment between PROJECT.md, documentation, and codebase.
**Default**: `/align` runs full alignment check (docs + code + hooks review)
**Modes**:
---
# Default: Full alignment check /align # Documentation consistency only /align --docs # Brownfield project retrofit /align --retrofit /align --retrofit --dry-run /align --retrofit --auto # Content allocation audit /align --content /align --content --dry-run /align --content --auto
---
**Purpose**: Comprehensive check that PROJECT.md, CLAUDE.md, README, and codebase are all aligned.
**Time**: 10-30 minutes
**What it does**:
Run manifest alignment validation:
# With OpenRouter (recommended - cheap GenAI validation) OPENROUTER_API_KEY=sk-or-... python plugins/autonomous-dev/lib/genai_validate.py manifest-alignment # Without API key (hybrid validator with regex fallback) python plugins/autonomous-dev/lib/hybrid_validator.py --mode regex-only
**Validates**:
**Options**:
Check the following:
**PROJECT.md vs Code**:
**CLAUDE.md vs Reality**:
**README vs Reality**:
MUST review validation hooks for inflation:
For each conflict found, determine which source is correct:
**Documentation vs Reality conflicts:**
CONFLICT: CLAUDE.md says "10 active commands" Reality: 7 commands exist (example - already fixed) What should we do? A) Update CLAUDE.md to say "7 commands" B) This is correct (explain why) Your choice [A/B]:
**Code vs PROJECT.md conflicts (Bidirectional):**
CONFLICT: /create-issue exists in code/docs but not in PROJECT.md SCOPE Which is correct? A) Code/docs are right → Update PROJECT.md to include /create-issue B) PROJECT.md is right → This shouldn't have been built (flag for removal) Your choice [A/B]:
If A: Propose PROJECT.md update (requires approval) If B: Log conflict for manual resolution
/align Phase 1: Quick Scan ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✓ Scanning file system for truth... Agents: 20, Commands: 7, Hooks: 45, Skills: 28 Found 5 count mismatches, 3 dead refs → Will address in Phase 4 Phase 2: Semantic Validation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Checking PROJECT.md alignment... ✓ GOALS: 4/4 implemented ✓ SCOPE: No out-of-scope code found ⚠ ARCHITECTURE: docs/ structure doesn't match documented pattern Checking CLAUDE.md alignment... ✓ Workflow descriptions accurate ⚠ Agent count outdated (says 18, actual 20) ⚠ Command list missing /create-issue Checking README alignment... ✓ Installation instructions work ✓ Examples are accurate Phase 3: Hooks Review ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Reviewing 45 hooks for inflation... ⚠ validate_project_alignment.py duplicates alignment_fixer.py logic ⚠ 3 hooks reference archived commands Phase 4: Resolution ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Found 8 issues to resolve... [Interactive fixing begins]
---
**Purpose**: Ensure all documentation is internally consistent and matches PROJECT.md (source of truth).
**Time**: 5-15 minutes
**What it does**:
1. **PROJECT.md as Source of Truth**
2. **Internal Doc Consistency**
3. **Architecture Documentation**
4. **Count/Reference Accuracy**
A harness that wraps Claude Code with enforcement, specialist agents, and alignment gates to deliver consistent, production-grade software engineering outcomes.
Repo: akaszubski/autonomous-dev
Critical thinking analysis - validates alignment, challenges assumptions, identifies risks
Comprehensive quality audit - code quality, documentation, coverage, security
Autonomous experiment loop — hypothesize, modify, benchmark, commit or revert
Create GitHub issue with automated research (--quick for fast mode)
Autonomous queue drainer — picks the top /triage cluster, applies safety gates, drains via /implement --issues, pushes, deploys.
Governance, Observability, Audit — autonomous infra-health observer for autonomous-dev itself. Subcommands: start | stop | status.