Developing With Turbo Basics logo

Developing With Turbo Basics

Organization
hotwired-laravel
developing-with-turbo-basics

Basics of developing with Turbo Laravel. Activates when starting a new Turbo Laravel project; using dom_id, dom_class, turbo_stream(), or turbo_stream_view() helpers; working with Blade components like x-turbo::frame, x-turbo::stream, x-turbo::stream-from, or x-turbo::refreshes-with; using @domid, @domclass, @channel, or @turbonative directives; checking wantsTurboStream(), wasFromTurboFrame(), or wasFromHotwireNative() request macros; or when the user mentions Hotwire, Turbo, HTML over the wire, or partial page updates.

Overview

Publisherhotwired-laravel
Repositoryturbo-laravel
Skill namedeveloping-with-turbo-basics
Stars
838
Forks
54
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by hotwired-laravel on GitHub. Read the source before you install it.

Installation

Install the Developing With Turbo Basics AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hotwired-laravel/turbo-laravel.git /tmp/turbo-laravel
mkdir -p .claude/skills
cp -r /tmp/turbo-laravel/resources/boost/skills/developing-with-turbo-basics .claude/skills/developing-with-turbo-basics
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Developing With Turbo Basics in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Developing With Turbo Basics on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Developing With Turbo Basics is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Turbo Laravel Basics

Turbo Laravel is a package that integrates Turbo, a set of technologies for building modern web applications, with the Laravel framework. Turbo enhances user experience by enabling partial page updates, real-time interactions, and seamless navigation without full page reloads and with minimal JavaScript.

Philosophy: HTML Over the Wire

Hotwire (HTML Over the Wire) sends HTML instead of JSON from the server, letting the server handle rendering while keeping the browser's job simple. It combines four techniques:

  1. Turbo Drive — Accelerates links and forms by replacing the <body> without full page loads.
  2. Turbo Frames — Decomposes pages into independent segments that scope navigation and can lazy-load.
  3. Turbo Streams — Delivers partial page changes over WebSocket, SSE, or in response to form submissions using eight actions (append, prepend, replace, update, remove, before, after, refresh).
  4. Stimulus — A modest JavaScript framework for the HTML you already have, connecting behavior via data-controller, data-action, and data-target attributes.

Turbo Laravel provides the server-side tooling (Blade components, helpers, broadcasting, and testing utilities) to make these techniques work seamlessly with Laravel.

Turbo Drive

Turbo Drive intercepts all clicks on <a href> links to the same domain and all form submissions, turning them into fetch requests. It replaces the <body> and merges the <head>, keeping the JavaScript window and document objects persistent across navigations. This gives SPA-like speed without client-side routing.

Same deal with forms — their submissions become fetch requests and Turbo Drive follows the redirect and renders the HTML response.

IMPORTANT: Activate the developing-with-turbo-drive skill when starting out working on a feature.

Turbo Frames

Turbo Frames let you place independent segments inside <turbo-frame> elements that scope their navigation. All interaction within a frame (clicking links, submitting forms) happens within that frame, keeping the rest of the page intact. Frames can also lazy-load their content via a src attribute.

@verbatim

@endverbatim

Benefits: independent caching, parallelized execution, and mobile-ready segments.

IMPORTANT: Activate the developing-with-turbo-frames skill when working with Turbo Frames.

Turbo Streams

Turbo Streams let you change any part of the page using a <turbo-stream> element with eight actions: append, prepend, replace, update, remove, before, after, and refresh. They work both as HTTP responses and over WebSocket broadcasts.

@verbatim

@endverbatim

IMPORTANT: Activate the developing-with-turbo-streams skill when working with Turbo Streams.

Blade Components

@verbatim

  • <x-turbo::frame :id="$model"> — Renders a <turbo-frame> with auto DOM ID resolution. :id accepts a string, model instance, or [$model, 'prefix'] array.
  • <x-turbo::stream action="append" :target="$model"> — Renders a <turbo-stream> element. Omits the <template> wrapper for brevity.
  • <x-turbo::stream-from :source="$model" /> — Listens for broadcasts on the model's channel (private by default, add type="public" for public).
  • <x-turbo::refreshes-with method="morph" scroll="preserve" /> — Configures page refresh behavior (morphing and scroll preservation).
  • <x-turbo::exempts-page-from-cache /> — Adds <meta name="turbo-cache-control" content="no-cache">.
  • <x-turbo::exempts-page-from-preview /> — Adds <meta name="turbo-cache-control" content="no-preview">.
  • <x-turbo::page-requires-reload /> — Adds <meta name="turbo-visit-control" content="reload">.
  • <x-turbo::page-view-transition /> — Adds <meta name="view-transition" content="same-origin">.

@endverbatim

Helpers & Directives

@verbatim

  • DOM IDs: dom_id($model) returns e.g. "post_1", dom_id($model, 'edit') returns "edit_post_1". Blade directive: @domid($model, 'prefix').
  • DOM classes: dom_class($model) returns e.g. "post", dom_class($model, 'admin') returns "admin_post". Blade directive: @domclass($model, 'prefix').
  • Channel: @channel($model) outputs the model's broadcast channel name.
  • Conditional: @hotwirenative / @endhotwirenative shows content only for Hotwire Native visits. Also: @unlesshotwirenative, @turbonative / @endturbonative.

@endverbatim

Request Macros

@verbatim

// Check if the request came from a Turbo Frame (optionally a specific one) $request->wasFromTurboFrame(); // bool $request->wasFromTurboFrame(dom_id($post, 'create_comment')); // bool

// Check if the request came from a Hotwire Native client $request->wasFromHotwireNative(); // bool

@endverbatim

Response Helpers

@verbatim

// Return a fluent Turbo Stream builder return turbo_stream()->append('posts', view('posts._post', ['post' => $post]));

// Return multiple streams return turbo_stream([ turbo_stream()->append('posts', view('posts._post', ['post' => $post])), turbo_stream()->update('post_count', view('posts._count', ['count' => $count])), ]);

// Return a Turbo Stream view (renders a Blade view with the Turbo Stream content type) return turbo_stream_view('posts.turbo.created', ['post' => $post]);

@endverbatim

Form Handling

Laravel resource conventions auto-redirect on validation errors:

  • *.store*.create, *.update*.edit, *.destroy*.delete

Performance & UX

@verbatim

  • Preserve elements during navigation: <div id="flash" data-turbo-permanent>...</div>
  • Disable preloading on specific links: <a data-turbo-preload="false">...</a>
  • Disable Turbo on specific elements: <a data-turbo="false">...</a>
  • Re-enable Turbo within a disabled container: <a data-turbo="true">...</a>

@endverbatim

Frequently asked questions

What does the Developing With Turbo Basics AI skill do?

Basics of developing with Turbo Laravel. Activates when starting a new Turbo Laravel project; using dom_id, dom_class, turbo_stream(), or turbo_stream_view() helpers; working with Blade components like x-turbo::frame, x-turbo::stream, x-turbo::stream-from, or x-turbo::refreshes-with; using @domid, @domclass, @channel, or @turbonative directives; checking wantsTurboStream(), wasFromTurboFrame(), or wasFromHotwireNative() request macros; or when the user mentions Hotwire, Turbo, HTML over the wire, or partial page updates.

Why use Developing With Turbo Basics on TypingMind?

Because you install it once and use it with any model. Developing With Turbo Basics is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Developing With Turbo Basics in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hotwired-laravel/turbo-laravel/tree/2.x/resources/boost/skills/developing-with-turbo-basics. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Developing With Turbo Basics?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Developing With Turbo Basics?

As many as you like. As long as a model supports skills, you can use Developing With Turbo Basics with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Developing With Turbo Basics AI skill free?

Yes. It is published on GitHub by hotwired-laravel under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇