{"id":50359199,"url":"https://github.com/fboldo/oiap","last_synced_at":"2026-05-30T00:02:54.783Z","repository":{"id":358672516,"uuid":"1239837567","full_name":"fboldo/oiap","owner":"fboldo","description":"TypeScript SDK for writing AI agent plugins once and exporting them to multiple agent platforms.","archived":false,"fork":false,"pushed_at":"2026-05-18T13:11:27.000Z","size":312,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-18T15:15:42.560Z","etag":null,"topics":["agent","agent-skills","ai-agents","claude-code","cli","codex","coding-agent","cursor","developer-tools","mcp","model-context-protocol","plugin-system","plugins","sdk","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fboldo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-15T13:48:00.000Z","updated_at":"2026-05-18T13:12:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fboldo/oiap","commit_stats":null,"previous_names":["fboldo/oiap"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fboldo/oiap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fboldo%2Foiap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fboldo%2Foiap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fboldo%2Foiap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fboldo%2Foiap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fboldo","download_url":"https://codeload.github.com/fboldo/oiap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fboldo%2Foiap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33675019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","agent-skills","ai-agents","claude-code","cli","codex","coding-agent","cursor","developer-tools","mcp","model-context-protocol","plugin-system","plugins","sdk","typescript"],"created_at":"2026-05-30T00:02:53.998Z","updated_at":"2026-05-30T00:02:54.777Z","avatar_url":"https://github.com/fboldo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OIAP - Open Interoperable Agent Plugins\n\n\n\u003cp\u003e\n\t\u003cstrong\u003eWrite your AI agent plugin in TypeScript once and convert to:\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\" valign=\"middle\"\u003e\u003cimg src=\"assets/icons/claudecode-color.png\" alt=\"Claude Code\" width=\"20\" height=\"20\" /\u003e Claude Code\u003c/td\u003e\n\t\t\u003ctd align=\"center\" valign=\"middle\"\u003e\u003cimg src=\"assets/icons/codex-color.png\" alt=\"Codex\" width=\"20\" height=\"20\" /\u003e Codex\u003c/td\u003e\n\t\t\u003ctd align=\"center\" valign=\"middle\"\u003e\u003cimg src=\"assets/icons/githubcopilot.png\" alt=\"GitHub Copilot\" width=\"20\" height=\"20\" /\u003e VS Code Copilot\u003c/td\u003e\n\t\t\u003ctd align=\"center\" valign=\"middle\"\u003e\u003cimg src=\"assets/icons/cursor.png\" alt=\"Cursor\" width=\"20\" height=\"20\" /\u003e Cursor\u003c/td\u003e\n\t\t\u003ctd align=\"center\" valign=\"middle\"\u003eCline\u003c/td\u003e\n\t\t\u003ctd align=\"center\" valign=\"middle\"\u003e\u003cimg src=\"assets/icons/openclaw-color.png\" alt=\"OpenClaw\" width=\"20\" height=\"20\" /\u003e OpenClaw\u003c/td\u003e\n\t\t\u003ctd align=\"center\" valign=\"middle\"\u003e\u003cimg src=\"assets/icons/antigravity-color.png\" alt=\"Google Antigravity\" width=\"20\" height=\"20\" /\u003e Google Antigravity\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd colspan=\"7\" align=\"center\"\u003e\u003cstrong\u003eand many more...\u003c/strong\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\nOIAP is a TypeScript SDK and build toolchain for writing AI agent plugins once\nand exporting them into host-native bundles for multiple agent platforms.\n\nAgent harnesses increasingly expose the same ideas through different file\nformats: commands, skills, rules, hooks, custom agents, MCP configuration,\nruntime shims, and permission policies. OIAP gives plugin authors one stable\nauthoring model and a set of exporters that generate reviewable bundles for each\ntarget platform.\n\n## Project Status\n\n**⚠️ OIAP is early and actively evolving.** The current repository focuses on developer\ntooling: define plugins, normalize them into an intermediate representation, and\ngenerate bundle artifacts. Installing those artifacts into a user's local agent\nenvironment is intentionally outside the project scope.\n\n## Features\n\n- **Host-neutral TypeScript authoring** for plugin manifests, commands,\n\tinstructions, skills, hooks, agents, tools, artifacts, recipes, and policies.\n- A published Node **CLI that builds plugin definition files** into deterministic\n\ttarget bundle directories.\n- Exporters that **render OIAP plugins into host-native files** for the currently\n\timplemented agent platforms.\n- A **stable runtime for hooks** and executable scripts, giving generated adapters a\n\tconsistent way to invoke plugin behavior across host environments.\n- **Compatibility reports** that describe which capabilities mapped cleanly,\n\tdegraded, or were unsupported for a target.\n\nOIAP is complementary to specification efforts such as the\n[Open Plugin Spec](https://github.com/vercel-labs/open-plugin-spec). It is not a\ncompeting standards body; it is practical authoring and bundling infrastructure\nfor developers who need to ship across several agent harnesses.\n\n## Quick Start\n\nThe `@oiap/cli` package is published to npm as a Node CLI and installs the\n`oiap` binary. In a plugin project, install the CLI with the authoring SDK:\n\n```sh\nnpm install --save-dev @oiap/cli @oiap/core\n```\n\nList the registered exporter targets:\n\n```sh\nnpx oiap targets\n```\n\nCreate an `oiap.plugin.ts` file using the shape shown below, then build it for a\ntarget platform:\n\n```sh\nnpx oiap build oiap.plugin.ts --target claude-code --out dist/claude-code\n```\n\nBuild the same plugin for every registered exporter:\n\n```sh\nnpx oiap build oiap.plugin.ts --out dist/oiap\n```\n\n## Agent Skill\n\n🤯 Agents write plugins for agents. The [create-plugin skill](skills/create-plugin)\nhelps agents scaffold OIAP plugin projects, write `oiap.plugin.ts` files, choose\nprimitives, and build bundles with the npm-published OIAP CLI.\n\nInstall it with:\n\n```sh\nnpx skills add fboldo/oiap --skill create-plugin\n```\n\n## Plugin Example\n\nAn OIAP plugin is a normal TypeScript module that exports a `definePlugin`\ndefinition. The CLI loads that definition and asks the selected exporters to\nrender platform-specific files.\n\n```text\nmy-review-plugin/\n  oiap.plugin.ts\n  prompts/\n    review.md\n```\n\n```md\n\u003c!-- prompts/review.md --\u003e\nReview the current change for correctness, security risks, missing tests, and\nmaintainability issues. Lead with concrete findings and include file references\nwhen possible.\n```\n\n```ts\nimport type { PluginDefinition } from \"@oiap/core\";\nimport { definePlugin, markdownFile } from \"@oiap/core\";\n\nconst reviewPrompt = markdownFile(\"prompts/review.md\", {\n\tbaseUrl: import.meta.url,\n});\n\nexport default definePlugin({\n\tmanifest: {\n\t\tid: \"review-guard\",\n\t\tname: \"Review Guard\",\n\t\tversion: \"1.0.0\",\n\t\tdescription:\n\t\t\t\"Adds a portable review command for agent-assisted code review.\",\n\t\tlicense: \"MIT\",\n\t\tcategories: [\"review\", \"quality\", \"commands\"],\n\t\tsupportedTargets: [\"claude-code\", \"codex\", \"vscode-copilot-chat\"],\n\t},\n\tinvocations: [\n\t\t{\n\t\t\tid: \"review-guard-invocation\",\n\t\t\tcanonical: \"review-guard\",\n\t\t\ttargetAliases: {\n\t\t\t\t\"claude-code\": \"review-guard\",\n\t\t\t\tcodex: \"review-guard\",\n\t\t\t\t\"vscode-copilot-chat\": \"review-guard\",\n\t\t\t},\n\t\t\thelpText: \"Review the current change before it is merged.\",\n\t\t\texamples: [\"/review-guard\", \"/review-guard Focus on security\"],\n\t\t},\n\t],\n\tinstructions: [\n\t\t{\n\t\t\tid: \"review-guard-prompt\",\n\t\t\tpurpose: \"command\",\n\t\t\ttriggers: [\"review\", \"code review\", \"pre-merge review\"],\n\t\t\tbody: reviewPrompt,\n\t\t},\n\t],\n\tcommands: [\n\t\t{\n\t\t\tid: \"review-guard-command\",\n\t\t\tinvocation: { id: \"review-guard-invocation\", kind: \"invocation\" },\n\t\t\tprompt: { id: \"review-guard-prompt\", kind: \"instruction\" },\n\t\t},\n\t],\n} satisfies PluginDefinition);\n```\n\nBuild it for Claude Code:\n\n```sh\nnpx oiap build my-review-plugin/oiap.plugin.ts --target claude-code --out dist/review-guard-claude\n```\n\nBuild it for every registered exporter:\n\n```sh\nnpx oiap build my-review-plugin/oiap.plugin.ts --out dist/review-guard\n```\n\nEach output directory contains host-native files plus OIAP metadata such as the\nbundle manifest, source map, and capability report.\n\n## Supported Targets\n\nThe CLI currently registers these exporters:\n\n| Target ID | Package | Output focus |\n| --- | --- | --- |\n| `antigravity` | [@oiap/exporter-antigravity](packages/exporter-antigravity) | Google Antigravity workspace bundle artifacts |\n| `claude-code` | [@oiap/exporter-claude-code](packages/exporter-claude-code) | Claude Code-oriented plugin bundle artifacts |\n| `cline` | [@oiap/exporter-cline](packages/exporter-cline) | Cline project rules, skills, agents, hooks, and MCP artifacts |\n| `codex` | [@oiap/exporter-codex](packages/exporter-codex) | Codex plugin and project-configuration artifacts |\n| `cursor` | [@oiap/exporter-cursor](packages/exporter-cursor) | Cursor plugin artifacts |\n| `gemini-cli` | [@oiap/exporter-gemini-cli](packages/exporter-gemini-cli) | Gemini CLI extension artifacts |\n| `openclaw` | [@oiap/exporter-openclaw](packages/exporter-openclaw) | OpenClaw plugin package artifacts |\n| `opencode` | [@oiap/exporter-opencode](packages/exporter-opencode) | OpenCode project config and plugin bridge artifacts |\n| `vscode-copilot-chat` | [@oiap/exporter-vscode-copilot](packages/exporter-vscode-copilot) | VS Code Copilot Chat customization artifacts |\n\nFor researched and planned platform coverage, see the\n[Platform Matrix](MATRIX.md).\n\n## Packages\n\n| Package | Purpose |\n| --- | --- |\n| [@oiap/core](packages/core) | Primitive TypeScript contracts and author-facing plugin API |\n| [@oiap/runtime](packages/runtime) | Portable hook runtime bundle generation used by target exporters |\n| [@oiap/cli](packages/cli) | CLI for building target bundles from plugin definition files |\n| [@oiap/exporter-antigravity](packages/exporter-antigravity) | Google Antigravity exporter |\n| [@oiap/exporter-claude-code](packages/exporter-claude-code) | Claude Code exporter |\n| [@oiap/exporter-cline](packages/exporter-cline) | Cline exporter |\n| [@oiap/exporter-codex](packages/exporter-codex) | Codex exporter |\n| [@oiap/exporter-cursor](packages/exporter-cursor) | Cursor exporter |\n| [@oiap/exporter-gemini-cli](packages/exporter-gemini-cli) | Gemini CLI exporter |\n| [@oiap/exporter-openclaw](packages/exporter-openclaw) | OpenClaw exporter |\n| [@oiap/exporter-opencode](packages/exporter-opencode) | OpenCode exporter |\n| [@oiap/exporter-vscode-copilot](packages/exporter-vscode-copilot) | VS Code Copilot Chat exporter |\n\n## Examples\n\nThe [examples](examples) directory contains OIAP rewrites of representative\nagent plugin patterns:\n\n- [security-guidance](examples/security-guidance) demonstrates a before-tool\n  hook that warns about risky edits.\n- [explanatory-output-style](examples/explanatory-output-style) demonstrates a\n  portable instruction/style plugin.\n- [feature-dev](examples/feature-dev) demonstrates commands, prompt modules,\n  and custom agent definitions.\n\n## Design Documentation\n\n- [Architecture](ARCHITECTURE.md) explains the authoring model, shared\n\tterminology, core primitives, export pipeline, and runtime bridge pattern.\n- [Platform Matrix](MATRIX.md) tracks target capabilities,\n  adapter status, and verification notes.\n\n## Development\n\nThis repository uses Bun, TypeScript, Biome, Turbo, and Lerna.\n\n```sh\nbun install\nbun run format\nbun run check\nbun run typecheck\nbun run test\n```\n\nUseful development commands:\n\n```sh\nbun run oiap targets\nbun run oiap build examples/security-guidance/oiap.plugin.ts --target claude-code --out dist/dev/security-guidance\nbun run test:coverage\n```\n\nTurbo orchestrates build, typecheck, and test tasks across packages. Lerna is\nreserved for fixed-version release management. The Husky pre-commit hook runs\n`bun run precommit` automatically before commits.\n\n## Release Management\n\nOIAP uses Lerna fixed versioning so all `@oiap/*` packages ship with the same\nversion. The root workspace remains private; published packages are public scoped\nnpm packages with `publishConfig.access` set to `public`.\n\n```sh\nbun run release:changed\nbun run release:version\nbun run release:publish\n```\n\nThe release workflow lives at `.github/workflows/release.yml` and is manually\ndispatched from GitHub Actions. Manual dispatch defaults to a dry run.\n\n## Contributing\n\nContributions are welcome. The most useful contributions are focused changes\nthat improve the authoring model, exporter fidelity, examples, documentation,\nor validation coverage.\n\nBefore opening a pull request:\n\n1. Fork the repository or create a feature branch.\n2. Run `bun install` from the repository root.\n3. Keep changes scoped to the package, exporter, example, or document being\n   improved.\n4. Add or update tests when behavior changes.\n5. Commit normally; the pre-commit hook runs the repository checks automatically.\n6. In the pull request description, mention affected targets and any known\n   capability degradations.\n\nFor exporter work, include a small example or fixture when possible. Generated\nbundles should remain deterministic and easy to review.\n\n## License\n\nOIAP is released under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffboldo%2Foiap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffboldo%2Foiap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffboldo%2Foiap/lists"}