Hub / skills / prometheus-pack-author

Skill · Agent Workflows

Prometheus Pack & Hub Author

Build FOUNDATION pack_api:1 bundles, sanitized skills, and version-pinned MCP connector entries that pass all six OAra Hub CI guards.

Core Markdown only · quarantined draft Local 7B+ MIT packshubfoundationmcpskillsauthoring

How to use

Pure Markdown procedure — zero executable code bundled. Inspect the full source below, then drop it into your Prometheus skills directory (or promote it from SkillDraftStore once oara hub install ships).

Install
# Copy-in path on your Prometheus host:
mkdir -p ~/.prometheus/skills/prometheus-pack-author
# Save the raw SKILL.md below as ~/.prometheus/skills/prometheus-pack-author/SKILL.md

# Upcoming CLI command:
oara hub install skills/prometheus-pack-author

Honest disclosures

  • First-party OAra authoring guide — pure Markdown, zero bundled code.
Inspect raw source (skills/prometheus-pack-author/SKILL.md)
---
name: prometheus-pack-author
description: Author FOUNDATION pack_api:1 bundles, sanitized skills, and version-pinned MCP connector recipes that pass all OAra Hub CI guards on the first try.
license: MIT
tier: tool_search
---
<!-- Provenance: https://github.com/OAraLabs/hub | skills/prometheus-pack-author/SKILL.md | MIT -->

# Authoring Prometheus Packs & OAra Hub Entries

Use this guide when creating a new Skill, MCP Connector, Pack, or Integration for Prometheus (`~/.prometheus/packs/`) or `OAraLabs/hub`.

## 1. Know the Structural Boundary (`FOUNDATION.md` Part 2)

- **Skills (`skills/<slug>/SKILL.md`):** Pure Markdown + YAML frontmatter. Never include `.py`, `.sh`, or `.js` files inside a skill. Never set `tier: core` or `autoload: true`—skills must stay `tool_search`-only unless the operator pins them.
- **Tools (`connectors/<slug>.yaml`):** Always an **out-of-process MCP server**, never a `tools/` directory inside a pack (`packs/loader.py` refuses `tools/` by name). Pin an exact package/image version (no `@latest` or `:latest`) and provide a least-privilege default `allowed_tools` list.
- **Packs (`packs/<slug>/pack.yaml`):** Declare `pack_api: 1`, `requires.prometheus`, and `provides: { skills: [...], panels: [...] }`. Declared entries must match disk files bidirectionally.

## 2. Importing Upstream Open-Source Skills Safely

1. Verify the upstream repository carries a permissive SPDX license (`MIT`, `Apache-2.0`, `BSD-2-Clause`, `BSD-3-Clause`, `ISC`, `CC0-1.0`). Hard-stop on GPL/AGPL/SSPL/BUSL or missing licenses.
2. Record the exact **40-character commit SHA** and preserve upstream attribution in the provenance comment.
3. Run the sanitizer to rewrite foreign agent config paths to `~/.config/prometheus/env` and strip foreign metadata namespaces:
   ```bash
   uv run python3 scripts/sanitize_import.py --source <dir> --repo <url> --sha <40-hex> --dry-run
   ```

## 3. Pre-PR Verification Gate

Always run the full blocking validator and guard tests before committing:

```bash
uv run python3 scripts/validate.py
uv run python3 scripts/build_index.py
uv run python3 -m unittest discover -s tests -v
```