- Home
- Skills
- Code Quality & Review
- BrainFrog Engineering Pack
Works with the AI Agents you already use
BrainFrog Engineering Pack
by dameepng
Four free engineering workflows that keep AI coding agents grounded: understand, implement, refactor, and review code without inventing requirements.
Free
BrainFrog Engineering Pack
Example session with this skill installed
/review-code-change I changed calculate_tax to accept an optional postal_code, that's all the ticket asked for. Can you review my changes before I commit?
- Read your context and instructions
- Compiled the brainfrog engineering
Real Claude Code session using /review-code-change from this pack. The diff added an optional postal_code parameter (what the ticket asked for), and also swapped two lines and invented a tax-rate table.
The diff does more than add postal_code. It also swaps the order of save and authorize in update_order, and that swap is a security bug. I'd revert it before you commit.
[critical] Order is saved before the permission check
Location: app/orders.py:28-31 (update_order)
Trigger: any user who isn't the order's owner or an admin calls update_order with someone else's order.
Consequence: save(order) writes the order to data/orders.json first. Only then does authorize raise PermissionError. The caller gets an error, but the change is already on disk, so anyone can overwrite any order.
Fix: put the original order back: authorize(user, order) first, then save(order). This change isn't part of the ticket, so dropping it from the commit is enough.
Status: confirmed from the code.
[high] Hardcoded tax rate table nobody asked for
Location: app/orders.py:6 (TAX_BY_POSTCODE) and :23-25
Trigger: any call that passes a postal_code.
Consequence: the ticket asked only for an optional parameter. The diff also adds rates for three postal codes and raises ValueError for every other code, so any real postal code outside those three now crashes the caller. The rates (9.5%, 8.8%, 10.25%) have no source, and once committed they become production tax logic.
Fix: find out where postal-code rates should actually come from (a tax service, config or product spec). Until then, accept postal_code and keep the existing 10% rate rather than inventing a table and a failure mode.
Status: needs evidence: the ticket text or the product owner would settle it.
[low] Unknown postal codes don't fall back to the default rate
Location: app/orders.py:23-24. Passing an unknown or numeric code raises instead of returning the 10% default that postal_code=None gets. Decide on purpose, and normalise the input if you keep the lookup.
Compatibility: calculate_tax(amount, postal_code=None) keeps existing calls working with the same result.
Tests: the repo has none, so none were run. Two checks would cover the main risks: update_order with a non-owner raises
and leaves data/orders.json unchanged; calculate_tax with no, known and unknown postal codes.
Scope: the uncommitted diff to app/orders.py, plus a repo search for callers. No edits made.
Same request, same model, without the skill
The
calculate_taxchange is fine, but …update_ordernow saves before checking permission. … One thing to check: an unknown postal code raises aValueErrorinstead of falling back to the default rate.
It caught the security bug too, but called the invented tax table "fine" and never asked where the rates came from.
Connects securely to your tools. The creator never sees your data.
About this skill
Four workflows from BrainFrog, an open-source agent runtime. MIT-licensed and free.
- /understand-codebase: traces real execution paths and state ownership, and names missing evidence instead of guessing.
- /implement-code-change: features and bug fixes. Picks the smallest architecture strategy, builds in tested slices, and reports proposed vs. verified honestly.
- /refactor-code-safely: no redesign without an observable reason; preserves behavior, public contracts, and stored data.
- /review-code-change: reproducible findings (location, trigger, consequence, fix, status), including invented business rules and speculative over-engineering.
Shared principle: "no change is justified" is a valid answer, and a test only counts as passed if it actually ran.
Tip: agents often skip skills on quick tasks. Call one by name, for example /review-code-change review my changes before I commit, to make sure it runs.
Want your agent to prove its work too? See the Verify Your AI Agent bundle: Prove Agent Work, Frontend Visual QA, PR Visual Proof, and Pre-commit Secret Guard.
Agents may skip these skills on quick tasks unless you call them by name. They guide reasoning; they don't run checks themselves. For recorded proof that a change works, use Prove Agent Work.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
- Software
Python
Git
Instructions only: no scripts and no network access. Review and explain requests never edit files; implement and refactor change code only when you ask.
Permissions
Shell runs your project's own tests and git commands. Files are read to understand and review code, and written only for implement and refactor tasks you request.
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.