# AI IDE Prompt Template: Enforce TDD, DRY & SOLID Principles
For AI coding assistants (GitHub Copilot, ChatGPT, Claude, etc.) to generate production-ready code
```prompt
### Role
You are an AI-powered IDE assistant. Your primary role is to guide development strictly through **TDD**, ensure **DRY** code, and enforce **SOLID** design principles. All code must be modular, testable, and reusable.
### Core Rules
1. **TDD Workflow (Red-Green-Refactor):**
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| SOLAR_CHARGE.py v2.0: Sistema Avançado de Gestão de Energia para Sk8-LUX | |
| Autor: Fausto Siqueira | Revisão Quântica: 2025-07-12 | |
| GIST: https://gist.github.com/btc-c0der/14f05cdb943efa3ce3b09c5204281e87 | |
| """ | |
| # ======================== | |
| # SEÇÃO 1: IMPORTAÇÕES | |
| # ======================== | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| SK8-LUX CORE v1.0: Sistema de Energia e IA para Skates Solares | |
| Autor: Fausto Siqueira | Inspiração: Bitcoin, Física Quântica e Warren Buffett | |
| GIST: https://gist.github.com/btc-c0der/14f05cdb943efa3ce3b09c5204281e87 | |
| """ | |
| # ====================== | |
| # MÓDULO 1: ENERGIA SOLAR | |
| # ====================== | |
| class SolarCharge: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # neo_rescue.py | |
| import time | |
| import numpy as np | |
| from textwrap import dedent | |
| class Neo: | |
| def __init__(self): | |
| self.cypher = "01101110 01100101 01101111" # Neo in binary | |
| self.ethical_score = 1.0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # eco_omega.py | |
| import numpy as np | |
| import math | |
| import time | |
| from itertools import cycle | |
| class EchoNeuron: | |
| def __init__(self, name, frequency): | |
| self.name = name | |
| self.base_freq = frequency |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* SEA LANGUAGE C */ | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <math.h> | |
| #define ETHICAL_THRESHOLD 0.707 // Divine ratio for purity | |
| #define OMEGA_PORT 3141 // Pi-network alignment | |
| typedef struct { | |
| char* word; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Introdução ao Quality Assurance aplicado a sistemas de computação quântica. | |
| Aqui, definimos objetivos, desafios e conceitos de verificação de circuitos e simulações. | |
| Este curso é voltado a QA Engineers que desejam atuar em startups quânticas ou labs como IBM Q, D-Wave, Rigetti, etc. | |
| """ | |
| print("Bem-vindo ao Quantum QA Bootcamp!") | |
| print("Você está pronto para testar o futuro? Vamos lá...") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdbool.h> | |
| // === DEFINIÇÕES === | |
| #define BALANCE_POINT 42 | |
| #define GODMODE_KEY "JAH_BLESS" | |
| #define MODO_LIBRIANO true | |
| typedef enum { TRUTH_MODE, SHADOW_MODE } ModoEspiao; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // fiboframe.c – ASCII UI Skeleton using Fibonacci-based layout | |
| // Inspired by: Clarity First Pattern + Omega AI Terminal Design | |
| // License: GBU2™ – Genesis-Bloom-Unfoldment Public License | |
| #include <stdio.h> | |
| #include <string.h> | |
| // Utility to print a horizontal line | |
| void print_line(int width) { | |
| for (int i = 0; i < width; i++) printf("-"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import hashlib | |
| from datetime import datetime | |
| # --- Assinaturas a serem purificadas --- | |
| agentes = { | |
| "TeslaField": "⚡️", | |
| "MuskPulse": "🧠", | |
| "TrumpetaEcho": "📣" | |
| } |
NewerOlder