Generate production-ready Codex plugins in seconds with best practices built-in.
- ๐จ Multiple Templates - MCP servers, Skills, Full plugins
- ๐ Auto-generated Documentation - README, CONTRIBUTING, examples
- โ Testing Setup - pytest configuration included
- ๐ CI/CD Ready - GitHub Actions workflows
- ๐ฆ Package Configuration - pyproject.toml with all dependencies
- ๐ฏ Best Practices - Following official Codex guidelines
# Clone the repository
git clone https://github.com/Closer2Vyz/codex-plugin-generator.git
cd codex-plugin-generator
# Install locally
pip install -e .Note: Package will be published to PyPI soon. For now, use local installation.
codex-plugin-generator generateAnswer a few questions and get your plugin scaffolded!
# Generate an MCP server plugin
codex-plugin-generator generate --type mcp --name my-mcp-server
# Generate a Skill
codex-plugin-generator generate --type skill --name my-skill
# Generate a full plugin with multiple components
codex-plugin-generator generate --type full --name my-awesome-pluginmy-mcp-server/
โโโ src/
โ โโโ my_mcp_server/
โ โโโ __init__.py
โ โโโ server.py # MCP server implementation
โโโ tests/
โ โโโ __init__.py
โ โโโ test_server.py
โโโ examples/
โโโ README.md
โโโ pyproject.toml
โโโ .gitignore
โโโ LICENSE
โโโ .github/workflows/
โโโ test.yml
my-skill/
โโโ SKILL.md # Main skill documentation
โโโ examples/
โ โโโ example.md
โโโ plugin.json
โโโ README.md
โโโ .gitignore
โโโ LICENSE
my-awesome-plugin/
โโโ src/
โ โโโ my_awesome_plugin/
โ โโโ __init__.py
โ โโโ server.py
โโโ skills/
โ โโโ main-skill/
โ โโโ SKILL.md
โโโ tests/
โโโ docs/
โโโ examples/
โโโ README.md
โโโ CONTRIBUTING.md
โโโ pyproject.toml
โโโ .gitignore
โโโ LICENSE
codex-plugin-generator generate \
--type mcp \
--name database-connector \
--description "Connect Codex to PostgreSQL databases" \
--author "Your Name"codex-plugin-generator generate \
--type skill \
--name code-review-helper \
--description "AI-powered code review assistance" \
--author "Your Name"-
MCP Server - Full Model Context Protocol server
- Tool definitions with proper async handlers
- Testing suite with pytest
- CI/CD configuration
- Complete documentation
-
Skill - Codex skill with SKILL.md
- Structured skill documentation
- Usage examples
- Best practices guide
-
Full Plugin - Complete plugin package
- MCP server + Skills
- Comprehensive documentation
- Testing and CI/CD
- Contribution guidelines
Create a .plugin-generator.json in your home directory to set defaults:
{
"author": "Your Name",
"email": "you@example.com",
"github": "Closer2Vyz",
"license": "MIT",
"include_tests": true,
"include_ci": true
}Initialize config interactively:
codex-plugin-generator init-config# Run tests
pytest
# Run with coverage
pytest --cov
# Run code quality checks
black . && ruff check . && mypy .Contributions are welcome! Please see CONTRIBUTING.md (once available).
# Clone repository
git clone https://github.com/Closer2Vyz/codex-plugin-generator.git
cd codex-plugin-generator
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytestSee the examples/ directory for complete working examples of generated plugins:
- Coming soon: Example MCP server
- Coming soon: Example Skill
- Coming soon: Example Full plugin
MIT License - see LICENSE for details.
- OpenAI Codex Team for the platform
- MCP Community for the protocol
- All contributors and users
- Create an Issue for bug reports
- Start a Discussion for questions
- Star โญ this repo if you find it useful!
Made with โค๏ธ for the Codex community
โ ๏ธ Status: Beta - Plugin generation works, but templates are being refined based on community feedback.