mloda-plugins
Guide an AI agent through building mloda (https://github.com/mloda-ai/mloda) plugins: FeatureGroup, ComputeFramework, and Extender classes. Use to check the mloda-registry index for an existing plugin before writing one, when writing or reviewing a FeatureGroup/ComputeFramework/Extender implementation, or when packaging, sharing, or publishing a plugin to mloda-registry.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- mloda-plugins
- license
- MIT
- description
- Guide an AI agent through building mloda (https://github.com/mloda-ai/mloda) plugins: FeatureGroup, ComputeFramework, and Extender classes. Use to check the mloda-registry index for an existing plugin before writing one, when writing or reviewing a FeatureGroup/ComputeFramework/Extender implementation, or when packaging, sharing, or publishing a plugin to mloda-registry.
02 资源文件 1
- 参考文档skill-report.json48.8 KB
03 SKILL.md 正文
mloda-plugins: Building mloda Plugins
Check the registry index first
Always do this before writing a plugin: it may already exist. mloda-registry publishes community plugins
covering common {col}__{op} transforms (aggregation, window/scalar/frame aggregate, scalar/point arithmetic,
rank, offset, percentile, binning, datetime, string ops, time bucketization, ffill, ema, sessionization,
resample); see its plugins table for the full list. None
of it ships with plain pip install mloda; install what you need (pip install mloda-community for all, or
one package like pip install "mloda-community-rank[pandas]"), then confirm what's actually loaded:
from mloda.user import PluginLoader
from mloda.steward import get_feature_group_docs
PluginLoader.all()
for fg in get_feature_group_docs():
print(fg.name, fg.description)
An empty or unrelated result means it isn't installed yet, not that it doesn't exist; see
02-discover-plugins.md
for more on installed-vs-available. (The mloda skill covers the same check for requesting data instead of
writing a plugin.)
The three plugin types
| Type | Role | Full guide |
|---|---|---|
| FeatureGroup | A data transformation, the unit you'll write most often | 09-create-feature-group.md |
| ComputeFramework | The execution backend a transformation runs on (Pandas, PyArrow, Polars, DuckDB, ...) | 10-create-compute-framework.md |
| Extender | Hooks for logging, tracing, validation around feature calculation | 11-create-extender.md |
Reach for a ComputeFramework only when adding a new execution backend, or an Extender for cross-cutting hooks.
Minimal example
A primary-source FeatureGroup (no inputs):
from mloda.provider import FeatureGroup
class CustomerScoring(FeatureGroup):
@classmethod
def calculate_feature(cls, data, features):
return {"customer_score": 100}
A chained one, reusable via an input__operation feature name (see "FeatureGroup: key decisions" below):
from mloda.provider import FeatureChainParserMixin, FeatureGroup
class MyOp(FeatureChainParserMixin, FeatureGroup):
PREFIX_PATTERN = r".*__([\w]+)_my_op$"
PROPERTY_MAPPING = {...}
@classmethod
def calculate_feature(cls, data, features): ...
Register either via PluginLoader.all() (installed package) or a direct import; see
03-create-plugin-in-project.md.
The plugin journey
Progression from using to sharing, each guide hosted in mloda-registry:
- Use an existing plugin / Discover plugins - start here, before writing anything.
- Create a plugin in your project - add a FeatureGroup inline, no separate package.
- Create a plugin package - scaffold a standalone installable package from mloda-plugin-template.
- Share with your team (private git) / Publish to the community registry / Contribute to official plugins / Become an official plugin.
Full progression: docs/guides/index.md.
FeatureGroup: key decisions
Full decision tree: guide 09. The recurring ones:
- Loads external data (file, DB, API)? Root feature pattern, see 01-root-features.md.
- Transforms 1+ existing features? Derived feature, see 02-derived-features.md.
- Should it be reusable via an
input__operationnaming pattern?FeatureChainParserMixin, see 03-chained-features.md (2+ inputs: 04-multi-input-features.md). - Multiple output columns? 05-multi-output-features.md (
feature~0,feature~1). - Fitted/trained state between runs? 06-artifact-features.md.
- Time ordering, group-by, or joins across feature groups? 07-index-features.md / 08-links-joins.md.
- Group-identity option vs. runtime-only metadata? 11-options.md - a required context option that isn't forwarded through
input_features()breaks chained requests; see 26-input-feature-forwarding.md for the forwarding mechanism itself. - Standard column transform (binning, window/scalar/frame aggregate, scalar/point arithmetic, rank, offset, percentile, string op, time bucketization, ffill, ema, resample, sessionization)? See the data operation patterns index before writing one from scratch.
- Feature defined via JSON/config instead of a naming pattern (e.g. to back the
mlodaskill's LLM Tool Function pattern)? 22-feature-config.md. - Ready to test? 10-testing-guide.md.
Full pattern index (27 guides, covering filters, validators, versioning, streaming, realtime execution, and more): feature-group-patterns/index.md.
ComputeFramework: key decisions
Full decision tree: guide 10.
- Needs a connection/session object? Data lake table format (Iceberg, Delta, Hudi) -> 05-data-lake.md; otherwise -> 03-stateful-connection.md (DuckDB, Spark).
- Lazy evaluation? 02-stateless-lazy.md (Polars Lazy, Ibis).
- Eager, no external deps? 04-zero-dependency.md; with deps -> 01-stateless-eager.md (Pandas, PyArrow).
- Cross-framework conversion? 08-framework-transformer.md.
- Joins/merges or filters? 06-merge-engine.md / 07-filter-engine.md.
- Ready to test? 09-testing-guide.md.
Full pattern index: compute-framework-patterns/index.md.
Extender: key decisions
Full guide: guide 11. Wraps feature calculation or input/output
validation; set a custom priority (lower runs first, default 100) if execution order matters; use class-level
storage for state under ParallelizationMode.MULTIPROCESSING (must be pickle-safe).
Reference
- Registry (community/enterprise plugins, guides): https://github.com/mloda-ai/mloda-registry
- Plugin template (scaffold for a standalone package): https://github.com/mloda-ai/mloda-plugin-template
- Core docs: https://mloda-ai.github.io/mloda/
04 同仓库更多 Skills
serpmaven
Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.
revnu-landing-page-audit
Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: "audit my landing page", "why isn't this page converting", "review my homepage", "my ads get clicks but no signups", "people bounce from the pricing page", "CRO review", "improve conversion rate", "is my hero section clear", "roast my landing page", "rewrite my headline", "what's wrong with this page", "landing page feedback", "make the signup page convert better". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.
revnu-growth-context
Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents/revnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says "set up our marketing context", "who is our ideal customer", "write our ICP", "describe the product for marketing", "positioning doc", "what's our brand voice", "remember this about our customers", "log what we tried", "what have we learned from marketing", "we changed pricing, update the context", "update our growth notes", "summarize the business for the agent", "import my product-marketing.md", "start a growth doc", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.
revnu-get-listed
Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: "best X" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says "get us listed", "which directories should we submit to", "how do we get into best-of lists", "why does ChatGPT recommend competitors and not us", "get mentioned in AI answers", "submit to awesome lists", "get on G2", "where are our competitors listed", "pitch listicle authors", "find backlink opportunities", "launch directories", "get into roundups", "Product Hunt alternatives", "where should we be listed", "get cited by Perplexity". Never submits, pays or posts without a yes. Works without a Revnu account.
revnu-ai-readiness-audit
Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks "is my site ready for AI search", "audit my site for AI answers", "AEO audit", "GEO audit", "why doesn't ChatGPT quote our pricing", "make our pages citable by AI", "do I need llms.txt", "does schema help with ChatGPT", "check our structured data", "is our content visible without JavaScript", "AI SEO audit", "optimize our homepage for AI answers", "LLM SEO check", "why does AI get our product wrong", "fix our site for AI Overviews". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.
proxy-troubleshooting
Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.