> ## Documentation Index
> Fetch the complete documentation index at: https://harisfazillah.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Plugin Packager

> Packages, validates, and scaffolds DSOM skills and FastMCP servers into portable Agent Plugins 1.0.0 compliant bundles. Deep State of Mind framework.

> **SOP Type:** Automated Packaging & Verification\
> **Standard:** Agent Plugins 1.0.0 Specification (`agent-plugins.org/specification`)

This skill defines the procedural Standard Operating Procedure (SOP) for packaging DSOM skills, spatial memory, and MCP servers into vendor-neutral **Agent Plugins 1.0.0** packages.

***

## 🧭 Operational Flow

```mermaid theme={null}
flowchart TD
    Identify["1. Identify Skill & MCP Components"] --> Validate["2. Validate OKF v0.2 & Path Containment"]
    Validate --> Scaffold["3. Generate plugin.json & mcp.json"]
    Scaffold --> Bundle["4. Copy/Symlink to skills/ Directory"]
    Bundle --> Verify["5. Run Conformance Test Suite"]
```

***

## 🛠️ Step-by-Step Instructions

### Step 1: Scaffold the Plugin Package Directory

```powershell theme={null}
# PowerShell
$PluginName = "dsom-sysops-plugin"
mkdir $PluginName
mkdir $PluginName/skills
```

```bash theme={null}
# Bash
export PLUGIN_NAME="dsom-sysops-plugin"
mkdir -p "$PLUGIN_NAME/skills"
```

### Step 2: Create Canonical `plugin.json`

Create `$PLUGIN_NAME/plugin.json` adhering to schema 1.0.0:

```json theme={null}
{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "dsom-sysops-plugin",
  "version": "1.0.0",
  "description": "System operations and diagnostic skills for AI Agents.",
  "keywords": ["sysops", "diagnostics", "dsom"]
}
```

### Step 3: Populate `skills/` Directory

Copy target skills into `$PLUGIN_NAME/skills/<skill-name>/`:
Ensure each skill folder contains:

* `SKILL.md` (valid OKF v0.2 frontmatter)
* `scripts/` (executable scripts)
* `references/` (supporting docs)

### Step 4: Configure `mcp.json` (If Tools are Included)

```json theme={null}
{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
  "mcpServers": {
    "server": {
      "type": "stdio",
      "command": "uv",
      "args": ["run", "python", "${PLUGIN_ROOT}/tools/mcp/server.py"],
      "cwd": "${PLUGIN_ROOT}"
    }
  }
}
```

### Step 5: Validate Conformance

Run the DSOM agent plugins test suite:

```bash theme={null}
uv run pytest tests/test_agent_plugins_spec.py
```

***

*Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-08-22*\
*Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0*


## Related topics

- [Google Jules & Google Antigravity Collaborative Sync](/skills/jules-antigravity-sync.md)
- [DSOM Project Cloner Skill](/skills/dsom-project-cloner.md)
- [Agent Plugins 1.0.0 Specification & DSOM Protocol Integration](/governance/dsom-agent-plugins-specification.md)
- [Nota Lapangan: Panduan Praktikal Pasukan untuk AI Antigravity & DSOM Bersama Cikgu Haris](/tutorials/nota-lapangan-antigravity-dsom.md)
- [DSOM - Deep State of Mind: AI Governance Framework](/index.md)
