mfd

Generate Go models, repositories, and tests from PostgreSQL XML schemas.

6|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/vmkteam/claude-plugins --skill mfd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mfd
Source: https://github.com/vmkteam/claude-plugins/tree/main/plugins/developer/skills/mfd
Command: npx skills add https://github.com/vmkteam/claude-plugins --skill mfd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

XML-based PostgreSQL schemas often require manual, error-prone boilerplate to generate Go models, repositories, and tests. MFD Generator automates this, ensuring consistent code and rapid iteration across changes.

Core Features & Use Cases

  • Generates Go models, repositories, and VT/UI scaffolding from XML schemas.
  • Integrates with the vmkteam Makefile workflow to produce code and tests via targets like mfd-xml, mfd-model, mfd-repo, and mfd-db-test.
  • Use Case: when evolving a database schema, run the generator to keep domain models, data access layers, and tests in sync automatically.

Quick Start

Run your XML schema through the Makefile targets to generate the Go code and tests.

Frequently Asked Questions about mfd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Go models and repositories from PostgreSQL XML schemas?

To generate Go models and repositories from PostgreSQL XML schemas, run the XML schemas through Makefile targets like mfd-xml, mfd-model, and mfd-repo. This produces consistent domain models and data access layers automatically.

What is the best way to keep Go domain models in sync with database schema changes?

The best way to keep Go domain models in sync with database schema changes is to use a code generator that parses PostgreSQL XML schemas. Running Makefile targets updates models, repositories, and tests automatically when schemas evolve.

Does the mfd generator support generating tests for Go repositories?

Yes, the mfd generator supports generating tests for Go repositories. The mfd-db-test Makefile target produces test scaffolding directly from PostgreSQL XML schemas alongside the models and repository code.

When do I need XML schemas for PostgreSQL code generation in Go?

You need XML schemas for PostgreSQL code generation in Go when managing database-driven projects that require consistent domain models and data access layers across multiple namespaces. This approach eliminates manual boilerplate during schema iterations.

Can I use Makefile targets to generate Go code for multiple namespaces?

Yes, you can use Makefile targets to generate Go code for multiple namespaces. The generator applies to database-driven Go projects, producing consistent domain models and data access layers across different namespaces from XML schemas.