lenis-react

lenis-react is a skill for Claude Code, Codex from 12-Studio/Tackl. It costs 84 tokens per session (3,038 once invoked), scanned A, original, MIT.

A React and Next.js integration guide for Lenis, a library that makes scrolling feel smoother and supports effects linked to scrolling. It covers the current package and its React provider and hook.

In plain words
What is it for?
Use it to add smooth scrolling, scroll-triggered animations, parallax, programmatic navigation, or scroll event handling to a React app.
Why use it?
It helps avoid using outdated Lenis packages or missing the CSS needed for correct page layout. It also explains how to connect scrolling with React components and animation tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add smooth scrolling, scroll-triggered animations, parallax, programmatic navigation, or scroll event handling to a React app.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/12-studio/tackl/lenis-react
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 12-Studio/Tackl --skill lenis-react
Clone the repo
git clone --depth 1 https://github.com/12-Studio/Tackl

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lenis-react

README.md
[![agentmods](https://agentmods.dev/badge/skills/12-studio/tackl/lenis-react/github.svg)](https://agentmods.dev/skills/12-studio/tackl/lenis-react)
Your own site
<a href="https://agentmods.dev/skills/12-studio/tackl/lenis-react"><img src="https://agentmods.dev/badge/skills/12-studio/tackl/lenis-react/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lenis-react

Your own site · 80×15
<a href="https://agentmods.dev/skills/12-studio/tackl/lenis-react"><img src="https://agentmods.dev/badge/skills/12-studio/tackl/lenis-react.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,038 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.03038
Opus 5.5 $0.00034 $0.01215
Sonnet 5.5 $0.00017 $0.00608
Haiku 4.5 $0.00008 $0.00304

Measured 1mo ago against content hash 3d4e53fb7fc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lenis-react scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/lenis-react/SKILL.md · 440 lines

How it starts

The opening of the file, as written. The whole thing — 440 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lenis Smooth Scroll — React Integration Skill

Overview

Lenis (Latin: "smooth") is a lightweight, performant smooth-scroll library by darkroom.engineering. The lenis/react sub-package provides a <ReactLenis> context provider and a useLenis hook, eliminating prop-drilling and tying the RAF loop into React's lifecycle automatically.

Package landscape (important — use the right import):

Package Status Import
lenis ✅ Current (v1+) import { ReactLenis, useLenis } from 'lenis/react'
@studio-freight/lenis ⚠️ Legacy import Lenis from '@studio-freight/lenis'
@studio-freight/react-lenis ⚠️ Legacy import { ReactLenis } from '@studio-freight/react-lenis'

Always use the current lenis package unless the project explicitly pins to the legacy packages.


1. Installation

npm install lenis
# or
yarn add lenis
# or
pnpm add lenis

Also add Lenis's required CSS (critical for correct layout):

/* In your global CSS file */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

Or import from the package directly:

import 'lenis/dist/lenis.css'

2. Minimal Setup (full-page scroll)

// app/layout.tsx  OR  src/main.tsx
import { ReactLenis } from 'lenis/react'

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <ReactLenis root>
          {children}
        </ReactLenis>
      </body>
    </html>
  )
}
  • root prop: Lenis hijacks the <html> scroll container (the standard full-page case).
  • RAF loop is managed automatically when autoRaf is not disabled.

3. Common Configuration Options

Pass options via the options prop on <ReactLenis>:

Read the full file on GitHub · 440 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 440 lines · 84 tokens per session scan A 3d4e53fb7fc7

Subscribe to this mod's changes

lenis-react is a skill published in the GitHub repository 12-Studio/Tackl (10 stars, last pushed 5d ago), licensed MIT. It adds 84 tokens to every session and 3,038 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

react-doctor

Use when finishing a feature, fixing a bug, before committing React code, or when the user types /doctor, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.

darkroomengineering/satus · 70 tokens

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.

shadcn-ui/ui · 61 tokens

reskin

Author a NEW skin for the reskinnable-demo app. A skin is a self-contained domain plugin under src/skins/ / that implements the frozen Skin contract (src/shell/skin-contract.ts) to swap the app's entire experience — brand, theme, layout, pages, tools, data, and agent — as a live sales demo. Use when the user says "add…

CopilotKit/CopilotKit · 154 tokens

nextjs-pages-router

Set up tRPC in Next.js Pages Router with createNextApiHandler, createTRPCNext, withTRPC HOC, SSR via ssr option and ssrPrepass, SSG via createServerSideHelpers with getStaticProps, and server-side helpers for getServerSideProps prefetching.

trpc/trpc · 67 tokens

non-json-content-types

Handle FormData, file uploads, Blob, Uint8Array, and ReadableStream inputs in tRPC mutations. Use octetInputParser from @trpc/server/http for binary data. Route non-JSON requests with splitLink and isNonJsonSerializable() from @trpc/client. FormData and binary inputs only work with mutations (POST).

trpc/trpc · 75 tokens

server-side-calls

Call tRPC procedures directly from server code using t.createCallerFactory() and router.createCaller(context) for integration testing, internal server logic, and custom API endpoints. Catch TRPCError and extract HTTP status with getHTTPStatusCodeFromError(). Error handling via onError option.

trpc/trpc · 61 tokens