agentleFS
jacksonwilliamsvajacksonwilliamsva/kiro-skills-library/skills/source-driven-development/SKILL.md

source-driven-development

Skill2 starsChanged 7 months agoMITView on GitHub

Use when writing framework-specific code, building boilerplate, or implementing patterns where correctness depends on a specific library version — grounds every decision in official documentation, not training data

83 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility-engineering, constraint-driven-development and 3 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.
  • steven123397Skill

    accessibility-engineering

    Audits existing interfaces for WCAG 2.2 AA conformance and remediates the violations found. Use when auditing a page or component for accessibility, running axe-core or pa11y, triaging a11y violations, or checking screen reader and contrast issues before shipping.

    Also in 4 projects that use this

  • MrCipherSmithSkill

    constraint-driven-development

    Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.

    Also in 18 projects that use this

  • LLl0k0laDSkill

    incremental-implementation

    Use when implementing any feature or change that touches more than one file. Use when you're about to write a large amount of code at once, or when a task feels too big to land in one step.

    Also in 44 projects that use this

  • PostHogSkill

    karpathy-guidelines

    Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria. Based on https://github.com/multica-ai/andrej-karpathy-skills.

    Also in 4 projects that use this

  • MicrosoftSkill

    accessibility

    Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 2 are common, 3 are distinctive, and 2 are very specific to this project.

  • 2

    Common

    Most of the 76 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every framework-specific decision must be backed by official documentation.

    line 8
  2. Very specific:

    Read the dependency file (package.json, pyproject.toml, go.mod, Cargo.toml, etc.).

    line 16
  3. Distinctive:

    If versions are ambiguous, ask — the version determines correct patterns.

    line 23
  4. Common:

    Use API signatures from docs, not memory

    line 44
  5. Distinctive:

    Use modern patterns; skip deprecated APIs

    line 45
  6. Very specific:

    No docs found? Say so: UNVERIFIED: No official documentation found.

    line 58
  7. Common:

    Not reading dependency files before implementing

    line 76

“Common” is measured: kept by at least 6 in 10 of the 76 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

Every framework-specific decision must be backed by official documentation. Training data goes stale, APIs get deprecated. Verify, cite, show sources.

Skip when: pure logic, version-independent changes, or user wants speed over verification.

Process: DETECT → FETCH → IMPLEMENT → CITE

1. Detect Stack and Versions

Read the dependency file (package.json, pyproject.toml, go.mod, Cargo.toml, etc.). State what you found:

STACK: React 19.1.0, Vite 6.2.0 (from package.json)
→ Fetching official docs for relevant patterns.

If versions are ambiguous, ask — the version determines correct patterns.

2. Fetch Official Documentation

Primary — Context7 MCP tools:

  1. resolve-library-id — resolve library name to Context7 ID
  2. query-docs — fetch specific docs for the pattern needed

Fallback: ctx_fetch_and_index(url, source) + ctx_search(queries) for docs not in Context7.

PrioritySource
1Official docs (Context7 or direct fetch)
2Official blog / changelog
3Web standards (MDN, web.dev)
4Compatibility tables (caniuse.com)

Never cite as primary: Stack Overflow, blog posts, tutorials, training data.

3. Implement from Docs

  • Use API signatures from docs, not memory
  • Use modern patterns; skip deprecated APIs
  • Flag anything unverified
  • When docs conflict with project code, surface the conflict — don't silently pick one

4. Cite Sources

// React 19 form handling — Source: https://react.dev/reference/react/useActionState#usage
const [state, formAction, isPending] = useActionState(submitOrder, initialState);
  • Full URLs with anchors
  • Quote passages for non-obvious decisions
  • No docs found? Say so: UNVERIFIED: No official documentation found.

Anti-Rationalization Table

RationalizationReality
"I'm confident about this API"Confidence is not evidence. Verify.
"Fetching docs wastes tokens"Hallucinating an API wastes more — one fetch prevents hours of rework.
"The docs won't have what I need"If docs don't cover it, the pattern may not be recommended.
"I'll just mention it might be outdated"A disclaimer doesn't help. Verify and cite, or flag as unverified.
"This is a simple task"Simple tasks with wrong patterns become templates copied everywhere.

Red Flags

  • Writing framework code without checking docs for that version
  • Using "I believe" or "I think" about an API instead of citing
  • Implementing a pattern without knowing which version it applies to
  • Citing blog posts instead of official documentation
  • Not reading dependency files before implementing
  • Delivering code without source citations

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.