System Boundaries
Client, server, worker, or application boundaries justified by the workflow and deployment needs.
Failure risk: Unclear ownership or speculative service boundaries that add coordination without solving a requirement.
Use Vaastu to plan and review software architecture across frontend, backend, and full-stack projects. Adapt ownership, dependencies, trusted operations, and verification to the actual requirements and current stack.
Use the same skill for small and large projects. Scale planning and verification to the task and its risks.
npx skills add KOUSHIKG04/scalable-architecture-skill --skill vaastuOne existing web app, browser-local persistence and a focused workflow. Keep the structure local; add no backend or workspace packages without a requirement.
Read .agents/skills/vaastu/SKILL.md and apply the relevant guidance to this existing web app.
Implement a personal expense tracker with add, edit and delete actions, a running total, and browser-local persistence. Reuse the current UI and project structure. No accounts, backend service or multi-app workspace are needed for this task.
Acceptance criteria: reject invalid or non-positive amounts; totals update after each change; saved expenses survive a page reload; existing routes and unrelated behavior remain intact.
Inspect the code, state a brief plan, and implement the scoped workflow. Verify the acceptance criteria with appropriate checks and report anything you could not exercise.Inspect, briefly plan, implement and verify. This example needs no separate architecture proposal or feature specification.
One existing backend, a protected resource, and a focused mutation. Keep the current runtime and persistence; no frontend or new service is required.
Read the installed Vaastu SKILL.md and inspect this backend repository.
Implement the record-update workflow described in the requirements using the existing transport and persistence. Validate input, verify identity and resource scope, allow only permitted fields, and preserve the relevant domain invariant under concurrent updates.
Keep transport adaptation separate from reusable business behavior without adding unnecessary layers. Define stable errors and retry behavior where duplicate execution matters.
Acceptance criteria: permitted updates persist; malformed input, protected-field edits, and unauthorized resource access are rejected; existing contracts and unrelated behavior remain intact.
State a brief plan, implement within this scope, and run relevant request, domain, permission, and persistence checks. Report unexecuted cases explicitly.Use the actual resource, permissions, and invariant from the project requirements. Verify trusted behavior directly; a UI and separate backend deployment are unnecessary.
Customer and operations experiences share durable orders and tenant permissions. Use documented requirements and the full-project template; justify each application, package and service.
Read .agents/skills/vaastu/SKILL.md and REQUIREMENTS.md. Use the full-project implementation template and relevant supporting resources for this task.
Build the must-have scope in REQUIREMENTS.md for a multi-tenant order platform with customer and operations experiences. Customers create and view their own tenant’s orders. Authorized operations users update order status within their assigned tenant. Persist orders on the trusted backend and reject unauthorized or cross-tenant reads and writes.
Inspect the repository and present the simplest justified architecture and dependency-ordered plan before substantial edits. This request authorizes implementation of the documented must-have scope. Implement one connected create-order workflow first, verify it, and then complete the remaining dependency-ready must-have workflows.
Record significant decisions and relevant measurable requirements, with their sources and owners. Use feature acceptance criteria and the Definition of Done. Verify applicable contracts, permissions, data/retry behavior, dependencies and integrations. For a release, assess the relevant CI, migrations, recovery and operational checks.
Do not add speculative services or implement later features. Preserve existing behavior outside scope, and distinguish implemented, tested, deployed and operationally verified work. Report missing requirements or blocked integrations explicitly.First fill REQUIREMENTS.md with must-have workflows, roles, stack constraints, workload and applicable performance, recovery and release criteria. Keep unknown targets explicit.
Vaastu is a universal architecture decision framework. Apply it to the project's existing language, frameworks, runtimes, and deployment constraints. The examples illustrate responsibilities; they do not require a particular stack or a separate service for each layer.
Keep screens, interactions, form behavior, and local state with the owning feature. Reuse the existing UI system and data path. A browser-local tool or static site needs no API or database just to follow the framework.
Keep transport adapters thin and trusted operations owned by their feature. Define validation, identity, resource scope, domain rules, persistence, integrations, and stable outcomes without requiring a UI or a controller/service/repository hierarchy.
A full-stack framework can keep UI and backend operations inside one application. Separate client and trusted responsibilities without forcing separate deployments. Add services or shared packages only when real consumers or operational requirements justify them.
For a workflow that needs both UI and persistence, trace the path below. Omit layers that do not apply to the task.
This is an illustrative flow, not evidence that a particular system has been implemented, load-tested, or deployed.
Use Vaastu's ownership and dependency rules to repair an existing workflow whose responsibilities are unclear. Identify the behavior to preserve and work within the current stack.
Record the input, permitted actor, affected data, expected result, and failure behavior. Establish the relevant baseline checks and preserve drafts, navigation, and resource cleanup where applicable.
Trace feature behavior, state, trusted access, persistence, and consumers. Use file evidence to identify the boundary problem and select the smallest ownership repair. Record significant decisions and alternatives.
Implement within the authorized scope and check the affected consumers, imports, permissions, and persistence. Finish when the agreed workflow checks pass, and report remaining blockers or untested cases.
These responsibilities do not require a separate layer or service for each step. Preserve the current architecture where it meets the requirements, and keep unrelated cleanup outside the scoped repair.
Read the installed Vaastu SKILL.md and references/codebase-untangling.md.
Review [workflow] using this project's existing stack. Do not change files yet.
Trace input, feature behavior, state ownership, trusted access, persistence,
and the result consumed by the UI or caller, where applicable.
For each boundary problem, give file evidence, the affected behavior,
the owning module, and the smallest repair with acceptance checks.
Preserve routes, contracts, data, permissions, drafts, and lifecycle cleanup.
Record significant ownership decisions and distinguish verified facts from unknowns.Give your coding agent the project requirements and ask it to read SKILL.md. Use a short prompt for focused work, or the optional full-project template for substantial architecture and implementation.
Use the short prompt for focused changes. For a substantial build, use the full-project template with requirements, implementation scope and acceptance criteria.
Read .agents/skills/vaastu/SKILL.md
and use it as the architecture decision framework for this project.
Use its references, examples, and templates when relevant.
Do not blindly copy an example architecture.
First analyze the project requirements and existing repository.
Before substantial implementation, define:
- requirements and assumptions
- system architecture
- application/runtime boundaries
- repository architecture
- feature/module ownership
- backend/API responsibilities
- database and data ownership
- shared-code strategy
- dependency rules
- state ownership
- authentication and authorization boundaries
- testing and architecture validation
- scalability triggers
- first end-to-end vertical slice
- implementation order
Apply this framework to the project's existing language, frameworks, runtimes, and deployment model. Keep frontend and backend in one application when that meets the requirements. Omit layers the workflow does not use.
For focused work, apply only relevant decisions; do not require a full-system proposal. Follow the current request's implementation scope. Stop at the proposal when only a proposal was requested.The optional template adds a project brief and delivery criteria for substantial work. Fill it in or reference your existing requirements.
Read and copy the full-project templateInspect, plan, review within scope, then implement and verify one workflow at a time.
Read SKILL.md and only the supporting resources relevant to the task.
Inspect existing behavior, runtimes, data stores and constraints before proposing changes.
For substantial work, explain boundaries, ownership, data and the first implementation slice.
Stop at the proposal if that is the requested scope. Otherwise continue within existing implementation authorization; clarify material departures.
Build and verify each dependency-ready workflow before expanding.
For substantial architecture work, evaluate the relevant concerns below. For a focused change, apply the affected decisions instead of requiring a full-system document.
Client, server, worker, or application boundaries justified by the workflow and deployment needs.
Failure risk: Unclear ownership or speculative service boundaries that add coordination without solving a requirement.
Browser, native, server, worker, command-line, and managed runtimes present in the project.
Failure risk: Platform-specific dependencies crossing incompatible runtime or client/server boundaries.
Each capability owns the UI, commands, queries, and state its workflow actually needs.
Failure risk: Unrelated behavior collecting in global folders or features depending on each other's internals.
Authoritative data ownership, scoped access, transaction boundaries, constraints, and reproducible persistence changes.
Failure risk: Privileged data access escaping trusted boundaries or multi-step writes leaving inconsistent records.
Server state vs client cache vs URL state vs local component state.
Failure risk: Global stores bloating with stale server data and duplicated entity caches.
Unidirectional: Feature → Shared Core; Never Feature A → Feature B internal.
Failure risk: Circular imports and tangled dependency graphs that break builds and tests.
Only truly generic utilities belong in shared; domain logic stays in features.
Failure risk: Bloated utils/helpers.ts dumping ground containing thousands of lines.
Verified identity, operation-specific permissions, resource scope, and session handling at trusted boundaries.
Failure risk: Navigation-only protection, client-supplied authority, or inconsistent resource access checks.
Structured error models, API status mapping, user-facing vs logged details.
Failure risk: Silent failures, unhandled promise rejections, or leaked sensitive stack traces.
Requirements, measurements, and revisit conditions for caches, jobs, replicas, or independent services.
Failure risk: Adding infrastructure for hypothetical scale or ignoring measured resource contention.
One real outcome through the boundaries it needs, including failures and recovery.
Failure risk: Disconnected mocks passing checks while required integrations or trusted behavior remain unverified.
Dependency-ready implementation order based on the workflow, current system, and acceptance criteria.
Failure risk: Expanding foundations or features before proving the contracts and behavior the next slice needs.
Runtime validation of untrusted inputs and integration responses where malformed data violates assumptions.
Failure risk: Treating static types as runtime validation or accepting unchecked external values.
Appropriate domain, contract, permission, persistence, client, and connected-flow checks with explicit evidence.
Failure risk: Equating mocked checks or source inspection with verified browser, database, hosted, or production behavior.
Choose boundaries from requirements rather than copying a directory tree.
Fixed folder templates can create empty layers, ignore runtime needs and hide ownership or dependency problems.
Start from real requirements, keep domain logic independent of UI, expose deliberate public APIs and verify connected workflows.
import { UserProfileBadge } from "@/features/users";Six areas organize the detailed reference guidance.
Identify real client, server, worker, command-line, or managed execution boundaries. Keep platform-specific dependencies inside compatible runtimes.
Group behavior by its owning capability and expose deliberate public entry points. A feature contains only the UI, commands, queries, or state its workflow needs; no fixed set of files or export convention is required.
Choose a transport that fits the project. Keep adapters thin, validate untrusted inputs, enforce authorization at trusted operations, and keep privileged persistence access out of client code.
Identifies authoritative data owners, cache invalidation, and migration ownership so each domain entity has a deliberate source of truth.
Keep dependencies acyclic and ownership explicit. Shared packages do not import applications. Reusable domain capabilities may be shared when real consumers justify them.
Use requirements and measured pressure to decide when caching, jobs, replicas, or service extraction are justified. Name evidence and revisit conditions instead of inventing universal thresholds.
Review consequential boundary, state and contract changes in proportion to the task. Follow the current request’s authorization and keep unresolved acceptance criteria visible.
Do module and runtime boundaries match actual workflows? Remove unjustified services and layers.
Does each state value have an owner? Verify untrusted input, permissions and resource scope at trusted boundaries.
Can one real workflow be exercised across the boundaries it needs before the structure expands?
Keep three phases: discovery, foundations and a first slice, then incremental delivery. Apply release checks to the actual risks; small changes need no extra paperwork.
Record relevant workload, latency, availability, privacy, budget and recovery targets, with an owner and verification method. Mark unknowns.
Use ADRs or the existing decision log for consequential choices. Record alternatives, consequences and revisit conditions; preserve history when superseding decisions.
Verify acceptance, permissions, data changes, integrations and dependency boundaries. Record passed, failed, not-run or not-applicable checks with environment and evidence.
Test affected trust boundaries and denied access, including cross-tenant cases when relevant. Address secrets, retention/deletion and audit events; this is not compliance certification.
For releases, assess CI, configuration, migrations, recovery and smoke checks. Give important failures useful health/error signals and an owner. Separate implemented, tested, deployed and operationally accepted.
Install for a supported agent and use the skill location reported by the installer. These prompts request relevant architecture guidance without assuming that every agent has the same discovery or configuration behavior.
For a standard project-local installation, verify .agents/skills/vaastu/SKILL.md. Invoke the installed skill explicitly or ask Codex to read it; automatic matching depends on the skill description and invocation settings.
Use $vaastu to inspect this project's requirements and existing architecture. Apply only relevant guidance, preserve behavior outside scope, and verify the affected workflow.After installation, use the skill path reported by the installer in your prompt or the agent's supported project-instruction mechanism.
Read the installed Vaastu SKILL.md and the supporting references relevant to this task. Apply its architecture decisions to the existing stack and project requirements. Preserve current behavior and work within the requested scope.After installation, use the skill path reported by the installer in your prompt or the agent's supported project-instruction mechanism.
Read the installed Vaastu SKILL.md and the supporting references relevant to this task. Apply its architecture decisions to the existing stack and project requirements. Preserve current behavior and work within the requested scope.After installation, use the skill path reported by the installer in your prompt or the agent's supported project-instruction mechanism.
Read the installed Vaastu SKILL.md and the supporting references relevant to this task. Apply its architecture decisions to the existing stack and project requirements. Preserve current behavior and work within the requested scope.After installation, use the skill path reported by the installer in your prompt or the agent's supported project-instruction mechanism.
Read the installed Vaastu SKILL.md and the supporting references relevant to this task. Apply its architecture decisions to the existing stack and project requirements. Preserve current behavior and work within the requested scope.Public documentation helps an agent understand Vaastu when it retrieves the site or repository. Finding the skill, recommending it, installing it, and selecting it for a task are separate steps.
An agent with web search or a skill-directory tool may find Vaastu for a relevant request. Inclusion depends on that agent's tools, retrieval sources, and the task. SEO, structured data, and crawler access do not guarantee a recommendation.
The Markdown pages, documentation index, and combined text expose the same public guidance in text form. Agents can use these endpoints when their tools support them; no universal requirement makes every coding agent read llms.txt or ai.txt.
Install the skill through a supported workflow, verify its reported location, and ask the agent to read SKILL.md. Automatic selection depends on the host's discovery and invocation rules. Reading a webpage alone does not install the skill or grant it authority over project instructions.