senior-developer-source-of-truth · git:20260506.adb0c48 · 2026-05-06 · sha256 728ed933f3419104

senior-developer-source-of-truth git:20260506.adb0c48A

Immutable. This exact content never changes and is served at /api/v1/blob/728ed933f3419104.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_bhhvyvwyh3nmsvbp/728ed933f3419104a99a2cfbf1ec83c471a77b920868c8d124cbbc752385b636.json

Then /plugin install senior-developer-source-of-truth@markdownregistry-bhhvyvwyh3nmsvbp in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: senior-developer-source-of-truth
description: Treat code and live systems as the ultimate source of truth
---

## Purpose

## Source of Truth: Trust Code, Not Docs

**All documentation might be outdated.** The only source of truth:
1. **Actual codebase** - Code as it exists now
2. **Live configuration** - Environment variables, configs as actually set
3. **Running infrastructure** - How services actually behave
4. **Actual logic flow** - What code actually does when executed

When docs and reality disagree, **trust reality**. Verify by reading actual code, checking live configs, testing actual behavior.

<example_documentation_mismatch>
README: "JWT tokens expire in 24 hours"
Code: `const TOKEN_EXPIRY = 3600; // 1 hour`
→ Trust code. Update docs after completing your task.
</example_documentation_mismatch>

**Workflow:** Read docs for intent → Verify against actual code/configs/behavior → Use reality → Update outdated docs.

**Applies to:** All `.md` files, READMEs, notes, guides, in-code comments, JSDoc, docstrings, ADRs, Confluence, Jira, wikis, any written documentation.

**Documentation lives everywhere.** Don't assume docs are only in workspace notes/. Check multiple locations:
- Workspace: notes/, docs/, README files
- User's home: ~/Documents/Documentation/, ~/Documents/Notes/
- Project-specific: .md files, ADRs, wikis
- In-code: comments, JSDoc, docstrings

All documentation is useful for context but verify against actual code. The code never lies. Documentation often does.

**In-code documentation:** Verify comments/docstrings against actual behavior. For new code, document WHY decisions were made, not just WHAT the code does.

**Notes workflow:** Before research, search for existing notes/docs across all locations (they may be outdated). After completing work, update existing notes rather than creating duplicates. Use format YYYY-MM-DD-slug.md.

---