cliops


Namecliops JSON
Version 4.2.4 PyPI version JSON
download
home_pagehttps://github.com/cliops/cliops
SummaryAdvanced CLI tool for structured, pattern-based prompt optimization and state management
upload_time2025-07-08 17:26:54
maintainerNone
docs_urlNone
authorcliops by mabd
requires_python>=3.8
licenseNone
keywords cli prompt optimization ai llm prompt-engineering patterns state-management
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CliOps - Command Line Interface for Prompt Optimization

A powerful CLI tool for structured, pattern-based prompt optimization and state management.

## Features

- **Pattern-based optimization**: Apply proven prompt engineering patterns
- **State management**: Persistent CLI state for project context
- **Rich terminal UI**: Beautiful output with syntax highlighting
- **Extensible**: Add custom patterns and presets
- **Cross-platform**: Works on Windows, macOS, and Linux

## Installation

The installer will attempt to add the necessary directory to your system's PATH. Please restart your terminal after installation for the changes to take effect.

```bash
pip install .
```

If you still have issues, you may need to add the Python scripts directory to your PATH manually. 


## Quick Start

```bash
# Initialize configuration
cliops init

# Set project context
cliops state set ARCHITECTURE "React + Node.js"
cliops state set FOCUS "API development"

# Optimize a prompt
cliops "Create a user authentication endpoint"

# Analyze a prompt
cliops analyze "Make this code better"

# List available patterns
cliops patterns
```

## Usage

### Basic Commands

- `cliops optimize <prompt>` - Optimize a prompt using patterns
- `cliops analyze <prompt>` - Analyze prompt for improvements
- `cliops patterns` - List available optimization patterns
- `cliops state set <key> <value>` - Set persistent state
- `cliops init` - Initialize configuration

### Examples

```bash
# Direct prompt optimization
cliops "Fix this bug in my React component"

# With specific pattern
cliops optimize "Refactor this function" --pattern surgical_refactor

# With overrides
cliops optimize "Create API" --context "Express.js backend" --constraints "RESTful design"

# Dry run to see what would be generated
cliops optimize "Test prompt" --dry-run
```

## Testing

```bash
python run_tests.py
```

## License

MIT License

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cliops/cliops",
    "name": "cliops",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "cli prompt optimization ai llm prompt-engineering patterns state-management",
    "author": "cliops by mabd",
    "author_email": "iammabd@substack.com",
    "download_url": null,
    "platform": null,
    "description": "# CliOps - Command Line Interface for Prompt Optimization\r\n\r\nA powerful CLI tool for structured, pattern-based prompt optimization and state management.\r\n\r\n## Features\r\n\r\n- **Pattern-based optimization**: Apply proven prompt engineering patterns\r\n- **State management**: Persistent CLI state for project context\r\n- **Rich terminal UI**: Beautiful output with syntax highlighting\r\n- **Extensible**: Add custom patterns and presets\r\n- **Cross-platform**: Works on Windows, macOS, and Linux\r\n\r\n## Installation\r\n\r\nThe installer will attempt to add the necessary directory to your system's PATH. Please restart your terminal after installation for the changes to take effect.\r\n\r\n```bash\r\npip install .\r\n```\r\n\r\nIf you still have issues, you may need to add the Python scripts directory to your PATH manually. \r\n\r\n\r\n## Quick Start\r\n\r\n```bash\r\n# Initialize configuration\r\ncliops init\r\n\r\n# Set project context\r\ncliops state set ARCHITECTURE \"React + Node.js\"\r\ncliops state set FOCUS \"API development\"\r\n\r\n# Optimize a prompt\r\ncliops \"Create a user authentication endpoint\"\r\n\r\n# Analyze a prompt\r\ncliops analyze \"Make this code better\"\r\n\r\n# List available patterns\r\ncliops patterns\r\n```\r\n\r\n## Usage\r\n\r\n### Basic Commands\r\n\r\n- `cliops optimize <prompt>` - Optimize a prompt using patterns\r\n- `cliops analyze <prompt>` - Analyze prompt for improvements\r\n- `cliops patterns` - List available optimization patterns\r\n- `cliops state set <key> <value>` - Set persistent state\r\n- `cliops init` - Initialize configuration\r\n\r\n### Examples\r\n\r\n```bash\r\n# Direct prompt optimization\r\ncliops \"Fix this bug in my React component\"\r\n\r\n# With specific pattern\r\ncliops optimize \"Refactor this function\" --pattern surgical_refactor\r\n\r\n# With overrides\r\ncliops optimize \"Create API\" --context \"Express.js backend\" --constraints \"RESTful design\"\r\n\r\n# Dry run to see what would be generated\r\ncliops optimize \"Test prompt\" --dry-run\r\n```\r\n\r\n## Testing\r\n\r\n```bash\r\npython run_tests.py\r\n```\r\n\r\n## License\r\n\r\nMIT License\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Advanced CLI tool for structured, pattern-based prompt optimization and state management",
    "version": "4.2.4",
    "project_urls": {
        "Bug Reports": "https://github.com/cliops/cliops/issues",
        "Documentation": "https://cliops.readthedocs.io",
        "Homepage": "https://github.com/cliops/cliops",
        "Source": "https://github.com/cliops/cliops"
    },
    "split_keywords": [
        "cli",
        "prompt",
        "optimization",
        "ai",
        "llm",
        "prompt-engineering",
        "patterns",
        "state-management"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fabcc2af67efcdbde55b8fde6bbc82599a70d2479abfc4e6bc1e20777a93f9b9",
                "md5": "d82ba2fd02a0954dffdc9fc0bf2ce50e",
                "sha256": "5a41ddc2a00d44b458454fbac624b618a0b25bb5897336f2824f5478a4fbfa4d"
            },
            "downloads": -1,
            "filename": "cliops-4.2.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d82ba2fd02a0954dffdc9fc0bf2ce50e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 32217,
            "upload_time": "2025-07-08T17:26:54",
            "upload_time_iso_8601": "2025-07-08T17:26:54.460849Z",
            "url": "https://files.pythonhosted.org/packages/fa/bc/c2af67efcdbde55b8fde6bbc82599a70d2479abfc4e6bc1e20777a93f9b9/cliops-4.2.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-08 17:26:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cliops",
    "github_project": "cliops",
    "github_not_found": true,
    "lcname": "cliops"
}
        
Elapsed time: 0.53239s