Skip to main content
Exécutez n'importe quel Skill dans Manus
en un clic

myco-single-source-of-truth-refactoring

Étoiles12
Forks1
Mis à jour6 juillet 2026 à 02:09

Apply this skill whenever you encounter logic, values, or transformations duplicated across multiple files in the Myco codebase — even if the user doesn't explicitly ask for a refactor. Covers five recurring SSoT patterns: (1) extracting shared read projections to the shared read-projections module, (2) centralizing provider capabilities in the shared context-window module, (3) replacing magic strings with named constants in the shared constants module, (4) creating semantic wrapper functions in the config loader and settings-merge modules, and (5) adding path properties to service state objects (DaemonServiceState). Also covers two critical violation classes to detect during code review: parallel ownership predicates (is-this-mine? checks duplicated across files) and database query locality (direct DB calls in tool files that bypass the shared data access layer). The root discipline is: name the thing, own it in one place, let consumers reference it.

Installation

Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.

SKILL.md
readonly