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.
npx agentmods add rules/baijum/ukulele-companion/shared-modulegit clone --depth 1 https://github.com/baijum/ukulele-companionWrote 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.
[](https://agentmods.dev/rules/baijum/ukulele-companion/shared-module)<a href="https://agentmods.dev/rules/baijum/ukulele-companion/shared-module"><img src="https://agentmods.dev/badge/rules/baijum/ukulele-companion/shared-module.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00336 |
| Opus 5 | $0.00000 | $0.00168 |
| Sonnet 5 | $0.00000 | $0.00067 |
| Haiku 4.5 | $0.00000 | $0.00034 |
Grade A, and why
shared-module 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.
What it actually says
Shared Module Rules (KMP)
No platform imports in domain/
Code in shared/src/commonMain/.../domain/ is pure Kotlin business logic. It MUST NOT import platform-specific classes (java.*, android.*, Foundation, UIKit, etc.).
If platform functionality is needed, use expect/actual declarations in the platform/ package.
expect/actual conventions
expectdeclarations live inshared/src/commonMain/.../platform/PlatformUtils.ktactualimplementations:shared/src/androidMain/(java.util),shared/src/iosMain/(Foundation)- Current expect/actual functions:
generateUuid,currentTimeMillis,currentYear,currentDayOfYear
New business logic goes here
When adding new business logic (chord detection, transposition, music theory, pitch detection, scales), implement it in the shared module so both Android and iOS benefit.
Package structure
| Package | Contents |
|---|---|
domain/ |
Pure Kotlin business logic — chord detection, transposition, pitch detection, scales, music theory, tuner note mapping |
data/ |
Data models, enums (UkuleleTuning, Notes), configuration types |
platform/ |
expect/actual declarations for platform-specific functions |
Do not create new packages without discussion. Maintain the existing structure.
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.
- 4d ago First seen · 34 lines · 0 tokens per session scan A c0753865ad5c
shared-module is a cursor rule published in the GitHub repository baijum/ukulele-companion (13 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 336 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-30.
Other cursor rules, from other repositories
cursorrules
You are an expert in SceneView, the #1 open-source 3D & AR SDK for Android and iOS.
20-android-kotlin
There is no Android SDK/NDK available in most sandboxed dev environments (including the one this codebase was originally scaffolded in). Kotlin code in this repo has generally not been compiled or run by an AI agent — only reviewed for logical consistency. Treat Kotlin changes as higher-risk than Rust changes until a…
project-conventions
PriceGrab project conventions (override selected global rules).
project-status
PriceGrab shipped state and product backlog (read first).
specify-rules
For additional context about the active feature, technologies, project structure, shell commands, and other important information.
implementation_rule
Rule: Define the implementation guidelines for a task checklist – following Clean Architecture standards for Android-Kotlin.