跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
安全

pfc5-fish

Author and audit PFC 5.0 FISH for asphalt cases, including def/end functions, globals and locals, callbacks, numbered histories, object traversal, command blocks, IO, and stop logic.

Echo-aloha · 已有 AI 审核记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add Echo-aloha/asphalt-codex-skills-5 --skill pfc5-fish

技能说明


name: pfc5-fish description: Author and audit PFC 5.0 FISH for asphalt cases, including def/end functions, globals and locals, callbacks, numbered histories, object traversal, command blocks, IO, and stop logic.

PFC5 FISH

Use this skill when a PFC 5.0 asphalt case needs FISH functions, callbacks, histories, traversal, IO, controllers, or stop conditions.

Required Inputs

  • PFC2D/PFC3D 5.0 and target stage;
  • object types and identifiers/groups;
  • inputs, intended globals, outputs, callback timing, and stop rule;
  • expected history/file schema and runtime probe.

Workflow

  1. Write the function contract before code: inputs, globals, return symbol, side effects.
  2. Use the PFC5 def/define name ... end family and explicit command blocks.
  3. Keep intentional globals few; initialize callback state before activation.
  4. Use numbered history id outputs and document each ID.
  5. Guard object pointers and empty collections.
  6. Activate callbacks explicitly and prove activity with a counter/history.
  7. Remove or reset callbacks across restore/restart boundaries.
  8. Run scripts/audit_pfc5_fish.py, then a minimal PFC5 runtime probe.

Read patterns.md for maintained skeletons.

Working Rules

  • Do not mix syntax families in one block.
  • Do not leave controller functions defined but never activated.
  • Do not put unwrapped PFC commands directly inside a FISH function.
  • Inline evaluation belongs at command level, not inside FISH expressions.
  • Static delimiter checks do not validate intrinsic names.

Output Contract

Return function/global/history/callback maps, source files, audit result, activation proof, and runtime-validation status.

Local Contents

  • references/patterns.md — PFC5 function/history/callback patterns.
  • scripts/audit_pfc5_fish.py — syntax-family and block-balance audit.
  • agents/openai.yaml — interface metadata.