# Python Code Validator

> Python Code Validator — ai-statemind-python-code-validator. Use this tool when you need to validate and refine AI-generated Python code, as it checks for lint, types, and security issues, and provides exact fixes to ensure reliable and secure code execution. It takes in Python code as input and outputs validated, repaired, and sandbox-tested code, making it ideal for use cases where code quality and security are paramount. This tool is particularly useful in contexts where AI-generated code requires human oversight and refinement to prevent errors and vulnerabilities.

Canonical page: https://skillsregistry.net/skills/ai-statemind-python-code-validator  
JSON: https://api.skillsregistry.net/v1/skills/ai-statemind-python-code-validator

## Description

Proves AI-generated Python does what you asked: lint, types, security, sandbox run, exact fixes.

## Trust

- **Trust score (0–1):** 0.70
- **Verification tier:** unverified

## Facts

- **Version:** 1.6.4
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** security
- **Updated:** 2026-09-28

## Source

- **Source listing:** [MCP Registry](https://registry.modelcontextprotocol.io/v0/servers/ai.statemind%2Fpython-code-validator)
- **Repository:** <https://github.com/jkanselaar/python-code-validator>

## Use it

MCP endpoint published by the skill: `https://api.statemind.ai/mcp`

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "ai-statemind-python-code-validator"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/ai-statemind-python-code-validator` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/ai-statemind-python-code-validator/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
