tsq-nextjs

tsq-nextjs is a skill for Claude Code from sonature-lab/timsquad. It costs 50 tokens per session (516 once invoked), scanned A, original, MIT.

A guide for building applications with the Next.js App Router, the file-based routing system in modern Next.js. It explains when to use server-side or browser-side components and how to handle data and loading states.

In plain words
What is it for?
Use it when creating routes, choosing between Server and Client Components, implementing Server Actions, configuring caching, and improving image, font, and link loading.
Why use it?
It helps avoid unnecessary browser code, incorrect data access, weak caching decisions, and missing loading or error handling.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when creating routes, choosing between Server and Client Components, implementing Server Actions, configuring caching, and improving image, font, and link loading.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sonature-lab/timsquad/tsq-nextjs
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 sonature-lab/timsquad --skill tsq-nextjs
Clone the repo
git clone --depth 1 https://github.com/sonature-lab/timsquad

Made for: Claude Code.

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 tsq-nextjs

README.md
[![agentmods](https://agentmods.dev/badge/skills/sonature-lab/timsquad/tsq-nextjs/github.svg)](https://agentmods.dev/skills/sonature-lab/timsquad/tsq-nextjs)
Your own site
<a href="https://agentmods.dev/skills/sonature-lab/timsquad/tsq-nextjs"><img src="https://agentmods.dev/badge/skills/sonature-lab/timsquad/tsq-nextjs/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 tsq-nextjs

Your own site · 80×15
<a href="https://agentmods.dev/skills/sonature-lab/timsquad/tsq-nextjs"><img src="https://agentmods.dev/badge/skills/sonature-lab/timsquad/tsq-nextjs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 516 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.00050 $0.00516
Opus 5 $0.00025 $0.00258
Sonnet 5 $0.00010 $0.00103
Haiku 4.5 $0.00005 $0.00052

Measured 9d ago against content hash 80641ba02b7e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

tsq-nextjs 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 9d 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.

templates/base/skills/tsq-nextjs/SKILL.md · 65 lines

What it actually says

Next.js 15+ App Router

철학

  • Server First — 기본은 서버 컴포넌트
  • Progressive Enhancement — 필요할 때만 클라이언트
  • Colocation — 관련 파일은 가까이

Server vs Client 판단

조건 컴포넌트
데이터 페칭, DB 접근, 민감 정보 Server (기본)
인터랙션, 이벤트, useState/useEffect Client ('use client')
브라우저 API 필요 Client
그 외 Server

Rules

컴포넌트

  • 기본은 Server Component
  • 인터랙션 필요할 때만 'use client'
  • Client Component는 작게 유지 (leaf에 배치)
  • 금지: Server Component에서 useState/useEffect, 불필요한 'use client'

데이터

  • Server Component에서 데이터 페칭
  • mutation은 Server Actions 사용
  • 적절한 캐싱 전략 설정
  • 금지: Client Component에서 직접 DB 접근

라우팅

  • 파일 기반 라우팅 규칙 준수
  • Route Group으로 레이아웃 관리
  • loading.tsx, error.tsx 제공

성능 최적화

  • next/image: sizes 속성
  • next/font: 폰트 최적화
  • next/link: 프리페칭
  • 동적 import: 무거운 컴포넌트 지연 로딩

Checklist

Priority Item
CRITICAL Server Component 기본 사용
CRITICAL 'use client' 최소화
HIGH Server Actions로 mutation
HIGH 적절한 캐싱 전략
MEDIUM loading.tsx, error.tsx 구현
MEDIUM Metadata 설정

참조

  • rules/app-router.md — 디렉토리 구조, Server/Client 예시, Data Fetching, Metadata, Loading/Error 패턴
Files

What ships with it

1 file 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. 9d ago First seen · 65 lines · 50 tokens per session scan A 80641ba02b7e

Subscribe to this mod's changes

tsq-nextjs is a skill published in the GitHub repository sonature-lab/timsquad (11 stars, last pushed 9d ago), licensed MIT. It adds 50 tokens to every session and 516 once invoked, about $0.0003 per session on Opus 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-30.

Related

Other skills, from other repositories

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json…

shadcn-ui/ui · 94 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

a2ui-renderer

Render A2UI (Agent-to-UI declarative surfaces) in CopilotKit v2. Enable the runtime via CopilotRuntime({ a2ui: {...} }), then enable the provider via . Auto-activates via /info — do NOT manually pass renderActivityMessages. createA2UIMessageRenderer ships from @copilotkit/react-core/v2; low-level primitives…

CopilotKit/CopilotKit · 175 tokens

copilotkit-develop

Use when building AI-powered features with CopilotKit v2 -- adding chat interfaces, registering frontend tools, sharing application context with agents, handling agent interrupts, and working with the CopilotKit runtime.

CopilotKit/CopilotKit · 46 tokens

copilotkit-integrations

Use when wiring an external agent framework (LangGraph, CrewAI, PydanticAI, Mastra, ADK, LlamaIndex, Agno, Strands, Microsoft Agent Framework, or others) into a CopilotKit application via the AG-UI protocol.

CopilotKit/CopilotKit · 61 tokens

copilotkit-upgrade

Use when migrating a CopilotKit v1 application to v2 -- updating package imports, replacing deprecated hooks and components, switching from GraphQL runtime to AG-UI protocol runtime, and resolving breaking API changes.

CopilotKit/CopilotKit · 48 tokens