Skip to content

A3: Turn a manual workflow into a skill

At a glance

  • Task: perform a small workflow by hand and write it down as one skill. Then test its trigger and its near miss. The trigger is the part of the skill's description that says when to use it; test it with a request that should activate the skill. A near miss is a similar request that should not.
  • Week: 3
  • Weight: 2.5 points
  • Due: Sunday 23:59 in the listed week
  • Hand in: the skill file, manual-work evidence, two trigger trials and report.json.
  • Done when: the intended request activates the skill and the similar request does not, and you have outputs that show both.
  • Time: published after a timed pilot; record your prediction and actual time.

Objectives

Write a precise skill with clear limits, and test when it should activate (LO2).

Prerequisites

Follow the course safety practices:

  • Run the agent in a dedicated directory or container.
  • Keep residency, employer and cloud credentials out of that environment.
  • Keep keys out of repositories, prompts, screenshots and logs.
  • Run injection demonstrations offline against the local machine only.

Use the mature coding-agent seat supplied for the course. Do not run an unknown generated command on a credential-bearing host.

Tasks

  1. Run by hand. Complete the workflow without a skill. Save the request, inputs, steps, expected output and verification command.
  2. Generate. Ask the agent to draft one SKILL.md. It needs a name, a trigger, a non-trigger (when not to use it), steps, limits and a verification step.
  3. Verify the trigger. Send one request that should activate the skill. Inspect the trace or the activation marker that the agent produces.
  4. Verify the near miss. Send a similar request that should not activate the skill. Record what you observed. If the skill activates when it should not, record that too.
  5. Revise. After feedback from a peer or the teaching team during the assignment week, tighten one trigger or limit and rerun both cases. Record who gave the feedback and the date. If no feedback was available, record the date of your own review instead, and explain your choice in the decision line.

Generation is the skill the agent proposes. Verification is your manual baseline and the two controlled requests. An activation that only looks likely is not proof. You need a marker you can observe.

Deliverables

Copy starter/ to a submission directory of your own outside the course checkout. It holds report.json, SKILL.md and manual-workflow.md for you to fill in. Include the skill, the manual evidence, both trial records and report.json. Run the check from the course checkout:

python practice/a3/check.py path/to/submission

Grading

The criteria are:

  • a manual baseline that someone else can reproduce;
  • an unambiguous trigger;
  • no activation on the near miss;
  • instructions with clear limits;
  • evidence for the revision.

The public check only tests that your records are consistent. It does not use a model to judge your work.

AI use rules

Green: the agent may draft skill text and test requests. Yellow: it may suggest where the trigger boundary should be, which you then test with your own runs. Red: you alone decide whether activation occurred and choose the final decision. Attach one AI-use note ID.

Estimated time

Published after a timed pilot. Record your predicted and actual time. Ask for support if you cannot observe the agent's activation signal.

Work record outline

assignment: A3
evidence: [{id: TODO, path: TODO, observation: TODO}]
manual_evidence: [TODO]
skill_path: TODO
trials: [{case: trigger|near_miss, request: TODO, expected_trigger: true|false, actual_trigger: true|false, evidence: [TODO]}]
revision: TODO
explanation: TODO
ai_use_note: TODO
predicted_time: TODO
actual_time: TODO
decision: {action: accept | narrow | recheck | stop, because: [evidence ID(s)], next: TODO}

The outline lists the fields of report.json in plain text. starter/report.json holds them as JSON, except predicted_time and actual_time, which you add yourself. Evidence paths are relative to your submission directory. The check reads a field that still contains the word TODO, or text in angle brackets such as <name>, as unfilled.