agentleFS
drvossdrvoss/everything-copilot-cli/skills/development/source-driven-development/SKILL.md

source-driven-development

Skill47 starsChanged 4 months agoMITView on GitHub

Use when implementing framework-specific or library-specific code — verify non-trivial APIs against official documentation before writing them, and record the source in task notes, docs, or the PR.

38 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use using-agent-skills, shipping-and-launch and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LLl0k0laDSkill

    using-agent-skills

    Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.

    Also in 18 projects that use this

  • LLl0k0laDSkill

    shipping-and-launch

    Use when preparing to deploy to production. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.

    Also in 19 projects that use this

  • az9713Skill

    code-simplification

    Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

    Also in 23 projects that use this

  • +6 more from LLl0k0laD

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 36 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not look up docs before you know what version the project actually uses.

    line 43
  2. Distinctive:

    Use this priority order:

    line 55
  3. Distinctive:

    Avoid secondary tutorials as your primary authority.

    line 62
  4. Distinctive:

    Write down the specific API shape before coding:

    line 66
  5. Distinctive:

    Only write the framework code after you can point to the official pattern it follows.

    line 76
  6. Distinctive:

    Prefer durable project context over scattering source URLs through product code.

    line 94
  7. Distinctive:

    No durable note for a non-obvious framework decision

    line 129
  8. Very specific:

    Use Context7 or direct doc fetches when you need current, version-aware guidance

    line 140
  9. Distinctive:

    If a decision still feels fuzzy after reading docs, stop and isolate the unknown before coding

    line 142

“Common” is measured: kept by at least 6 in 10 of the 36 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Source-Driven Development

AI agents can confidently generate outdated or deprecated framework code. Source-driven development replaces memory-based implementation with a repeatable loop: detect the version, fetch the official source, implement from that source, then capture the reference in durable notes.

When to Use

  • Writing framework-specific code you have not touched recently
  • Using a library that changed versions since the last time you used it
  • Implementing middleware, routing, configuration, hooks, or SDK integration
  • Seeing deprecation warnings or suspecting API drift
  • Asking an AI agent to write code where stale training data could mislead it

When NOT to Use

Instead of source-driven-developmentUse
Writing pure business logic with no framework dependencyspec-driven-development
Reusing a stable internal utility with known behaviorimplement directly
Looking up tool setup for MCP serversmcp-ecosystem

Prerequisites

  • You know which library, framework, or SDK is involved
  • You can determine the exact version used in the project
  • You have access to official docs, release notes, or migration guides

Workflow

1. Detect the exact version

Do not look up docs before you know what version the project actually uses.

Check package manifests, lockfiles, or module metadata first.
Examples:
- package.json / package-lock.json
- pyproject.toml / requirements.txt
- go.mod

2. Fetch the official source

Use this priority order:

  1. Official documentation site
  2. Official GitHub repository changelog or migration guide
  3. Official release notes or blog posts
  4. MDN for web platform APIs

Avoid secondary tutorials as your primary authority.

3. Extract the exact pattern you need

Write down the specific API shape before coding:

  • function or hook name
  • required arguments
  • return shape
  • error handling behavior
  • version-specific caveats

4. Implement to match the source

Only write the framework code after you can point to the official pattern it follows.

Implementation rule:
- use the documented API shape
- follow the documented order of operations
- avoid "this is probably how it works" guesses

5. Capture the reference in durable project context

For non-obvious decisions, record the source in one of:

  • task notes
  • ADR or design doc
  • PR description
  • surrounding documentation

Prefer durable project context over scattering source URLs through product code.

Examples

Next.js middleware change

1. Confirm the project uses Next.js 15 in package.json
2. Fetch the current official middleware docs
3. Verify the App Router middleware API shape
4. Implement the middleware
5. Note the docs URL and the version-specific behavior in the PR description

Using Context7 for live docs

use context7
How do I configure middleware in Next.js 15 App Router?

Common Rationalizations

RationalizationReality
"I remember how this API works"Framework APIs drift quietly between versions.
"The AI probably knows the current syntax"Model training data is not a guarantee of version accuracy.
"A blog post is good enough"Secondary tutorials often lag behind the official API.
"I'll fix deprecations later"Deprecations compound and make migrations harder.

Red Flags

  • Guessing parameter order or option names
  • Writing code before checking the installed version
  • Mixing patterns from multiple major versions
  • No durable note for a non-obvious framework decision

Verification

  • The project version was checked before implementation
  • The implementation matches an official source
  • Non-obvious API choices were captured in docs, notes, or the PR
  • No deprecated or guessed API usage remains

Tips

  • Use Context7 or direct doc fetches when you need current, version-aware guidance
  • Pair this with spec-driven-development when an interface and a framework decision both matter
  • If a decision still feels fuzzy after reading docs, stop and isolate the unknown before coding

See Also

  • spec-driven-development — define interfaces and boundaries first
  • context-engineering — provide the right source context to the agent
  • mcp-ecosystem — set up documentation-oriented MCP tools

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.