tool-z88dk-lib

Installs and removes third-party libraries for z88dk Z80 C compilation targets.

1.1k|206|Updated Mar 16, 2016
One-click install
npx skills add https://github.com/z88dk/z88dk --skill tool-z88dk-lib-z88dk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tool-z88dk-lib
Source: https://github.com/z88dk/z88dk/tree/main/.agents/skills/tool-z88dk-lib
Command: npx skills add https://github.com/z88dk/z88dk --skill tool-z88dk-lib-z88dk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing third-party libraries like FatFs, diskio, and FreeRTOS for z88dk Z80 development requires manually placing binaries and headers into the correct classic or newlib directory trees, which is error-prone and target-specific. ## Core Features & Use Cases - Library Installation: Installs third-party libraries into the correct per-target paths for both classic (lib/clibs/lib/<target>/) and newlib (lib/clibs/{sccz80,sdcc_ix,sdcc_iy}/lib/<target>/) worlds. - Library Removal and Listing: Removes installed libraries with -r/--remove and lists installed libraries per target when invoked with only +target. - Use Case: When adding FatFs file I/O support to a ZX Spectrum or CP/M project, run z88dk-lib +target fatfs to place the library binaries and headers in the right locations instead of copying files by hand. ## Quick Start Ask the assistant to install the FatFs library for your chosen z88dk target using z88dk-lib and confirm the installed headers and library paths.

Frequently Asked Questions about tool-z88dk-lib

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install a third-party library in z88dk?

Run z88dk-lib with the target flag and library names, for example `z88dk-lib +zx fatfs`. The tool places binaries and headers into the correct classic or newlib directories for that target.

How do I list installed libraries for a z88dk target?

Invoke z88dk-lib with only the target flag, such as `z88dk-lib +zx`, and it prints the libraries currently installed for that target.

How do I remove a library installed with z88dk-lib?

Use the -r or --remove flag together with the target and library names, for example `z88dk-lib +zx -r fatfs`. Add -f to delete files without confirmation prompts.

Where does z88dk-lib install headers for classic vs newlib?

Classic headers go to include/lib/<target>/ while newlib headers go to include/_DEVELOPMENT/{proto,common}/lib/<target>/. Library binaries similarly split between lib/clibs/lib/<target>/ and the newlib sccz80/sdcc_ix/sdcc_iy trees.

Where can I find third-party library packages for z88dk?

Package sources are commonly hosted at the feilipu/z88dk-libraries GitHub repository, which provides FatFs, diskio, FreeRTOS, and similar libraries prepared for z88dk installation.