implementation_rule

An Android development rulebook for implementing Kotlin tasks from a technical design document (TDD), a document that explains how a feature should work.

In plain words
What is it for?
Use it to review unfinished tasks, understand feature requirements, write Kotlin code, test changes, and update the checklist.
Why use it?
It keeps implementation tied to the approved design, requirements, task checklist, and code-quality expectations.

Cursor rule for Cursor

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 rules/moclam1905/cocktailrecipes/implementation_rule
Clone the repo
git clone --depth 1 https://github.com/moclam1905/CocktailRecipes

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,799 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.00000 $0.01799
Opus 5 $0.00000 $0.00899
Sonnet 5 $0.00000 $0.00360
Haiku 4.5 $0.00000 $0.00180

Measured 2d ago against content hash 39f8a66d01b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

implementation_rule 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 2d 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.

.cursor/rules/android-kotlin-compose-rules/implementation_rule.mdc · 172 lines

How it starts

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

Implementation Rule

You are a diligent and detail-oriented Android software engineer on the project. You are responsible for implementing development tasks according to the provided Technical Design Document (TDD) and the task breakdown checklist. You will carefully follow the design specifications, write clean and well-documented Kotlin code, and update the task list as you progress.

Workflow

  1. Receive Task: You will be given a specific task from the breakdown checklist, along with the corresponding technical design document, in a format like:

    Implementation:
    Task document: <task_file>.md
    Technical Design Document: <feature_design_document>.md
    

    Begin by verifying which checklist items remain incomplete. Confirm with the team (or via the system) which task to implement before proceeding if there's any doubt.

  2. Review TDD and Task:

    • Carefully read the relevant sections of the <feature_design_document>.md. Pay close attention to:

      • Overview & Purpose – understand what the feature is and why it’s needed.

      • Requirements – both functional and non-functional (e.g., performance, security criteria).

      • Technical Design – details on UI changes, data model changes, API calls, logic flow, dependencies, etc.

      • Error Handling & Edge Cases – how to handle failures or unusual scenarios.

      • Dependencies – external libraries or other modules that this implementation relies on.

    • Ensure you fully understand the specific task description in the checklist and how it fits into the overall feature design.

    • If anything is unclear, ask clarifying questions before writing any code. Do not start implementation until the design and task are fully understood.

  3. Implement the Task:

    • Write code that adheres to the TDD and the project's coding standards.

    • Follow the project’s architecture patterns (Clean Architecture, MVVM). Keep UI code in Composables and business logic in ViewModels or use case classes, etc., as appropriate.

Read the full file on GitHub · 172 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. 2d ago First seen · 172 lines · 1,799 tokens per session scan A 39f8a66d01b7

Subscribe to this mod's changes

implementation_rule is a cursor rule published in the GitHub repository moclam1905/CocktailRecipes (1 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,799 tokens. 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.

Related

Other cursor rules, from other repositories

ios-project-onboarding

Walks a new developer through one-time setup of an EXISTING configured iOS project from a blank macOS install — Xcode, Fastlane, SPM dependencies, code signing, simulator, and a smoke-test build. Assumes App Store Connect + Firebase + Fastlane are already configured upstream; user just needs local toolchain +…

JoDaBaRo/agentic-mobile-rules · 182 tokens

compose-core

Modern Android development rules: Kotlin 2.x with K2, Jetpack Compose, Material 3, state hoisting + StateFlow + collectAsStateWithLifecycle, Hilt with hiltViewModel(), type-safe Navigation Compose, KSP, Version Catalogs, Compose Compiler as Kotlin plugin.

RoninForge/roninforge-kotlin-compose · 2,288 tokens

compose-architecture

Android architecture patterns: feature modularization, repository + data source pattern, sealed interfaces for UI state, ViewModel + StateFlow, Ktor / Retrofit + Kotlin Serialization, Room with Flow returns + KSP, coroutines structured concurrency.

RoninForge/roninforge-kotlin-compose · 0 tokens

android

Android 原生开发约定和最佳实践,包括 Kotlin、Jetpack Compose、架构模式等.

flyeric0212/cursor-rules · 1,831 tokens

android_bak

该规则解释了 Android 原生开发的约定和最佳实践,包括 Kotlin、Java、Jetpack Compose 等。.

flyeric0212/cursor-rules · 1,067 tokens

python

Cursor rule "python" from flyeric0212/cursor-rules, covering 角色, 目标, 编写代码时: and 解决问题时:.

flyeric0212/cursor-rules · 314 tokens