Performance Optimization
ThibautBaissac/rails_ai_agents
Identifies and fixes Rails performance issues including N+1 queries, slow queries, and memory problems.
Checklist for reviewing code changes that touch queries, APIs, rendering, caching or algorithms for performance, scalability and resource-usage problems.
$ npx skills add ZeroDeng01/sublinkPro --skill performance-check -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ZeroDeng01/sublinkPro performance-check --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/performance-check .claude/skills/performance-check && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "performance-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/performance-check into .claude/skills/performance-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-check", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/performance-checkType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ZeroDeng01/sublinkPro --skill performance-check -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ZeroDeng01/sublinkPro performance-check --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/performance-check .agents/skills/performance-check && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "performance-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/performance-check into .agents/skills/performance-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-check", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZeroDeng01/sublinkPro --skill performance-check -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ZeroDeng01/sublinkPro performance-check --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/performance-check .cursor/skills/performance-check && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "performance-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/performance-check into .cursor/skills/performance-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-check", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ZeroDeng01/sublinkPro.git --path .agents/skills/performance-check--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ZeroDeng01/sublinkPro --skill performance-check -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ZeroDeng01/sublinkPro performance-check --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/performance-check .gemini/skills/performance-check && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "performance-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/performance-check into .gemini/skills/performance-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-check", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ZeroDeng01/sublinkPro performance-checkInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ZeroDeng01/sublinkPro --skill performance-check -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/performance-check .github/skills/performance-check && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "performance-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/performance-check into .github/skills/performance-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-check", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZeroDeng01/sublinkPro --skill performance-check -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ZeroDeng01/sublinkPro performance-check --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/performance-check .opencode/skills/performance-check && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "performance-check" agent skill from https://github.com/ZeroDeng01/sublinkPro/tree/main/.agents/skills/performance-check into .opencode/skills/performance-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-check", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
performance-checkChecklist for reviewing code changes that touch queries, APIs, rendering, caching or algorithms for performance, scalability and resource-usage problems.
The skill gives the agent a checkbox review across several areas: database queries (N+1 loading, missing indexes, selecting every column, queries inside loops, pagination, eager loading), API responses (payload size, filtering, compression, cache headers, partial responses), frontend rendering (needless re-renders, virtualized long lists, bundle splitting, image loading, debouncing) and caching (hot data, invalidation, expiry).
Each area links to a longer guide in the references folder covering algorithm complexity, APIs, caching, concurrency, databases, the frontend, memory and the network. Those guides include code examples such as memoization and a load-testing sample. The skill is meant for changes that can affect performance and is not for simple config changes.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 11479da. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
goFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comreact.devgorm.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Performance Check loads about 1.8k tokens when it runs, and up to ~10k if it reads all its reference files. Until then it costs about 51 tokens; SKILL.md has 634 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ZeroDeng01/sublinkPro at commit 11479da, republished under its MIT licence (© ZeroDeng01). 634 words, ~1,777 tokens.
.claude/skills/performance-check/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.This skill provides a comprehensive performance review checklist for code changes that may impact application performance, scalability, or resource usage.
When to use: When making changes to:
Check for:
Detailed guide: references/database-optimization.md (includes code examples)
Check for:
Detailed guide: references/api-optimization.md (includes load testing example)
Check for:
React.memo/useMemo/useCallback?Detailed guide: references/frontend-optimization.md (includes memoization example)
Check for:
Detailed guide: references/caching-strategies.md
Check for:
Detailed guide: references/concurrency-guide.md (includes goroutine pool pattern)
Check for:
strings.Builder used for building large strings?Detailed guide: references/memory-management.md
Check for:
Detailed guide: references/network-optimization.md
Check for:
Detailed guide: references/algorithm-complexity.md
# Run benchmark tests
go test -bench=. -benchmem ./services/
# Profile CPU and memory
go test -cpuprofile=cpu.prof -memprofile=mem.prof -bench=.
go tool pprof cpu.prof# Apache Bench
ab -n 1000 -c 10 http://localhost:8000/api/v1/nodes
# k6 (see assets/load-test.js)
k6 run assets/load-test.jsRun Lighthouse in Chrome DevTools (F12 → Lighthouse tab):
import "time"
func (s *Service) CriticalOperation() error {
start := time.Now()
defer func() {
log.Infof("Operation duration: %v", time.Since(start))
}()
// ... work ...
}Enable slow query logging in development:
db, err := gorm.Open(sqlite.Open(dsn), &gorm.Config{
Logger: logger.New(log.New(os.Stdout, "\r\n", log.LstdFlags), logger.Config{
SlowThreshold: 200 * time.Millisecond, // Log queries > 200ms
LogLevel: logger.Warn,
}),
})If performance issues are unclear:
pprof, Chrome DevTools)services/mihomo/mihomo.go - Core performance-critical serviceservices/scheduler/speedtest_task.go - Concurrent node testing examplewebs/src/views/nodes/ - Frontend list rendering patterns© ZeroDeng01, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 8 other files (references) in .agents/skills/performance-check of ZeroDeng01/sublinkPro.
Open the folder on GitHubat commit 11479da
Performance Check next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Performance Check this skillZeroDeng01/sublinkPro | 1.7k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Performance OptimizationThibautBaissac/rails_ai_agents | 665 | — | ~1.2k | Automated safety check: Notes | MIT | |
| WordPress Code GuardamElnagdy/guard-skills | 1.3k | — | ~2.4k | Automated safety check: Pass | MIT | |
| React Code Reviewgiuseppe-trisciuoglio/developer-kit | 355 | — | ~2.6k | Automated safety check: Notes | MIT | |
| Keybase RPC Log Analysiskeybase/client | 9.3k | — | ~3k | Automated safety check: Pass | BSD-3-Clause | |
| Wp Performance Reviewelvismdev/claude-wordpress-skills | 234 | 1 repos | ~4.5k | Automated safety check: Pass | MIT |
ThibautBaissac/rails_ai_agents
Identifies and fixes Rails performance issues including N+1 queries, slow queries, and memory problems.
amElnagdy/guard-skills
Reviews WordPress plugin, theme and block code after an agent writes or edits it, catching missing escaping, nonces, capability checks and unprepared queries.
giuseppe-trisciuoglio/developer-kit
Provides comprehensive code review capability for React applications, validates component architecture, hooks usage, React 19 patterns, state management, performance optimization, accessibility…
keybase/client
Captures a clean Keybase service log and analyzes it for redundant, duplicated or looping RPCs, then checks whether a caching fix reduced the calls.
elvismdev/claude-wordpress-skills
WordPress performance code review and optimization analysis.
ben-manes/caffeine
Searches synthetic workloads for cases where Caffeine's adaptive eviction policy falls short of its achievable hit rate, then classifies each gap by cause.
ZeroDeng01/sublinkPro
Checklist-driven security review for changes to authentication, authorization, MFA, secrets, input validation and other security-critical code.
ZeroDeng01/sublinkPro
Manages a SublinkPro proxy subscription server through natural language, adding nodes, building subscriptions and share links, and editing templates and tags.
ZeroDeng01/sublinkPro
A required checklist for after code changes: validate each changed layer, check that docs and other layers stay in sync, and test before committing or opening a PR.
ZeroDeng01/sublinkPro
Checklist for keeping README, feature, configuration, install and API docs in step with code changes in the same PR, including the Chinese copies.
ZeroDeng01/sublinkPro
Blocking checklist that runs formatting, lint and test commands for changed Go and frontend files before any git add, commit or pull request.
ZeroDeng01/sublinkPro
A checklist for UI changes that touch colors, surfaces or theme code, making sure light and dark modes, devices, states and layering all still work.
Works with
Categories
Checklist for reviewing code changes that touch queries, APIs, rendering, caching or algorithms for performance, scalability and resource-usage problems. The skill gives the agent a checkbox review across several areas: database queries (N+1 loading, missing indexes, selecting every column, queries inside loops, pagination, eager loading), API responses (payload size, filtering, compression, cache headers, partial responses), frontend rendering (needless re-renders, virtualized long lists, bundle splitting, image loading, debouncing) and caching (hot data, invalidation, expiry).
Performance Check fits situations like: reviewing a pull request that adds or changes list or search endpoints; checking new database queries for N+1 loading and missing indexes; auditing a React component for needless re-renders; reviewing a recursive algorithm before it is merged.
Run `npx skills add ZeroDeng01/sublinkPro --skill performance-check -a claude-code`. Or copy the skill folder (.agents/skills/performance-check in ZeroDeng01/sublinkPro) into .claude/skills/performance-check in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ZeroDeng01/sublinkPro --skill performance-check -a codex`. Or copy the skill folder (.agents/skills/performance-check in ZeroDeng01/sublinkPro) into .agents/skills/performance-check in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZeroDeng01/sublinkPro --skill performance-check -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/performance-check, .gemini/skills/performance-check, .github/skills/performance-check and .opencode/skills/performance-check in your project.
Going by SKILL.md and its folder, Performance Check needs the command-line tools its instructions call (go).
SKILL.md names 3 domains. As links in the text: github.com, react.dev and gorm.io. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Performance Check is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Performance Check: Performance Optimization (ThibautBaissac/rails_ai_agents, 665 stars), WordPress Code Guard (amElnagdy/guard-skills, 1.3k stars), React Code Review (giuseppe-trisciuoglio/developer-kit, 355 stars) and Keybase RPC Log Analysis (keybase/client, 9.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ZeroDeng01 (a GitHub user) maintains it in ZeroDeng01/sublinkPro, which has 1,665 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 5, 2026.
Source: ZeroDeng01/sublinkPro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.