Borrowing it
Nothing to install: this file belongs to TheDecipherist/claude-code-mastery-project-starter-kit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/TheDecipherist/claude-code-mastery-project-starter-kit/main/.claude/skills/schema-source-of-truth/SKILL.mdgit clone --depth 1 https://github.com/TheDecipherist/claude-code-mastery-project-starter-kitWrote 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/thedecipherist/claude-code-mastery-project-starter-kit/schema-source-of-truth)<a href="https://agentmods.dev/skills/thedecipherist/claude-code-mastery-project-starter-kit/schema-source-of-truth"><img src="https://agentmods.dev/badge/skills/thedecipherist/claude-code-mastery-project-starter-kit/schema-source-of-truth/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/thedecipherist/claude-code-mastery-project-starter-kit/schema-source-of-truth"><img src="https://agentmods.dev/badge/skills/thedecipherist/claude-code-mastery-project-starter-kit/schema-source-of-truth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00102 | $0.00877 |
| Opus 5.5 | $0.00041 | $0.00351 |
| Sonnet 5.5 | $0.00020 | $0.00175 |
| Haiku 4.5 | $0.00010 | $0.00088 |
Grade A, and why
schema-source-of-truth 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 — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Schema as a Single Source of Truth
A data entity should be defined once, as a Zod schema, and everything else derived from it. The failure pattern to kill: declaring the same entity separately at each layer, a frontend interface User, a backend interface User, a hand-written API validator, and a manual Mongo $jsonSchema. Four shapes for one entity, kept in sync by hand, guaranteed to drift the first time a field is added or renamed.
One schema per entity, derive the rest
Define the canonical schema once and generate every other representation from it:
- TypeScript type:
type User = z.infer<typeof UserSchema>. Never hand-write aninterfacethat parallels a schema, infer it so it can't fall out of sync. - API validation: parse
req.body/req.query/req.paramsthrough the schema in middleware.safeParseand return 400 on failure, no field-by-fieldifchecks. - Frontend forms: the same schema drives form validation (
zodResolverwith react-hook-form), so client and server reject the same inputs by the same rules. - Pre-write guard: parse before writing to the DB. See the
mongodb-rulesskill for the Mongo-specific parse-before-write and$jsonSchemafloor. - OpenAPI and
$jsonSchema: generate them from the schema (zod-to-openapi,zod-to-json-schema) rather than maintaining them by hand.
Zod is TypeScript-first with zero runtime dependencies, so this costs one small library and removes every duplicated definition.
One base, many variants (they are not identical)
"Same schema everywhere" is the goal, but a create payload is not the stored document and a response is not the request, so don't pretend they're one object. Model it honestly: one base schema, with per-layer variants derived from it, sharing a single origin while differing where they genuinely must.
const UserSchema = z.object({
_id: z.string(),
email: z.string().email(),
name: z.string().min(1),
createdAt: z.date(),
});
const CreateUser = UserSchema.omit({ _id: true, createdAt: true }); // POST body
const UpdateUser = CreateUser.partial(); // PATCH body
const UserResponse = UserSchema.extend({ displayName: z.string() }); // adds computed field
type User = z.infer<typeof UserSchema>;
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 · 51 lines · 102 tokens per session scan A a1f160e113ba
schema-source-of-truth is a skill published in the GitHub repository TheDecipherist/claude-code-mastery-project-starter-kit (342 stars, last pushed 4mo ago), licensed MIT. It adds 102 tokens to every session and 877 once invoked, about $0.0004 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-30.
schema-source-of-truth compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| schema-source-of-truthTheDecipherist/claude-code-mastery-project-starter-kit | Skill | 342 | 4mo ago | MIT | A | 102 | Claude Code |
| gemini-api-agent-platformdavila7/claude-code-templates | Skill | 33k | yesterday | MIT | A | 61 | Claude Code, Codex |
| open-sourcebrowser-use/browser-use | Skill | 120k | yesterday | MIT | A | 137 | Claude Code |
| prowler-mcpprowler-cloud/prowler | Skill | 15k | yesterday | Apache-2.0 | A | 67 | Claude Code |
| gemini-api-devgoogle-gemini/gemini-skills | Skill | 4.4k | yesterday | Apache-2.0 | A | 85 | Claude Code |
| deepstream-sopNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 219 | Claude Code |
| azure-search-documents-dotnetmicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 102 | Claude Code |