Architecture principles for manifest-dev: how its maintainer wants skills, wrappers, references, state and the workflow structured, and why. Use before planning, designing, building or reviewing a new skill or entry point, a change to where state or a decision lives, how skills call or coordinate with each other, or a wait or loop a workflow can enter.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Architecture Principles?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/doodledood-architecture-principles)
---
name: architecture-principles
description: 'Architecture principles for manifest-dev: how its maintainer wants skills, wrappers, references, state and the workflow structured, and why. Use before planning, designing, building or reviewing a new skill or entry point, a change to where state or a decision lives, how skills call or coordinate with each other, or a wait or loop a workflow can enter.'
---
Edit rule: each line is a principle with its reason and when it yields. Decisions go to the
decision records, rules a check can hold go to the check, and a line is added only on a person's
yes, after sharpening an existing line is ruled out.
- When one existing part already owns a concern — figure-out, define, do, task files, the logs, the Ticket — extend that owner rather than adding a second mechanism beside it or placing the need on a more convenient unrelated part, and fix a small gap inside the owner rather than routing around it — a second path for the same concern drifts from the first and stays invisible to everything keyed on the owner. Yields when the owner cannot express the need without changing what it means, shown by a concrete failure rather than a hypothetical future case; then add the narrowest new owner that closes the gap.
- A named entry point is at most a thin wrapper that routes to the owning skill and restates no rule — a rule in a wrapper reaches only runs that start there and drifts from the skill it wraps. Yields when the entry itself owns a distinct workflow rather than routing to an existing one.
- Exhaust widening an existing input, setting, or contract — or composing existing mechanisms to produce the same effect — before adding a new field, setting, mode, abstraction, or domain term, judging by the desired effect and carried values rather than the new name — every added concept is carried from then on by every caller, reader, guard, and document. Yields when neither widening nor composing can express the need without changing what those parts mean or taking on a concrete cost that outweighs the concept, with the checked parts named in the change.
- Add a new standing mechanism — a service, scheduled job, dependency, vendor, or stored state — only once an actual failure, abuse, or bill exposes a gap existing parts cannot fill, and then add the narrowest one that closes it — every standing mechanism is state to keep right, a recurring cost, and another part everyone must learn. Yields when a law or contract requires the mechanism before a gap shows.
- Before a decision to replace or retire a part that works, what its users rely on is listed from what it actually does (its code, tests and behavior, not a summary of its main job), and the replacement is shown to keep each item, or the change says, for each one it drops, who carries it or why nothing needs it — what a working part guarantees lives in its details, and the details a summary leaves out are rebuilt around the replacement after the switch has been paid for. Yields when the old part is itself causing an outage or a security hole that cannot wait, and the list is then made right after the switch; and for a part whose users all move with it in one change, under tests that pin what they relied on.
- Ship skills as the protocol, never the platform: no scheduler, hosting or host-bound runner; start from what the user already runs, use a host capability where it is offered and a plain path where it is not — infrastructure ties the project to one host and adds complexity each user carries. Yields to a coordinating skill, started by hand or by the user's own scheduler, when the alternative leaves users to build the machinery themselves.
- A skill that inspects or reports stays blind to its caller's workflow and returns what it saw with hints that name an action on the thing inspected, never a step of the caller's workflow; each decision lives once, in the skill that holds the context to make it, and a decision that belongs to one caller stays with that caller rather than in the path every caller shares — the caller steers toward the hint, a fixed set alone cannot cover the unexpected, a rule restated per caller drifts, and another caller that later wants something else can have it without disturbing the rest. No yield has been stated beyond the verdict itself, which stays fixed.
- Every wait or loop a workflow can enter has a stated exit — done, a bounded retry, or a named person — reading the prose missed these: they surfaced as a landing that stalled for good and an escalation that fired every tick. No yield has been stated.
- Work that may run again — a retry, a repeated event, a second worker, a restart — ends in the same state, each step starting from the state actually present, and an effect that must not happen twice, such as a charge or a message, is guarded by a key recorded before it fires — retries and restarts are certain over time, and work that assumes a single run duplicates or corrupts. Holds without a yield, since a run dying midway is only a matter of time.
- A decision that depends on shared state takes effect in one atomic step, or checked again after every pause — other writers act during each pause, so what was true before it may be false after. Yields when acting on a stale decision is shown to cost nothing.
- A record's status moves only through the single place that owns its lifecycle — a status set from several places reaches states no one designed. Holds without a yield.
Before calling architecture work done, check it against these principles from a fresh start — a new
session, or a reviewer who did not do the work. Fix what departs unless the person chose the
departure, and check only each fix and what it touches rather than re-sweeping the whole change.
Name each departure kept, with the principle and why.