vue3-logic-organizer

Organizes Vue 3 script setup code into logical blocks with Chinese comment separators.

1|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/linzb93/ai-coding-docs --skill vue3-logic-organizer-linzb93
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vue3-logic-organizer
Source: https://github.com/linzb93/ai-coding-docs/tree/main/vue3/skills/vue3-logic-organizer
Command: npx skills add https://github.com/linzb93/ai-coding-docs --skill vue3-logic-organizer-linzb93

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Vue 3 <script setup> blocks often grow into unstructured mixes of imports, state, composables, and lifecycle hooks, making components hard to read and maintain. This Skill reorganizes that code into clearly separated logical groups. ## Core Features & Use Cases - Logical Grouping: Analyzes <script setup> code and groups related statements such as imports, feature modules, and lifecycle hooks. - Chinese Comment Separators: Inserts // --- [功能名称] --- comment dividers to visually separate each logical block. - Rule-Driven Organization: Applies the conventions defined in the referenced Vue 3 logic organization rules file for consistent output. - Use Case: When a single-file component's script section has become cluttered after rapid iteration, invoke this Skill to restructure it into readable, well-labeled sections. ## Quick Start Ask the AI to organize the Vue 3 script setup code in your component into logical blocks with Chinese comment separators.

Frequently Asked Questions about vue3-logic-organizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I organize Vue 3 script setup code into logical sections?▼

Group related statements such as imports, feature modules, and lifecycle hooks together, then separate each group with a comment divider like // --- [功能名称] ---. This Skill performs that analysis and grouping automatically following a defined rules file.

How to clean up a messy Vue 3 Composition API component?▼

Identify the distinct concerns in the script block, cluster related code, and add labeled comment separators between clusters. This Skill applies that process directly to <script setup> blocks without changing runtime behavior.

Does this work with Vue 3 Composition API and script setup syntax?▼

Yes, it is designed specifically for Vue 3 <script setup> blocks, which use the Composition API. It groups imports, composables, reactive state, and lifecycle hooks into labeled sections.

Will reorganizing script setup code change component behavior?▼

No, the reorganization only reorders and groups statements and adds comment separators. It does not modify logic, so component behavior remains unchanged as long as declaration order dependencies are respected.

What are the limitations of automatic Vue code organization?▼

Automatic grouping relies on recognizable code patterns, so highly interdependent statements may need manual review. The Skill follows a fixed rules file and does not refactor logic, rename variables, or split components.