linxisa/linx-skills/linx-lib
Claude Code and agent skill by linxisa/linx-skills
- community
Checking that the SKILL.md file is still in the repository.
Linx libc bring-up workflow across glibc and musl. Use when building or debugging libc ports, enforcing static/shared runtime split policy, aligning ABI/relocation behavior with Linux and toolchain, or reporting staged gate outcomes (G1/M1-M3/R1-R2).
Install
npx vskill@latest install linxisa/linx-skills/linx-libSKILL.md
Linx Lib
Overview
Use this skill for combined libc bring-up and runtime policy across lib/glibc and lib/musl.
Gate ladder
- glibc:
G1aconfigure +csu/subdir_libG1bsharedlibc.sogate- musl:
M1/M2/M3build gatesR1/R2runtime gates
Canonical commands
Runtime policy
- Static and shared outcomes are first-class and separate.
- No aggregate green if one mode fails.
- Bind runtime evidence to the current
build-linxQEMU explicitly; do not let
the runner fall back to a stale emulator/qemu/build binary.
- If the mandatory call/ret cross-stack audit fails before samples start,
report every sample as BLOCKED_PRE_RUN, not as a libc runtime failure.
- Preserve mode-level logs and summaries.
- PR/runtime gate runs use
--sample allso fork/wait, fork/exec, stdio, and
C++ startup regressions are not hidden behind the lightweight malloc/printf default. Use narrower --sample selections only for local triage.
- Treat phase-b runtime proof and hosted phase-c packaging proof separately.
SPEC Stage-A and other hosted-userland lanes need the shared-musl runtime package (libc.so and loader path), so do not claim hosted closure from phase-b static/shared smoke results alone.
- A gfrun-hosted SMT4 ELF must not enter libc startup on all four PEs. PE0
owns _start, libc/TLS, file descriptors, and process exit; PE1 through PE3 use an independent-stack lightweight entry and no libc/syscall ABI.
- The first lightweight ABI is static-only and single-shot. The ELF exports
__linx_group_worker_start plus a directly called __linx_group_worker_main(pe_id, context). Missing worker symbols and PT_INTERP images fail closed before guest execution. Static PIE with PT_DYNAMIC but no PT_INTERP remains a static lane.
- In this hosted group lane, PE0
SYS_exitandSYS_exit_groupboth terminate
the core; a non-leader SYS_exit remains per-PE. This accommodates current Linx musl exit ordering without giving workers process ownership.
- Keep ownership split: Linx-TileOP-API owns the public header and ABI docs;
compiler-rt owns linx/group_runtime.c; libc/toolchain packaging installs it in liblinx_builtin_rt.a; workloads define only __linx_group_worker_main and consume the archive.
Alignment checks
- ABI/register conventions align with Linux UAPI.
- Relocation IDs/contracts align across libc + linker + kernel.
- signal/ucontext/setjmp behavior is cross-stack consistent.
- glibc and musl dynamic loaders enforce the same
.note.pto.isaidentity on
the main executable, every DT_NEEDED object, and every dlopen object. Owner is PTO\0, type is 1, alignment is four bytes, and the compact JSON descriptor has no trailing NUL; missing, old, and mismatched identities are rejected before constructors or application code run.
Skill evolve loop (mandatory closeout)
- At closeout, decide
skill-evolve: updateorskill-evolve: no-update. - Update this skill only for material reusable findings:
- new libc/runtime contract required by gates,
- new mandatory build/runtime command/env for reproducible results,
- new recurring triage flow for static/shared divergences.
- Do not update for minor optimization, wording cleanup, or one-off local workaround.
- If update is needed, validate with:
python3 /Users/zhoubot/.codex/skills/.system/skill-creator/scripts/quick_validate.py /Users/zhoubot/linx-isa/skills/linx-skills/linx-libpython3 /Users/zhoubot/linx-isa/skills/linx-skills/scripts/check_skill_change_scope.py --repo-root /Users/zhoubot/linx-isa/skills/linx-skills --base origin/main
Included scope
This consolidated skill absorbs prior glibc-bringup, musl-bringup, and libc-focused call/ret runtime checks.
References
references/gates_and_policy.md
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinglinx-lib/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/linxisa/linx-skills/linx-lib)