source-driven-development

source-driven-development is a skill for Claude Code, Codex from GuillemRoca/agent-skills-android. It costs 40 tokens per session (1,517 once invoked), scanned A, original, MIT.

A development rule for using official documentation when writing framework-specific Android code. TDD here means decisions are based on source documentation rather than memory or forum answers.

In plain words
What is it for?
Use it for Jetpack Compose, Room, Hilt, Navigation, WorkManager, Android APIs, Gradle plugins, and libraries such as Retrofit or Coil.
Why use it?
It reduces the risk of using outdated or incorrect APIs, especially when Android libraries and versions change. It requires checking authoritative sources before implementing framework integrations.

Skill for Claude CodeCodex

Part of the agent-skills-android plugin — 29 skills, 7 commands, 3 agents, 1 hook shipped together

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/guillemroca/agent-skills-android/source-driven-development
Any agent
npx skills add GuillemRoca/agent-skills-android --skill source-driven-development
Clone the repo
git clone --depth 1 https://github.com/GuillemRoca/agent-skills-android

Made for: Claude Code, Codex.

Or install agent-skills-android, the plugin that ships this one along with the rest of its 29 skills, 7 commands, 3 agents, 1 hook.

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/guillemroca/agent-skills-android/source-driven-development.svg)](https://agentmods.dev/skills/guillemroca/agent-skills-android/source-driven-development)
Your own site
<a href="https://agentmods.dev/skills/guillemroca/agent-skills-android/source-driven-development"><img src="https://agentmods.dev/badge/skills/guillemroca/agent-skills-android/source-driven-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,517 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.00040 $0.01517
Opus 5 $0.00020 $0.00758
Sonnet 5 $0.00008 $0.00303
Haiku 4.5 $0.00004 $0.00152

Measured 3d ago against content hash fe96e96cb1de, 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 3d 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 · 167 lines

How it starts

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

Source-Driven Development

Overview

Every framework-specific decision must be backed by official documentation. Don't guess at APIs, don't rely on outdated patterns, don't trust Stack Overflow answers for current behavior. Fetch the source, read it, implement from it, and cite it.

When to Use

  • Implementing any Jetpack library feature (Compose, Room, Navigation, WorkManager, etc.)
  • Using Android platform APIs (permissions, intents, lifecycle)
  • Configuring Gradle plugins or build system features
  • Integrating third-party libraries (Retrofit, Hilt, Coil, etc.)
  • Unsure about the correct API for a given Android version

Skip when: Using internal project code that doesn't touch framework APIs.

Source Authority Hierarchy

Priority Source Example
1 (highest) Official Android docs developer.android.com, kb:// URIs from android docs fetch
2 Official library docs Kotlin docs, Hilt docs, Retrofit docs
3 AndroidX release notes developer.android.com/jetpack/androidx/releases
4 Official blog posts android-developers.googleblog.com
5 Material Design docs m3.material.io
6 Source code (AndroidX, AOSP) cs.android.com, GitHub mirrors
Never Stack Overflow, tutorials, AI summaries, Medium posts

Core Process

Step 1: Detect Stack and Versions

  1. Read build.gradle.kts to determine:
    • compileSdk, minSdk, targetSdk
    • Compose compiler version and BOM version
    • Library versions (Room, Hilt, Navigation, etc.)
    • Kotlin version
// Example: build.gradle.kts
android {
    compileSdk = 37   // Android 17; requires AGP 9.1.1+
    defaultConfig {
        minSdk = 26
        targetSdk = 37
    }
}

dependencies {
    implementation(platform("androidx.compose:compose-bom:2025.01.00"))
    implementation("androidx.room:room-runtime:2.7.0")
}

Step 2: Fetch Official Documentation

  1. Go to the source for every framework API:
    • Compose: developer.android.com/develop/ui/compose
    • Room: developer.android.com/training/data-storage/room
    • Hilt: dagger.dev/hilt/
    • Navigation: developer.android.com/guide/navigation
    • WorkManager: developer.android.com/develop/background-work/persistent
    • Kotlin: kotlinlang.org/docs
    • Material 3: m3.material.io/develop/android
    • Coroutines: kotlinlang.org/docs/coroutines-guide.html

Read the full file on GitHub · 167 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. 3d ago First seen · 167 lines · 40 tokens per session scan A fe96e96cb1de

Subscribe to this mod's changes

source-driven-development is a skill published in the GitHub repository GuillemRoca/agent-skills-android (2 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 1,517 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.