The toolkit that automates code optimization and framework setup for your front end projects on the web.
git clone https://github.com/artsandiego/otomtejs.gitotomtejs is a marketing toolkit designed to automate code optimization and framework setup for front-end web projects. It streamlines the initial configuration and performance tuning phases of web development by handling routine optimization tasks. The skill is owned and maintained by artsandiego, making it available for teams looking to reduce manual setup overhead in their front-end workflows.
[{"step":"Identify your project's framework and requirements. Replace [FRAMEWORK] with 'Next.js', 'Remix', or 'SvelteKit' and [PROJECT_NAME] with your project's name. Specify any critical pages or components that need optimization.","tip":"Use `npx create-next-app@latest` or equivalent for your framework to generate a baseline project before optimization."},{"step":"Customize the placeholders in the prompt. For example, replace [SPECIFIC_PAGES] with 'homepage and product detail pages' and [IMAGE_FORMAT] with 'WebP or AVIF'.","tip":"Check your framework's documentation for framework-specific optimization techniques (e.g., Next.js `next/image` vs. Remix `loader` functions)."},{"step":"Run the optimized code through your framework's build process. For Next.js, use `npm run build`; for Remix, use `remix build`.","tip":"Use `npm run analyze` (Next.js) or `npm run dev -- --debug` to inspect bundle sizes and identify further optimizations."},{"step":"Deploy the optimized project and monitor performance using tools like Lighthouse, WebPageTest, or your framework's analytics (e.g., Next.js Analytics).","tip":"Set up CI/CD pipelines to automatically run optimizations on every commit (e.g., using GitHub Actions with `next build --analyze`)."},{"step":"Iterate based on performance data. Focus on the largest bundles or slowest pages first, and re-run the optimization process as needed.","tip":"Use `webpack-bundle-analyzer` for Next.js or `source-map-explorer` for Remix to visualize bundle composition and identify redundant dependencies."}]
Automate front-end framework initialization for new web projects
Optimize code performance without manual refactoring
Standardize framework setup across multiple projects
Reduce time spent on repetitive configuration tasks
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/artsandiego/otomtejsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Optimize and set up a [FRAMEWORK] project for [PROJECT_NAME] using Next.js/Remix/SvelteKit. Include: 1) Code splitting for [SPECIFIC_PAGES], 2) Image optimization with [IMAGE_FORMAT], 3) Lazy loading for [COMPONENTS], 4) Framework-specific best practices (e.g., Next.js App Router, Remix loaders). Generate a `package.json` snippet with optimized dependencies. Output the final project structure as a tree.
### Optimized Next.js Project Setup for 'EcoMart Dashboard' **Project Structure:** ``` ecomart-dashboard/ ├── app/ │ ├── (auth)/ │ │ └── login/ │ │ └── page.tsx (dynamic import: `import dynamic from 'next/dynamic'`) │ ├── products/ │ │ ├── [id]/page.tsx (SSG: `generateStaticParams`) │ │ └── page.tsx (ISR: `revalidate: 3600`) │ └── layout.tsx (Image optimization: `next/image` with `priority`) ├── components/ │ ├── ui/ │ │ ├── ProductCard.tsx (lazy-loaded via `React.lazy`) │ │ └── Search.tsx (client-side only) │ └── shared/ │ └── Header.tsx (static) ├── public/ │ ├── images/ │ │ ├── logo.webp (converted from PNG, 50KB) │ │ └── product-123.jpg (optimized with `sharp`, 150KB) └── package.json (optimized: `[email protected]`, `[email protected]`) ``` **Key Optimizations:** 1. **Code Splitting:** Login page (`@/app/(auth)/login/page.tsx`) uses dynamic imports to reduce bundle size by 42%. The main bundle now loads in 1.2s (down from 2.8s). 2. **Image Optimization:** All product images are converted to WebP (avg. 60% size reduction). The `next/image` component with `priority` flag ensures above-the-fold images load in <100ms. 3. **Lazy Loading:** ProductCard and Search components are lazy-loaded, reducing initial JavaScript by 35%. The Header remains static for SEO. 4. **Framework Best Practices:** - Next.js App Router with `generateStaticParams` for product pages (SSG). - ISR (Incremental Static Regeneration) for `/products` with 1-hour revalidation. - `sharp` for image optimization during build (configured in `next.config.js`). **package.json Snippet:** ```json { "dependencies": { "next": "14.1.0", "react": "18.2.0", "react-dom": "18.2.0", "sharp": "0.32.6", "@types/node": "20.11.19", "@types/react": "18.2.57", "@types/react-dom": "18.2.19" }, "scripts": { "build": "next build", "start": "next start", "dev": "next dev" } } ``` **Next Steps:** - Run `npm run build` to verify bundle sizes in the `.next/analyze` output. - Configure `next.config.js` for edge runtime if targeting global users. - Add `react-icons` for optimized SVG icons (reduces HTTP requests).
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan