loops-nuxt
Skill1 starsChanged 3 months agoMITView on GitHub
Nuxt/Vue implementation loop — for implementation work only. Use when the user asks to implement, build, create, add, modify, fix, or refactor any Nuxt/Vue surface (page, component, composable, server route, layout, middleware, plugin, module, CMS feature, authentication, or service), or on explicit /loops-nuxt.
In this repository4 other files it gives its agents.
- loops-androidSkill
- loops-flutterSkill
- loops-react-nativeSkill
- project-flowSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 19 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Run a tight red/green loop for a single Nuxt/Vue change.
- Distinctive: line 31
Do not auto-invoke for:
- Distinctive: line 38
If in doubt, prefer invoking the skill whenever the user wants code that must be written, validated, and made production-ready in a …
- Distinctive: line 42
Create a loop marker file at the start and remove it at the end.
- Distinctive: line 48
If blocked and stopping: leave the file in place, include the blocker in your final report, and tell the user to delete the marker manually …
- Distinctive: line 52
Before writing code, confirm this is a Nuxt/Vue project:
- Very specific: line 54
Look for nuxt.config.ts, nuxt.config.js, or nuxt.config.mjs.
- Very specific: line 55
Check package.json for nuxt, vue, @nuxt/*, nitropack, or h3.
- Very specific: line 57
Read AGENTS.md, CLAUDE.md, CONTRIBUTING.md, and README.md if they exist.
- Distinctive: line 59
If the project is not Nuxt/Vue, stop and report that this skill is the wrong tool.
- Distinctive: line 67
If the request is ambiguous, ask a focused clarifying question rather than guessing.
- Distinctive: line 73
Prefer existing skills when they fit:
- Distinctive: line 85
Do not introduce unrelated refactors.
- Distinctive: line 87
When the task or failure involves Nuxt/Vue framework-level behavior, consult the Nuxt MCP before assuming:
- Very specific: line 89
Use mcp_list_tools on the nuxt server.
- Very specific: line 90
Use mcp_call_tool with list-documentation-pages or get-documentation-page for the relevant topic.
- Distinctive: line 92
Do not call the MCP for trivial CSS, copy changes, static HTML, or unrelated business logic.
- Distinctive: line 96
Run the relevant project commands in this order, stopping at the first red signal and jumping to 5.
- Distinctive: line 107
If any validation command goes red:
- Distinctive: line 111
If framework-level behavior is involved (Nuxt APIs, Vue APIs, routing, layouts, middleware, composables, auto-imports, data fetching, SSR, …
- Very specific: line 113
Use mcp_list_tools on the nuxt server, then mcp_call_tool with list-documentation-pages or get-documentation-page for the relevant topic.
- Distinctive: line 117
Do not weaken lint rules, TypeScript checks, or tests merely to make the loop pass.
- Distinctive: line 122
Keep a failure log mentally: if the same error repeats after a fix, your hypothesis was wrong.
- Distinctive: line 124
Stop looping if continuing would require a product/business decision, an external dependency, or a destructive/irreversible action.
- Distinctive: line 128
Only stop when one of these is true:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
loops-nuxt — Autonomous Nuxt validation loop
Run a tight red/green loop for a single Nuxt/Vue change. Do not stop until the change is implemented and the relevant validation is green, or you hit a genuine blocker that requires a human decision.
Activation
This skill is the orchestration layer for implementation tasks in Nuxt/Vue repositories.
Auto-invoke when all of these are true:
- The repository is a Nuxt or Vue project (see 1. Detect the project shape).
- The user asks for a concrete code change using verbs such as implement, build, create, add, modify, fix, refactor, integrate, extend, wire up, or set up.
- The requested change targets a Nuxt/Vue surface: page, component, composable, server route, layout, middleware, plugin, module, CMS feature, authentication flow, data-fetch layer, or service.
Also invoke on explicit /loops-nuxt regardless of the task wording.
Do not auto-invoke for:
- Conceptual questions ("Explain how Nuxt middleware works.")
- Reading or summarizing files ("What does this file do?")
- Brainstorming or architecture-only discussion ("What do you think about this architecture?")
- Trivial copy/text changes unless validation is genuinely useful.
If in doubt, prefer invoking the skill whenever the user wants code that must be written, validated, and made production-ready in a Nuxt/Vue repo.
Loop marker
Create a loop marker file at the start and remove it at the end. This lets agent stop-hooks prevent premature termination while the loop is running.
The default marker path is <project-root>/.agents/state/loops-nuxt.active. This is the universal loop-state convention used across all loops-* skills. An agent-specific integration may enforce this state through its native lifecycle mechanism (for example, Devin's Stop hook); such mechanisms are documented under integrations/<agent>/ and are not required for the skill to function.
- At start: resolve the project root, create
.agents/state/if it does not exist, then write the marker file containing the current ISO timestamp and the task summary. - At successful end: delete the marker file.
- If blocked and stopping: leave the file in place, include the blocker in your final report, and tell the user to delete the marker manually if they want to bypass any active stop enforcement.
1. Detect the project shape
Before writing code, confirm this is a Nuxt/Vue project:
- Look for
nuxt.config.ts,nuxt.config.js, ornuxt.config.mjs. - Check
package.jsonfornuxt,vue,@nuxt/*,nitropack, orh3. - Note the package manager:
package-lock.json→ npm,yarn.lock→ yarn,pnpm-lock.yaml→ pnpm,bun.lockb/bun.lock→ bun. - Read
AGENTS.md,CLAUDE.md,CONTRIBUTING.md, andREADME.mdif they exist. Respect project conventions recorded there.
If the project is not Nuxt/Vue, stop and report that this skill is the wrong tool.
2. Understand the change
From the user's request and conversation context:
- Identify the affected surface (page, component, composable, server route, plugin, layout, middleware, store, config).
- Identify files likely to change. Use
grep/find_file_by_nameto locate related code. - If the request is ambiguous, ask a focused clarifying question rather than guessing.
3. Plan and implement
- Build a tight validation signal first if possible: a specific test, typecheck command, or build output that will go red before the fix and green after.
- Implement the change using the project's existing patterns.
- Prefer existing skills when they fit:
/architectfor any load-bearing design choice that is not already decided./developfor the build step when a spec exists./prototypefor a throwaway proof-of-concept./researchfor framework or API facts./tddfor test-first work./testfor writing tests after implementation./check verifyfor final acceptance verification./debugfor a clear, isolated bug./diagnosing-bugsfor a hard or non-deterministic failure./code-reviewfor a final review before declaring done.
Do not introduce unrelated refactors. Keep the change scoped.
When the task or failure involves Nuxt/Vue framework-level behavior, consult the Nuxt MCP before assuming:
- Use
mcp_list_toolson thenuxtserver. - Use
mcp_call_toolwithlist-documentation-pagesorget-documentation-pagefor the relevant topic.
Do not call the MCP for trivial CSS, copy changes, static HTML, or unrelated business logic.
4. Validate the change
Run the relevant project commands in this order, stopping at the first red signal and jumping to 5. Diagnose and fix:
- Lint — the script in
package.json(commonlynpm run lint,pnpm lint,yarn lint). - Typecheck — the script in
package.json(typecheck,type-check,nuxt typecheck, orvue-tsc --noEmitvia package manager). - Relevant tests — unit tests for changed files first (
vitest run <path>), then the affected test suite, then the full test command if the change is broad. - Build —
nuxt build(via package manager script) when the change touches routing, layouts, middleware, composables, SSR, Nitro, server routes, runtimeConfig, rendering modes, or build-time configuration. For trivial CSS/copy/static HTML changes, build is optional but still run if cheap.
Choose the fastest command that still covers the change. Tighten the loop by running file-scoped checks before full-suite checks.
5. Diagnose and fix (red loop)
If any validation command goes red:
- Capture the exact error message, file path, and line number.
- Determine whether the failure is related to the requested change or pre-existing.
- If framework-level behavior is involved (Nuxt APIs, Vue APIs, routing, layouts, middleware, composables, auto-imports, data fetching, SSR, hydration, Nitro, server routes, modules, plugins, runtimeConfig, rendering modes, build behavior, deployment behavior):
- Consult the Nuxt MCP before assuming.
- Use
mcp_list_toolson thenuxtserver, thenmcp_call_toolwithlist-documentation-pagesorget-documentation-pagefor the relevant topic.
- Form a falsifiable hypothesis and a minimal fix.
- Apply the fix. Prefer fixing the root cause over suppressing errors.
- Re-run the failing validation command (and any cheaper checks it depends on) before running the full suite again.
- Do not weaken lint rules, TypeScript checks, or tests merely to make the loop pass.
6. Iterate safely
- Maintain a
todo_writelist so the loop is visible and scoped. - Keep a failure log mentally: if the same error repeats after a fix, your hypothesis was wrong. Re-diagnose.
- Limit: after 5 consecutive red iterations on the same root symptom, escalate to the user with what was tried and what is blocking.
- Stop looping if continuing would require a product/business decision, an external dependency, or a destructive/irreversible action.
7. Stop and report
Only stop when one of these is true:
- The change is implemented and all relevant validation passes.
- A genuine external blocker exists that cannot be resolved from the repository, tools, MCPs, documentation, or environment.
- A missing product/business decision blocks further progress.
- The next step requires destructive or irreversible human approval.
Final report (concise):
- What changed: files touched and a one-line summary.
- What was validated: the commands/checks that passed.
- Result: green / blocked.
- Remaining non-blocking warnings, if any.
If blocked:
- What is blocking progress.
- What was already tried.
- The exact human decision or missing dependency required.
Bypass and portability
- To disable any active stop enforcement for a session, delete the loop marker file (
.agents/state/loops-nuxt.activeby default). - To skip the loop entirely, do not invoke
/loops-nuxt; issue instructions normally. - To adjust the loop, edit the installed skill file in your agent's skills directory.
Portability note
This skill is agent-neutral. It assumes only that the agent can read files, run shell commands, search the codebase, invoke other skills, and use MCP tools if configured. Agent-specific lifecycle enforcement (such as a Stop hook) belongs in integrations/<agent>/loops-nuxt/ and is optional.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

