원클릭으로
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 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
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
| 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.