abubakarsiddik31

Pagans — Development skill for Claude Code

Development community

PAGANS - Prompts Aligned to Guidelines and Normalization System.

How to install Pagans

This entry records only its repository, not the path inside it, so there is no exact command to give. Open abubakarsiddik31/pagans and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Pagans does

PAGANS - Prompts Aligned to Guidelines and Normalization System.

Alternatives in Development

README

PAGANS - Prompt Optimization Framework

PAGANS Logo

[![PyPI version](https://badge.fury.io/py/pagans.svg)](https://pypi.org/project/pagans/) [![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Build](https://github.com/abubakarsiddik31/pagans/actions/workflows/build.yml/badge.svg)](https://github.com/abubakarsiddik31/pagans/actions/workflows/build.yml) [![Test](https://github.com/abubakarsiddik31/pagans/actions/workflows/test.yml/badge.svg)](https://github.com/abubakarsiddik31/pagans/actions/workflows/test.yml) [![Lint](https://github.com/abubakarsiddik31/pagans/actions/workflows/lint.yml/badge.svg)](https://github.com/abubakarsiddik31/pagans/actions/workflows/lint.yml)

PAGANS (Prompts Aligned to Guidelines and Normalization System) is a prompt optimization framework for LLM applications. It adapts prompts to the target model family automatically so the same prompt can perform better across OpenAI, Anthropic, Google, and xAI model series.

Features

  • Fast prompt optimization for production workflows
  • Family-aware optimization for OpenAI, Anthropic, Google, and xAI models
  • Automatic model-family detection from short and provider-prefixed names
  • Async-first API for single, compare, and batch operations
  • Built-in caching to reduce repeated optimization cost
  • CLI support for optimize, compare, and batch workflows
  • Optimizer provider support for OpenRouter, OpenAI, Google AI Studio, Anthropic, and Z.ai

Installation

pip install pagans

Quick Start

import asyncio

from pagans import PAGANSOptimizer, Provider


async def main() -> None:
    async with PAGANSOptimizer(provider=Provider.OPENROUTER) as optimizer:
        result = await optimizer.optimize(
            prompt="Write a robust retry policy