llamafarm: Skill for Claude Code

.claude/skills/config-skills/SKILL.md

config-skills is a skill for Claude Code from llama-farm/llamafarm. It costs 30 tokens per session (1,250 once invoked), scanned A, original, Apache-2.0.

A set of guidelines for LlamaFarm’s configuration module, which reads YAML, TOML, and JSON settings and checks them against a defined structure. It covers Pydantic models, JSON Schema, generated Python types, and validation.

In plain words
What is it for?
Use it when loading or saving configuration, generating configuration files or Python types, resolving schema references, or writing custom validation.
Why use it?
It reduces errors when configuration formats, generated types, and validation rules need to stay in agreement.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is llama-farm/llamafarm's own configuration. It tells Claude Code how to work on llamafarm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llamafarm configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python config/validate_config.py path/to/llamafarm.yaml --verbose.

Reuse

Borrowing it

Nothing to install: this file belongs to llama-farm/llamafarm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/llama-farm/llamafarm/main/.claude/skills/config-skills/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/llama-farm/llamafarm

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 config-skills

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/llama-farm/llamafarm/config-skills"><img src="https://agentmods.dev/badge/skills/llama-farm/llamafarm/config-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,250 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.00030 $0.01250
Opus 5 $0.00015 $0.00625
Sonnet 5 $0.00006 $0.00250
Haiku 4.5 $0.00003 $0.00125

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

Security

Grade A, and why

config-skills 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 12d 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/config-skills/SKILL.md · 147 lines

How it starts

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

Config Skills for LlamaFarm

Specialized patterns and best practices for the LlamaFarm configuration module (config/).

Module Overview

The config module provides YAML/TOML/JSON configuration loading with JSONSchema validation:

File Purpose
datamodel.py Generated Pydantic v2 models from JSONSchema
schema.yaml Source JSONSchema with $ref references
compile_schema.py Dereferences $ref to create schema.deref.yaml
generate_types.py Generates Python types via datamodel-codegen
validators.py Custom validators beyond JSONSchema capabilities
helpers/loader.py Config loading, saving, and format detection
helpers/generator.py Template-based config generation

This module follows Python conventions from the shared skills:

Topic Link Key Relevance
Patterns python-skills/patterns.md Pydantic v2, dataclasses
Typing python-skills/typing.md Type hints, constrained types
Testing python-skills/testing.md Pytest fixtures, temp files
Errors python-skills/error-handling.md Custom exceptions
Security python-skills/security.md Path traversal prevention

Framework-Specific Checklists

Checklist Description
pydantic.md Pydantic v2 configuration patterns, nested models, constraints
jsonschema.md JSONSchema generation, dereferencing, validation

Tech Stack

  • Python: 3.11+
  • Pydantic: v2 with ConfigDict, Field, constrained types
  • JSONSchema: Draft-07 with $ref dereferencing via jsonref
  • YAML: ruamel.yaml for comment-preserving read/write
  • Code Generation: datamodel-codegen for schema-to-Pydantic

Key Patterns

Read the full file on GitHub · 147 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. 12d ago First seen · 147 lines · 30 tokens per session scan A d0f470c12838

Subscribe to this mod's changes

config-skills is a skill published in the GitHub repository llama-farm/llamafarm (838 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 1,250 once invoked, about $0.0002 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.