feat: add Pi provider support, fix community health files, recategorize /onboard

- Add first-class Pi (pi.dev) provider with transformer, tests, and build integration
- Fix CODEOWNERS username (@paulbakaus → @pbakaus)
- Add missing providers to issue/PR templates (Copilot, Kiro, OpenCode, Pi)
- Add Pi and OpenCode logos to homepage hero and install sections
- Move /onboard from "system" to "enhancement" category
- Update README and DEVELOP.md with all supported providers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Paul Bakaus
2026-03-12 11:21:09 -07:00
co-authored by Claude Opus 4.6
parent 599df3bb81
commit bb5ba2f305
15 changed files with 444 additions and 12 deletions
+7 -2
View File
@@ -25,7 +25,8 @@ import {
transformCodex,
transformAgents,
transformKiro,
transformOpenCode
transformOpenCode,
transformPi
} from './lib/transformers/index.js';
import { createAllZips } from './lib/zip.js';
import { execSync } from 'child_process';
@@ -147,7 +148,8 @@ function assembleUniversal(distDir, suffix = '') {
{ provider: 'codex', configDir: '.codex' },
{ provider: 'agents', configDir: '.agents' },
{ provider: 'kiro', configDir: '.kiro' },
{ provider: 'opencode', configDir: '.opencode' }
{ provider: 'opencode', configDir: '.opencode' },
{ provider: 'pi', configDir: '.pi' }
];
for (const { provider, configDir } of providerMappings) {
@@ -174,6 +176,7 @@ This folder contains skills for all supported tools:
.agents/ → VS Code Copilot, Antigravity
.kiro/ → Kiro
.opencode/ → OpenCode
.pi/ → Pi
To install, copy the relevant folder(s) into your project root.
These are hidden folders (dotfiles) — press Cmd+Shift+. in Finder to see them.
@@ -306,6 +309,7 @@ async function build() {
transformAgents(skills, DIST_DIR, patterns);
transformKiro(skills, DIST_DIR, patterns);
transformOpenCode(skills, DIST_DIR, patterns);
transformPi(skills, DIST_DIR, patterns);
// Transform for each provider (prefixed with i-)
const prefixOptions = { prefix: 'i-', outputSuffix: '-prefixed' };
@@ -316,6 +320,7 @@ async function build() {
transformAgents(skills, DIST_DIR, patterns, prefixOptions);
transformKiro(skills, DIST_DIR, patterns, prefixOptions);
transformOpenCode(skills, DIST_DIR, patterns, prefixOptions);
transformPi(skills, DIST_DIR, patterns, prefixOptions);
// Assemble universal directory (unprefixed and prefixed)
assembleUniversal(DIST_DIR);
+1
View File
@@ -5,3 +5,4 @@ export { transformCodex } from './codex.js';
export { transformAgents } from './agents.js';
export { transformKiro } from './kiro.js';
export { transformOpenCode } from "./opencode.js";
export { transformPi } from './pi.js';
+65
View File
@@ -0,0 +1,65 @@
import path from 'path';
import { cleanDir, ensureDir, writeFile, generateYamlFrontmatter, replacePlaceholders, prefixSkillReferences } from '../utils.js';
/**
* Pi Transformer (Skills Only)
*
* All skills output to .pi/skills/{name}/SKILL.md
* Frontmatter: name, description, license, compatibility, metadata
*
* @param {Array} skills - All skills (including user-invokable ones)
* @param {string} distDir - Distribution output directory
* @param {Object} patterns - Design patterns data (unused)
* @param {Object} options - Optional settings
* @param {string} options.prefix - Prefix to add to skill names (e.g., 'i-')
* @param {string} options.outputSuffix - Suffix for output directory (e.g., '-prefixed')
*/
export function transformPi(skills, distDir, patterns = null, options = {}) {
const { prefix = '', outputSuffix = '' } = options;
const piDir = path.join(distDir, `pi${outputSuffix}`);
const skillsDir = path.join(piDir, '.pi/skills');
cleanDir(piDir);
ensureDir(skillsDir);
const allSkillNames = skills.map(s => s.name);
const commandNames = skills.filter(s => s.userInvokable).map(s => `${prefix}${s.name}`);
let refCount = 0;
for (const skill of skills) {
const skillName = `${prefix}${skill.name}`;
const skillDir = path.join(skillsDir, skillName);
const frontmatterObj = {
name: skillName,
description: skill.description,
};
if (skill.license) frontmatterObj.license = skill.license;
if (skill.compatibility) frontmatterObj.compatibility = skill.compatibility;
if (skill.metadata) frontmatterObj.metadata = skill.metadata;
const frontmatter = generateYamlFrontmatter(frontmatterObj);
let skillBody = replacePlaceholders(skill.body, 'pi', commandNames);
if (prefix) skillBody = prefixSkillReferences(skillBody, prefix, allSkillNames);
const content = `${frontmatter}\n\n${skillBody}`;
const outputPath = path.join(skillDir, 'SKILL.md');
writeFile(outputPath, content);
// Copy reference files if they exist
if (skill.references && skill.references.length > 0) {
const refDir = path.join(skillDir, 'reference');
ensureDir(refDir);
for (const ref of skill.references) {
const refOutputPath = path.join(refDir, `${ref.name}.md`);
const refContent = replacePlaceholders(ref.content, 'pi');
writeFile(refOutputPath, refContent);
refCount++;
}
}
}
const userInvokableCount = skills.filter(s => s.userInvokable).length;
const refInfo = refCount > 0 ? ` (${refCount} reference files)` : '';
const prefixInfo = prefix ? ` [${prefix}prefixed]` : '';
console.log(`✓ Pi${prefixInfo}: ${skills.length} skills (${userInvokableCount} user-invokable)${refInfo}`);
}
+5
View File
@@ -298,6 +298,11 @@ export const PROVIDER_PLACEHOLDERS = {
model: 'Claude',
config_file: 'OPENCODE.md',
ask_instruction: 'STOP and call the AskUserQuestionTool to clarify.',
},
'pi': {
model: 'the model',
config_file: 'AGENTS.md',
ask_instruction: 'ask the user directly to clarify what you cannot infer.'
}
};