Dev workflow

From mattycraig/nuxt-theme-builder · View interactive version

Dev workflow is an AI agent skill from the GitHub repository mattycraig/nuxt-theme-builder. Run the project's validation pipeline (lint → format → typecheck → unit tests) with auto-fixes, then optionally stage and write a Conventional Commit. Use before committing, when asked to "check", "validate", "run the workflow", or "get this commit-ready".

How to use this skill

Skill file

Dev workflow

Mode: $0 (default full). Optional commit message: the remaining arguments.

Current state

!git status --short

!git diff --stat HEAD

Steps

Run in order and stop at the first step that still fails after auto-fixing. Report each step as ✓ or ✗ with file:line references.

  1. Lint: pnpm lint:fix. If errors remain, fix them in code (don't disable rules without a comment explaining why) and re-run.
  2. Format: pnpm format (Prettier: JSON/MD/YAML/CSS only; TS/Vue have no formatter, so match surrounding style).
  3. Typecheck: pnpm typecheck. Fix type errors properly: no any, as unknown as, or @ts-ignore unless an existing pattern requires it.
  4. Unit tests: skip in quick mode. Otherwise run pnpm vitest run <files> for the test files that mirror changed sources first (fast feedback), then pnpm test.
  5. E2E: only if the change touches editor flows, layouts, iframe sync, or persistence, and a server can run. Use /run-app for local verification or pnpm test:e2e:smoke.
  6. Commit (commit mode only):

Report

End with a short summary: which steps ran, what was auto-fixed, anything still failing, and the commit hash if one was created.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.