# Complexity Guard Lite: Big-O Review With Few False Alarms

> Reviews code for algorithmic slowdowns: nested loops over the same data, list lookups, queries per item (N+1), sorting or string building in loops, recursion with no memo, and repeated work in a loop. Checks for prefetching and memo first to avoid false positives; gives evidence and a fix.

Complexity Guard Lite: Big-O Review With Few False Alarms is a paid AI agent skill on Agensi by Aishwarya Rai. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Aishwarya Rai](https://www.agensi.io/creators/aishwarya-wambule)
- Version: 1.0.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/complexity-guard-lite-big-o-review-with-few-false-alarms
- Tags: code-quality-review, apis-backend, frontend-web-apps

## About this skill

Studies of AI-written code keep finding the same thing: it usually works, but it often runs far slower than it should, with nested loops, lookups by scan, a query per row, and copies made inside loops. Linters mostly catch one-language micro-optimisations. This skill reviews for how cost **grows** with the input, in any language, and stays quiet when code only looks slow.

**What it catches**
- Nested loops over the same data, and **joins**: two data collections matched on a key (`orders × customers`)
- Lookups by scan in a loop: `in` on a list, `.find`, `.filter`, `.includes`, `count`, `index`
- **N+1 queries and network calls** per item, after checking for `select_related`, `prefetch_related`, `include` or `JOIN FETCH` first
- Accumulating copies (`{...acc}` in `reduce`, `pd.concat` in a loop), front removal (`pop(0)`, `shift`), slice copies per call
- Sorting or string building in loops, recursion with no memo, unbounded caches on methods, regexes compiled on every call, layout thrashing in the DOM, and work that never changes inside a loop

**What it leaves alone:** set and dict lookups, `len()`, fixed dimensions like months or retries, windows that move by their own width, pagination loops, memoized recursion, Python's cached `re` patterns, Go reslicing, small constant arrays. Every finding names its evidence and gives a concrete fix in the code's own language. pandas row loops are reported separately, as a constant factor rather than a Big-O problem.

Advisory only: it reports, and changes code only if you ask. Works in any agent. Instructions only: nothing to install.

## Requires

- Python

## Known limitations

It reads code; it doesn't run or profile it, so estimates are heuristics with named evidence, not measurements. When it can't see a type or an input size, it says so under "Worth a look" instead of guessing. It doesn't cover database indexes or query plans.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Complexity Guard Lite: Big-O Review With Few False Alarms skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Complexity Guard Lite: Big-O Review With Few False Alarms do?

Reviews code for algorithmic slowdowns: nested loops over the same data, list lookups, queries per item (N+1), sorting or string building in loops, recursion with no memo, and repeated work in a loop. Checks for prefetching and memo first to avoid false positives; gives evidence and a fix.

### Which AI agents support Complexity Guard Lite: Big-O Review With Few False Alarms?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Complexity Guard Lite: Big-O Review With Few False Alarms?

Connect your AI agent to Agensi through MCP, then ask it to use Complexity Guard Lite: Big-O Review With Few False Alarms on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
