adding-new-ai-format

adding-new-ai-format is a skill for Claude Code 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 Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; mentions Gemini CLI; mentions OpenCode.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - [PRPM Format Guide](../../docs/formats.mdx).

Good fit 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.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

Made for: Claude Code.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adding-new-ai-format

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00036 $0.06795
Opus 5.5 $0.00014 $0.02718
Sonnet 5.5 $0.00007 $0.01359
Haiku 4.5 $0.00004 $0.00679

Measured 2mo ago against content hash e455b7a2d2cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (124 stars, last pushed 25d ago), licensed MIT. It adds 36 tokens to every session and 6,795 once invoked, about $0.0001 per session on Opus 5.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.

Related

adding-new-ai-format compared with skills from other repositories

adding-new-ai-format next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adding-new-ai-formatpr-pm/prpmSkill12425d agoMITA36Claude Code
best-practicesMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k1mo agoMITA35Claude Code, Codex
testing-for-system-prompt-leakageadriannoes/awesome-agentic-aiSkill966d agoMITA21Claude Code, Codex
red-teaming-llms-with-garakadriannoes/awesome-agentic-aiSkill966d agoMITB49Claude Code, Codex
llm-prompt-optimizertmolavi/mcp-agent-skills-hubSkill91mo agoMITA35Claude Code, Codex
openrouternateslabach/skillsSkill61mo agoMITA60Claude Code, Codex
prompt-pilotsavasturkoglu1/promptpilot-pluginSkill31mo agoMITA63Claude Code, Codex