source-driven-development

source-driven-development is a skill for Claude Code, Codex from vanja-emichi/a0_agent_skills. It costs 47 tokens per session (1,997 once invoked), scanned A, original, MIT.

A coding practice that checks official documentation before using a library, framework, or API. It verifies current method names, settings, and usage.

In plain words
What is it for?
Use it when building with changing tools, third-party services, or unfamiliar APIs, and when an error may indicate an API mismatch.
Why use it?
It reduces errors caused by outdated training examples, invented APIs, and differences between software versions.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/vanja-emichi/a0_agent_skills/source-driven-development
Any agent
npx skills add vanja-emichi/a0_agent_skills --skill source-driven-development
Clone the repo
git clone --depth 1 https://github.com/vanja-emichi/a0_agent_skills

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 source-driven-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/vanja-emichi/a0_agent_skills/source-driven-development.svg)](https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/source-driven-development)
Your own site
<a href="https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/source-driven-development"><img src="https://agentmods.dev/badge/skills/vanja-emichi/a0_agent_skills/source-driven-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,997 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00047 $0.01997
Opus 5 $0.00023 $0.00999
Sonnet 5 $0.00009 $0.00399
Haiku 4.5 $0.00005 $0.00200

Measured 4d ago against content hash 1956f9950688, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

source-driven-development 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 4d 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/source-driven-development/SKILL.md · 244 lines

How it starts

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

Source-Driven Development

Overview

Read authoritative sources before writing code that depends on them. AI training data has a cutoff — and even before that cutoff, documentation often reflects correct usage better than the patterns in training data. When building against a library, framework, or API, consulting the real source prevents hallucinated APIs, outdated patterns, and subtle bugs from subtle version differences.

When to Use

  • Using a library or framework that may have changed since training
  • Unsure about current API signatures, hooks, or configuration
  • Working with rapidly evolving tools (AI SDKs, cloud APIs, build tools)
  • Implementing against a third-party API (authentication flows, endpoints, payloads)
  • Encountering an error that suggests an API mismatch

When NOT to use:

  • Writing pure algorithms or logic with no external dependencies
  • Working with extremely stable, well-established APIs (e.g., basic array methods)
  • You have high confidence the pattern is current and correct

The Source-Driven Protocol

Step 1: Identify What Needs Verification

Before writing code that uses an external library or API, list the assumptions you're making:

ASSUMPTIONS TO VERIFY:
- Does this hook/function/method still exist with this name?
- Are the arguments in the right order?
- Is this the recommended pattern (not deprecated)?
- Are there new required parameters or options?
- Does the return type match what I expect?

Step 2: Fetch Authoritative Sources

Use Agent Zero tools to retrieve current documentation:

For package documentation (npm):

document_query: https://www.npmjs.com/package/<package-name>

For GitHub repos:

browser: open → navigate to github.com/<owner>/<repo>/blob/main/README.md
browser: content → read the README

For official docs sites:

browser: open → navigate to the official docs URL
browser: content → read the relevant section

For specific API references:

document_query: <direct URL to the API reference page>

Read the full file on GitHub · 244 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. 4d ago First seen · 244 lines · 47 tokens per session scan A 1956f9950688

Subscribe to this mod's changes

source-driven-development is a skill published in the GitHub repository vanja-emichi/a0_agent_skills (5 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 1,997 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-31.