AGENT SKILL

exec-map-reduce

Operate Harbor's experimental `harbor exec` map/reduce workflow: choose flags or ExecConfig mode, compile paths into tasks, inspect inferred or explicit artifacts, run map jobs, stage map artifacts into a reducer, and troubleshoot configuration and output failures.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
exec-map-reduce
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Operate Harbor's experimental `harbor exec` map/reduce workflow: choose flags or ExecConfig mode, compile paths into tasks, inspect inferred or explicit artifacts, run map jobs, stage map artifacts into a reducer, and troubleshoot configuration and output failures.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Harbor exec: map and reduce

Use this skill only for Harbor's experimental harbor exec command. It is a small compile → map-job → optional-reduce-job workflow, not a general harbor run job configuration guide. Keep the run inspectable and avoid starting an agent/model job until the resolved configuration and artifact contract are clear.

Route by intent

Safe operating sequence

  1. Check the installed surface before making version-sensitive claims: harbor --version and harbor exec --help. The command is explicitly experimental; the verified help surface includes --print-config for resolving config and inferred artifacts without executing a job.
  2. Select exactly one input mode:
    • Flags mode: supply compilation and job options directly. A reducer is created when any reducer option is passed, but it still requires a reducer instruction source.
    • Config mode: pass --config FILE, where the suffix is .yaml, .yml, .json, or .toml. Put the complete workflow under map and optional reduce; do not mix it with flags-mode options. --print-config remains useful with either mode.
  3. Make the input cardinality explicit when it matters. A single directory or glob scans by default; multiple paths are grouped into one environment by default. Use --scan or --no-scan deliberately and use --limit only for scanning.
  4. Define the output contract. Prefer -f/--artifact and --reduce-artifact over prompt inference. If scoring is needed, configure a reward artifact that is a non-empty JSON object whose values are numbers; do not combine reward-artifact options with --disable-verification.
  5. Run --print-config and inspect the JSON: paths, instructions, workdirs, task output directory, artifact list, generated verifiers, agents/models, attempts, concurrency, retry settings, provider, and job names. This is a read-only preflight; it does not compile tasks or run agents.
  6. Only after preflight approval run the same command without --print-config. Record the printed map/reduce job directories. Omitted task output is temporary in flags mode and is cleaned up after execution; jobs default to jobs and persist unless a caller chooses another --jobs-dir.

Boundaries and cautions

  • A reducer requires non-empty map.compile.artifacts. Those map artifacts are staged into the reducer as implicit inputs; the reducer has no path-scan option for them.
  • Auto-inference is conservative and is based on inline instruction text. It does not inspect an instruction file's contents. Explicit artifact paths are safer for correctness and for reducer eligibility.
  • Auto-verification checks artifact existence. A reward artifact adds a JSON promotion step; it is not a substitute for a domain verifier.
  • Do not claim a live agent/model, Docker, cloud provider, or external API was verified merely because a config parsed. This skill's checks are config/help checks only unless the caller separately authorizes a real execution.
  • For ordinary evaluation jobs, route to the Harbor evaluation workflow rather than expanding this skill.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351