vd-scaffold

vd-scaffold is a command for coding agents from 4pixeltechBR/VibeDev. It costs 0 tokens per session (2,009 once invoked), scanned A, original, MIT.

A command that turns an approved project plan into technical foundations such as database structure, database-change files, access rules, payment integration, and white-label design settings. It chooses the technology approach based on the situation.

In plain words
What is it for?
Use it during foundation work for databases, login and permissions, multi-tenant systems, payments, or branded versions of the same product.
Why use it?
It fills in concrete infrastructure that a plan alone does not provide, while requiring real database changes and indexes instead of vague claims that the system is ready to scale.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/4pixeltechbr/vibedev/vd-scaffold
Clone the repo
git clone --depth 1 https://github.com/4pixeltechBR/VibeDev

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vd-scaffold

README.md
[![agentmods](https://agentmods.dev/badge/commands/4pixeltechbr/vibedev/vd-scaffold.svg)](https://agentmods.dev/commands/4pixeltechbr/vibedev/vd-scaffold)
Your own site
<a href="https://agentmods.dev/commands/4pixeltechbr/vibedev/vd-scaffold"><img src="https://agentmods.dev/badge/commands/4pixeltechbr/vibedev/vd-scaffold.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,009 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02009
Opus 5 $0.00000 $0.01005
Sonnet 5 $0.00000 $0.00402
Haiku 4.5 $0.00000 $0.00201

Measured 3d ago against content hash b98d088511db, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vd-scaffold scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vibedev/commands/vd-scaffold.md · 181 lines

How it starts

The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/vd-scaffold

🇧🇷 PT-BR · 🇺🇸 EN follows

Motor de Fundação Técnica do VibeDev. Roda dentro de /vd-build quando a sub-tarefa envolve fundação (banco, auth, pagamento, multi-tenant, white-label) na Fase 3 — Arquitetura da Trilha Verde.

🇧🇷 O que faz

Transforma a intenção já aprovada em /vd-plan em fundação técnica real: schema + migrations, matriz RBAC, integração de pagamento BR-first com webhook idempotente, e tokens de white-label. Não fixa stack — decide por contexto via Triagem Cynefin-lite.

Princípio central: stack é decisão Tipo 1. Nunca escolhe por hábito nem aceita primeira opção sem Red Team. O código gerado tem que ser copy-paste funcional — declarar "estrutura pronta pra escala" sem entregar migration e índice reais é proibido aqui.

🇺🇸 What it does

Turns the intent already approved in /vd-plan into real technical foundation: schema + migrations, RBAC matrix, BR-first payment integration with idempotent webhook, and white-label tokens. Does not fix stack — decides by context via Cynefin-lite triage.

Central principle: stack is Type 1 decision. Never chooses by habit nor accepts the first option without Red Team. Generated code must be copy-paste functional — declaring "structure ready to scale" without delivering real migration and index is forbidden here.


🚦 Quando ativar (gate)

Ativação automática quando TODAS as condições:

  • trilha: verde em PROJECT_STATE.md
  • Fase atual = Fase 3 — Arquitetura (ou o usuário marcar explicitamente "fase de fundação")
  • Sub-tarefa aprovada em /vd-plan envolve QUALQUER destes:
    • Modelagem de dados (banco, schema)
    • Autenticação / permissões
    • Pagamentos / assinaturas
    • Multi-tenancy
    • White-label / identidade visual parametrizada
    • Estrutura inicial de pastas do projeto

Ativação explícita quando o usuário digitar /vd-scaffold em qualquer momento da Fase 3.

NÃO ativar se:

  • PROJECT_STATE.md não existe → redirecionar para /vd-start primeiro
  • Trilha ≠ Verde → redirecionar para Trilha Vermelha (references/trilha-vermelha.md)
  • Sub-tarefa é claramente Tipo 2 (script isolado, ajuste pontual) → /vd-build direto

Read the full file on GitHub · 181 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 181 lines · 0 tokens per session scan A b98d088511db

Subscribe to this mod's changes

vd-scaffold is a command published in the GitHub repository 4pixeltechBR/VibeDev (16 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,009 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.