Python development rules for FastLED WASM project using uv package manager and emoji utilities for cross-platform compatibility
Development rules for the FastLED WASM project, ensuring consistent Python execution with uv and cross-platform emoji handling.
This skill enforces critical development practices for the FastLED WASM project:
**CRITICAL: Always use `uv` to run Python code, never `python` or `python3` directly.**
When executing Python code or scripts:
Examples:
Rationale:
**CRITICAL: Always use the `EMO()` function for emojis, never hardcode emojis directly.**
When adding user-facing messages with emojis:
Common emoji patterns:
Example:
```python
from fastled.emoji_util import EMO
print(f"{EMO('⚠️', 'WARNING:')} Debug mode detected")
```
Rationale:
When writing or reviewing code:
1. Prefix all Python commands with `uv run`
2. Use `bash test` for unit tests (per project convention)
3. Install dependencies with `uv add <package>`
4. Update existing scripts using `python`/`python3` to use `uv run`
5. Wrap all emoji output with `EMO()` function
When creating documentation or shell scripts:
```python
python src/fastled/cli.py
print("⚠️ Warning: Something went wrong")
```
```python
uv run src/fastled/cli.py
from fastled.emoji_util import EMO
print(f"{EMO('⚠️', 'WARNING:')} Something went wrong")
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/fastled-wasm-python-development/raw