Skip to content

feat: publish as npm package for OpenCode compatibility #3

@iduartgomez

Description

@iduartgomez

Summary

Currently, freenet-agent-skills works seamlessly with Claude Code via the marketplace system. However, OpenCode users need to manually clone the repo to access skills. Publishing as an npm package would provide first-class support for both platforms.

Current State

Claude Code ✅ Works via marketplace
OpenCode ⚠️ Requires manual clone or openskills install freenet/freenet-agent-skills

Proposed Structure

freenet-agent-skills/
├── package.json # npm entry point
├── index.js # OpenCode plugin exports
├── .claude-plugin/marketplace.json # Claude Code (existing)
├── skills/ # Shared (both platforms)
├── agents/ # Future: claude/ and opencode/ subdirs
└── hooks/ # Future: OpenCode JS hooks

Platform Feature Comparison

Feature Claude Code OpenCode Shared?
Skills .claude/skills/ .opencode/skill/ ✅ Yes
Agents Plugin/.claude/agents/ JS exports ❌ Different
Hooks settings.json JS plugin exports ❌ Different
MCP Plugin config opencode.json ⚠️ Similar

After Implementation

OpenCode becomes simple:

{ "plugin": ["freenet-agent-skills"] }

Migration Steps

  • Add package.json with npm metadata
  • Add index.js as OpenCode plugin entry
  • Publish to npm
  • Update README with dual-platform docs
  • (Optional) Platform-specific dirs for agents/hooks

References

Claude Code Plugin Marketplaces
OpenCode Plugins
opencode-agent-skills (reference)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions