data-model-radar

data-model-radar is a skill for Claude Code, Codex from Terryc21/radar-suite. It costs 60 tokens per session (14,367 once invoked), scanned A, a copy of dividend-analysis, Apache-2.0.

An audit guide for SwiftData and Core Data models, which are the code and storage definitions used to represent application data. It checks fields, data export and import, relationships, unused fields, and safe database changes.

In plain words
What is it for?
Use it to audit models, serialization, relationships, database migrations, unused fields, and time-based risks in SwiftData or Core Data projects.
Why use it?
It helps find data-model problems before they appear as broken workflows, lost data, orphaned records, or failed updates after an app release.

Skill for Claude CodeCodex

Part of the radar-suite plugin — 8 skills shipped together

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 skills/terryc21/radar-suite/data-model-radar
Any agent
npx skills add Terryc21/radar-suite --skill data-model-radar
Clone the repo
git clone --depth 1 https://github.com/Terryc21/radar-suite

Made for: Claude Code, Codex.

Or install radar-suite, the plugin that ships this one along with the rest of its 8 skills.

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 data-model-radar

README.md
[![agentmods](https://agentmods.dev/badge/skills/terryc21/radar-suite/data-model-radar.svg)](https://agentmods.dev/skills/terryc21/radar-suite/data-model-radar)
Your own site
<a href="https://agentmods.dev/skills/terryc21/radar-suite/data-model-radar"><img src="https://agentmods.dev/badge/skills/terryc21/radar-suite/data-model-radar.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 14,367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 86% copy Near-identical to another mod 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.00060 $0.14367
Opus 5 $0.00030 $0.07183
Sonnet 5 $0.00012 $0.02873
Haiku 4.5 $0.00006 $0.01437

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

Security

Grade A, and why

data-model-radar 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.

Origin

This is a copy

86% identical to dividend-analysis — 1,365 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/data-model-radar/SKILL.md · 1,039 lines

How it starts

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

Data Model Radar

Audits the @Model layer for completeness, consistency, and round-trip integrity. Finds model-layer bugs before they manifest as workflow bugs.

Anti-shortcut rule: Do not claim a domain is "clean" without evidence. Every domain grade must cite specific files read and patterns checked. "No dead fields detected from structural analysis" without grepping is a failing grade for the auditor, not a passing grade for the model.

Quick Commands

Command Description
/data-model-radar Full audit across all model-layer domains (9 numbered + 2 sub-domains under Domain 3 + Domain 8 delegated to time-bomb-radar)
/data-model-radar [ModelName] Audit a single model in depth
/data-model-radar models Show all models with risk ranking (no audit, discovery only)
/data-model-radar serialization Domain 2 only — backup/export coverage
/data-model-radar relationships Domain 3 only — cascade rules, orphan risk
/data-model-radar migration Domain 6 only — schema version safety
/data-model-radar dead-fields Domain 5 only — unused model fields
/data-model-radar time-bombs Domain 8 only — deferred operations on aged data
/data-model-radar status Show audit progress
--show-suppressed Show findings suppressed by known-intentional entries
--accept-intentional Mark current finding as known-intentional (not a bug)

Overview

Data Model Radar audits the foundation your app is built on — the data models. Every UI bug, every sync failure, every round-trip data loss traces back to a model-layer decision. This skill finds those issues at the source instead of waiting for them to surface in workflows.

Domain What It Finds Est. Time
1. Field Completeness Missing fields, enum gaps, semantic holes ~3-5 min
1.5 Computed Properties Business logic bugs in computed properties (nil chains, fallback defaults, currency math) ~5-10 min
2. Serialization Coverage Backup/export fields that don't round-trip ~10-20 min
3. Relationship Integrity Cascade rules, inverse relationships, orphan risk ~3-5 min
3a. Cross-Context Mutation @Model param mutated in a manager's own context = crash ~3-5 min
3b. Stale Object After Cross-Context Save Manager saves in own context; caller's @Model reference goes stale ~3-5 min
4. Semantic Clarity nil vs zero ambiguity, missing type distinctions ~2-3 min
5. Field Usage Mapping Dead fields (no UI reads), phantom fields (UI shows, model doesn't store) ~10-20 min
6. Migration Safety Schema versions, VersionedSchema coverage, migration plan gaps ~5-10 min
7. Cross-Model Consistency Identifier strategy, naming conventions, shared pattern violations ~3-5 min
7.5 Near-Duplicate Detection Models sharing 70%+ fields that should be consolidated ~3-5 min
8. Time Bombs (delegated to time-bomb-radar) Deferred operations on aged data — cascade deletes, cache expiry, scheduled side effects ~5-10 min

Read the full file on GitHub · 1,039 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 1,039 lines · 60 tokens per session scan A 5b77237ecad2

Subscribe to this mod's changes

data-model-radar is a skill published in the GitHub repository Terryc21/radar-suite (20 stars, last pushed 7d ago), licensed Apache-2.0. It adds 60 tokens to every session and 14,367 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to dividend-analysis, differing in 1,365 lines, and is treated as a copy.

Related

Other skills, from other repositories