Nextjs Monorepo — Workflow

Overview

How the nextjs-monorepo skill works, step by step.

Source Workflow

Claude skill workflow.

Step-by-step Workflow

nextjs-monorepo — Workflow

Auto-generated from SKILL.md. The skill itself is the source of truth; this is a human-readable map of what it does and how it runs.

What it does & when to use

Enterprise-grade Next.js monorepo clean architecture guide for full-stack templates using App Router, TypeScript, Prisma, Supabase, modular monolith structure, internal auth/RBAC, and strict layer separation.

How it works

Workflow outline (sections of SKILL.md):

    1. Purpose
    1. Non-Negotiable Architectural Principles
    1. Recommended Architecture
    1. Architectural Layers
    1. Final Folder Structure
    1. Prisma Setup
    1. Actor Context
    1. Authorization Model
    1. Authentication Design
    1. Server Action Pattern
    1. Route Handler Pattern
    1. Use Case Pattern
    1. Zod Validation
    1. Error Handling
    1. Audit Logging
    1. Seed Data
    1. UI Guidelines
    1. Frontend Component Rules
    1. Testing Strategy
    1. Test Matrix
    1. CI/CD Requirements
    1. Recommended Scripts
    1. Database Portability Rules
    1. Mongo Adapter Preparation
    1. Supabase Positioning
    1. Security Checklist
    1. Implementation Phases
    1. Claude/Codex Working Rules
    1. Definition of Done
    1. Anti-Patterns to Reject
    1. Initial Build Target
    1. Final Architectural Position

Components

Single-file skill — all instructions live in SKILL.md.

Invoke

  • Slash: /nextjs-monorepo
  • Or a natural-language request matching the triggers above.

Source: SKILL.md in this directory.

Execution Logic

The skill executes when its trigger fires (slash command, natural-language match, or direct invocation). It reads its references, applies its rules, and produces the documented outputs.

Edge Cases

See the source skill's references/ and scripts/ folders for edge-case handling.

Failure Handling

A skill failure surfaces as a tool error or a partial output; never a silent skip. Re-run with --verbose (where applicable) for diagnostics.

Integration Notes

  • Claude — invoked via the Skill tool with skill: "nextjs-monorepo".
  • Codex — referenced from AGENTS.md if mirrored.
  • Antigravity — referenced from the workspace agent rules if mirrored.
  • HQ Project — listed on the landing page Skills section + post-login sidebar.
  • MD Project (md.sgnk.ai) — file rendered from Skills/Nextjs Monorepo/workflow.md.
  • Obsidian — file rendered with frontmatter + tags.

Usage Examples

Invoke via slash command or natural language matching the skill description.


Source: ~/.claude/skills/nextjs-monorepo/WORKFLOW.md