Skip to content
Protocol

quality standards

official by meetsoma v1.0.0 heat: cold
qualitysafetygitworkflow
Tierofficial
Version1.0.0
Heatcold
Authormeetsoma
SourceGitHub ↗
/install protocol quality-standards

Run in a Soma session to add to your project.

curl -sO https://raw.githubusercontent.com/meetsoma/community/main/protocols/quality-standards.md

Download and copy to .soma/protocols/quality-standards.md — or view on GitHub ↗

Tags

Applies to
always

Details

Quality Standards

Guardrails for safe, reliable work. These protect against destructive operations and sloppy git hygiene. Verification lives in tool-discipline. Pattern recognition lives in pattern-evolution.

TL;DR

Never delete — move or archive. Clean atomic commits with descriptive messages. Push when ready. Know which branch deploys. Confirm before touching critical files. Close the loop — when fixing a bug, fix the system that allowed it. Tests match shipped code, not planned features. Use conventional commit format: type(scope): description.

When to Apply

Every session, every commit. These are baseline guardrails — not optional refinements.

Safety

  • Deletion is irreversible. Move to an archive directory, rename with a prefix, or ask — don't destroy.
  • Protect critical files. Configuration files, identity files, environment files — confirm before overwriting.
  • When in doubt, ask. A question costs nothing. A bad assumption costs a rollback.

Git Discipline

  • Commit with clean, descriptive messages. The message should explain what changed and why, not just "update files."
  • Don't leave local-only commits. Push when work is ready. Unpushed commits are invisible to everyone else.
  • Know which branch deploys. Don't push to main without intent. Work on feature/dev branches.
  • Atomic commits. One concern per commit. Don't bundle unrelated changes.
  • Conventional commit format. type(scope): description — type is feat, fix, docs, refactor, test, chore. Scope is optional but helpful.

Closing the Loop

  • Fix the system, not just the instance. When you find a bug, ask: what allowed this to happen? Fix the root cause — a missing test, a stale check, a gap in validation.
  • When code changes, check the tools. Scripts, verification checks, and tests can go stale when the code they operate on changes. After any structural change, verify that tooling still produces correct results.
  • Tests cover new code, not just pass on old. Every code change must include test assertions for the NEW behavior. Existing tests passing on new code is false confidence — they're checking yesterday's behavior. The test: if you removed your change, would a test fail? If not, you haven't tested it.
  • Blast radius before editing. Before changing a function, type, or field: search for every reference. grep -rn "function_name" src/ tests/ docs/ — find callers, tests, and docs that need updating alongside the code. A code change without test/doc updates is half-shipped.

Shipped Tools

Install from the hub to extend these practices:

Practice Tool Install Example
Find references (blast radius) soma-code /hub install script soma-code soma-code.sh find "functionName" src/
Map file structure before editing soma-code (same) soma-code.sh map src/myfile.ts
File tree overview soma-code (same) soma-code.sh structure src/
Doc discovery + SDK research soma:refdocs.* built in soma:refdocs.find({q:"express"})
Spelling + grammar soma-spell /hub install script soma-spell soma-spell.sh docs/
Check test coverage exists grep (built-in) grep -rn "functionName" tests/

Run any script with --help for full options.


View source on GitHub →