VibeRaven: Architecture Context
Make the agent behave like a senior product engineer before it edits.
Hard Rule
For vague work like "build uploads", "add billing", "fix login", "make chat", or "connect Supabase": ask architecture questions first. Do not answer only "loaded".
No plan, no edits. On the turn after the user answers the questions, route to architecture-plan. That skill must produce Architecture plan: before any file writes, migrations, API changes, UI edits, commits, or final implementation summary.
Loop
product path -> questions -> architecture-plan -> route -> edit/hand off
- Name the user path.
- Ask 3-6 low-level product questions the user can answer without architecture vocabulary.
- Compare practical options.
- Recommend one architecture and why.
- Use repo, Studio, or provider MCP evidence when available for existing boundaries.
- Route answered questions to
architecture-plan.
- Use
architecture-plan to create the full Architecture Plan before editing. This is a hard gate.
- Edit only after the plan exists and is visible in chat.
When the output names Next skill:, continue with that VibeRaven skill unless user input is required.
Continuation Turn
If the latest user message answers the numbered product questions, treat it as the answer turn even if it does not mention this skill by name. Do not restart Question Mode unless a required answer is missing.
On the answer turn:
- Run only read-only repo evidence commands if needed.
- Invoke or follow
architecture-plan; do not continue inside this skill.
- The next output must start with
Architecture plan: and include workstreams, implementation sequence, risks, verification, provider/MCP proof, and Next skill:.
- Only then edit, if the user asked for implementation.
If the response would start with "Implemented", "Changed", "Verification", "Done", or a file list, stop and write the Architecture Plan instead.
Question Mode
Ask low-level questions. Do not ask the user to classify "boundary", "runtime", "RLS", "source of truth", or "production invariant". Translate answers later.
I need a few product answers before I edit.
1. What are we building or fixing? Example: uploads, billing, login, chat, admin.
2. Who is this for? Example: one user, team/workspace, admins, paying users, outside services.
3. Who can see or change it? Example: owner, teammates, link holders, admins only.
4. What service should handle it? Example: Supabase, Stripe, Clerk, Vercel, email, storage, or "I don't know".
5. What rule matters most? Example: private, paid-only, rollback, audit log, realtime, local demo.
6. What already exists? Example: nothing, page, database table, API route, provider setup, or "check the repo".
After you answer, I will use `architecture-plan` to create the detailed architecture plan with boundaries, options, workstreams, risks, verification, and route before I edit.
Common variants:
| Task |
Ask about |
| Uploads |
users, visibility, storage, size/type limits, delete rules |
| Billing |
product, paid access, after-payment behavior, failed payment, test/live |
| Auth |
provider, return URL, protected pages, last working deploy |
| Chat/AI |
history visibility, save/delete, streaming, model/provider, rate limits |
| Admin |
admins, dangerous actions, audit/approval |
Do not ask for secrets or raw env values.
Options
Use these labels when comparing architecture:
- Client-only: local UI state or non-sensitive demos.
- Server/API: validation, auth checks, writes, secrets, provider calls.
- Database/RLS: ownership, team access, privacy, policy enforcement.
- Provider dashboard: Stripe, Supabase, Clerk, Vercel, email, DNS, storage, webhooks, callbacks.
- Background job/webhook: retries, delayed events, external state changes.
- Release/version: changed behavior across deploys, tags, PRs, migrations, env.
Prefer the simplest option that preserves the production invariant.
Architecture Plan Handoff
After the user answers, the next step is architecture-plan. Pass it:
- the product answers
- relevant read-only repo evidence
- any provider/MCP evidence
- the user-requested implementation scope
The next assistant response must start with Architecture plan: and include this shape before any edits, write commands, or implementation summary:
Architecture plan:
Product path:
User answers translated:
Current repo evidence:
Options considered:
Recommended architecture:
Workstreams:
Implementation sequence:
Risks and fallback:
Verification plan:
Provider/MCP proof needed:
VibeRaven route:
Next skill:
Do not replace this with a final "Implemented..." summary. Even when the user asked you to build it, use architecture-plan first, then continue.
Bad output:
Implemented the privacy/delete hardening...
Changed:
Verification:
That is a skill failure unless an Architecture Plan appeared earlier in the same assistant turn.
If answers are missing, stop at Question Mode. If answers are present, do not stop here: use architecture-plan.
Routing
Use Next skill: as the handoff:
architecture-plan when the user has answered the low-level product questions and the plan is not written yet.
what-broke when this is a regression, release drift, or version comparison.
production-context when the plan touches providers, migrations, auth, billing, storage, webhooks, env, incidents, or fragile customer paths.
go-live when the next step is GitHub, Vercel, deploy, live URL, or launch proof.
viberaven when Studio, MCP provider cards, release diff, connected CLI agent, or access mode should drive the work.
Never end with Next skill: None for production-sensitive work if another VibeRaven skill should continue the loop.
Mistakes
- Starting from a file instead of the product path.
- Asking broad questions that repo evidence already answers.
- Hiding tradeoffs.
- Claiming provider/dashboard state is fixed by code alone.
- Jumping straight to implementation results without first showing the architecture plan.
- Treating the user's answers as permission to skip the plan.
1---2name: architecture-context3description: Use when an AI coding agent starts real app work, product feature design, provider work, migrations, auth, billing, storage, webhooks, deploys, or any task where unclear architecture could cause broad or unsafe changes.4---56# VibeRaven: Architecture Context78Make the agent behave like a senior product engineer before it edits.910## Hard Rule1112For vague work like "build uploads", "add billing", "fix login", "make chat", or "connect Supabase": ask architecture questions first. Do not answer only "loaded".1314No plan, no edits. On the turn after the user answers the questions, route to `architecture-plan`. That skill must produce `Architecture plan:` before any file writes, migrations, API changes, UI edits, commits, or final implementation summary.1516## Loop1718```text19product path -> questions -> architecture-plan -> route -> edit/hand off20```21221. Name the user path.232. Ask 3-6 low-level product questions the user can answer without architecture vocabulary.243. Compare practical options.254. Recommend one architecture and why.265. Use repo, Studio, or provider MCP evidence when available for existing boundaries.276. Route answered questions to `architecture-plan`.287. Use `architecture-plan` to create the full Architecture Plan before editing. This is a hard gate.298. Edit only after the plan exists and is visible in chat.3031When the output names `Next skill:`, continue with that VibeRaven skill unless user input is required.3233## Continuation Turn3435If the latest user message answers the numbered product questions, treat it as the answer turn even if it does not mention this skill by name. Do not restart Question Mode unless a required answer is missing.3637On the answer turn:38391. Run only read-only repo evidence commands if needed.402. Invoke or follow `architecture-plan`; do not continue inside this skill.413. The next output must start with `Architecture plan:` and include workstreams, implementation sequence, risks, verification, provider/MCP proof, and `Next skill:`.424. Only then edit, if the user asked for implementation.4344If the response would start with "Implemented", "Changed", "Verification", "Done", or a file list, stop and write the Architecture Plan instead.4546## Question Mode4748Ask low-level questions. Do not ask the user to classify "boundary", "runtime", "RLS", "source of truth", or "production invariant". Translate answers later.4950```text51I need a few product answers before I edit.52531. What are we building or fixing? Example: uploads, billing, login, chat, admin.542. Who is this for? Example: one user, team/workspace, admins, paying users, outside services.553. Who can see or change it? Example: owner, teammates, link holders, admins only.564. What service should handle it? Example: Supabase, Stripe, Clerk, Vercel, email, storage, or "I don't know".575. What rule matters most? Example: private, paid-only, rollback, audit log, realtime, local demo.586. What already exists? Example: nothing, page, database table, API route, provider setup, or "check the repo".5960After you answer, I will use `architecture-plan` to create the detailed architecture plan with boundaries, options, workstreams, risks, verification, and route before I edit.61```6263Common variants:6465| Task | Ask about |66| --- | --- |67| Uploads | users, visibility, storage, size/type limits, delete rules |68| Billing | product, paid access, after-payment behavior, failed payment, test/live |69| Auth | provider, return URL, protected pages, last working deploy |70| Chat/AI | history visibility, save/delete, streaming, model/provider, rate limits |71| Admin | admins, dangerous actions, audit/approval |7273Do not ask for secrets or raw env values.7475## Options7677Use these labels when comparing architecture:7879- Client-only: local UI state or non-sensitive demos.80- Server/API: validation, auth checks, writes, secrets, provider calls.81- Database/RLS: ownership, team access, privacy, policy enforcement.82- Provider dashboard: Stripe, Supabase, Clerk, Vercel, email, DNS, storage, webhooks, callbacks.83- Background job/webhook: retries, delayed events, external state changes.84- Release/version: changed behavior across deploys, tags, PRs, migrations, env.8586Prefer the simplest option that preserves the production invariant.8788## Architecture Plan Handoff8990After the user answers, the next step is `architecture-plan`. Pass it:9192- the product answers93- relevant read-only repo evidence94- any provider/MCP evidence95- the user-requested implementation scope9697The next assistant response must start with `Architecture plan:` and include this shape before any edits, write commands, or implementation summary:9899```text100Architecture plan:101Product path:102User answers translated:103Current repo evidence:104Options considered:105Recommended architecture:106Workstreams:107Implementation sequence:108Risks and fallback:109Verification plan:110Provider/MCP proof needed:111VibeRaven route:112Next skill:113```114115Do not replace this with a final "Implemented..." summary. Even when the user asked you to build it, use `architecture-plan` first, then continue.116117Bad output:118119```text120Implemented the privacy/delete hardening...121Changed:122Verification:123```124125That is a skill failure unless an Architecture Plan appeared earlier in the same assistant turn.126127If answers are missing, stop at Question Mode. If answers are present, do not stop here: use `architecture-plan`.128129## Routing130131Use `Next skill:` as the handoff:132133- `architecture-plan` when the user has answered the low-level product questions and the plan is not written yet.134- `what-broke` when this is a regression, release drift, or version comparison.135- `production-context` when the plan touches providers, migrations, auth, billing, storage, webhooks, env, incidents, or fragile customer paths.136- `go-live` when the next step is GitHub, Vercel, deploy, live URL, or launch proof.137- `viberaven` when Studio, MCP provider cards, release diff, connected CLI agent, or access mode should drive the work.138139Never end with `Next skill: None` for production-sensitive work if another VibeRaven skill should continue the loop.140141## Mistakes142143- Starting from a file instead of the product path.144- Asking broad questions that repo evidence already answers.145- Hiding tradeoffs.146- Claiming provider/dashboard state is fixed by code alone.147- Jumping straight to implementation results without first showing the architecture plan.148- Treating the user's answers as permission to skip the plan.