Skip to content
Back to skills

Single Source

ASecurity

Every derived figure (a total, a price, a score, a status) is computed in exactly one place and read everywhere; documents never carry hand-typed counts. Use when adding any number a user or the founder will see.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 14, 2026
ai-agents

Works with

  • cli

Security analysis

A100/100

Scanned October 14, 2026

npx -y skills add Fadi88/one-man-startup --skill single-source --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Single Source?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Single Source
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fadi88-single-source/badge)](https://www.skillsdirectory.com/skills/fadi88-single-source)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: single-source
description: "Every derived figure (a total, a price, a score, a status) is computed in exactly one place and read everywhere; documents never carry hand-typed counts. Use when adding any number a user or the founder will see."
---

<!-- Generated by tools/sync_adapters.py from skills/single-source/SKILL.md. Edit the source, not this file. -->

# Single source of truth

Two places that compute the same figure will disagree one day, and the day they do, nobody will
know which is right.

- A figure is computed once, in one function, on the side that owns its data (usually the
  server). Every screen, export, email and report reads that result.
- A client that needs a figure gets it from the contract; it does not recompute it.
- Documents never carry counts typed by hand ("42 requirements", "12 endpoints"). A script
  computes them, and the sweep checks they are current. A plausible number looks exactly like a
  correct one.
- When you find a second computation, do not fix the one that looks wrong. Delete one, point it
  at the other, and add a test that would have caught the drift.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.