بنقرة واحدة
harbour-hix-development
Critical rules for coding and compiling Harbour (.prg) files in this environment.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Critical rules for coding and compiling Harbour (.prg) files in this environment.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Gestiona archivos y directorios del sistema de archivos
Defines the general operational behavior and housekeeping rules for the AI Assistant.
Defines the identity and personality of the AI Assistant and the User Profile.
Allows the agent to set simple time-based reminders for the user.
Gestiona correos electrónicos mediante Gmail API
Envía y recibe mensajes de WhatsApp mediante WhatsApp Business API
استنادا إلى تصنيف SOC المهني
| name | Harbour & HIX Development |
| description | Critical rules for coding and compiling Harbour (.prg) files in this environment. |
Always respect block indentation in .prg files. Do not write flat code. CRITICALLY IMPORTANT: ALL INDENTATION MUST BE EXACTLY 3 (THREE) SPACES. Never 4 spaces. Never tabs. Always 3 spaces per level.
if ... else ... elseif ... endif block, a do while ... enddo loop, a for ... next loop, or a do case ... case ... endcase structure, the code inside the branches MUST be indented to the right (exactly 3 spaces).if nError == HB_CURLE_OK
cResponse := curl_easy_dl_buff_get(hCurl)
if !Empty(cResponse)
LogTrace("Success")
endif
else
LogTrace("Error: " + Str(nError))
endif
In Harbour, use => to define key-value pairs in hash maps, not :.
{ "key" => "value" }{ "key": "value" } (This generates runtime/compile JSON mapping errors).To compile Harbour scripts in this workspace, you MUST use exactly the following compiler executable:
c:\harbour\bin\win\bcc\hbmk2.exe [filename.prg]
Before executing hbmk2.exe, you must ALWAYS ensure the Borland C++ compiler (bcc32c) is in your path. If you do this in a single command line, combine them:
set PATH=c:\bcc77\bin;%PATH% && c:\harbour\bin\win\bcc\hbmk2.exe aios.prg
If using network/web features like UGet, UWrite, or curl, remember to compile with the necessary harbour libraries by appending the .hbc configurations to the command line:
c:\harbour\bin\win\bcc\hbmk2.exe aios.prg hbcurl.hbc xhb.hbc hbhttpd.hbc
In Harbour, always use the full keyword return instead of the abbreviation retu.
CRITICALLY IMPORTANT: You must rigorously apply this spacing rule to every single function and procedure in the .prg files.
function or procedure declaration, before starting with the local variables blocks.local variable definition blocks to separate them from the rest of the body code.function Example()
local nVar := 1
local cTxt := "test"
if nVar == 1
LogTrace(cTxt)
endif
return nil
Whenever you use the logical NOT operator !, you MUST leave exactly one space after it.
if ! Empty( cVar )if !Empty(cVar)Whenever you use parentheses ( ), you MUST leave exactly one space after the opening parenthesis ( and exactly one space before the closing parenthesis ).
if ( nVar == 1 ) or hb_HGetDef( hArgs, "query", "" )if (nVar == 1) or hb_HGetDef(hArgs, "query", "")All code comments within .prg files MUST be strictly written in English. Do not write comments in Spanish or any other language.
In Harbour, all local variables MUST be declared at the very beginning of a function or procedure, before any executable code or assignments. You cannot interleave local declarations with executable statements.