# Senior Brainstorm

> >

- **Type:** Skill
- **Install:** `agentstack add skill-qwwiwi-senior-brainstorm-skill-senior-brainstorm-skill`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [qwwiwi](https://agentstack.voostack.com/s/qwwiwi)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [qwwiwi](https://github.com/qwwiwi)
- **Source:** https://github.com/qwwiwi/senior-brainstorm-skill

## Install

```sh
agentstack add skill-qwwiwi-senior-brainstorm-skill-senior-brainstorm-skill
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Senior Brainstorm v6

## Scope

Architecture design for educational SaaS platforms: stack selection, feature brainstorm,
decision review, AI/LLM integration, agent-native system design.

## Non-goals

- Simple CRUD tasks without architectural questions
- Tasks outside educational SaaS
- Single-framework questions without product context

## Decision Framework

Every decision passes through this filter:

1. **Stage** -- MVP, growth, scale, enterprise
2. **Team** -- 1-3, 4-10, 10+
3. **Budget** -- bootstrap, funded, enterprise
4. **Time-to-market** -- week, month, quarter
5. **Compliance** -- none, GDPR, SOC 2, PCI DSS, FERPA, COPPA

### Compliance Quick Reference

| Standard | Scope | Key Requirements | Trigger |
|----------|-------|-----------------|---------|
| GDPR | EU users' personal data | Consent, right to erasure, DPA, breach notification 72h | Any EU user |
| SOC 2 | Service org controls | Trust principles (security, availability, etc.), annual audit | Enterprise clients |
| PCI DSS | Payment card data | Tokenization, network segmentation, quarterly scans | Direct card processing |
| FERPA | US student education records | Consent transfers at 18 OR postsecondary enrollment; directory info opt-out; audit trail | K-12 or university data |
| COPPA | US children  codegen -> UI | UI-first, API bolted on |
| MCP integration | MCP server per bounded context | Monolithic API with no discovery |
| Event-driven | Webhooks + event bus (NATS, Redis Streams) | Polling loops, cron-based sync |
| CLI admin | Click/Typer CLI wrapping same service layer | Admin-only web panel |
| Auth for agents | API keys + scoped tokens (not session cookies) | OAuth browser flow only |
| Observability | Structured logs + trace IDs queryable via API | Dashboard-only metrics |

### Checklist (Gate: before approving any architecture)

- [ ] Can an agent create a user without a browser?
- [ ] Can an agent publish/unpublish content via API?
- [ ] Can an agent query analytics programmatically?
- [ ] Can an agent trigger payments/refunds via API?
- [ ] Are all admin actions available without UI?
- [ ] Does the system expose MCP server(s)? (recommended, not required at MVP)
- [ ] Are events published to a webhook/event bus?

## Default Stack for New Projects (Opinionated)

For **greenfield** projects without legacy stack, start with opinionated defaults rather than open-ended stack selection. This reduces decision fatigue and produces consistent, maintainable systems.

**Three default tracks — choose by team strength, SEO/SSR requirement, and AI/data-heaviness:**

### Track A: Lean Default (non-SSR projects)

Use for internal dashboards, admin panels, SPAs, mobile apps, desktop apps, bot control panels, APIs.

- Backend: **TypeScript + Hono + Bun**
- Frontend (SPA): **Client React + Vite 8** (no SSR, no Next.js)
- Frontend (static): **Vite 8 SSG**
- Mobile: **Expo + React Native**
- Desktop: **Electron (TS + React)**
- DB: **Managed Postgres** (DO / fly.io / Supabase / Neon) + **Prisma**
- Storage: **Tigris** or native cloud

Full details: `references/stacks-lean-default.md`.

### Track B: EdTech SaaS (SSR/SEO required)

Use for course platforms, marketing sites, content-heavy public pages.

- Frontend: **Next.js 16** (App Router) — see `references/stacks-frontend.md`
- Backend: **Node.js 22 + Fastify 5** — see `references/stacks-backend.md`
- DB: **Postgres** (managed) + Redis for cache/queues
- Auth: **Clerk / Auth0 / NextAuth** depending on enterprise needs

### Track C: Python + Supabase (AI/bots/data)

Use for Telegram bots with admin, AI/RAG projects, data-heavy backends, teams stronger in Python.

- Backend: **Python 3.12 + FastAPI 0.115+** — see `references/stacks-python-supabase.md`
- Bot framework: **aiogram 3.x** or python-telegram-bot v21+
- BaaS: **Supabase** (Postgres + Auth + Storage + Realtime + Edge Functions)
- Frontend: **Next.js 16** (App Router) или **Vite + React**
- ORM: **SQLAlchemy 2.x async** (или SQLModel) с **asyncpg**

For data layer choice across all tracks (Supabase vs Yandex Cloud vs self-hosted), see `references/stacks-data-layer.md`.

### Choosing Between Tracks

| Ask | Track |
|---|---|
| Does public content need to be indexed by Google? | B |
| Is there a course catalog / blog / marketing page? | B |
| Telegram bot + admin panel? | **C** |
| AI/RAG with LLM integration? | **C** |
| Data/ML processing in backend? | **C** |
| Internal authenticated-only tool? | **A** |
| Mobile app (Expo)? | **A** |
| Desktop app (Electron)? | **A** |
| Bot control panel or agent UI (no Python ML)? | **A** |
| 152-ФЗ (RU data residency) required? | **C** + Yandex Cloud (see `stacks-data-layer.md`) |

**Scale defaults for all tracks:** target 10K users initially. No microservices, no Kubernetes before 10K. Managed DB, managed storage, single service.

## AI/LLM Integration Architecture

RAG pipelines, AI tutoring patterns, prompt observability, guardrails, vector DB selection.
-> See `references/ai-llm.md` for detailed options, tables, and selection guidance.

## Real-Time Collaboration Patterns

WebSocket, CRDT, WebRTC, SSE, Liveblocks -- when to add real-time and how to scale it.
-> See `references/realtime.md` for technology options, architecture patterns, and scaling.

## LTI (Learning Tools Interoperability)

LMS integration via LTI 1.3/Advantage, OneRoster/SIS sync, SCORM/xAPI/cmi5 standards.
-> See `references/lti.md` for versions, implementation checklist, and content packaging.

## Build vs Buy Decision Matrix

Component sourcing decisions for EdTech: scoring matrix, decision rules, common SaaS options.
-> See `references/build-vs-buy.md` for the full matrix and buy options table.

## Golden Question Bank (Discovery Phase)

Structured questions for the Discovery phase. Select relevant categories based on project scope.

### Business

1. What is the primary revenue model? (subscription, one-time, cohort-based, B2B licensing)
2. Target user count at launch? In 12 months?
3. Who are the end users? (self-learners, K-12 students, corporate employees, university)
4. What is the competitive differentiator vs Teachable/Udemy/Coursera?
5. Is B2B (selling to institutions) in scope? Timeline?
6. What is the content creation workflow? (solo instructor, team, UGC)
7. Budget for infrastructure? Monthly ceiling?
8. Existing audience/distribution channel?

### Technical

1. Existing codebase/tech stack? Migration constraints?
2. Team size and expertise? (frontend, backend, DevOps, ML)
3. Expected content types? (video, text, interactive, code exercises, quizzes)
4. Integration requirements? (LMS via LTI, CRM, payment providers, analytics)
5. Mobile app needed? Timeline? (responsive web, PWA, native)
6. Expected concurrent users during peak? (live events, launches)
7. Data residency requirements? (EU, US, specific country)
8. Existing infrastructure? (cloud provider, CI/CD, monitoring)

### Pedagogy

1. What learning model? (self-paced, cohort, live, blended)
2. Assessment types? (quizzes, projects, peer review, AI-graded)
3. Certification/credentialing needed? (certificates, badges, transcripts)
4. Progress tracking granularity? (course, module, lesson, activity)
5. Adaptive learning or fixed curriculum?
6. Instructor-student interaction model? (forum, chat, 1:1, office hours)
7. Content versioning? (update in place, or preserve student's enrolled version)
8. Accessibility requirements? (WCAG level, screen reader, captions)

### Compliance

1. User age range? (adults only, 13+, under 13 -- triggers COPPA)
2. Geographic scope? (US -- FERPA, EU -- GDPR, both)
3. Handling student education records from institutions? (FERPA)
4. Payment card data handling? (PCI DSS scope)
5. Data retention policy requirements?
6. Right to deletion / data portability needed?
7. Audit trail requirements? (who accessed what, when)
8. Third-party data processor agreements needed?

## Deliverables

- Discovery questions (context + constraints) -- use Golden Question Bank
- Options matrix (2-3 approaches with tradeoffs)
- ADR (Architecture Decision Record) -- template: `templates/adr-template.md`
- Phased implementation plan
- Risk register

## EdTech Domain

Video delivery, entitlements, instructor workflows, cohort/live learning, progress tracking,
certificates, content moderation, analytics (completion rates, engagement), AI tutoring,
LTI integration, real-time collaboration, agent-operated admin workflows.

## Knowledge Base

Detailed reference for each domain. Load only the relevant file:

| Domain | File | When to read |
|--------|------|-------------|
| Track A (Lean) | `references/stacks-lean-default.md` | Opinionated default for non-SSR projects (Bun+Hono+Vite+Expo). |
| Track B (Frontend) | `references/stacks-frontend.md` | Next.js SSR/SEO track — stack selection, components, data fetching, mobile strategy |
| Track B (Backend) | `references/stacks-backend.md` | Node+Fastify track — API design, auth, payments, domain model, multi-tenancy, ORM choice |
| Track C (Python+Supabase) | `references/stacks-python-supabase.md` | FastAPI + aiogram + Supabase track — bots, AI/RAG, data-heavy backends, 152-ФЗ via Yandex |
| Data Layer | `references/stacks-data-layer.md` | Supabase vs Yandex Cloud vs self-hosted Postgres — pricing, lock-in, residency, edge vs containers |
| DevOps | `references/devops.md` | Deployment, CI/CD, observability, environments, backup/DR |
| Security | `references/security.md` | Threat modeling, auth hardening, encryption, compliance, incident response |
| Testing | `references/testing.md` | Test strategy, tools, EdTech test matrix, CI patterns, failure testing |
| Architecture | `references/architecture.md` | Patterns, progression, bounded contexts, infrastructure decisions |
| MCP | `references/mcp.md` | MCP vs API, server selection, security model, bounded workflows |
| AI/LLM | `references/ai-llm.md` | RAG pipelines, tutoring patterns, vector DB selection, guardrails |
| Real-Time | `references/realtime.md` | WebSocket, CRDT, WebRTC, live collaboration |
| LTI/Standards | `references/lti.md` | LMS integration, LTI 1.3/Advantage, OneRoster, SCORM/xAPI |
| Build vs Buy | `references/build-vs-buy.md` | Component sourcing decisions, EdTech SaaS options |

## Templates

| Template | File | When to use |
|----------|------|------------|
| ADR | `templates/adr-template.md` | After selecting an architectural approach |
| Threat Model | `templates/threat-model.md` | At project start or security review |
| Options Matrix | `templates/options-matrix.md` | When comparing 2+ approaches |

## Adaptive Workflow

### Small task ( 2. Decision -> 3. ADR -> done

### Greenfield project
1. **Discovery** -- constraints, success criteria, budget, timeline.
   Use Golden Question Bank (select relevant categories).
2. **Domain modeling** -- bounded contexts, entities, events. Read `references/architecture.md`
3. **Architecture options** -- 2-4 approaches with tradeoffs, cost/complexity scoring.
   Apply Agent Native checklist. Run Build vs Buy matrix for each component.
4. **Design document** -- stack, DB schema, API, infra. Read relevant `references/stacks-*.md`
5. **Gate** -- user approves or corrects
6. **Implementation plan** -- phases, tickets, dependencies

### Re-architecture / Migration
1. Audit current state (bottlenecks, tech debt, risks)
2. Target architecture (apply Agent Native principles)
3. Migration plan (strangler fig, parallel run, data migration)
4. Risk register
5. Gate: approval

### Incident / Audit
1. Investigation (logs, traces, root cause)
2. Immediate fix
3. Post-mortem + systemic fix
4. Prevention (monitoring, tests, runbook)

## Cost/Complexity Scoring

Before recommending advanced architecture:

| Criterion | Simple (1) | Medium (2) | Complex (3) |
|-----------|-----------|------------|-------------|
| Services | 1-2 | 3-5 | 6+ |
| Team | 1-3 | 4-10 | 10+ |
| Data | Single DB | Read replicas | Multi-DB, CQRS |
| Deployment | Single | 2-3 pipelines | K8s + mesh |
| AI/LLM | No AI or basic API calls | RAG pipeline, single model | Multi-model, fine-tuning, evals |
| Real-time | None or SSE | WebSocket chat/presence | CRDT editing + WebRTC |

Score  10: service-oriented.

## Artifacts per Stage

- Discovery: structured questions (from Golden Question Bank), constraints list
- Options: tradeoff matrix, cost/complexity scores, Build vs Buy matrix
  (use `templates/options-matrix.md`)
- Decision: ADR (use `templates/adr-template.md`)
- Plan: phased roadmap with milestones
- Risk: assumptions log, decision log, open questions

## Source Discipline

Authoritative sources (official docs, RFC, OWASP) for recommendations. Blog posts for
supporting context. Community posts (DEV.to, reels) only for discovery, never as basis
for recommendations.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [qwwiwi](https://github.com/qwwiwi)
- **Source:** [qwwiwi/senior-brainstorm-skill](https://github.com/qwwiwi/senior-brainstorm-skill)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-qwwiwi-senior-brainstorm-skill-senior-brainstorm-skill
- Seller: https://agentstack.voostack.com/s/qwwiwi
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
