Build And Slice Loop logo

Build And Slice Loop

Organization
heymegabyte
build-and-slice-loop

Use when implementing features or streaming OnePrompt site builds. Complete vertical slices with real content, strict TypeScript and Zod. Parallel section/data work, deterministic assembly, granular patches and immediate valid previews.

Overview

Publisherheymegabyte
Repositoryagent-skills
Skill namebuild-and-slice-loop
Stars
27
Forks
5
Bundled files
26
LicenseRutgers
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 26 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by heymegabyte on GitHub. Read the source before you install it.

Installation

Install the Build And Slice Loop AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/heymegabyte/agent-skills/tree/main/06-build-and-slice-loop
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/heymegabyte/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/06-build-and-slice-loop .claude/skills/build-and-slice-loop
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Build And Slice Loop in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Build And Slice Loop on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Build And Slice Loop is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

06 — Build and Slice Loop

Implement features in real vertical slices (UI→API→DB→tests→deploy) starting with the homepage; no placeholders, no stubs.

Vertical-slice principle

Complete each feature end-to-end through its required layers (UI → API → DB → tests → deploy). Independent slices may proceed in parallel; the slice contract defines completeness, not a global serial execution requirement.

Homepage FIRST (every project, no exceptions)

  • First slice is always the homepage hero + nav + footer
  • Real H1, real meta tags, real OG card, real JSON-LD
  • Deploy before adding any other route — establishes design system, auth layer, analytics tier, deploy pipeline
  • Per rules/website-build-doctrine.md Phase 0 / Phase 1

For the OnePrompt streaming builder, render the cached draftl.ink/Storybook shell immediately while independent research/section/data work proceeds. Content-only slot patches do not rebuild the project. Follow rules/event-sourced-build-progress.md: typed agent results, one assembler, deterministic scripts/ast-grep, versioned patches and an isolated preview iframe. Preserve normal validation/promotion gates; a draft preview is not a production deployment.

Anti-placeholder (NON-NEGOTIABLE)

  • ❌ Lorem ipsum
  • ❌ TODO / FIXME / TBD in shipped user-visible strings (source-comment TODOs OK per rules/todos-are-roadmap.md)
  • ❌ Gray placeholder boxes / silhouettes
  • ❌ "Coming soon" without firm date
  • ❌ Stub images / generic SVGs
  • ❌ "John Doe" / "Jane Doe" / "company.com" / "example.com"
  • ❌ Bracket placeholders [Insert Name] / [Your Title]
  • ❌ Single-character "x" / "?" labels

Per rules/copy-writing.md § Production-review copy gate. Build validator greps dist/ for these patterns.

Slice contract (every slice ships ALL of these)

  1. Types + Zod schemas at boundaries (rules/zod-everywhere.md)
  2. Contract-first API (typed request/response)
  3. Loading + empty + error + success states (4-state system per 10-experience-and-design-system)
  4. Accessibility (axe 0 violations + WCAG 2.2 AA per _kernel/standards.md#wcag22)
  5. 6-breakpoint responsive (per _kernel/standards.md#breakpoints)
  6. Observability (Sentry breadcrumb + PostHog event + Workers Trace span)
  7. Tests (Vitest unit + Playwright E2E from homepage outward per rules/e2e-testing.md)
  8. Feature flag where rollout risk exists (rules/feature-flags.md)
  9. Tenant isolation (org_id on every row + every query, 404 on mismatch)
  10. Docs (JSDoc on exports + module README)

File organization

Worker (Hono)

src/worker/
├── index.ts              # entry — Sentry wrapper, route mounts, onError, notFound
├── db/
│   ├── schema.ts         # Drizzle source of truth
│   └── index.ts          # getDb helper
├── routes/<feature>.ts   # Hono sub-app per feature
├── lib/<feature>.ts      # business logic
├── middleware/           # auth, tenant, rate-limit
└── types.ts              # Env + Variables

Frontend (React + Vite)

Vite 8 (stable Mar 2026) builds on the unified Rolldown bundler — replaces esbuild+Rollup, 10–30× faster prod builds.

src/web/
├── main.tsx              # entry — router, providers
├── pages/<Page>.tsx      # one per route
├── components/
│   ├── ui/               # shadcn primitives
│   ├── <feature>/        # feature-specific components
│   └── shared/           # Header, Footer, ErrorBoundary
├── lib/                  # api client, auth context, hooks
└── styles.css            # Tailwind + design tokens

Shared

src/shared/
├── plans.ts              # pricing tiers
├── design-styles.ts      # design tokens shared web + worker
└── pageLayout.ts         # shared layout helpers

Tests

e2e/
├── FEATURES.md           # row-per-feature matrix (CI gate)
├── _fixtures/            # page objects
├── _helpers/             # snapshot, axe, breadcrumbs, visual
├── <feature>/
│   ├── happy-path.spec.ts
│   ├── edge-cases.spec.ts
│   ├── a11y.spec.ts
│   └── visual.spec.ts
└── _smoke/               # cross-feature smoke

Build loop (per slice)

  1. Write failing test (Playwright TDD-RED first per rules/e2e-testing.md)
  2. Author migration (drizzle/0NNN_<feature>.sql) + update db/schema.ts
  3. Apply locally (npm run db:apply:local)
  4. Implement (route, lib, page, components)
  5. Typecheck (npm run typecheck clean)
  6. Unit tests (npm test green)
  7. Run dev (npm run dev) — exercise in browser
  8. Deploy (npm run deploy)
  9. Prod E2E (npm run e2e:prod against PROD_URL)
  10. Verify console (zero errors, zero CSP violations, zero failed resources)
  11. AI vision QA (6bp screenshots → vision rubric ≥9/10)
  12. Commit + push (conventional commits per rules/main-only-branch.md)
  13. Update e2e/FEATURES.md + CHANGELOG

Real content sourcing

  • Copy: brand voice per 09-brand-and-content-system; never AI-default phrasing
  • Images: real photos > AI-generated brand-aligned > zero (skill 12)
  • Data: real API / Workers AI / D1 query > mocked
  • Testimonials: real attribution > none (never fabricated)
  • Stats: cited per rules/citations.md

CLI and compute work

Use native Go and the appropriate current Charm components per rules/terminal-styling.md. Keep product orchestration in TypeScript/Cloudflare; use Rust/WASM only when 05-architecture-and-stack/SKILL.md's measurement and runtime-fit gates pass. Do not serialize independent work for an animation or start a native runner for a content-only preview patch.

When to stop adding sections

Per rules/website-build-doctrine.md Phase 2: keep adding until next would dilute. Stop when "next hurts," never "we have enough."

See submodules: vertical-slice.md, file-organization.md, anti-placeholder.md.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Build And Slice Loop AI skill do?

Use when implementing features or streaming OnePrompt site builds. Complete vertical slices with real content, strict TypeScript and Zod. Parallel section/data work, deterministic assembly, granular patches and immediate valid previews.

Why use Build And Slice Loop on TypingMind?

Because you install it once and use it with any model. Build And Slice Loop is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Build And Slice Loop in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/heymegabyte/agent-skills/tree/main/06-build-and-slice-loop. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Build And Slice Loop?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Build And Slice Loop?

As many as you like. As long as a model supports skills, you can use Build And Slice Loop with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Build And Slice Loop AI skill free?

Yes. It is published on GitHub by heymegabyte under the Rutgers license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇