Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Reviews recently written Clojure code against a Biff conventions checklist, then guides fixing violations.
55% 85%+30 ptsof test cases passed
Passed 17 of 20 test cases with the skill, and 11 of 20 without it.
3 of 3 safety checks passed
Not used yet
Copy the checklist.txt file to .biff/review/<current date>/<n>.txt, e.g.
.biff/review/2020-01-01/0.txt. n starts at 0 and should be 1 higher than the
highest number already in the folder for the current date.
Read rules.md for a description of each of the points in the checklist. Then
review the recently written code against the points in the checklist. Check off
points (replace [ ] with [x]) in the checklist for which there are no
violations. Leave other points unchecked. For each unchecked point, include a
bulleted list underneath with filenames and line numbers for violations.
Tell the user the path for the new review checklist file and ask them to verify the checklist is correct. After this point, you should never edit the checklist. The user may make edits to the checklist, and they are responsible for signing off on each point.
When the user has verified the checklist is ready, go through each point one-by-one and fix the violations. Do not stop until you've gone through all the unchecked points in the checklist. Do not skip a violation for any reason; you must fix each violation even if it requires a large code change. Do not try fix violations via workarounds; it's better to do a large principled change than a small stupid change.
Then repeat: ask the user to update the checklist as needed. If any points are still unchecked, you will need to revisit those points and fix the violations. Repeat until the user verifies the checklist is complete.
If there are uncommitted code changes, review those. Otherwise, review commits from the current branch that aren't on the main/master branch. Otherwise, ask the user what you should review.
If the user includes "auto" as an argument to this skill, then after you've reviewed the code and created a new checklist, proceed to fix the violations instead of waiting for the user to edit the checklist. You should still leave the originally violated points in the checklist unchecked so that the user
Next to this one in the catalogue, plus more from the same author.