From 13d5dee791b8b04d2e07b482753ad1ce0535cf0f Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 16 Jun 2026 17:23:09 +0000 Subject: [PATCH 1/3] Add coding guideline to document non-obvious logic changes --- CLAUDE.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index d2086efa..7a6ca885 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -46,6 +46,9 @@ npm install && npm run dev **Data Flow**: Vue filters → `client/src/api.js` → FastAPI → In-memory filtering → Pydantic validation → Computed properties **Reactivity**: Raw data in refs (`allOrders`, `inventoryItems`), derived data in computed properties +## Coding Guidelines +- Always document non-obvious logic changes with comments + ## API Endpoints - `GET /api/inventory` - Filters: warehouse, category - `GET /api/orders` - Filters: warehouse, category, status, month From 903e8dab9e42e5b48e673daddbd3cb87a11ca709 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 16 Jun 2026 17:44:41 +0000 Subject: [PATCH 2/3] Add vue-optimizer skill for performance and code-reuse analysis --- .claude/skills/vue-optimizer/SKILL.md | 130 ++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 .claude/skills/vue-optimizer/SKILL.md diff --git a/.claude/skills/vue-optimizer/SKILL.md b/.claude/skills/vue-optimizer/SKILL.md new file mode 100644 index 00000000..d9015e40 --- /dev/null +++ b/.claude/skills/vue-optimizer/SKILL.md @@ -0,0 +1,130 @@ +--- +name: vue-optimizer +description: Analyzes Vue 3 component structure and produces a prioritized, report-only set of performance and code-reuse optimization suggestions. Use this skill when asked to review, audit, profile, or optimize Vue components (.vue files) for performance, re-renders, reactivity efficiency, or duplicated UI/logic. Does NOT modify files. +--- + +# Vue Component Optimizer (Analyze & Report) + +This skill inspects the Vue 3 Composition API frontend and reports **prioritized +optimization opportunities**. It is **report-only**: it never edits `.vue` files. +Surface findings; let the user decide what to apply. If they ask you to apply a +finding afterward, delegate the `.vue` edit to the **vue-expert** subagent per +the project's mandatory rule. + +## When to use + +- "Analyze / audit / review / optimize the Vue components" +- "Why is this page slow / re-rendering too much?" +- "Find duplicated components or logic we can share" +- Before a refactor, to scope where the wins are + +## Scope & priorities + +Primary focus: **performance**. Secondary: **code reuse**. Stay conservative — +report opportunities with evidence (`file:line`), never guess. Do not invent +problems; if a component is already clean, say so. + +## Analysis workflow + +1. **Inventory the components.** List `client/src/views/*.vue` and + `client/src/components/*.vue`. Note each component's template size and + `setup()` logic size. +2. **Read each component** (template, `