lenis-integration

lenis-integration is a skill for Claude Code, Codex from adilkalam/orca. It costs 28 tokens per session (1,228 once invoked), scanned A, original, MIT.

Integration guidance for Lenis, a web library that makes scrolling feel smoother, with Next.js and GSAP, a web animation library.

In plain words
What is it for?
Use it to add smooth scrolling to a Next.js App Router site and connect scrolling updates to GSAP animations.
Why use it?
It helps avoid lifecycle and synchronization problems when smooth scrolling and scroll-triggered animations are used together.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to add smooth scrolling to a Next.js App Router site and connect scrolling updates to GSAP animations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adilkalam/orca/lenis-integration
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 adilkalam/orca --skill lenis-integration
Clone the repo
git clone --depth 1 https://github.com/adilkalam/orca

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-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/adilkalam/orca/lenis-integration/github.svg)](https://agentmods.dev/skills/adilkalam/orca/lenis-integration)
Your own site
<a href="https://agentmods.dev/skills/adilkalam/orca/lenis-integration"><img src="https://agentmods.dev/badge/skills/adilkalam/orca/lenis-integration/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-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/adilkalam/orca/lenis-integration"><img src="https://agentmods.dev/badge/skills/adilkalam/orca/lenis-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,228 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.
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.00028 $0.01228
Opus 5.5 $0.00011 $0.00491
Sonnet 5.5 $0.00006 $0.00246
Haiku 4.5 $0.00003 $0.00123

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

Security

Grade A, and why

lenis-integration 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 2mo 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-integration/SKILL.md · 200 lines

How it starts

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

Lenis Integration

Setup with Next.js App Router

Installation

npm install lenis

Provider Component

Create a reusable Lenis provider for the App Router:

'use client';

import { useEffect, useRef } from 'react';
import Lenis from 'lenis';
import { gsap } from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';

gsap.registerPlugin(ScrollTrigger);

export function LenisProvider({ children }: { children: React.ReactNode }) {
  const lenisRef = useRef<Lenis | null>(null);

  useEffect(() => {
    const lenis = new Lenis({
      lerp: 0.1,       // from design-dna motion.scroll.lenisLerp
      smoothWheel: true,
      orientation: 'vertical',
    });

    lenisRef.current = lenis;

    // Connect Lenis to GSAP ScrollTrigger
    lenis.on('scroll', ScrollTrigger.update);

    gsap.ticker.add((time) => {
      lenis.raf(time * 1000);
    });
    gsap.ticker.lagSmoothing(0);

    return () => {
      lenis.destroy();
      lenisRef.current = null;
    };
  }, []);

  return <>{children}</>;
}

Layout Integration

Wrap the App Router layout:

// app/layout.tsx
import { LenisProvider } from '@/components/lenis-provider';

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <LenisProvider>{children}</LenisProvider>
      </body>
    </html>
  );
}

ScrollTrigger Integration

GSAP Ticker Connection (Required)

Lenis replaces the browser's native scroll. ScrollTrigger must be told about Lenis scroll position:

// This is the critical wiring -- without it, ScrollTrigger won't work with Lenis
lenis.on('scroll', ScrollTrigger.update);
gsap.ticker.add((time) => {
  lenis.raf(time * 1000);
});
gsap.ticker.lagSmoothing(0);

ScrollTrigger.scrollerProxy (Advanced)

For custom scroll containers (not document-level), use scrollerProxy:

ScrollTrigger.scrollerProxy(container, {
  scrollTop(value) {
    if (arguments.length) {
      lenis.scrollTo(value, { immediate: true });
    }
    return lenis.scroll;
  },
  getBoundingClientRect() {
    return {
      top: 0, left: 0,
      width: window.innerWidth,
      height: window.innerHeight,
    };
  },
});

Read the full file on GitHub · 200 lines

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. 2mo ago First seen · 200 lines · 28 tokens per session scan A 8bbc7e002d80

Subscribe to this mod's changes

lenis-integration is a skill published in the GitHub repository adilkalam/orca (2 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 1,228 once invoked, about $0.0001 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-09-03.

Related

lenis-integration compared with skills from other repositories

lenis-integration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lenis-integrationadilkalam/orcaSkill21mo agoMITA28Claude Code, Codex
build-ghost-appTryGhost/GhostSkill56ktodayMITA44Claude Code, Codex
material-ui-tailwindmui/material-uiSkill99ktodayMITA67Claude Code, Codex
fuzzy-rankingTanStack/tableSkill29k7d agoMITA62Claude Code, Codex
r3f-best-practiceszebbern/claude-code-guideSkill4.7ktodayMITA74Claude Code, Codex
git-safetytamagui/tamaguiSkill14k4d agoMITA42Claude Code
onchainkitalsk1992/CloddsBotSkill3.1k17d agoMITA24Claude Code, Codex