Optimize goal authoring

From TaoELi/FermiLink · View interactive version

Optimize goal authoring is an AI agent skill from the GitHub repository TaoELi/FermiLink. Write, review, or strengthen `goal.md` files for `fermilink optimize` across Python, C/C++, and Fortran packages. Use when defining target scope, scientific correctness constraints, representative workloads, build commands, or staged workload-input files for goal mode.

How to use this skill

Skill file

FermiLink Optimize Goal Authoring

Use this skill when asked to create, audit, or tighten a goal markdown file for

fermilink optimize.

Read these first:

Then load examples only as needed:

Missing Details

Do not silently fill in important missing details by assumption.

If the user has not specified information that materially affects the goal file,

ask for it explicitly before finalizing the draft. Typical examples include:

Only infer details from local repository evidence when that evidence is direct

and unambiguous. If multiple reasonable interpretations exist, ask the user.

Workflow

  1. Identify the actual hot path and write a narrow ## Editable Scope.
  2. Define a primary metric that isolates the targeted computation, not a vague whole-program goal unless that is truly the target.
  3. Write scientific correctness constraints as explicit numeric invariants and forbidden relaxations.
  4. Choose 3-6 representative workloads with real train/test diversity. Avoid toy cases for algorithm-level work.
  5. Include deterministic ## Build commands. If the package needs build/install before benchmarking, say so explicitly in ## Notes.
  6. If workloads need input files, mention their filenames directly in ## Representative Workloads and keep those files bundled with the goal file. FermiLink stages file references from workload bullets into FERMILINK_GOAL_INPUT_ROOT.
  7. Keep the recognizable goal headings exactly as shown in assets/goal-template.md.

Authoring Rules

Audit Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.