Logo di Webapp

Webapp

OrganizzazionePopolare
kortix-ai
webapp

Use for fullstack web apps built with the bundled Express, Vite, React, Tailwind, and Drizzle template.

Panoramica

Pubblicato dakortix-ai
RepositoryCompanyOS
Nome della skillwebapp
Stelle
20.8K
Fork
3.5K
File inclusi
78
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 78

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da kortix-ai su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Webapp in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/general-knowledge-worker/skills/webapp
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kortix-ai/CompanyOS.git /tmp/CompanyOS
mkdir -p .claude/skills
cp -r /tmp/CompanyOS/packages/starter/templates/general-knowledge-worker/skills/webapp .claude/skills/webapp
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Webapp in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Webapp non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Webapp non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Fullstack Web App

Build fullstack web applications using an opinionated pre-wired template: Express + Vite + React + Tailwind CSS + shadcn/ui + Drizzle ORM.

Load the kortix-design skill before you write UI. It owns every visual choice: tokens, type, color, states, motion, the slop sweep and the screenshot check. This skill owns the template and the build.

Getting Started

Copy the template into its own App folder (apps/<name>/ by default; one folder per App), then install dependencies:

bash
cp -r skills/webapp/template/ apps/<name>/
cd apps/<name>
npm install

Run the dev server:

bash
npm run dev

This starts an Express server for the backend and a Vite server for the frontend on the same port.

Build Order

Follow this order strictly:

  1. Schema — Define your data model in shared/schema.ts first
  2. Frontend — Build all React components and pages
  3. Backend — Implement Express routes in server/routes.ts
  4. Integration — Wire frontend to backend via queryClient

Architecture

  • Put as much of the app in the frontend as possible. The backend should only be responsible for data persistence and making API calls.
  • Minimize the number of files. Collapse similar components into a single file.
  • If the app is complex and requires functionality that can't be done in a single request, it is okay to stub out the backend and implement the frontend first.
  • CRITICAL: NEVER use localStorage, sessionStorage, indexedDB, or cookies — they are blocked in the sandboxed iframe and will crash the page. Use React state or context for transient data, and the backend API + in-memory storage for persistent data.

Webapp Template — Design Notes

The shared design files (see References below) are the authoritative source for all design decisions — colors, fonts, type scale, spacing. This section only covers template-specific workflow that the shared files don't address.

Replacing red Placeholders in index.css

The template's index.css ships with red placeholder values that must be replaced before the app looks right. Infer a palette from the subject matter first — a fitness tracker should feel energetic (bright accent, dark surfaces), a recipe app should feel warm (amber/terracotta tones), a finance dashboard should feel precise (cool neutrals, blue accent). Derive colors from the product's domain, not from a generic default.

When deriving a custom palette, use HSL values in H S% L% format (no hsl() wrapper) and maintain both :root and .dark variants following the same variable structure in index.css.

If the subject gives no clear color signal and the user provided no direction after being asked, fall back to the Kortix neutral system from skills/website-building/shared/01-design-tokens.md and use a single accent color only where emphasis is needed.

Webapp-Specific Type and Font Rules

  • text-xl is the max heading size. Web apps (SaaS, dashboards, admin, e-commerce) never use text-2xl or above. Exception: brand experience marketing/landing hero sections — see Art Direction table below.
  • Font variable mapping: The shared files define --font-display and --font-body. In this Tailwind template, both map to font-sans — use bold/semibold weight for display territory, regular weight for body territory.

Art Direction by Product Type

Product TypeConcept-Driven DirectionToken Starting Points
SaaS / productivityA writing tool is calm and typographic. A project management tool is structured and efficient. A design tool is visual and spacious. Match personality to purpose.Neutral surfaces. 1 accent. Body font that matches the product's character.
Dashboard / analyticsFinance dashboards demand precision and sobriety. Marketing dashboards can be warmer and more visual. The data's domain sets the tone.Sans-serif + monospace for data. High-contrast. Load skills/webapp/dashboards.md.
E-commerceLuxury goods: muted surfaces, serif display, restrained accent. Kids' toys: warm, bright, rounded. Outdoor gear: earthy tones, rugged sans-serif.Warm palette derived from product category. Strong CTA contrast.
Brand experienceA music streaming brand differs from an architecture studio. Derive everything from the brand.Display font at --text-xl in-app; --text-2xl ONLY for marketing/landing hero sections. 1-2 custom accent hues. Theatrical motion.
Admin panelUtilitarian, clear, efficient. A healthcare admin panel feels different from a developer tools panel.Inter or DM Sans (loaded via CDN, not system fonts). Functional color only. Dense layout.

Best Practices by App Type

SaaS Products & Dashboards

  • Sidebar navigation with collapsible sections and pinnable items
  • Dark mode as first-class — many dashboard users work in low-light environments
  • Real-time updates — WebSockets or SSE for live data. "Last updated: 2m ago" for non-live data
  • Export everything — CSV, PDF, image for every chart and table
  • Role-based views — admin vs member vs viewer with different permissions
  • Onboarding checklist — persistent progress tracker for new users

E-Commerce & Online Stores

  • Product pages: Hero image (zoomable, multi-angle), price, "Add to Cart" above the fold, shipping info, reviews
  • Fast checkout. Guest checkout always. Auto-fill. 3 steps max: Cart > Shipping > Payment
  • Faceted search with real-time results. Filter by price, category, rating, availability
  • Cart persistence. Survives page refresh and session
  • Trust signals. Secure checkout badge, return policy, shipping estimates, reviews, payment logos
  • Mobile shopping. Sticky "Add to Cart", swipeable images, Apple Pay / Google Pay

Brand Experiences & Marketing Apps

  • Scroll-driven narrative. GSAP ScrollTrigger for pinned sections, scrubbing, parallax
  • Full-screen immersive sections. Hero moments with video, animation, or interactive 3D
  • Micro-interactions that reward exploration. Hover effects, parallax, cursor-following
  • Performance despite richness. Lazy-load heavy content. Intersection Observer. Compress media
  • Responsive storytelling. Pinned horizontal scroll on desktop becomes vertical stack on mobile

Types

  • Always think through and generate the data model first in shared/schema.ts to ensure consistency between frontend and backend. Do this before writing any other code.
  • Keep the data model as simple as possible (e.g. don't add createdAt and updatedAt fields unless it is strictly necessary).
  • For each model, additionally write:
    • The insert schema using createInsertSchema from drizzle-zod. Use .omit to exclude any auto-generated fields.
    • The insert type using z.infer<typeof insertSchema>
    • The select type using typeof table.$inferSelect.
  • Common pitfalls to avoid:
    • When writing array columns in the Drizzle schema, always call .array() as a method on the column type, not as a wrapper function. That is, do text().array() instead of array(text()).

Storage

  • Make sure to update IStorage in server/storage.ts to accommodate any storage CRUD operations you need in the application.
  • Ensure that storage interface uses the types from @shared/schema.ts.

Backend

  • Write API routes inside registerRoutes(httpServer, app) in server/routes.ts. The app parameter is the Express instance — use app.get(), app.post(), etc. to define routes.
  • Always use the storage interface to do any CRUD operations. Keep the routes as thin as possible.
  • Validate the request body using Zod schemas from drizzle-zod before passing it to the storage interface.
  • Do NOT create a separate server file — the template's server/index.ts already sets up Express and calls registerRoutes.

Frontend

  • CRITICAL: You MUST use useHashLocation from wouter/use-hash-location in your Router and App.tsx. When writing or rewriting App.tsx, always include import { useHashLocation } from "wouter/use-hash-location" and pass hook={useHashLocation} to the Router component. Without this, all routing will break after deployment because sites are served inside iframes where path-based routing breaks.
    • Routes use hash paths: /#/, /#/tasks, /#/boats/:id
    • Use <Link href="/tasks"> — wouter handles the hash prefix automatically when useHashLocation is the router hook.
    • If you need to add a new page, add them to the client/src/pages directory and register them in client/src/App.tsx.
    • If there are multiple pages, use a sidebar for navigation. Use the Link component or the useLocation hook from wouter instead of modifying the window directly.
    • NEVER use href="#section" anchor links for in-page navigation — hash routing intercepts these as route changes, causing a "not found" error. Instead, use onClick handlers with document.getElementById('section')?.scrollIntoView({ behavior: 'smooth' }) to scroll to sections within the same page.
  • For forms, always use shadcn's useForm hook and Form component from @/components/ui/form which wraps react-hook-form.
    • When appropriate, use the zodResolver from @hookform/resolvers/zod to validate the form data using the appropriate insert schema from @shared/schema.ts.
    • Use .extend to add validation rules to the insert schema.
    • Remember that the form component is controlled, ensure you pass default values to the useForm hook.
  • Always use @tanstack/react-query when fetching data.
    • When appropriate, ensure you strongly type the query using the appropriate select type from @shared/schema.ts.
    • Prefer the default queryFn (which routes through API_BASE for deployment). If you must write a custom queryFn (e.g., for response parsing or query params), use apiRequest from @/lib/queryClient — NEVER use raw fetch(). Raw fetch() bypasses __PORT_5000__ URL rewriting and API calls will 404 after deployment.
    • Use apiRequest from @/lib/queryClient for ALL HTTP requests to the backend (GET, POST, PATCH, DELETE) — both in queries and mutations.
      • Always make sure to invalidate the cache by queryKey after a mutation is made. Don't forget to import queryClient from @lib/queryClient!
      • For hierarchical or variable query keys use an array for cache segments so cache invalidation works properly. That is, do queryKey: ['/api/recipes', id] instead of queryKey: [/api/recipes/${id}].
    • Show a loading or skeleton state while queries (via .isLoading) or mutations (via .isPending) are being made
    • The template uses TanStack Query v5 which only allows the object form for query related functions. e.g. useQuery({ queryKey: ['key'] }) instead of useQuery(['key'])
  • Common pitfalls to avoid:
    • The useToast hook is exported from @/hooks/use-toast.
    • If a form is failing to submit, try logging out form.formState.errors to see if there are form validation errors for fields that might not have associated form fields.
    • DO NOT explicitly import React as the existing Vite setup has a JSX transformer that does it automatically.
    • Use import.meta.env.<ENV_VAR> to access environment variables on the frontend instead of process.env.<ENV_VAR>. Note that variables must be prefixed with VITE_ in order for the env vars to be available on the frontend.
    • will throw an error if it has no value prop. Provide a value prop like this
  • Add a data-testid attribute to every HTML element that users can interact with (buttons, inputs, links, etc.) and to elements displaying meaningful information (user data, status messages, dynamic content, key values).
    • Use unique, descriptive identifiers following this pattern:
      • Interactive elements: {action}-{target} (e.g., button-submit, input-email, link-profile)
      • Display elements: {type}-{content} (e.g., text-username, img-avatar, status-payment)
    • For dynamically generated elements (lists, grids, repeated components), append a unique identifier at the end: {type}-{description}-{id}
      • Examples: card-product-${productId}, row-user-${index}, text-price-${itemId}
      • The dynamic identifier can be any unique value (database ID, index, key) as long as it's unique within that group
    • Keep test IDs stable and descriptive of the element's purpose rather than its appearance or implementation details.

Components: shadcn/ui on Base UI

The components in client/src/components/ui/ are shadcn/ui on Base UI (@base-ui/react), not Radix. Their names, variants and look are shadcn's. Never install @radix-ui/*, radix-ui, cmdk or vaul. Do not run npx shadcn add: every component is already in the template, and the registry ships Tailwind v4 classes this v3 template cannot use. To add a component, write it on Base UI in the same style as the existing files.

What differs from older shadcn examples:

  • render replaces asChild. Pass the element to render as render; its children stay where they are.
    • <DialogTrigger render={<Button variant="outline" />}>Edit</DialogTrigger>
    • <SidebarMenuButton render={<Link href="/tasks" />}>Tasks</SidebarMenuButton>
    • <Button render={<a href="/docs" />} nativeButton={false}>Docs</Button>: a Button that renders a non-button element also needs nativeButton={false}.
  • Menu items use onClick, not onSelect (DropdownMenuItem, ContextMenuItem, MenubarItem). CommandItem keeps onSelect.
  • Accordion and ToggleGroup take arrays. defaultValue={["item-1"]}; add multiple to allow more than one open or pressed item.
  • Select shows the selected SelectItem's text in <SelectValue placeholder="…" />. When the items are built outside the <Select> tree, pass items={[{ value, label }]} to Select as well.
  • State styling uses Base UI attributes. Write data-[open]:, data-[checked]:, data-[active]: (tabs), data-[pressed]: (toggles), data-[highlighted]: (menu rows), data-[popup-open]: (a trigger whose menu is open). There is no data-[state=…] on these components.
  • Toasts: toast({ title, description, variant, action }) from @/hooks/use-toast works anywhere; <Toaster /> in App.tsx renders them.

Styling and Theming

  • Uses Tailwind CSS v3. Use @tailwind base; @tailwind components; @tailwind utilities; directives in CSS. Do NOT use @import "tailwindcss" or @theme syntax — those are v4 and will crash the dev server.
  • When defining custom properties in index.css that will be used by a tailwind config, always use H S% L% (space separated with percentages after Saturation and Lightness) (and do not wrap in hsl()).
    • For example: --my-var: 23 10% 23%;
  • Analyze the comments inside of index.css to determine how to set colors — replacing every red placeholder. Infer a palette from the product's subject matter first (see "Replacing red Placeholders" above). Use Kortix HSL values from skills/website-building/shared/01-design-tokens.md only as a last-resort fallback when both inference and asking the user yield no direction. Do NOT forget to replace every single instance of red. Pay attention to what you see in index.css.
  • Use the @-prefixed paths to import shadcn components and hooks.
  • Use icons from lucide-react to signify actions and provide visual cues. Use react-icons/si for company logos.
  • User may attach assets (images, etc.) in their request.
    • If the user asks you to include attached assets in the app, you can reference them in the frontend with the @assets/... import syntax.
    • For example, if the user attached asset is at attached_assets/example.png, you can reference it in the frontend with import examplePngPath from "@assets/example.png".

Dark Mode

  1. Set darkMode: ["class"] in tailwind.config.ts and define color variables in :root and .dark CSS classes
  2. Create ThemeProvider with useState seeded from window.matchMedia("(prefers-color-scheme: dark)"), and a useEffect to toggle the "dark" class on document.documentElement. Do not use localStorage or cookies for theme persistence — they are blocked in the sandboxed iframe.
  3. When not using utility class names configured in tailwind.config.ts, always use explicit light/dark variants for ALL visual properties: className="bg-white dark:bg-black text-black dark:text-white". When using utility classes configured in tailwind config, you can assume these already been configured to automatically adapt to dark mode.

Running the Project

Run npm run dev to start the development server. This starts Express for the backend and Vite for the frontend on the same port. After making edits, the server will automatically reload.

Installing Packages

If you need to install additional packages, run npm install <package-name>.

Testing

Read skills/website-building/shared/12-playwright-interactive.md for testing and QA. Use Playwright via agent-browser to navigate, interact with, and screenshot your local dev server.

Deployment

Static-only apps (no server logic):

Build the frontend and deploy the static output:

bash
cd apps/<name>
npm run build

Then preview the built app locally with a real command such as python3 -m http.server 3000 from the output directory, or use the repo's actual deployment command if one exists.

Apps with backend (most webapp projects):

The template runs Express on port 5000. After building, deploy the static output and the backend server handles API calls via port proxy:

  1. Build: npm run build
  2. Start the production server locally with node dist/index.cjs via pty_spawn when you need a production-style verification pass.
  3. If a real deployment workflow exists for the target repo, use that exact workflow instead of inventing a platform-specific deploy command.

Keep API paths and environment assumptions explicit so local verification works before any deployment step.

On Kortix (when kortix apps ls exits 0): deploy with the kortix-apps system skill (kortix system-skills get kortix-apps), only after the user asks to publish.

  • Static-only app: npm run build in apps/<name>, then kortix apps deploy apps/<name>/dist/public --type static --spa. No machine, no compute cost.
  • App with the Express backend: a server App. Add a Dockerfile that builds the app, then deploy apps/<name> with --type dockerfile --on-demand --command '["node","dist/index.cjs"]' --port 5000. In-memory storage is lost whenever the App stops (an on-demand App stops after 5 idle minutes) and on every new deployment. Say so before you publish.

Config File Guidance

  • Do NOT modify the Vite setup (server/vite.ts and vite.config.ts) unless absolutely necessary. It is already configured to serve the frontend and backend on the same port and handles all the necessary setup for you. Don't add a proxy to the Vite server. All the aliases are already set up for you to import.
  • Do NOT modify drizzle.config.ts unless absolutely necessary. It is pre-configured correctly.

Environment

Read skills/webapp/references/environment.md — pre-installed packages, dev server setup, deployment constraints.

References

Before writing code, read the shared design files below (mandatory). Then identify whether any webapp-specific reference applies to the task. If it does, read it in parallel with skills/webapp/references/environment.md.

Shared design guidance (authoritative — read first):

These files come from the website-building dependency and live under skills/website-building/shared/ — NOT under skills/webapp/shared/.

  • skills/website-building/shared/01-design-tokens.md — Always read. Type scale, spacing system, Kortix palette, base stylesheet. Provides the fallback design system when the user gives no art direction.
  • skills/website-building/shared/02-typography.md — Always read. Font selection (Fontshare preferred), display vs. body rules, font blacklist, variable font features.
  • skills/website-building/shared/03-motion.md — Read when the app has animation. Easing blueprint (which curve for which context), duration quick-reference, spring presets, scroll-driven CLS rules, AnimatePresence patterns. The webapp elevation system for hover/active states is noted inside — the rest of the guidance (easing curves, timing, page transitions, stagger patterns) applies fully.
  • skills/website-building/shared/05-taste.md — Read for any user-facing app. Design taste principles: simplicity, fluidity, feedback, restraint. Defines the "feel" quality bar — progressive disclosure, context-preserving overlays, micro-interactions.
  • skills/website-building/shared/08-standards.md — Always read. Accessibility (WCAG AA, semantic HTML, keyboard nav), performance baselines, and AI aesthetic anti-patterns to avoid.

Webapp-specific references:

These files live under skills/webapp/references/.

  • references/shadcn_component_rules.md - Use when building or modifying UI with Shadcn components (especially Button, Card, Badge, Avatar, and Textarea).
  • references/layout_and_spacing.md - Use when structuring page layouts, sections, spacing rhythm, and component alignment.
  • references/sidebar_rules.md - Use when building or modifying a sidebar.
  • references/visual_style_and_contrast.md - Use when choosing contrast, borders, shadows, pane/panel treatment, and hero image presentation.

SEO

  • Ensure every page has a unique, descriptive title tag (e.g., "Product Name - Category | Site Name")
  • Add meta descriptions that summarize page content concisely
  • Implement Open Graph tags for better social media sharing appearance

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

e 18 file in più.

Domande frequenti

Cosa fa la skill IA Webapp?

Use for fullstack web apps built with the bundled Express, Vite, React, Tailwind, and Drizzle template.

Perché usare Webapp su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Webapp è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Webapp in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/general-knowledge-worker/skills/webapp. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Webapp?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Webapp?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Webapp: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Webapp è gratuita?

È pubblicata su GitHub da kortix-ai. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇