Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add pproenca/dot-skills --skill algorithmic-complexity-reviewgit clone --depth 1 https://github.com/pproenca/dot-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pproenca/dot-skills/algorithmic-complexity-review)<a href="https://agentmods.dev/skills/pproenca/dot-skills/algorithmic-complexity-review"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/algorithmic-complexity-review.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00173 | $0.03023 |
| Opus 5 | $0.00086 | $0.01511 |
| Sonnet 5 | $0.00035 | $0.00605 |
| Haiku 4.5 | $0.00017 | $0.00302 |
Grade A, and why
algorithmic-complexity-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.
dot-skills Algorithmic Complexity (Big-O) Best Practices
Find, classify, and fix algorithmic complexity (Big-O) problems in code — language-agnostic. The 39 rules across 8 categories cover the patterns responsible for the vast majority of accidental quadratic, exponential, and N+1 blowups in production code: nested iteration, loop-invariant I/O, data-structure mismatch, recursion explosions, redundant computation, collection-building anti-patterns, search/sort selection, and space traps.
When to Apply
Use this skill when:
- Reviewing a pull request or function for performance regressions
- Asked "why is this slow?" or "can we make this faster?"
- Refactoring a hot path or a function that handles user-scaled input
- Reading code that contains: nested loops,
.includes/.find/x in listinside iteration, ORM access in a loop, recursion without memoization, string/array building via+=or spread, file/database I/O inside iteration - Reviewing code that processes lists, trees, or streams whose size will grow
Workflow: Find, Classify, Fix
The skill is structured for a three-step workflow on any code under review:
1. Find — Scan for the Suspicion Patterns
Look for these structural signals first (highest hit rate):
| Signal | Likely Category | First Rule to Check |
|---|---|---|
Two nested for loops |
nested- |
nested-explicit-quadratic-loops |
.includes / .find / x in list inside a loop |
nested- |
nested-includes-in-loop |
ORM access inside a loop (for o in orders: o.customer.x) |
io- |
io-n-plus-one-query |
await fetch in for-of |
io- |
io-sequential-await-in-loop |
array.find to "join" two arrays |
ds- |
ds-hashmap-for-keyed-access |
| Recursive function with overlapping arguments | rec- |
rec-memoize-overlapping-subproblems |
s = s + part or [...acc, x] in a loop |
build- |
build-avoid-quadratic-string-concat, build-avoid-spread-in-reducer |
sorted(...) called inside a loop |
search- |
search-sort-once-outside-loop |
readlines() / loading whole files |
space- |
space-stream-dont-load |
What ships with it
44 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 10 KB
- assets/templates/_template.md 2.6 KB
- metadata.json 1.4 KB
- README.md 7.5 KB
- references/_sections.md 3.7 KB
- references/build-avoid-immutable-object-spread.md 1.9 KB
- references/build-avoid-quadratic-string-concat.md 2.1 KB
- references/build-avoid-spread-in-reducer.md 1.9 KB
- references/build-presize-when-length-known.md 2.5 KB
- references/compute-cache-expensive-pure-results.md 2.5 KB
- references/compute-cache-property-lookup.md 2.2 KB
- references/compute-defer-or-short-circuit.md 2.2 KB
- references/compute-hoist-loop-invariants.md 2.4 KB
- references/compute-precompile-regex.md 2.2 KB
- references/ds-counter-for-histograms.md 1.9 KB
- references/ds-deque-for-front-operations.md 2.0 KB
- references/ds-hashmap-for-keyed-access.md 2.1 KB
- references/ds-heap-for-top-k.md 1.6 KB
- references/ds-sorted-structure-for-range-queries.md 2.2 KB
- references/ds-trie-for-prefix-search.md 2.4 KB
- references/io-batch-instead-of-per-item.md 2.1 KB
- references/io-file-read-in-loop.md 2.0 KB
- references/io-missing-eager-load.md 2.2 KB
- references/io-n-plus-one-query.md 2.0 KB
- references/io-sequential-await-in-loop.md 2.0 KB
- references/nested-cartesian-comparison.md 1.8 KB
- references/nested-explicit-quadratic-loops.md 1.6 KB
- references/nested-find-in-loop.md 1.7 KB
- references/nested-includes-in-loop.md 1.8 KB
- references/nested-set-operations-on-arrays.md 1.8 KB
- references/nested-substring-search-in-loop.md 2.5 KB
- references/rec-iterative-for-deep-recursion.md 2.0 KB
- references/rec-memoize-overlapping-subproblems.md 2.1 KB
- references/rec-prune-with-bounds.md 3.0 KB
- references/rec-share-memo-across-top-level-calls.md 2.4 KB
- references/rec-tabulate-bottom-up.md 2.2 KB
- references/search-binary-search-on-sorted.md 1.9 KB
- references/search-build-index-once-amortize.md 2.2 KB
- references/search-quickselect-not-full-sort.md 2.1 KB
- references/search-sort-once-outside-loop.md 2.1 KB
- references/space-generators-over-intermediate-lists.md 2.1 KB
- references/space-release-retained-references.md 2.7 KB
- references/space-shallow-not-deep-copy.md 2.2 KB
- references/space-stream-dont-load.md 2.4 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 168 lines · 173 tokens per session scan A 42ed154425ba
algorithmic-complexity-review is a skill published in the GitHub repository pproenca/dot-skills (203 stars, last pushed 23d ago), licensed MIT. It adds 173 tokens to every session and 3,023 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
adversarial-reviewer
Adversarial code review that assumes bugs exist and hunts for them. Use when asked to review code, find bugs, audit for correctness, stress-test a PR, or when someone says "tear this apart" or "what's wrong with this". Give no benefit of the doubt — every line is guilty until proven innocent.
gsd-ns-review
Route to the appropriate quality / review skill based on the user's intent. gsd-code-review-fix was absorbed by gsd-code-review --fix in #2790.
issue
Use when starting a chain from a GitHub issue — turning an issue URL or number into a triaged, planned, dispatched, and reviewed pull request. Classifies the thread (bug → root-cause discipline, feature → plan chain, question → drafted reply), synthesizes a spec from the issue's own acceptance criteria, then runs the…
gitnexus
A code-graph analysis add-on for examining an existing codebase, including symbols, call paths, execution flows, and effects across repositories. It can query GitNexus through its command-line or MCP interfaces.
cleanup-code-inspections
Reduce technical debt and improve code quality by systematically resolving static analysis warnings.
superlint
This skill describes the mandatory standard operating procedure for using our internal SuperLint tool. Use this when tasks require fixing code quality issues according to corporate standards.