A coding agent can fix a bug quickly and still leave you doing the difficult work: deciding what the change should cover, checking whether the tests prove it, and reviewing the result against the original request.
Agent skills can make those steps repeatable. A planning skill can identify the expected behavior. A testing skill can establish a failing example before implementation. A review skill can compare the finished patch with the requirement and repository standards.
The useful question is how those procedures connect during one change. Let's use a small Python bug to follow that workflow from a reported failure to a patch you can review. This is a teaching example, rather than a production authentication system.
What should planning settle before code changes?
Our function decides whether a synthetic token has expired at a supplied timestamp:
def expired(now: int, expiry: int) -> bool:
return now > expiry
The requirement says a token expires at its expiry timestamp. Both arguments must be plain integers; booleans, floats, and strings must raise TypeError.
A useful plan names both behaviors. Changing > to >= fixes equality, but it doesn't enforce the input requirement. Python's annotations don't perform runtime validation.
For a planning-only request, the agent should inspect this code, describe the smallest change, identify tests, and stop. Ask it to implement when you're ready. A reusable procedure shouldn't silently turn a request for a plan into permission to edit.
Each stage produces something the next stage can inspect. A green test result supports review; the human merge decision remains explicit.
How does the testing skill establish the bug?
Save the function in expiry.py. Save this first test in test_expiry.py:
import unittest
from expiry import expired
class ExpiryTests(unittest.TestCase):
def test_expires_at_boundary(self):
self.assertTrue(expired(100, 100))
Run python3 -m unittest -v. Against the original function, the test fails because equality returns False. That failure demonstrates the reported behavior through the function's public interface.
Now change the comparison to >= and rerun the test. It passes. Continue one behavior at a time: add tests for before and after the timestamp, followed by invalid inputs. Observe the invalid-input test fail before adding validation.
This is where a testing skill earns its place: it keeps the agent from writing the fix and a matching test together, then presenting the first green run as proof that it reproduced the bug.
What does the finished implementation need?
The small implementation is:
def expired(now: int, expiry: int) -> bool:
if type(now) is not int or type(expiry) is not int:
raise TypeError("timestamps must be plain integers")
return now >= expiry
Here, exact type checks follow the stated requirement. isinstance(True, int) would accept a boolean, which this interface rejects. Another application could choose a different contract; the skill shouldn't invent one.
Add the following methods inside ExpiryTests:
def test_before_and_after(self):
self.assertFalse(expired(99, 100))
self.assertTrue(expired(101, 100))
def test_rejects_invalid_inputs(self):
for bad in (True, False, 100.0, "100", None):
with self.subTest(value=bad):
with self.assertRaises(TypeError):
expired(bad, 100)
with self.assertRaises(TypeError):
expired(100, bad)
I checked the sequence locally: equality failed against the original; invalid inputs failed against the comparison-only fix; the final implementation passed all three test methods. Those results establish this function's illustrated contract, without claiming that a skill caused the improvement.
What should review add after the tests pass?
Review the patch against two inputs: the requested behavior and the repository's standards. The first asks whether equality and invalid inputs behave correctly. The second asks whether the implementation fits the surrounding project.
Look beyond the changed line. Are callers passing floats? Does an existing public API promise to accept integer subclasses? Does the new exception change a documented response? Our tiny fixture doesn't contain those integration boundaries; a real repository needs them checked.
Keep review evidence tied to the candidate being reviewed. If the agent changes the patch after review, assess the new version. An earlier green run doesn't automatically cover later edits.
How would you use this during everyday development?
Give each skill a specific contribution: planning produces requirements and a verification approach; testing produces observed failure and passing evidence; review assesses the resulting patch. They can reference each other's outputs without repeating every instruction.
The Agent Skills format supplies a way to package those procedures. Your repository, tests, and review process supply the evidence for accepting a change.
Start with one recurring bug-fix workflow. Make its inputs and completion conditions explicit, then use the skills to keep those conditions visible throughout the task. The payoff is a change whose reasoning and verification you can follow when it's time to decide whether it should merge.

Top comments (1)
I like the red-before-green sequence and the reminder that a green run covers only the patch that was tested. In an agent workflow, I’d attach the failing assertion, test command, and reviewed diff or commit ID to the handoff so a later edit clearly invalidates that evidence. Would you make that bundle an output of the testing skill or an input contract for the review skill?