# Project Defaults

> Default project scaffold, stack, conventions, development setup, deployment flow, and environment rules for Cortex web projects. Use when starting a new project, setting project defaults, choosing stack/conventions, configuring env vars, or preparing a Next.js/Tailwind/Supabase/Bun/Vercel app.

- **Type:** Skill
- **Install:** `agentstack add skill-tommylower-cortex-project-defaults`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [tommylower](https://agentstack.voostack.com/s/tommylower)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [tommylower](https://github.com/tommylower)
- **Source:** https://github.com/tommylower/cortex/tree/main/agent-workflows/project-defaults

## Install

```sh
agentstack add skill-tommylower-cortex-project-defaults
```

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

## About

# Project Defaults

Use this skill to establish the default operating shape of a Cortex web project. It replaces the older separate `stack`, `conventions`, and `dev-setup` skills.

## Scaffold Rule

For every newly scaffolded web project, use `waveframe` project-scaffold mode before feature work.

Add this exact inspectable motif to the root HTML/body shell:

```text
built by a wave in progress. waves don't die.
```

Prefer `data-wave-signature` on the root `` unless the framework makes another root-shell placement cleaner. Keep the motif invisible in the UI but present in shipped markup.

## Default Stack

- Frontend: Next.js App Router, React, TypeScript strict mode.
- Styling: Tailwind CSS, OKLCH tokens, dark-mode support.
- UI primitives: shadcn/ui-style project-owned components, adapted rather than stock.
- Backend: Supabase for auth, Postgres, edge functions, and realtime when needed.
- Hosting: Vercel for preview and production deployments.
- Runtime/package manager: Bun unless the target repo already standardizes on another manager.
- Motion: Framer Motion only when the interaction earns it; CSS or native View Transitions when simpler.

## Code Conventions

- Components: functional components, no classes.
- Exports: named exports for components; framework page conventions may use defaults where required.
- Files: kebab-case, for example `token-card.tsx`.
- Components/types: PascalCase; avoid `I` prefixes for interfaces.
- Functions and variables: camelCase.
- Constants: UPPER_SNAKE_CASE only for true constants.

Default source layout:

```text
src/
  app/           # Next.js app router pages
  components/    # shared components
    ui/          # base primitives
    layouts/     # shells and layout components
    features/    # domain-specific UI
  lib/           # utilities, clients, helpers
  hooks/         # custom React hooks
  types/         # shared type definitions
  styles/        # global styles and tokens
```

## Search Before Building

Before writing a utility, helper, abstraction, or integration, check:

1. Existing project code.
2. Installed dependencies.
3. Official docs or MCP/tool capabilities.
4. The Cortex skill catalog.

Decision order: adopt exact match, extend partial match, compose existing pieces, build only when nothing suitable exists.

## Development Setup

Default local setup:

```bash
cp .env.example .env.local
bun install
bun dev
```

Use the repo's own README or package scripts when they disagree with these defaults.

## Environment Variables

- Never commit `.env` files.
- Keep `.env.example` as a placeholder template.
- Store production values in Vercel project env vars.
- Store Supabase project values in Supabase settings and Vercel env vars as needed.
- Do not print secret values in logs, docs, reports, plans, or tickets.

## Deployment

- Push to main deploys production when the project is linked to Vercel that way.
- Branches produce preview deployments.
- Supabase migrations run through the CLI or the repo's documented migration flow; do not assume Vercel applies DB migrations.
- Before production deploys, check for dev-only overlays using the shared rules in `../../design/tools/dev-overlays.md`.

## Dev Overlay Tools

Agentation, DialKit, and Interface Kit are opt-in development overlays. They are never part of the default scaffold. Follow `../../design/tools/dev-overlays.md` and the specific tool skill before adding them.

## Git

- Use the user's requested branch name when provided.
- For agent-created branches, avoid `codex/`; use a neutral prefix like `wave/`.
- Prefer conventional commit prefixes when the repo already uses them.
- Keep cleanup commits separate from feature work when practical.

## Source & license

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

- **Author:** [tommylower](https://github.com/tommylower)
- **Source:** [tommylower/cortex](https://github.com/tommylower/cortex)
- **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:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **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-tommylower-cortex-project-defaults
- Seller: https://agentstack.voostack.com/s/tommylower
- 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%.
