@unifocl/codex-plugin
v3.14.0
Published
Codex plugin bundle for unifocl: installs MCP server config and unifocl workflow skills.
Maintainers
Readme
unifocl Codex Plugin
This folder defines the Codex-side equivalent of @unifocl/claude-plugin.
What the Codex plugin should do
Unlike Claude Code's npm plugin format, Codex integration is primarily:
- MCP server registration (
unifocl --mcp-server) - Reusable workflow guidance (Codex skill/playbook)
So the Codex plugin is a distribution bundle made of:
- MCP setup automation
- Codex skill files for
/init,/status,/context,/mutate,/workflow-equivalent flows
Functional Scope
The Codex plugin must provide the same workflow guarantees as the Claude plugin:
/initequivalent: project bridge setup + post-checks/statusequivalent: daemon/mode/project/editor/session checks/contextequivalent: hierarchy + project + inspector hydration/mutateequivalent: schema -> validate -> dry-run -> execute -> verify sequence/workflowequivalent: canonical multi-step agent workflow
The low-level behavior continues to live in:
unifocl --mcp-serverunifocl exec "..."
No mutation logic is duplicated in this package.
Installation Strategy (No source checkout required)
Not all users clone this repository, so distribution should be release-based:
Primary channel: built-in CLI command
unifocl agent install codex- Also available:
unifocl agent install claude - Benefit: works for Homebrew/winget/release-binary users with no Node.js requirement.
npm package (publisher and advanced fallback path)
- Publish:
@unifocl/codex-plugin - Optional user flow:
npm install -g @unifocl/codex-pluginunifocl-codex-plugin install
- Publish:
GitHub release asset fallback
- Ship a small cross-platform installer script in release assets:
install-codex-plugin.shinstall-codex-plugin.ps1
- Users download from release page and run once.
- Ship a small cross-platform installer script in release assets:
Versioning & Compatibility
- Keep plugin version aligned with unifocl CLI minor version.
- On protocol-affecting changes, include migration guidance (for example: rerun
/init). - Installer should be idempotent and safe to rerun.
File Layout
src/unifocl.codex-plugin/
README.md
package.json
bin/unifocl-codex-plugin.js
skills/unifocl/SKILL.md
skills/unifocl/references/init.md
skills/unifocl/references/status.md
skills/unifocl/references/context.md
skills/unifocl/references/mutate.md
skills/unifocl/references/workflow.mdMinimal install behavior
unifocl agent install codex should execute equivalent of:
scripts/setup-mcp-agents.sh --workspace <detected-or-provided-workspace> --codexWhen using the npm package installer, copy bundled skill files to:
$CODEX_HOME/skills/unifocl/and print verification steps:
- Restart Codex session.
- Confirm MCP tools include
ListCommandsandLookupCommand. - Run a smoke check with
unifocl exec "/status" --agentic --format json.
Publish From CLI
From this directory:
cd src/unifocl.codex-plugin
npm publish --access publicIf this is your first publish for the scope:
npm login
npm publish --access public