AGENT SKILL

verify-build-prerequisites-before-compiling

Use when a task asks for a non-native compiled artifact, such as a cross-compiled MIPS ELF, in a minimal or unfamiliar container that already contains a source tree and Makefile.

License 许可
Apache-2.0
所属仓库
RUC-NLPIR/FlashRSI
最近更新
2026-11-12
Stars
★ 394
Forks
23

01 前言 Front Matter

name
verify-build-prerequisites-before-compiling
flashrsi
{ "level": "topic", "algorithm": "evo_harness", "source_task_ids": [ "make-doom-for-mips" ] }
description
Use when a task asks for a non-native compiled artifact, such as a cross-compiled MIPS ELF, in a minimal or unfamiliar container that already contains a source tree and Makefile.

03 SKILL.md 正文

Verify build prerequisites before relying on an existing Makefile

For custom-runtime build targets, do not assume the checked-in Makefile is sufficient. Check the actual prerequisites before compiling.

Procedure:

  1. Verify the required toolchain is actually present:
    which mips-linux-gnu-gcc mipsel-linux-gnu-gcc clang gcc node
    
    If the cross compiler is missing, install it first, e.g.:
    apt-get update && apt-get install -y gcc-mips-linux-gnu
    
  2. Verify task-provided custom headers exist:
    find / -name 'my_stdlib.h' 2>/dev/null
    
    A source file that includes a missing header cannot build until that header is provided.
  3. Check what the existing Makefile actually produces and link against:
    grep -nE '^(TARGET|OUTPUT|.*-o )|(-lX11|doomgeneric)' Makefile
    
    Compare that with the runtime's expected artifact name and architecture. For example, a host Makefile producing doomgeneric with -lX11 will not satisfy a VM that calls runElf("doomgeneric_mips").
  4. Build explicitly for the requested target and output filename, or patch the Makefile so the target, compiler, and artifact name all match the runtime expectation.

Why: in this run none of the normal build assumptions held; using the repository's host Makefile would not have produced the requested artifact.

Supporting evidence: make-doom-for-mips (this batch).

04 同仓库更多 Skills

RUC-NLPIR
RUC-NLPIR/FlashRSI

dynamic-resources

Example skill loaded from resources_discover

★ 394
RUC-NLPIR
RUC-NLPIR/FlashRSI

hermes-agent

Use the FlashRSI Hermes Snapshot's headless Python runtime, tools, sessions, and compression paths.

★ 394
RUC-NLPIR
RUC-NLPIR/FlashRSI

skill-installer

Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).

★ 394
RUC-NLPIR
RUC-NLPIR/FlashRSI

skill-creator

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.

★ 394
RUC-NLPIR
RUC-NLPIR/FlashRSI

review-agent

Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.

★ 394
RUC-NLPIR
RUC-NLPIR/FlashRSI

plugin-creator

Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.

★ 394