technical_design_documentation_rule

technical_design_documentation_rule is a cursor rule for Cursor from moclam1905/CocktailRecipes. It costs 14 tokens per session (3,591 once invoked), scanned A, original, MIT.

A rule for writing Technical Design Documents (TDDs), which are written plans for how a software feature should work and be built. It guides analysis of the request, scope, use cases, requirements, and project architecture.

In plain words
What is it for?
Use it to prepare design documents and implementation plans for new Android features or significant changes.
Why use it?
It helps turn a broad feature request into a structured design before implementation, while recording what is included and excluded.

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

Made for: Cursor.

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 technical_design_documentation_rule

README.md
[![agentmods](https://agentmods.dev/badge/rules/moclam1905/cocktailrecipes/technical_design_documentation_rule.svg)](https://agentmods.dev/rules/moclam1905/cocktailrecipes/technical_design_documentation_rule)
Your own site
<a href="https://agentmods.dev/rules/moclam1905/cocktailrecipes/technical_design_documentation_rule"><img src="https://agentmods.dev/badge/rules/moclam1905/cocktailrecipes/technical_design_documentation_rule.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,591 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.00014 $0.03591
Opus 5 $0.00007 $0.01795
Sonnet 5 $0.00003 $0.00718
Haiku 4.5 $0.00001 $0.00359

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

Security

Grade A, and why

technical_design_documentation_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 4d 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/technical_design_documentation_rule.mdc · 244 lines

How it starts

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

Technical Design Documentation Rule

You are a software architect and technical writer for the Android project. Your primary role is to generate comprehensive Technical Design Documents (TDD) for new features or significant changes. Given a feature request or high-level description, you will analyze requirements and the existing codebase, then propose a detailed design and implementation plan following the project's architecture conventions.

Workflow

When a new feature or enhancement is requested, follow these steps:

  1. Understand the Request:

    • Start by clarifying the feature request or user story. Ensure you understand:

      • Purpose: What is the goal of this feature? What problem does it solve or what user need does it fulfill?

      • Scope: Determine the boundaries of the feature. What is included and what is explicitly out-of-scope? (Avoid scope creep by documenting what's not covered.)

      • User Stories / Use Cases: Identify concrete use cases or scenarios. For example, "As a user, I want to..., so that...". These will guide functional requirements.

      • Non-Functional Requirements: Consider performance (e.g., response time, memory usage), security (e.g., data protection, authentication), scalability (if applicable to app usage or data volume), and maintainability constraints.

      • Dependencies: Check if this feature depends on existing modules or external services (e.g., requires a backend API endpoint, or interacts with another feature in the app).

      • Existing Functionality: Find out if similar functionality exists in the app that can be referenced or reused. (For instance, if adding a new list screen, is there an existing list feature that can serve as a template?)

    • Do not proceed until all ambiguities are resolved. Ask questions to the stakeholders or product owners if any aspect is unclear.

  2. Analyze the Existing Codebase:

    • Review the current project structure and relevant sections using the provided documentation (especially the Project Overview and any architecture docs) and source code. Identify how the new feature will fit in:

Read the full file on GitHub · 244 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. 4d ago First seen · 244 lines · 3,591 tokens per session scan A dd20b663ffd4

Subscribe to this mod's changes

technical_design_documentation_rule is a cursor rule published in the GitHub repository moclam1905/CocktailRecipes (1 stars, last pushed 1y ago), licensed MIT. It adds 14 tokens to every session and 3,591 once invoked, about $0.0001 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.

Related

Other cursor rules, from other repositories

android-project

Core behavior rules for AI agents working on this Android project.

JoDaBaRo/agentic-mobile-rules · 8,084 tokens

ios-project-bootstrap

Walks a developer through bootstrapping a BRAND-NEW iOS project for agentic CLI delivery — Apple Developer Program enrollment, App Store Connect listing, provisioning profiles, Fastlane setup from scratch, Firebase App Distribution, TestFlight + App Store first upload. Use when the user says they're starting a new iOS…

JoDaBaRo/agentic-mobile-rules · 108 tokens

android-project-bootstrap

Walks a developer through bootstrapping a BRAND-NEW Android project for agentic CLI delivery — creating the Firebase project, registering the Android app, setting up App Distribution, creating the Google Play Console listing, wiring API access, and installing the Gradle plugins. Use when the user says they're starting…

JoDaBaRo/agentic-mobile-rules · 106 tokens

android-project-onboarding

Walks a new developer through one-time setup of an EXISTING configured Android project from a blank macOS install — JDK, Android SDK, AVD, scrcpy, shell env vars, credential files, and a smoke-test build. Assumes Firebase project + Play Console listing already exist; user just needs to acquire credentials. Use when…

JoDaBaRo/agentic-mobile-rules · 161 tokens

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

ios-project

Core behavior rules for AI agents working on this iOS project.

JoDaBaRo/agentic-mobile-rules · 4,506 tokens