AI SummaryA system prompt that enforces code quality standards (Black, Ruff linting, pre-commit hooks) for Python projects, helping developers maintain consistent formatting and code style automatically across multiple AI coding platforms.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "shut-the-box — System Prompt" prompt rules to my project. Repository: https://github.com/verlyn13/shut-the-box Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
a game
CRITICAL: Code Formatting and Linting Protocol
For any AI system working on this codebase:
1. ✅ TOOL CONFIGURATION IS COMPLETE
This project has FULLY CONFIGURED code quality tools: • Black (88-char line length) • Ruff 0.11.11 (latest stable, modern [tool.ruff.lint] syntax) • Pre-commit hooks (version-pinned and enforced) → Configuration is in pyproject.toml and .pre-commit-config.yaml
2. 🚫 DO NOT MANUALLY FIX LINE LENGTH ISSUES
NEVER manually break long lines or edit formatting. Instead: • Always use the auto-fixer first: rye run autofix • Then check status: rye run lint • Only commit when clean
After writing/editing ANY code:
rye run autofix # Fixes formatting, imports, line length automatically rye run lint # Checks for remaining issues rye run test # Validates functionality `
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts