feat: scaffold SvelteKit project with Tailwind, TypeScript, ESLint, Prettier
Initialize the llm-multiverse-ui project with: - SvelteKit + Svelte 5 (runes mode enabled) - Tailwind CSS v4 via @tailwindcss/vite plugin - TypeScript strict mode - ESLint 9 flat config with svelte and typescript-eslint plugins - Prettier with svelte plugin - Directory structure: src/lib/components/, src/lib/services/ - All required scripts: dev, build, preview, lint, format, check Closes #1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -10,6 +10,7 @@ You are the **Refactoring Reviewer** agent. Your job is to review the entire pro
|
||||
## Trigger
|
||||
|
||||
This command is triggered:
|
||||
|
||||
- Periodically (every ~5 completed stories) by the auto-dev pipeline
|
||||
- Manually by the user via `/project:refactor-review`
|
||||
|
||||
@@ -24,6 +25,7 @@ This command is triggered:
|
||||
### 2. Survey the Codebase
|
||||
|
||||
Explore all source directories:
|
||||
|
||||
- Use Glob to find all source files (`src/**/*.ts`, `src/**/*.tsx`, `src/**/*.css`, `src/**/*.vue`, `src/**/*.svelte`, etc.)
|
||||
- Use Grep to find patterns of concern (see checklist below)
|
||||
- Read key files to understand current state
|
||||
@@ -33,17 +35,20 @@ Explore all source directories:
|
||||
Evaluate the project against these dimensions:
|
||||
|
||||
**Code Duplication:**
|
||||
|
||||
- Shared logic duplicated across components instead of extracted to hooks/utilities
|
||||
- Similar UI patterns that should be abstracted into shared components
|
||||
- Repeated API call patterns that should use a shared data fetching layer
|
||||
|
||||
**Modularity:**
|
||||
|
||||
- Components longer than ~100 lines that should be split
|
||||
- Components with too many responsibilities
|
||||
- Tight coupling between feature modules
|
||||
- Missing abstractions
|
||||
|
||||
**Consistency:**
|
||||
|
||||
- Inconsistent error handling patterns
|
||||
- Inconsistent state management approaches
|
||||
- Inconsistent API call patterns
|
||||
@@ -51,21 +56,25 @@ Evaluate the project against these dimensions:
|
||||
- Inconsistent styling approaches
|
||||
|
||||
**Architecture Drift:**
|
||||
|
||||
- Components bypassing the established API layer
|
||||
- State management inconsistencies
|
||||
- Routing pattern violations
|
||||
|
||||
**Dependency Health:**
|
||||
|
||||
- Unused dependencies in package.json
|
||||
- Outdated dependencies with known vulnerabilities
|
||||
- Lock file hygiene
|
||||
|
||||
**Test Quality:**
|
||||
|
||||
- Tests that only test happy paths
|
||||
- Missing component tests for interactive features
|
||||
- Test code duplication
|
||||
|
||||
**Accessibility:**
|
||||
|
||||
- Missing ARIA attributes on interactive elements
|
||||
- Missing keyboard navigation
|
||||
- Missing alt text on images
|
||||
@@ -74,11 +83,11 @@ Evaluate the project against these dimensions:
|
||||
|
||||
Categorize each finding:
|
||||
|
||||
| Priority | Description |
|
||||
|---|---|
|
||||
| **High** | Architecture drift, security concern, significant duplication, accessibility blockers |
|
||||
| **Medium** | Modularity issues, inconsistencies, test quality gaps |
|
||||
| **Low** | Style issues, minor duplication, documentation gaps |
|
||||
| Priority | Description |
|
||||
| ---------- | ------------------------------------------------------------------------------------- |
|
||||
| **High** | Architecture drift, security concern, significant duplication, accessibility blockers |
|
||||
| **Medium** | Modularity issues, inconsistencies, test quality gaps |
|
||||
| **Low** | Style issues, minor duplication, documentation gaps |
|
||||
|
||||
### 5. Create Refactoring Issues
|
||||
|
||||
|
||||
Reference in New Issue
Block a user