---
title: "Making AI Write Android Code Our Way: A Practical Guide to Agent Skills"
description: "Medium's small Android team encodes its Kotlin/Compose conventions into an AGENTS.md project context file plus 13 Markdown \"skills\" in .agents/skills/ that act as step-by-step runbooks for Cursor's agent."
url: "https://swe.quest/articles/making-ai-write-android-code-our-way-a-practical-guide-to-agent-skills-60cf67851cb44c95"
canonical: "https://medium.engineering/making-ai-write-android-code-our-way-a-practical-guide-to-agent-skills-4e7b085d8e50"
source: "Medium Engineering"
published: "2026-03-17"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["ai-coding","mobile","ai-agents","jvm","developer-productivity"]
---

# Making AI Write Android Code Our Way: A Practical Guide to Agent Skills

A post on [Medium Engineering](https://swe.quest/sources/medium-eng.md), published 2026-03-17, 9 min read, Case study. Original: [https://medium.engineering/making-ai-write-android-code-our-way-a-practical-guide-to-agent-skills-4e7b085d8e50](https://medium.engineering/making-ai-write-android-code-our-way-a-practical-guide-to-agent-skills-4e7b085d8e50)

## Summary

Medium's small Android team encodes its Kotlin/Compose conventions into an AGENTS.md project context file plus 13 Markdown "skills" in .agents/skills/ that act as step-by-step runbooks for Cursor's agent. The skills cover scaffolding (new Compose screens with ViewModel-injecting and @VisibleForTesting overloads, feature modules, use cases, repositories), migrations (a 60+ entry Material 2 to 3 mapping, ViewModel injection), pattern enforcement (feature flags checked once at ViewModel init, referrer tracking, analytics events) and repetitive workflows such as deeplinks and translations. The main payoff is consistency across the codebase, and new-screen setup drops from most of a morning to a prompt plus a review pass. The team recommends writing AGENTS.md first, starting with boilerplate-heavy tasks, turning repeated PR comments into skills, and having agents draft skills from example PRs. Next steps are splitting AGENTS.md into file-scoped rules and adding commands.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Java & JVM](https://swe.quest/tags/jvm.md) (Languages)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Prerequisites

- Jetpack Compose
- Android Clean Architecture ([easy posts on Mobile](https://swe.quest/tags/mobile.md?difficulty=easy))
- Hilt dependency injection ([easy posts on Application security](https://swe.quest/tags/appsec.md?difficulty=easy))
- AI coding assistants ([easy posts on AI for coding](https://swe.quest/tags/ai-coding.md?difficulty=easy))

## Keywords

AGENTS.md, Cursor, Jetpack Compose, Kotlin, Hilt, Material 3, Apollo GraphQL

## Related posts

- [The Interaction Changes Everything: Treating AI Agents as Collaborators, Not Automation](https://swe.quest/articles/the-interaction-changes-everything-treating-ai-agents-as-collaborators-not-e493683d4eddf19c.md): Engineering@Microsoft · 2025-12-03 · Medium · 9 min read · AI agents, AI for coding, LLMs, Refactoring & migrations
  Microsoft's Entra SDK v1-to-v2 migration across hundreds of repositories succeeded with an AI coding agent only after the team replaced step-by-step checklists with prompts that give the agent a role, mission and permission to use judgment.
- [Reusable Prompts: The Future of Starter Templates](https://swe.quest/articles/reusable-prompts-the-future-of-starter-templates-17f509f51c905431.md): Neon · 2026-01-08 · Medium · 11 min read · AI for coding, AI agents, Developer productivity
  Starter templates can be complemented by reusable, atomic setup "recipes": Markdown prompts that AI coding agents apply to existing codebases, modeled on shadcn/ui's copy-the-code philosophy.
- [Agents need good developer experience too](https://swe.quest/articles/agents-need-good-developer-experience-too-0e7b893ce6372fdc.md): Modal · 2025-11-20 · Easy · 7 min read · Developer productivity, AI agents, AI for coding, API design
  Developer experience principles that make humans productive also help coding agents, because both depend on tight write-run-observe feedback loops.
- [Agent Skills in 2026](https://swe.quest/articles/agent-skills-in-2026-5af883e143d09f0c.md): Neon · 2026-01-22 · Medium · 5 min read · AI agents, AI for coding, Developer tools, PostgreSQL
  Neon is launching neondatabase/agent-skills, a single \`using-neon\` skill installable via \`npx skills add\`, built on the Agent Skills spec that originated with Anthropic and became portable across Claude Code, Cursor, VS Code and others once Vercel's \`npx skills\` CLI solved distribution.
- [Agent experience and agent-led growth: a chat with Caelean Barnes](https://swe.quest/articles/agent-experience-and-agent-led-growth-a-chat-with-caelean-barnes-92e47c9e7361bcbe.md): Mux · 2026-11-03 · Easy · 21 min read · AI agents, AI for coding, Evaluation, Developer tools, Documentation
  Coding agents like Claude Code and Codex increasingly choose which developer tools get adopted, and Gauge measures that choice by running agents in sandboxes, checkpointing sessions, and testing variants of prompts, docs, skills and CLIs against success criteria over many trials.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
