source-driven-development

Verifies framework code against official documentation and cites sources for every implementation decision.

1|Updated Sep 4, 2026
One-click install
npx skills add https://github.com/SanHsien/agent-skills --skill source-driven-development-sanhsien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: source-driven-development
Source: https://github.com/SanHsien/agent-skills/tree/main/skills/source-driven-development
Command: npx skills add https://github.com/SanHsien/agent-skills --skill source-driven-development-sanhsien

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI-generated framework code often relies on stale training data, producing deprecated APIs and outdated patterns that break against current library versions. This Skill forces every framework-specific decision to be verified against official documentation before implementation. ## Core Features & Use Cases - Stack Detection: Reads dependency files like package.json, composer.json, requirements.txt, go.mod, Cargo.toml, or Gemfile to identify exact framework versions before writing code. - Documentation-Grounded Implementation: Fetches the specific official docs page for the feature being built, follows documented patterns, and avoids deprecated APIs. - Source Citation: Adds full-URL citations in code comments and conversation so every non-trivial decision is verifiable by the user. - Use Case: When building a React 19 form, the Skill detects the version from package.json, fetches react.dev docs for useActionState, implements the modern pattern instead of manual useState loading flags, and cites the source. ## Quick Start Ask the agent to implement a framework-specific feature using source-driven development so it checks the official docs for your installed versions and cites its sources.

Frequently Asked Questions about source-driven-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make AI-generated code follow current framework documentation?

Use source-driven development: detect exact versions from dependency files like package.json, fetch the relevant official docs page, implement the documented pattern, and cite the source URL. This prevents deprecated APIs from training data entering your codebase.

How to verify an API pattern against official docs before implementing?

Identify the library version from your dependency file, then fetch the specific documentation page for that feature rather than the homepage. Extract API signatures, deprecation warnings, and migration notes, and implement exactly what the docs show.

Which sources are authoritative for framework code decisions?

Official documentation ranks first, followed by official blogs and changelogs, then web standards references like MDN, then compatibility data like caniuse.com. Stack Overflow answers, blog tutorials, and AI-generated summaries are never treated as primary sources.

What happens when official docs conflict with existing project code?

The conflict is surfaced to the user with both options explained, such as using the modern documented pattern versus matching the existing codebase convention. The Skill never silently picks one approach without user input.

When should I not use documentation verification for code?

Skip it when correctness does not depend on a specific version, such as renaming variables, fixing typos, moving files, or writing pure logic like loops and data structures that behaves identically across versions.

Can fetched documentation content contain prompt injection attacks?

Yes, fetched pages are treated as untrusted data. The Skill extracts only API definitions, examples, and deprecation notes while ignoring directives aimed at the model, and never hardcodes outbound endpoints from docs into generated code without surfacing them.