Skip to content
architectural-proposals logo

Architectural Proposals

architectural-proposals

How to write comprehensive architectural proposals that drive alignment before code is written

SKILL.md

Full skill instructions

Context

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

  • Architecture shifts invalidate existing assumptions
  • Product direction changes require new foundation
  • Multiple waves/​milestones will be affected by a decision
  • External dependencies (Copilot CLI, SDK APIs) change

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:

  • Implementation Plan (high-level milestones)
  • Success Criteria (measurable outcomes)
  • Open Questions (unresolved items)
  • Appendix (prior art, alternatives considered)

Tone Ceiling Enforcement

Always:

  • Cite specific evidence (user reports, performance data, failure modes)
  • Justify recommendations with technical rationale
  • Acknowledge trade-offs (no perfect solutions)
  • Be specific about APIs, libraries, file paths

Never:

  • Hype ("revolutionary", "game-changing")
  • Hand-waving ("we'll figure it out later")
  • Unsubstantiated claims ("users will love this")
  • Vague timelines ("soon", "eventually")

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):

  • Wave 0 (NEW): Interactive Shell — blocks all other waves
  • Wave 1 (ADJUSTED): npm Distribution — shell bundled in cli.js
  • Wave 2 (DEFERRED): SquadUI — waits for shell foundation
  • Wave 3 (ADJUSTED): Public Docs — now documents shell as primary interface

Decision Framing

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

Components:

  • Recommendation (pick one, justify)
  • Alternatives (what else was considered)
  • Decision rationale (why recommended option wins)
  • Needs sign-off from (which agents/​roles must approve)

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:

  • Risk: Specific failure mode
  • Likelihood: Low / Medium / High (not percentages)
  • Impact: Low / Medium / High
  • Mitigation: Concrete actions (measurable)

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:

  • Full proposal: docs/​proposals/​squad-interactive-shell.md
  • User directive: .squad/​decisions/​inbox/​copilot-directive-2026-02-21T202535Z.md
  • Team decisions: .squad/​decisions.md
  • Current architecture: docs/​architecture/​module-map.md, docs/​prd-23-release-readiness.md

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:

  • ❌ Proposals without problem statements (solution-first thinking)
  • ❌ Vague architecture ("we'll use a shell") — be specific (ink components, session registry, spawn.ts)
  • ❌ Ignoring existing work — always document impact on waves/​milestones
  • ❌ No risk analysis — every architecture has risks, document them
  • ❌ Unbounded scope — draw the v1 line explicitly
  • ❌ Missing decision ownership — always say "needs sign-off from X"
  • ❌ No backward compatibility plan — users don't care about your replatform
  • ❌ Hand-waving timelines ("a few weeks") — be specific (2-3 weeks, 1 engineer full-time)

Red flags in proposal reviews:

  • "Users will love this" (citation needed)
  • "We'll figure out X later" (scope creep incoming)
  • "This is revolutionary" (tone ceiling violation)
  • No section on "What Stays the Same" (regression risk)
  • No risks documented (wishful thinking)

More skills from gabrielmoreira

workflow-router logo
gabrielmoreira/agent-skills-mirror

workflow-router

研发工作流入口 - 帮助用户快速进入正确的工作流阶段。 触发关键词: 工作流, 流程, 从哪开始, 帮我, 我该怎么做, 下一步, workflow, 不知道用什么, 新手引导, 怎么用

19 0
View
平台架构知识 logo
gabrielmoreira/agent-skills-mirror

平台架构知识

Periodically refreshed mirror of agents, skills, prompts and instruction files from public repositories.

19 0
View
unity-profiler logo
gabrielmoreira/agent-skills-mirror

unity-profiler

Read-only Unity runtime performance snapshots — FPS, frame time, batches/draw calls, triangles/vertices, memory (total/mono/per-asset), object counts, AssetBundle stats. Exact signatures via GET /skills/schema.

19 0
View
ads-audit logo
gabrielmoreira/agent-skills-mirror

ads-audit

Full multi-platform paid advertising audit with parallel subagent delegation. Analyzes Google Ads, Meta Ads, LinkedIn Ads, TikTok Ads, Microsoft Ads, and Apple Ads accounts via 6 parallel audit agents. Amazon Ads, cross-platform attribution, and server-side tracking are covered by their standalon...

19 0
View
unity-skills logo
gabrielmoreira/agent-skills-mirror

unity-skills

Unity Editor automation via REST API — create scripts, analyze scenes, manage assets, control editor, orchestrate workflows, run batch jobs, and route by Unity version. Triggers: Unity, Unity Skills, in Unity, automate Unity, Unity editor automation, create Unity script, scene summary, analyze Un...

19 0
View
purple-cow-audit logo
gabrielmoreira/agent-skills-mirror

purple-cow-audit

Score product remarkability 1-10 to decide if it's worth promoting. Seth Godin's Purple Cow test. Triggers on: "is this product worth promoting", "should I promote", "product audit", "purple cow", "remarkable product", "is it remarkable", "rate this product", "product quality check", "worth my re...

19 0
View
unity-cleaner logo
gabrielmoreira/agent-skills-mirror

unity-cleaner

Project cleanup and audit — find unused assets, content-hash duplicates, missing references, empty folders, large assets, dependency trees; two-step confirm-token delete. Exact signatures via GET /skills/schema.

19 0
View
skill-manager-guide logo
gabrielmoreira/agent-skills-mirror

skill-manager-guide

**GUIDE SKILL** — Guide to the Skill Manager for Copilot extension. USE FOR: adding/removing skill repos, syncing skills, pushing feedback, configuring sync intervals, troubleshooting sync issues, understanding skill format. DO NOT USE FOR: creating new skills (use skill-creator), creating agents...

19 0
View
configure-nightwatch logo
gabrielmoreira/agent-skills-mirror

configure-nightwatch

Configures Laravel Nightwatch data collection, sampling rates, filtering rules, and redaction policies. Use when setting up Nightwatch, managing data volume, protecting sensitive data (PII), or optimizing event collection for production workloads.

19 0
View
research-and-write logo
gabrielmoreira/agent-skills-mirror

research-and-write

End-to-end workflow: research a topic and then write a LinkedIn post about it. Use this skill whenever the user wants the full pipeline — from a topic idea to a finished LinkedIn post. Triggers on: 'research and write a post about', 'create a LinkedIn post about [topic]', 'I want to post about', ...

19 0
View
AI Tutor Persona logo
gabrielmoreira/agent-skills-mirror

AI Tutor Persona

Periodically refreshed mirror of agents, skills, prompts and instruction files from public repositories.

19 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View