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.
npx skills add darellchua2/opencode-config-template --skill nextjs-image-usage-skillgit clone --depth 1 https://github.com/darellchua2/opencode-config-templateWrote 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.
[](https://agentmods.dev/skills/darellchua2/opencode-config-template/nextjs-image-usage-skill)<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/nextjs-image-usage-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/nextjs-image-usage-skill/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.
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/nextjs-image-usage-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/nextjs-image-usage-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.00843 |
| Opus 5.5 | $0.00013 | $0.00337 |
| Sonnet 5.5 | $0.00006 | $0.00169 |
| Haiku 4.5 | $0.00003 | $0.00084 |
Grade A, and why
nextjs-image-usage-skill 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.
How it starts
The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
What this skill does
- Enforces the house rule: every image in Next.js 16 code uses
<Image />, never<img> - Configures remote image sources via
remotePatternsinnext.config.ts - Migrates ≤15 image code across the Next.js 16 breaking changes
When to use
- Any
<img>tag appears in (or is proposed for) Next.js 16 code - Remote images fail to load / console errors about next/image configuration
- Migrating a codebase from Next.js 13/14/15 to 16
- Setting up external image domains or responsive image layouts
House rule: auto-convert <img> → <Image />
When an <img> tag is proposed in Next.js 16 code, convert it automatically:
import Image from 'next/image'- String attributes become JS props:
width="800"→width={800};class→className - Required:
src,alt, and either explicitwidth+heightorfill - Background / cover layouts:
fillinside a positioned parent (relative/absolute), styling viaclassName="object-cover"— not absolute-positioned<img> - Remote
src→ a matchingremotePatternsentry must exist before the image works - Above the fold → add
priority; below the fold stays lazy (default)
Next.js 16 breaking changes (vs ≤15)
| Feature | Next.js ≤15 | Next.js 16 |
|---|---|---|
layout prop |
'fill'/'fixed'/'intrinsic'/'responsive' |
REMOVED — fill boolean or explicit width/height |
objectFit / objectPosition props |
supported | REMOVED — style={{ objectFit, objectPosition }} |
unoptimized prop |
supported | REMOVED — custom loader (({ src }) => src) |
images.domains |
supported | DEPRECATED — use remotePatterns |
remotePatterns |
basic | ENHANCED — wildcard subdomains (**.example.com), port, pathname globs |
Remote configuration (next.config.ts)
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
images: {
remotePatterns: [
{ protocol: 'https', hostname: 'cdn.trusted.com', pathname: '/images/**' },
{ protocol: 'https', hostname: '**.cloudinary.com' },
],
},
}
export default nextConfig
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.
- 2mo ago Changed · -1,217 lines 038c47554920
- 3mo ago First seen · 1,288 lines · 32 tokens per session scan A 8bd18c9fdb5a
nextjs-image-usage-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 32 tokens to every session and 843 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.
nextjs-image-usage-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nextjs-image-usage-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | A | 32 | Claude Code, Codex |
| build-ghost-appTryGhost/Ghost | Skill | 56k | today | MIT | A | 44 | Claude Code, Codex |
| material-ui-tailwindmui/material-ui | Skill | 99k | today | MIT | A | 67 | Claude Code, Codex |
| fuzzy-rankingTanStack/table | Skill | 29k | yesterday | MIT | A | 62 | Claude Code, Codex |
| r3f-best-practiceszebbern/claude-code-guide | Skill | 4.7k | today | MIT | A | 74 | Claude Code, Codex |
| git-safetytamagui/tamagui | Skill | 14k | today | MIT | A | 42 | Claude Code |
| onchainkitalsk1992/CloddsBot | Skill | 3.2k | 22d ago | MIT | A | 24 | Claude Code, Codex |