few-shot-examples

few-shot-examples is a skill for Claude Code from magnusrodseth/dotfiles. It costs 79 tokens per session (840 once invoked), scanned A, original, no licence file.

Guidance for creating few-shot examples: sample inputs and outputs that show an AI how to perform a task.

In plain words
What is it for?
Writing or reviewing prompts that need reliable output formatting, data extraction, classification, or other repeatable AI behaviour.
Why use it?
It helps prompts produce consistent formats, structured or JSON results, classifications, and extractions while reducing made-up answers and edge-case errors.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Writing or reviewing prompts that need reliable output formatting, data extraction, classification, or other repeatable AI behaviour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magnusrodseth/dotfiles/few-shot-examples
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 magnusrodseth/dotfiles --skill few-shot-examples
Clone the repo
git clone --depth 1 https://github.com/magnusrodseth/dotfiles

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 few-shot-examples

README.md
[![agentmods](https://agentmods.dev/badge/skills/magnusrodseth/dotfiles/few-shot-examples/github.svg)](https://agentmods.dev/skills/magnusrodseth/dotfiles/few-shot-examples)
Your own site
<a href="https://agentmods.dev/skills/magnusrodseth/dotfiles/few-shot-examples"><img src="https://agentmods.dev/badge/skills/magnusrodseth/dotfiles/few-shot-examples/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 few-shot-examples

Your own site · 80×15
<a href="https://agentmods.dev/skills/magnusrodseth/dotfiles/few-shot-examples"><img src="https://agentmods.dev/badge/skills/magnusrodseth/dotfiles/few-shot-examples.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 840 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 unknown 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.00079 $0.00840
Opus 5 $0.00039 $0.00420
Sonnet 5 $0.00016 $0.00168
Haiku 4.5 $0.00008 $0.00084

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

Security

Grade A, and why

few-shot-examples 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.

.claude/skills/few-shot-examples/SKILL.md · 51 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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 · 51 lines · 79 tokens per session scan A 74c4a7e34e0e

Subscribe to this mod's changes

few-shot-examples is a skill published in the GitHub repository magnusrodseth/dotfiles (2 stars, last pushed today), with no licence file. It adds 79 tokens to every session and 840 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

prompt-engineer

Writes, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency, implementing chain-of-thought or few-shot…

Jeffallan/claude-skills · 93 tokens

prompt-master

Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool (LLM, Cursor, Midjourney, image AI, video AI, coding agents, etc.). Does not activate for general conversation, coding tasks, document writing, or other…

nidhinjs/prompt-master · 78 tokens

ai-workflow-architect

Designs AI systems, automations, and agent workflows for a business — identifying which manual work is worth automating, how to structure the system, which tools fit, and what could go wrong. Use this to automate part of an operation, design an agent or MCP workflow, reduce repetitive manual work, connect tools into a…

cbrock84/headcount · 89 tokens

few-shot-examples

Curated few-shot examples for construction AI tasks: classification, extraction, analysis. Domain-specific examples for improved LLM performance.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 30 tokens

down-skilling

Distill Opus-level reasoning into optimized instructions for Haiku 4.5 (and Sonnet). Generates explicit, procedural prompts with n-shot examples that maximize smaller model performance on a given task. Use when user says "down-skill", "distill for Haiku", "optimize for Haiku", "make this work on Haiku", "generate…

oaustegard/claude-skills · 95 tokens

813-regulations-iso-42001

Use when reviewing, designing, or modifying Java enterprise systems that use GenAI, LLMs, AI-assisted coding, RAG, AI agents, generated code, generated dependencies, prompt workflows, external model providers, or AI-enabled business logic and need ISO/IEC 42001 AI management system-aware engineering guidance. Part of…

jabrena/plinth · 77 tokens