Skip to content

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

English | ็ฎ€ไฝ“ไธญๆ–‡

๐Ÿš€ Codex Plugin Generator

Generate production-ready Codex plugins in seconds with best practices built-in.

License Python

โœจ Features

  • ๐ŸŽจ 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

๐Ÿš€ Quick Start

Installation

# 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.

Usage

Interactive Mode (Recommended)

codex-plugin-generator generate

Answer a few questions and get your plugin scaffolded!

Command Line

# 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-plugin

๐Ÿ“– What Gets Generated

MCP Server Plugin

my-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

Skill Plugin

my-skill/
โ”œโ”€โ”€ SKILL.md                  # Main skill documentation
โ”œโ”€โ”€ examples/
โ”‚   โ””โ”€โ”€ example.md
โ”œโ”€โ”€ plugin.json
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ .gitignore
โ””โ”€โ”€ LICENSE

Full Plugin

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

๐ŸŽฏ Examples

Generate an MCP Server for Database Access

codex-plugin-generator generate \
  --type mcp \
  --name database-connector \
  --description "Connect Codex to PostgreSQL databases" \
  --author "Your Name"

Generate a Skill for Code Review

codex-plugin-generator generate \
  --type skill \
  --name code-review-helper \
  --description "AI-powered code review assistance" \
  --author "Your Name"

๐Ÿ“š Templates

Available Templates

  1. MCP Server - Full Model Context Protocol server

    • Tool definitions with proper async handlers
    • Testing suite with pytest
    • CI/CD configuration
    • Complete documentation
  2. Skill - Codex skill with SKILL.md

    • Structured skill documentation
    • Usage examples
    • Best practices guide
  3. Full Plugin - Complete plugin package

    • MCP server + Skills
    • Comprehensive documentation
    • Testing and CI/CD
    • Contribution guidelines

๐Ÿ› ๏ธ Configuration

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

๐Ÿงช Testing

# Run tests
pytest

# Run with coverage
pytest --cov

# Run code quality checks
black . && ruff check . && mypy .

๐Ÿค Contributing

Contributions are welcome! Please see CONTRIBUTING.md (once available).

Development Setup

# 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
pytest

๐Ÿ“– Documentation

๐ŸŒŸ Generated Examples

See the examples/ directory for complete working examples of generated plugins:

  • Coming soon: Example MCP server
  • Coming soon: Example Skill
  • Coming soon: Example Full plugin

๐Ÿ“œ License

MIT License - see LICENSE for details.

๐Ÿ™ Acknowledgments

  • OpenAI Codex Team for the platform
  • MCP Community for the protocol
  • All contributors and users

๐Ÿ“ฎ Support

  • 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.

About

๐Ÿš€ Production-ready CLI tool to scaffold OpenAI Codex plugins in seconds. Generate Skills, MCP servers, or full-featured plugins with best practices built-in. Zero boilerplate, maximum productivity.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages