agentsclimarketplace

Freebasic

Skill woyxiang/skills/skills/freebasic

FreeBASIC programming language skill for AI code assistantsFrom its SKILL.md

Install
npx -y skills add woyxiang/skills --skill freebasic

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.2 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

FreeBASIC Skill

FreeBASIC is a free/open source, BASIC compiler for Linux, Windows, and DOS.

Detection

This skill activates when working with FreeBASIC code or projects. Watch for:

File extensions: .bas, .bi

Comments:

' FreeBASIC comment

Language markers:

  • Dim, Var, Function, Sub, Print, Input, If, For, While
  • #if, #define, #include (preprocessor)
  • End Function, End Sub, End Type
  • Compiler options: -lang fb, -lang qb, -lang fblite
  • Meta-statements: $Dynamic, $Static, $Include

Quick Reference

Keywords

KeywordDescriptionDoc
Dim, VarDeclare variablestypes.md
Function, SubDefine proceduresprocedures.md
If, Then, ElseConditional executioncontrol-flow.md
For, While, DoLoopscontrol-flow.md
Print, InputConsole I/Obasics.md
Open, Close, Get, PutFile I/Ofile-io.md
String, Len, MidString operationsstrings.md
Screen, Circle, LineGraphicsgraphics.md

API Search

Use the search script to find keywords:

python scripts/search-api.py "print to screen" --top 5
python scripts/search-api.py --name "Print" -v
python scripts/search-api.py --json "array dimension"
python scripts/search-api.py --list-categories

Topic Routing

Language Fundamentals

TaskDoc
Hello World, first programbasics.md
Variables and data typestypes.md
Operators and expressionsoperators.md
Control flow (if, for, while)control-flow.md
Functions and subsprocedures.md
Arrays and dynamic memoryarrays.md
Strings and string functionsstrings.md

Data Types

TaskDoc
Integer, Double, Booleantypes.md
User-defined types (UDT)user-defined-types.md
Pointers and memorypointers.md
Type casting and conversiontypes.md

Standard Library

TaskDoc
File I/O (Open, Print#, Get, Put)file-io.md
Console I/O (Print, Input, Color)basics.md
Date and time functionsdate-time.md
Math functions (Abs, Sin, Cos)math.md
Memory allocationpointers.md

Graphics & UI

TaskDoc
Screen modes and drawinggraphics.md
User input (mouse, keyboard)graphics.md
Images and spritesgraphics.md

Advanced Topics

TaskDoc
Preprocessor directivespreprocessor.md
Threading and synchronizationthreading.md
Error handling (On Error)error-handling.md
Compiler options and dialectscompiler.md
QB migration guidecompiler.md

Syntax Examples

Hello World

Print "Hello, World!"

Variables

Dim As Integer x = 10
Dim As Double pi = 3.14159
Dim As String name = "FreeBASIC"

Arrays

Dim array(0 To 9) As Integer
Dim matrix(1 To 3, 1 To 3) As Double
ReDim Preserve array(0 To 20)

Control Flow

If x > 0 Then
    Print "positive"
ElseIf x < 0 Then
    Print "negative"
Else
    Print "zero"
End If

For i As Integer = 1 To 10
    Print i
Next

Do While condition
    ' ...
Loop

Functions

Function Add(ByVal a As Integer, ByVal b As Integer) As Integer
    Return a + b
End Function

Sub SayHello(name As String)
    Print "Hello, " + name + "!"
End Sub

Dependencies

  • FreeBASIC compiler (fbc)
  • Python 3.10+ for search scripts

See Also

What ships with it: 24 files

2986.3 KB alongside SKILL.md, 5 of them executable

data/

scripts/

tests/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.