adding-new-ai-format

adding-new-ai-format is a skill for Claude Code, Codex from pr-pm/prpm. It costs 36 tokens per session (6,795 once invoked), scanned A, original, MIT.

A step-by-step guide for adding support for a new AI editor file format to PRPM. It covers the types, converters, schemas, command-line interface, web app, and tests that need updating.

In plain words
What is it for?
Use it when integrating formats used by tools such as OpenCode, Cursor, Claude, or similar AI coding editors, including building and testing the new support.
Why use it?
It reduces the chance of adding a format in one part of the system while forgetting another. The ordered process makes the integration work easier to verify.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pr-pm/prpm/adding-new-ai-format
Any agent
npx skills add pr-pm/prpm --skill adding-new-ai-format
Clone the repo
git clone --depth 1 https://github.com/pr-pm/prpm

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adding-new-ai-format

README.md
[![agentmods](https://agentmods.dev/badge/skills/pr-pm/prpm/adding-new-ai-format.svg)](https://agentmods.dev/skills/pr-pm/prpm/adding-new-ai-format)
Your own site
<a href="https://agentmods.dev/skills/pr-pm/prpm/adding-new-ai-format"><img src="https://agentmods.dev/badge/skills/pr-pm/prpm/adding-new-ai-format.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,795 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00036 $0.06795
Opus 5 $0.00018 $0.03397
Sonnet 5 $0.00007 $0.01359
Haiku 4.5 $0.00004 $0.00679

Measured 3d ago against content hash e455b7a2d2cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adding-new-ai-format scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/adding-new-ai-format/SKILL.md · 942 lines

How it starts

The opening of the file, as written. The whole thing — 942 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adding a New AI Format to PRPM

Complete process for adding support for a new AI editor format (like OpenCode, Cursor, Claude, etc.) to PRPM.

Overview

This skill documents the systematic process for adding a new AI format to PRPM, based on the OpenCode integration. Follow these steps in order to ensure complete integration across all packages.

Prerequisites

  • Format documentation (understand file structure, frontmatter, directory conventions)
  • Example files from the format
  • Understanding of format-specific features (tools, agents, commands, etc.)

Step 1: Types Package (packages/types/)

File: src/package.ts

Add the format to the Format type and FORMATS array:

export type Format =
  | 'cursor'
  | 'claude'
  | 'continue'
  | 'windsurf'
  | 'copilot'
  | 'kiro'
  | 'agents.md'
  | 'gemini.md'
  | 'claude.md'
  | 'gemini'
  | 'opencode'  // Add new format here
  | 'ruler'
  | 'generic'
  | 'mcp';

export const FORMATS: readonly Format[] = [
  'cursor',
  'claude',
  // ... other formats
  'opencode',  // Add here too
  'ruler',
  'generic',
  'mcp',
] as const;

Build and verify:

npm run build --workspace=@pr-pm/types

Step 2: Converters Package - Schema (packages/converters/schemas/)

Create JSON schema file: {format}.schema.json

Example structure:

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://registry.prpm.dev/api/v1/schemas/opencode.json",
  "title": "OpenCode Agent Format",
  "description": "JSON Schema for OpenCode Agents",
  "type": "object",
  "required": ["frontmatter", "content"],
  "properties": {
    "frontmatter": {
      "type": "object",
      "required": ["description"],
      "properties": {
        "description": { "type": "string" },
        // Format-specific fields
      },
      "additionalProperties": false
    },
    "content": {
      "type": "string",
      "description": "Body content as markdown"
    }
  }
}

CRITICAL Schema Requirements:

  • $id must use new URL pattern: https://registry.prpm.dev/api/v1/schemas/{format}.json for base schemas
  • For subtypes: https://registry.prpm.dev/api/v1/schemas/{format}/{subtype}.json
  • Add "additionalProperties": false to frontmatter object to catch invalid fields
  • String fields requiring slugs (like name) should use pattern: "pattern": "^[a-z0-9-]+$"

Read the full file on GitHub · 942 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 942 lines · 36 tokens per session scan A e455b7a2d2cd

Subscribe to this mod's changes

adding-new-ai-format is a skill published in the GitHub repository pr-pm/prpm (120 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 6,795 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.