technical-stack

A set of rules for developing MagicTheOfflining, a React Native app that lets users view Magic: The Gathering decks offline. It defines how to use TypeScript, React Native components, Android builds, and project configuration.

In plain words
What is it for?
Use it when creating screens or components, choosing TypeScript patterns, configuring Android builds, handling release signing, or deciding how much UI complexity to add.
Why use it?
It keeps new and changed code consistent with the app’s planned platform, language, structure, and build settings.

Cursor rule for Codex

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/kaelsensei/magicaibuilder/technical-stack
Clone the repo
git clone --depth 1 https://github.com/KaelSensei/MagicAIBuilder

Made for: Codex.

Per session 1,259 This file is loaded in full into every session.
When invoked 1,259 The same file — it is already loaded in full.
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.01259 $0.01259
Opus 5 $0.00629 $0.00629
Sonnet 5 $0.00252 $0.00252
Haiku 4.5 $0.00126 $0.00126

Measured yesterday against content hash 00e6c00b62da, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

technical-stack 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 yesterday.

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.

.agents/rules/technical-stack.mdc · 131 lines

How it starts

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

Technical Stack Rules

These rules guide the AI assistant when generating or modifying code in MagicTheOfflining, a React Native offline MTG deck viewer.

JavaScript / TypeScript

  • Use modern ES modules (import / export) rather than CommonJS (require).
  • Prefer TypeScript; avoid any and use clear types/interfaces.
  • Follow consistent formatting and typing patterns across all .ts and .tsx files.
  • Keep logic simple and explicit; avoid magic abstractions.

React Native

  • Target Android first; iOS support is planned for future releases.
  • Components should prioritize:
    • Readability and speed over fancy animations.
    • Simple layouts and easy‑to‑scan typography.
  • Use functional components with hooks; avoid legacy class components.
  • Keep screens small and focused; share UI via small, well‑named components.

Android Development

Build Configuration

  • Gradle Setup: Use android/app/build.gradle for app-level configuration
  • Signing: Release builds use keystore.properties (never commit this file)
  • ProGuard/R8: Enabled for release builds to minimize APK size
  • Hermes: Enabled by default for better performance
  • New Architecture: Currently disabled (IS_NEW_ARCHITECTURE_ENABLED = false)

Build Commands

  • Debug APK: cd android && ./gradlew :app:assembleDebug
  • Release APK: cd android && ./gradlew :app:assembleRelease
  • Release AAB (for Play Store): cd android && ./gradlew :app:bundleRelease
  • Clean build: cd android && ./gradlew clean

Android-Specific Considerations

  • Min SDK: Check rootProject.ext.minSdkVersion in android/build.gradle
  • Target SDK: Must match latest Android requirements for Play Store
  • Permissions: Declare in android/app/src/main/AndroidManifest.xml
  • File Storage: Use react-native-fs for local file access (images, SQLite)
  • SQLite: Use react-native-sqlite-storage (Android-compatible)
  • Image Caching: Store in app's internal storage for offline access
  • Network: Only allow Moxfield and Scryfall domains; handle offline gracefully

Read the full file on GitHub · 131 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. yesterday First seen · 131 lines · 1,259 tokens per session scan A 00e6c00b62da

Subscribe to this mod's changes

technical-stack is a cursor rule published in the GitHub repository KaelSensei/MagicAIBuilder (2 stars, last pushed 2d ago), licensed MIT. It adds 1,259 tokens to every session, about $0.0063 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.