Task author

From brainqub3/agent-labs · View interactive version

Task author is an AI agent skill from the GitHub repository brainqub3/agent-labs. Create or repair Brainqub3 task packages that must pass evaluator tests before runs, including both fabricated instances and user-provided data workflows.

How to use this skill

Skill file

task-author

Use this skill when a new task is needed or when an existing task package is incomplete.

Goal

Produce:

  1. brainqub3/tasks/<task>/task.md
  2. brainqub3/tasks/<task>/instances.jsonl
  3. brainqub3/tasks/<task>/evaluator.py
  4. brainqub3/tasks/<task>/tests/test_evaluator.py
  5. Optional fixtures/ files required for deterministic evaluation

Workflow

  1. Initialize scaffold if task folder does not exist: uv run brainqub3 task init <task_name>.
  2. Define deterministic output contract in task.md (exact JSON keys, types, and no extra keys unless explicitly allowed).
  3. Choose data mode: fabricated task data or user-provided data.
  4. Build instances.jsonl with stable IDs and task inputs.
  5. Implement evaluator with explicit failure taxonomy (invalid_json, not_object, schema_mismatch, answer_mismatch, plus task-specific errors).
  6. Add evaluator tests for pass/fail and malformed output.
  7. Run uv run pytest brainqub3/tasks/<task>/tests -q and fix until green.
  8. Optionally run a smoke check: uv run brainqub3 run sas --task <task_name> --instances 1 --allow-mock.

Data Modes

1) Fabricated Data Mode

2) User-Provided Data Mode

Quality Gates

Coordination

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.