df-solution-architect
Skill4 starsChanged 2 months agoApache-2.0View on GitHub
Dark Factory Solution Architect stage: turn PO semantics into a Data Model, Data Flow (transform graph, pure|effect, idempotency, compensation) and Service Map, assigning each validation rule an enforcement locus. Triggers on "architecture", "data model", "data flow", "service map", "schema", "Avro contract", "solution architect".
In this repository43 other files it gives its agents.
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- agent-notepadSkill
- architecture-reviewerSkill
- backend-service-auditorSkill
- channel-listenerSkill
- code-reviewerSkill
- coder-file-transferSkill
- cold-start-generatorSkill
- creating-skillsSkill
- critical-thinkingSkill
- dark-factory-buildSkill
- dependency-risk-auditorSkill
- df-adversary-gateSkill
- df-app-walkthroughSkill
- df-context-storeSkill
- df-data-transform-lensSkill
- df-dispatch-subagentsSkill
- df-infrastructureSkill
- df-observabilitySkill
- df-product-ownerSkill
- df-qaSkill
- df-tdd-developerSkill
- df-ui-verifySkill
- df-video-intakeSkill
- dx-maintainability-reviewerSkill
- frontend-auditorSkill
- handoffSkill
- microservices-architectSkill
- production-readiness-reviewerSkill
- repo-docsSkill
- requirements-discoverySkill
- sc-auditSkill
- sc-devSkill
- scope-initSkill
- scope-retireSkill
- security-threat-modelerSkill
- service-mapperSkill
- test-quality-gatekeeperSkill
- vercel-react-best-practicesSkill
- vinculum-loopSkill
- vinculum-mapSkill
- web-design-guidelinesSkill
- work-autonomouslySkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Do not re-decide domain facts (which source is authoritative, what must be true) — if one is missing or wrong, loop back to PO.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dark Factory — Solution Architect (formalize the transform graph)
Overview
The SA answers how. It produces Data Model, Data Flow, Service Map. Through the data-transform lens (df-data-transform-lens), the three docs are the model. The PO already defined the semantics; the SA's job is formalization — turn each into a schema/contract, assign each rule its enforcement locus and mechanism, and tag transforms.
The three outputs
- Data Model = data nodes. Each entity's schema + single-datum invariants + context (
location,origin,authority,governance) + the Avro message contracts between services. Declare theauthority(system-of-record) for every fact that exists in more than one place. - Data Flow = the transform graph. Each step
(state, in) → (state', out), taggedpure | effect. Everyeffectcarries an idempotency key + compensation in the flow. Every ingress edge lists the LOCAL validation rules applied before a datum is consumed. One path per PO Test Scenario. - Service Map = transform ownership + boundaries. Each service is a unit; its edges are trust boundaries (untrusted-until-validated, non-transitive). The runtime trust profile is just the
origin/authority/boundary tags made explicit. Also name the Observability Surface — the required dashboards/panels mapped to PO scenarios (seedf-observability).
Ownership handoff (PO → SA)
The PO + SMEs defined the semantics (data, origin, trust, authority, governance, the validation-rule predicates). Your job is formalization:
- turn each into a schema / Avro contract;
- assign every validation rule its enforcement locus (
LOCAL→ reject at an edge;GLOBAL→ reconcile byauthority) and mechanism (XSD / Schematron / DB constraint / reconciliation job — a common split is XSD for structure and Schematron for cross-field business rules, but name the mechanism your stack actually enforces with); - tag transforms
pure/effectwith idempotency + compensation. Do not re-decide domain facts (which source is authoritative, what must be true) — if one is missing or wrong, loop back to PO.
Instructions
- Decompose requirements into single-responsibility services. If a service needs "and" to describe it, split it.
- Draft the Data Model (entities, ownership, PHI/PII class, retention, authority, Avro contracts).
- Draw the Data Flow — one path per PO scenario: in → transform → store → out; pub/sub + async by default; every sync hop gets an ADR.
- Fill the Service Map — per service deltas + the Observability Surface keyed to scenarios.
- Tag every transform
pure/effect; give effects idempotency + compensation. Cross-system invariants (POGLOBALrules) become reconciliation paths with a namedauthority.
Exit gate
- Cold Developer test — can a fresh developer build every service from these three docs alone, no invented contracts?
- Cold Infra test — can a fresh infra architect deploy across DTAP, no guessed trust boundaries?
- Coverage — every PO scenario has a Data Flow path; every effect has idempotency + compensation; every cross-system fact has a declared authority.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

