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 skills add troyjthomas/ios-agent-skills --skill dark-mode-legibilitygit clone --depth 1 https://github.com/troyjthomas/ios-agent-skillsWrote 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/skills/troyjthomas/ios-agent-skills/dark-mode-legibility)<a href="https://agentmods.dev/skills/troyjthomas/ios-agent-skills/dark-mode-legibility"><img src="https://agentmods.dev/badge/skills/troyjthomas/ios-agent-skills/dark-mode-legibility/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/troyjthomas/ios-agent-skills/dark-mode-legibility"><img src="https://agentmods.dev/badge/skills/troyjthomas/ios-agent-skills/dark-mode-legibility.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00084 | $0.01776 |
| Opus 5.5 | $0.00034 | $0.00710 |
| Sonnet 5.5 | $0.00017 | $0.00355 |
| Haiku 4.5 | $0.00008 | $0.00178 |
Grade A, and why
dark-mode-legibility 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Dark Mode Legibility
Dark mode isn't a polish-pass nice-to-have — it's a correctness concern. The most common dark-mode bugs:
- Are invisible in light mode (you'll never spot them eyeballing the simulator with default appearance)
- Only show on specific tint colors (often pale pastels, especially cream / yellow / pale orange)
- Slip through code review because the code looks identical to the light-mode case that works
This skill is a checklist for catching them.
When to Use
- Every iteration that touches colors, tints, glass surfaces, or button styles
- Once during the polish phase as a deliberate full-app pass
- After any user reports "this looks wrong" — first question: was it light or dark mode?
The First Rule
Test every screen in BOTH modes every iteration. Toggle dark mode in the simulator (Shift + Cmd + A) before claiming any UI fix is done.
If your verification loop only checks one mode, half your screens are unverified.
The Vibrancy-on-Pale-Tint Pitfall
This one is responsible for more "the Continue button is unreadable in dark mode" bugs than any other cause.
The failure mode:
- You apply
.glassProminentbutton style with.tint(SomePaleColor)— e.g. cream, pale yellow, pale orange - In light mode, the system's vibrancy treatment picks a darker contrast color for the label — looks great
- In dark mode, the system's vibrancy picks a tinted-white — which against a cream / yellow / pale-orange pill is illegible
The fix is NOT to force .foregroundStyle(.white) everywhere — that kills vibrancy and produces flat painted-on glyphs (see the polish-and-refinement skill's glass-button rules). The fix is to override the foreground in dark mode only:
Group {
if systemColorScheme == .dark {
Text("Continue")
.foregroundStyle(Color.black)
} else {
Text("Continue")
// light mode: no override, system vibrancy handles it
}
}
.font(.headline)
.frame(maxWidth: .infinity)
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.
- 2mo ago First seen · 138 lines · 84 tokens per session scan A 643a4ff9dd38
dark-mode-legibility is a skill published in the GitHub repository troyjthomas/ios-agent-skills (2 stars, last pushed 5mo ago), licensed MIT. It adds 84 tokens to every session and 1,776 once invoked, about $0.0003 per session on Opus 5.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.
dark-mode-legibility compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dark-mode-legibilitytroyjthomas/ios-agent-skills | Skill | 2 | 5mo ago | MIT | A | 84 | Claude Code, Codex |
| react-native-genmemi-design/design-skills | Skill | 7 | 1mo ago | MIT | A | 23 | Claude Code, Codex |
| swiftui-design-engineeringmemi-design/design-skills | Skill | 7 | 1mo ago | MIT | A | 37 | Claude Code, Codex |
| swift-concurrency-safetymemi-design/design-skills | Skill | 7 | 1mo ago | MIT | A | 34 | Claude Code, Codex |
| swiftui-liquid-glassmemi-design/design-skills | Skill | 7 | 1mo ago | MIT | A | 38 | Claude Code, Codex |
| ios-app-intentsmemi-design/design-skills | Skill | 7 | 1mo ago | MIT | A | 39 | Claude Code, Codex |
| ios-performance-debuggingmemi-design/design-skills | Skill | 7 | 1mo ago | MIT | A | 33 | Claude Code, Codex |