AGENT SKILL

install-required-runtime-and-artifact

Use when a terminal coding task explicitly names a required language/runtime and a required implementation or output file path, and the verifier tests assert that file exists.

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

01 前言 Front Matter

name
install-required-runtime-and-artifact
flashrsi
{ "level": "topic", "algorithm": "evo_harness", "source_task_ids": [ "gcode-to-text" ] }
description
Use when a terminal coding task explicitly names a required language/runtime and a required implementation or output file path, and the verifier tests assert that file exists.

03 SKILL.md 正文

Install required runtime and create/verify the required file first

When a task requires a runtime and a fixed file path (an implementation file like /app/ars.R or a generated answer file like /app/out.txt), satisfy those requirements before doing unrelated setup or running verifier tests.

Procedure:

  1. Check for the required runtime and install it if missing:
    command -v Rscript || { apt-get update && apt-get install -y r-base-core; }
    
    Adapt the package/install command to the named runtime (python, node, R, etc.).
  2. For a required implementation file, create it immediately and write the implementation into that exact path:
    mkdir -p /app
    touch /app/ars.R
    
  3. For a required generated output file, produce it from the implementation and verify it exists before spending remaining time on optional dependencies or verifier runs:
    mkdir -p /app
    # run the solution, then:
    test -s /app/out.txt && wc -l /app/out.txt
    
  4. Only after the required runtime and file exist should you perform optional setup such as installing curl, openssl, or uv, or run the verifier.

Why: verifier failures are often simply No ars.R file found, FileNotFoundError: Rscript, or /app/out.txt missing. In gcode-to-text the verifier failed both tests with reward 0.0 because /app/out.txt was never produced while time was spent installing packages and running pytest. Create required implementation files and verify generated output files before running the verifier.

Supporting evidence: gcode-to-text (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