Cpp
crazyguitar/cppcheatsheet
Comprehensive C/C++ programming reference covering everything from C11-C23 and C++11-C++23, system programming, CUDA GPU computing, debugging tools, Rust interop, and advanced topics.
Performance analysis, profiling techniques, bottleneck identification, and optimization strategies for code and systems.
$ npx skills add einverne/dotfiles --skill performance-optimizer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install einverne/dotfiles performance-optimizer --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/einverne/dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/claude/skills/performance-optimizer .claude/skills/performance-optimizer && 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-optimizer" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/performance-optimizer into .claude/skills/performance-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimizer", 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/einverne/dotfiles/tree/master/claude/skills/performance-optimizerType 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 einverne/dotfiles --skill performance-optimizer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install einverne/dotfiles performance-optimizer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/einverne/dotfiles.git skills-src && mkdir -p .agents/skills && cp -r skills-src/claude/skills/performance-optimizer .agents/skills/performance-optimizer && 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-optimizer" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/performance-optimizer into .agents/skills/performance-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimizer", 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 einverne/dotfiles --skill performance-optimizer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install einverne/dotfiles performance-optimizer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/einverne/dotfiles.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/claude/skills/performance-optimizer .cursor/skills/performance-optimizer && 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-optimizer" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/performance-optimizer into .cursor/skills/performance-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimizer", 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/einverne/dotfiles.git --path claude/skills/performance-optimizer--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 einverne/dotfiles --skill performance-optimizer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install einverne/dotfiles performance-optimizer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/einverne/dotfiles.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/claude/skills/performance-optimizer .gemini/skills/performance-optimizer && 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-optimizer" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/performance-optimizer into .gemini/skills/performance-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimizer", 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 einverne/dotfiles performance-optimizerInstalls 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 einverne/dotfiles --skill performance-optimizer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/einverne/dotfiles.git skills-src && mkdir -p .github/skills && cp -r skills-src/claude/skills/performance-optimizer .github/skills/performance-optimizer && 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-optimizer" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/performance-optimizer into .github/skills/performance-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimizer", 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 einverne/dotfiles --skill performance-optimizer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install einverne/dotfiles performance-optimizer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/einverne/dotfiles.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/claude/skills/performance-optimizer .opencode/skills/performance-optimizer && 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-optimizer" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/performance-optimizer into .opencode/skills/performance-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimizer", 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-optimizerPerformance analysis, profiling techniques, bottleneck identification, and optimization strategies for code and systems.
Performance Optimizer is an agent skill from einverne/dotfiles. Performance analysis, profiling techniques, bottleneck identification, and optimization strategies for code and systems. Use when the user needs to improve performance, reduce resource usage, or identify and fix performance bottlenecks.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Performance optimization and Shell scripting. The repository describes itself as: my personal dotfiles managed by dotbot, zinit. The licence is GPL-3.0.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit c6c0686. 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:
pythonpipnodeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From 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 Optimizer loads about 1.8k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 388 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 einverne/dotfiles at commit c6c0686, republished under its GPL-3.0 licence (© einverne). 388 words, ~1,822 tokens.
.claude/skills/performance-optimizer/SKILL.md (or your agent's skills folder).You are a performance optimization expert. Your role is to help users identify bottlenecks, optimize code, and improve system performance.
# CPU profiling
python -m cProfile -o output.prof script.py
python -m cProfile -s cumtime script.py
# Visualize with snakeviz
pip install snakeviz
snakeviz output.prof
# Line profiler
pip install line-profiler
kernprof -l -v script.py
# Memory profiling
pip install memory-profiler
python -m memory_profiler script.py# Node.js profiling
node --prof app.js
node --prof-process isolate-*.log
# Chrome DevTools
# Run with --inspect flag
node --inspect app.js# Time execution
time script.sh
# Detailed timing
hyperfine 'command1' 'command2'
# Profile with bash
PS4='+ $(date "+%s.%N")\011 ' bash -x script.sh# CPU usage
top
htop
mpstat 1
# I/O profiling
iotop
iostat -x 1
# System calls
strace -c commandProblem: Using O(n²) when O(n) or O(n log n) exists
# Bad: O(n²)
for item in list1:
if item in list2: # O(n) lookup
process(item)
# Good: O(n)
set2 = set(list2) # O(n) conversion
for item in list1:
if item in set2: # O(1) lookup
process(item)Problem: Nested loops, redundant iterations
# Bad: Multiple passes
result = [x for x in data if condition1(x)]
result = [x for x in result if condition2(x)]
result = [transform(x) for x in result]
# Good: Single pass
result = [
transform(x)
for x in data
if condition1(x) and condition2(x)
]Problem: Too many small reads/writes
# Bad: Many small writes
for line in data:
file.write(line + '\n')
# Good: Batch writes
file.writelines(f'{line}\n' for line in data)
# Better: Buffer writes
with open('file.txt', 'w', buffering=1024*1024) as f:
f.writelines(f'{line}\n' for line in data)Problem: Loading everything into memory
# Bad: Load entire file
with open('huge.txt') as f:
data = f.read()
process(data)
# Good: Stream/iterate
with open('huge.txt') as f:
for line in f:
process(line)Problem: N+1 queries, missing indexes
-- Bad: N+1 problem
SELECT * FROM users;
-- Then for each user:
SELECT * FROM posts WHERE user_id = ?;
-- Good: JOIN
SELECT users.*, posts.*
FROM users
LEFT JOIN posts ON users.id = posts.user_id;
-- Also add indexes
CREATE INDEX idx_posts_user_id ON posts(user_id);from functools import lru_cache
@lru_cache(maxsize=128)
def expensive_function(n):
# Computed result cached
return complex_calculation(n)# Bad: Creates full list
squares = [x**2 for x in range(1000000)]
# Good: Generator (lazy)
squares = (x**2 for x in range(1000000))import numpy as np
# Bad: Python loop
result = [x * 2 + 1 for x in data]
# Good: Vectorized
result = np.array(data) * 2 + 1from multiprocessing import Pool
# Process in parallel
with Pool(4) as p:
results = p.map(process_item, items)from numba import jit
@jit
def fast_function(x, y):
# Compiled to machine code
return x ** 2 + y ** 2# Reuse connections
pool = ConnectionPool(min=5, max=20)import timeit
# Run multiple times
time = timeit.timeit(
'function()',
setup='from __main__ import function',
number=1000
)
# Compare alternatives
times = {
'method1': timeit.timeit('method1()', ...),
'method2': timeit.timeit('method2()', ...),
}# Use generators instead of lists
def read_large_file(file):
for line in file:
yield process(line)
# Use __slots__ for classes
class Point:
__slots__ = ['x', 'y']
def __init__(self, x, y):
self.x = x
self.y = y# Python memory profiler
@profile
def my_function():
pass
# Check reference counts
import sys
sys.getrefcount(object)# Avoid unnecessary commands
# Bad
cat file | grep pattern
# Good
grep pattern file
# Use built-ins when possible
# Bad
result=$(date +%s)
# Good (in bash)
printf -v result '%(%s)T' -1
# Parallel execution
# Process files in parallel
find . -name "*.txt" | xargs -P 4 -I {} process {}Set clear targets:
Remember: Premature optimization is the root of all evil. Always profile first, optimize the bottleneck, then measure improvement.
© einverne, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in claude/skills/performance-optimizer of einverne/dotfiles.
Open the folder on GitHubat commit c6c0686
Performance Optimizer 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 Optimizer this skilleinverne/dotfiles | 121 | — | ~1.8k | Automated safety check: Pass | GPL-3.0 | |
| Cppcrazyguitar/cppcheatsheet | 290 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Swiftdata ArchitectureKartikLabhshetwar/better-shot | 2.4k | 2 repos | ~1.2k | Automated safety check: Pass | Custom licence | |
| Performance OptimizationThibautBaissac/rails_ai_agents | 665 | — | ~1.2k | Automated safety check: Notes | MIT | |
| Mz ProfileMaterializeInc/materialize | 6.4k | — | ~480 | Automated safety check: Pass | Custom licence | |
| Android Profilerarindamxd/camerax-android | 132 | 2 repos | ~493 | Automated safety check: Pass | Apache-2.0 |
crazyguitar/cppcheatsheet
Comprehensive C/C++ programming reference covering everything from C11-C23 and C++11-C++23, system programming, CUDA GPU computing, debugging tools, Rust interop, and advanced topics.
KartikLabhshetwar/better-shot
Deep dive into SwiftData design patterns and best practices.
ThibautBaissac/rails_ai_agents
Identifies and fixes Rails performance issues including N+1 queries, slow queries, and memory problems.
MaterializeInc/materialize
Trigger: "profile Materialize", "check memory usage", "analyze binary size", "debug performance", or mentions profiling, samply, heaptrack, flame graphs, memory checking, binary size, slow queries…
arindamxd/camerax-android
Manages Android performance profiling and debugging. An agent skill from arindamxd/camerax-android.
data-goblin/power-bi-agentic-development
DAX performance optimization for semantic models. An agent skill from data-goblin/power-bi-agentic-development.
einverne/dotfiles
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction.
einverne/dotfiles
Browser automation, debugging, and performance analysis using Puppeteer CLI scripts.
einverne/dotfiles
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms.
einverne/dotfiles
Guide for implementing Google Gemini API audio capabilities - analyze audio with transcription, summarization, and understanding (up to 9.5 hours), plus generate speech with controllable TTS.
einverne/dotfiles
Guide for implementing Google Gemini API image generation - create high-quality images from text prompts using gemini-2.5-flash-image model.
einverne/dotfiles
Guide for implementing Google Gemini API image understanding - analyze images with captioning, classification, visual QA, object detection, segmentation, and multi-image comparison.
Categories
Performance analysis, profiling techniques, bottleneck identification, and optimization strategies for code and systems. Performance Optimizer is an agent skill from einverne/dotfiles. Performance analysis, profiling techniques, bottleneck identification, and optimization strategies for code and systems.
Performance Optimizer fits situations like: the user needs to improve performance; reduce resource usage; identify and fix performance bottlenecks.
Run `npx skills add einverne/dotfiles --skill performance-optimizer -a claude-code`. Or copy the skill folder (claude/skills/performance-optimizer in einverne/dotfiles) into .claude/skills/performance-optimizer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add einverne/dotfiles --skill performance-optimizer -a codex`. Or copy the skill folder (claude/skills/performance-optimizer in einverne/dotfiles) into .agents/skills/performance-optimizer 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 einverne/dotfiles --skill performance-optimizer -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-optimizer, .gemini/skills/performance-optimizer, .github/skills/performance-optimizer and .opencode/skills/performance-optimizer in your project.
Going by SKILL.md and its folder, Performance Optimizer needs the command-line tools its instructions call (python, pip and node). Our summary lists: Python 3; Node.js.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. 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 Optimizer is published under the GPL-3.0 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.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Performance Optimizer: Cpp (crazyguitar/cppcheatsheet, 290 stars), Swiftdata Architecture (KartikLabhshetwar/better-shot, 2.4k stars), Performance Optimization (ThibautBaissac/rails_ai_agents, 665 stars) and Mz Profile (MaterializeInc/materialize, 6.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
einverne (a GitHub user) maintains it in einverne/dotfiles, which has 121 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on September 9, 2026.
Source: einverne/dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.