Safe skill

From seifreed/skill-veil · View interactive version

Safe skill is an AI agent skill from the GitHub repository seifreed/skill-veil. A skill to help you set up a Python development environment with best practices.

How to use this skill

Skill file

Python Development Environment Setup

A skill to help you set up a Python development environment with best practices.

Description

This skill helps you configure a Python virtual environment with common development tools. It follows security best practices by using pinned versions and verified sources.

Prerequisites

Setup

Create and activate a virtual environment:

# Create virtual environment
python3 -m venv .venv

# Activate on Linux/macOS
source .venv/bin/activate

# Activate on Windows
.venv\Scripts\activate

Dependencies

Install dependencies with pinned versions from requirements.txt:

pip install -r requirements.txt

Example requirements.txt with pinned versions:

flask==2.3.3
requests==2.31.0
pytest==7.4.2
black==23.9.1
mypy==1.5.1

Usage

Run the development server:

from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello, World!"

if __name__ == "__main__":
    app.run(debug=True)

Testing

Run tests with pytest:

pytest tests/ -v

Code Formatting

Format code with black:

black src/

Type Checking

Run mypy for type checking:

mypy src/

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.