Architectural proposals

From olivomarco/vbd-copilot · View interactive version

Architectural proposals is an AI agent skill from the GitHub repository olivomarco/vbd-copilot. How to write comprehensive architectural proposals that drive alignment before code is written

How to use this skill

Skill file

Context

Proposals create alignment before code is written. Cheaper to change a doc than refactor code. Use this pattern when:

Patterns

Proposal Structure (docs/proposals/)

Required sections:

  1. Problem Statement — Why current state is broken (specific, measurable evidence)
  2. Proposed Architecture — Solution with technical specifics (not hand-waving)
  3. What Changes — Impact on existing work (waves, milestones, modules)
  4. What Stays the Same — Preserve existing functionality (no regression)
  5. Key Decisions Needed — Explicit choices with recommendations
  6. Risks and Mitigations — Likelihood + impact + mitigation strategy
  7. Scope — What's in v1, what's deferred (timeline clarity)

Optional sections:

Tone Ceiling Enforcement

Always:

Never:

Wave Restructuring Pattern

When a proposal invalidates existing wave structure:

  1. Acknowledge the shift: "This becomes Wave 0 (Foundation)"
  2. Cascade impacts: Adjust downstream waves (Wave 1, Wave 2, Wave 3)
  3. Preserve non-blocking work: Identify what can proceed in parallel
  4. Update dependencies: Document new blocking relationships

Example (Interactive Shell):

Decision Framing

Format: "Recommendation: X (recommended) or alternatives?"

Components:

Example:

### 1. Terminal UI Library: `ink` (recommended) or alternatives?

**Recommendation:** `ink`  
**Alternatives:** `blessed`, raw readline  
**Decision rationale:** Component model enables testable UI. Battle-tested ecosystem.

**Needs sign-off from:** Brady (product direction), Fortier (runtime performance)

Risk Documentation

Format per risk:

Example:

### Risk 2: SDK Streaming Reliability

**Risk:** SDK streaming events might drop messages or arrive out of order.  
**Likelihood:** Low (SDK is production-grade).  
**Impact:** High — broken streaming makes shell unusable.

**Mitigation:**
- Add integration test: Send 1000-message stream, verify all deltas arrive in order
- Implement fallback: If streaming fails, fall back to polling session state
- Log all SDK events to `.squad/orchestration-log/sdk-events.jsonl` for debugging

Examples

File references from interactive shell proposal:

Key patterns demonstrated:

  1. Read user directive first (understand the "why")
  2. Survey current architecture (module map, existing waves)
  3. Research SDK APIs (exploration task to validate feasibility)
  4. Document problem with specific evidence (unreliable handoffs, zero visibility, UX mismatch)
  5. Propose solution with technical specifics (ink components, SDK session management, spawn.ts module)
  6. Restructure waves when foundation shifts (Wave 0 becomes blocker)
  7. Preserve backward compatibility (squad.agent.md still works, VS Code mode unchanged)
  8. Frame decisions explicitly (5 key decisions with recommendations)
  9. Document risks with mitigations (5 risks, each with concrete actions)
  10. Define scope (what's in v1 vs. deferred)

Anti-Patterns

Avoid:

Red flags in proposal reviews:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.