mal-develop

Guide developers in building, testing, and publishing MAL Lua plugins for IoM.

482|68|Updated Sep 5, 2023
One-click install
npx skills add https://github.com/chainreactors/malice-network --skill mal-develop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mal-develop
Source: https://github.com/chainreactors/malice-network/tree/main/skills/mal-develop
Command: npx skills add https://github.com/chainreactors/malice-network --skill mal-develop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MAL plugin development often lacks a clear, repeatable guide for building Lua-based plugins for IoM, including structure, manifests, and command/BOF registration. This skill provides a structured, end-to-end workflow to create and publish MAL plugins, with practical examples and reference material.

Core Features & Use Cases

  • Plugin structure guidance: marshalling mal.yaml manifests, entry scripts, and module organization for scalable plugin development.
  • Command, BOF registration, and resource management: learn how to expose functionality to IoM through commands, BOFs, and shared assets.
  • Testing, debugging, and publishing workflows: cover local testing, validation, and deployment to the community ecosystem with example patterns.

Quick Start

Follow the steps to create a new MAL Lua plugin by adding mal.yaml and main.lua, register a command, and test in a simulated environment.

Frequently Asked Questions about mal-develop

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

FAQPage Schema
How do I develop a Lua plugin for IoM?

To develop a Lua plugin for IoM, create a mal.yaml manifest and an entry script like main.lua. You then register commands and BOFs to expose functionality to the IoM ecosystem.

What is the structure of a MAL plugin?

A MAL plugin structure consists of a mal.yaml manifest, entry scripts, and modular organization. This structure marshals resources and enables scalable plugin development for the IoM platform.

How do I register commands and BOFs in a Lua plugin?

You register commands and BOFs in your Lua plugin by defining them within the plugin structure. This process exposes specific functionality and manages shared assets for IoM interactions.

What is the best way to test and publish MAL plugins?

The best way to test and publish MAL plugins is to follow a structured workflow covering local testing, validation, and deployment. This ensures your Lua-based plugin meets community publishing guidelines.

Can I use event callbacks and module loading in MAL Lua plugins?

Yes, you can use event callbacks and module loading in MAL Lua plugins. The development guide provides practical examples for implementing these features and managing resources effectively.

Does building a MAL plugin require frontmatter in the manifest?

Yes, building a MAL plugin requires frontmatter in the mal.yaml manifest. This frontmatter drives discovery and ensures the plugin meets the IoM platform's structural requirements.