Skip to content

code-validate

by rob

Developer

Generate and validate Python code

Python Coding Programming
# code-validate

Generate and validate Python code

## Installation

This is a CmdForge tool. Install it from the registry or create it locally using `cmdforge create`.

## Usage

```bash
# Generate code for a specific task
echo "create a function to parse CSV files" | code-validate

# Use with custom task argument
code-validate --task "write a binary search algorithm"

# Pipe from a file
cat requirements.txt | code-validate
```

## Arguments

| Flag | Variable | Description |
|------|----------|-------------|
| `--task` | `task` | Programming task description |

## How It Works

1. **Generate Code** (Step 1): Sends the input to Claude Haiku to generate Python code based on the task description
2. **Validate** (Step 2): Executes validation logic on the generated code and returns the validated result

The tool outputs the validated code ready for use.

## Dependencies

None

No reviews yet.

Issues

No issues reported for this tool.