Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

linear-local-first-architecture

Skill by boraoztunc

Guides developers on building web apps that feel instant, using local-first data, optimistic updates and fast-loading techniques. It is aimed at teams building productivity tools where perceived speed matters.

  • Score 78
  • 489 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install linear-local-first-architecture

Built from the published package, never by AI.

git clone --depth 1 https://github.com/boraoztunc/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/linear-local-first-architecture ~/.claude/skills/linear-local-first-architecture

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install linear-local-first-architecture in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill gives an assistant guidance for building web apps that feel instant. It is based on the architecture the source attributes to Linear. The core idea is that the UI reads from local state rather than the server. Mutations update a local observable first, then sync to the server in the background. The skill also covers loading performance: modern-only builds, per-package code chunks, parallel preloading, a service worker that precaches route chunks, inlined critical CSS, and font preloading.

The skill is written for developers building productivity tools, local-first applications, or interfaces where users complain about spinners or slowness despite acceptable latency. It also covers keyboard-first design, granular observables for surgical re-renders, and animating only transform and opacity. It includes code examples for each tactic and a list of anti-patterns to avoid.

Written from the project's SKILL.md and checked against it.

What it can do

  • Local-first data architectureExplains storing the workspace in IndexedDB and hydrating an in-memory observable store so the UI reads locally.
  • Optimistic updatesShows how to apply mutations locally first and sync in the background, with SWR or Tanstack Query as options.
  • Modern-only bundle buildsDescribes a Vite config with esnext target, no polyfills, and one chunk per npm package.
  • Parallel chunk preloadingShows declaring critical chunks with modulepreload in head to avoid sequential fetch waterfalls.
  • Service worker precachingDescribes precaching route chunks, icons and fonts after the first page load so later navigations use cache.
  • Inline critical CSS and boot logicShows inlining CSS and a small script that restores shell settings before the first paint.
  • Font loadingCovers preloading a variable woff2 font with correct CORS mode and using font-display swap.
  • Background authenticationExplains rendering local data first and redirecting to login only when the server rejects the session.
  • Granular observablesDescribes making each model property its own observable so only the components that read it re-render.
  • Keyboard-first interactionCovers shortcuts for common actions and a command palette that searches the local object pool.

Try asking

  • Show me how to add optimistic updates to my issue tracker's edit flow.
  • Help me set up a local-first store with IndexedDB and MobX for my app.
  • Review my Vite config and split vendor code into one chunk per package.

Good to know

  • Written as architecture guidance based on Linear's approach, not as a runnable library.
  • Recommends targeting modern browsers only and dropping legacy polyfills.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: linear-local-first-architecture/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to linear-local-first-architecture

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

linear-local-first-architecture: common questions

Does this skill require a specific framework?

The source's examples use React, MobX and Vite, and it names MobX as Linear's store. It also mentions Tanstack Query and SWR as alternatives for optimistic updates.

What is the main idea behind this skill?

The network is the bottleneck, so the UI should read from local state and sync to the server in the background. Mutations apply locally first and roll back only if the server rejects them.

Does it cover animations?

Yes. It recommends animating only transform and opacity, avoiding layout-triggering properties like width, height and margin, and keeping transition durations short.

How do I install linear-local-first-architecture?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is linear-local-first-architecture free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is linear-local-first-architecture safe to use?

It scores 78 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to linear-local-first-architecture?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

linear-local-first-architecture Install

Add to stack

Loading.