@aaplugin/platform-claude-code
v1.0.0-beta.4
Published
Claude Code Platform integration for AAPlugin.
Readme
@aaplugin/platform-claude-code
Claude Code Platform package for aaplugin.
pnpm add -D @aaplugin/kit @aaplugin/platform-claude-codeimport { defineConfig } from '@aaplugin/kit';
import claudeCode from '@aaplugin/platform-claude-code';
export default defineConfig({
name: 'my-plugin',
version: '1.0.0',
description: 'Reusable AI workflows.',
platforms: [claudeCode()],
});The package also exports the named claudeCode factory, its option types, ClaudePackageComponent, ClaudeNativeAgentComponent, PLATFORM_ID, and PLATFORM_API_VERSION.
ClaudePackageComponent is for trusted Extension contributors that need Claude-native private delivery. It is not a Canonical Agent or a raw Manifest escape hatch: Claude Code validates and renders it during Package finalization.
Runtime and installation
The complete local Plugin root is dist/claude-code/plugin/. With marketplace enabled, publish the contents of dist/claude-code/marketplace/ at the root of the release branch instead. Keep all generated files, including hidden manifests, Runtime, and license inventories.
claude plugin validate ./dist/claude-code/plugin --json --strict
claude --plugin-dir ./dist/claude-code/pluginFor a branch containing the generated Marketplace, use its configured marketplace name:
claude plugin marketplace add OWNER/REPO#release-claude-code
claude plugin install my-plugin@my-marketplaceRuntime entries are at runtime/<id>/main.mjs. Resolve ../../runtime/<id>/main.mjs from the Skill base directory reported by Claude Code, then invoke node with the quoted absolute file path. Keep the shell cwd at the business repository. This also applies to any generated Skill in the conventional Skill tree.
Node must already be on PATH; AAPlugin does not ship it. The compilation target is Node 20 ESM, and the product may document a higher Node requirement. Build/validate checks output integrity and references; a host manifest validator does not prove a live agent invoked a Skill.
License
MIT
