# Module Ports and Adapters

> Extract a Flutter feature into a package with a handle, ports and host adapters, keeping GetX out.

Module Ports and Adapters is a free AI agent skill on Agensi by Mateusz, in Mobile Development. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Mateusz](https://www.agensi.io/creators/mateusz)
- Category: [Mobile Development](https://www.agensi.io/skills/mobile-development)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/module-ports-and-adapters
- Tags: mobile, flutter, dart, getx, architecture, hexagonal, monorepo, migration

## About this skill

The host imports the module and the module never imports the host. Your agent designs the module's handle and public facade, defines data, exit and frame ports, writes host adapters over legacy code, and replaces navigation calls with outcome types. It also adds a test that keeps GetX and app code out of the module. Every adapter gets a delete condition (strangler fig).

### Use it when
- you extract a feature from a legacy (for example GetX) app into a package
- you design a module's handle and public facade
- you need data, exit and frame ports plus host adapters over legacy code
- you want navigation calls replaced with outcome types
- you want a test that keeps GetX and app code out of a module

---

Part of **Bridge the Gap skills** from my Fluttercon 2026 talk *Bridging the Gap: Incremental Navigation & UI Migration in Flutter Apps*. Free and open source (MIT): https://github.com/mateuszrusdev/bridge-the-gap-skills · Talk: https://youtu.be/vdNFBpM4scQ

## Requires

Nothing beyond your AI agent.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Module Ports and Adapters skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Module Ports and Adapters do?

Extract a Flutter feature into a package with a handle, ports and host adapters, keeping GetX out.

### Which AI agents support Module Ports and Adapters?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Module Ports and Adapters?

Connect your AI agent to Agensi through MCP, then ask it to use Module Ports and Adapters on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
