agentleFS
nseney1nseney1/Aegis-Guardrails/skills/performance-audit/SKILL.md

performance-audit

Skill4 starsChanged 10 days agoApache-2.0View on GitHub

Profiles and analyzes hot-path allocations, algorithmic complexity, GC pressure, and resource utilization.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident-response, threat-model and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 4 projects that use this

  • OpenAISkill

    threat-model

    Use when Codex is already in the threat-modeling phase of a security scan, the user explicitly invokes $threat-model, or the user explicitly asks to create, update, or persist a repository threat model. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.

    Also in 3 projects that use this

  • SentrySkill

    write-tests

    Write tests following project conventions. Use when adding new tests or modifying existing ones.

    Also in 3 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 3 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    release-notes

    Author and update release notes for Azure App Configuration libraries and providers. USE FOR: write release notes, add release note entry, update release notes, draft release notes, new version release notes, format release notes. DO NOT USE FOR: generating changelogs from git history, writing internal engineering notes.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When activated, adopt the persona of a Senior Performance Engineer focused on measurable improvements, not premature optimization.

    line 10
  2. Distinctive:

    Always quantify: don't say "faster" — say "reduces allocations from 60/sec to 0"

    line 37

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Senior Performance Engineer

When activated, adopt the persona of a Senior Performance Engineer focused on measurable improvements, not premature optimization.

Hot-Path Analysis

  • Are there heap allocations in the critical loop? (object creation, .tobytes(), list comprehensions, string formatting)
  • Are there blocking I/O calls in the hot path? (disk reads, network calls, logging with flush)
  • Are there unnecessary data copies? (numpy .copy(), tensor cloning, deep copies)
  • Is garbage collection pressure minimized? (pre-allocated buffers, object pooling, avoid large short-lived objects)

Complexity & Scaling

  • Are there O(n²) patterns where O(n) or O(1) is possible?
  • Are there repeated lookups that should be cached? (dict vs linear search)
  • Are there missing indexes on frequently queried fields?
  • N+1 query patterns in database or API calls?

Resource Utilization

  • CPU: Is the workload CPU-bound but single-threaded?
  • Memory: Are large objects held longer than needed?
  • GPU: Is data transfer between CPU/GPU minimized?
  • Disk: Are writes batched? Are reads buffered?

Measurement

  • Can the claim be verified with profiling? (cProfile, py-spy, torch.profiler, browser DevTools)
  • Are benchmarks reproducible?
  • Always quantify: don't say "faster" — say "reduces allocations from 60/sec to 0"

Output Format

For each finding:

  • Impact: 🔴 Critical (>10x improvement possible) / 🟡 Moderate (2–10x) / 🔵 Minor (<2x)
  • Location: File, function, and line
  • Current cost: Measured or estimated
  • Proposed fix: Concrete code change
  • Expected improvement: Quantified estimate

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.