Finishing a Development Branch
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
Iterative performance optimisation loop for syncpack-specifier.
$ npx skills add JamieMason/syncpack --skill optimize-benchmarks -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install JamieMason/syncpack optimize-benchmarks --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/JamieMason/syncpack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/optimize-benchmarks .claude/skills/optimize-benchmarks && 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 "optimize-benchmarks" agent skill from https://github.com/JamieMason/syncpack/tree/main/.claude/skills/optimize-benchmarks into .claude/skills/optimize-benchmarks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-benchmarks", 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/JamieMason/syncpack/tree/main/.claude/skills/optimize-benchmarksType 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 JamieMason/syncpack --skill optimize-benchmarks -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install JamieMason/syncpack optimize-benchmarks --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/JamieMason/syncpack.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/optimize-benchmarks .agents/skills/optimize-benchmarks && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "optimize-benchmarks" agent skill from https://github.com/JamieMason/syncpack/tree/main/.claude/skills/optimize-benchmarks into .agents/skills/optimize-benchmarks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-benchmarks", 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 JamieMason/syncpack --skill optimize-benchmarks -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install JamieMason/syncpack optimize-benchmarks --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/JamieMason/syncpack.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/optimize-benchmarks .cursor/skills/optimize-benchmarks && 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 "optimize-benchmarks" agent skill from https://github.com/JamieMason/syncpack/tree/main/.claude/skills/optimize-benchmarks into .cursor/skills/optimize-benchmarks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-benchmarks", 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/JamieMason/syncpack.git --path .claude/skills/optimize-benchmarks--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 JamieMason/syncpack --skill optimize-benchmarks -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install JamieMason/syncpack optimize-benchmarks --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/JamieMason/syncpack.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/optimize-benchmarks .gemini/skills/optimize-benchmarks && 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 "optimize-benchmarks" agent skill from https://github.com/JamieMason/syncpack/tree/main/.claude/skills/optimize-benchmarks into .gemini/skills/optimize-benchmarks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-benchmarks", 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 JamieMason/syncpack optimize-benchmarksInstalls 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 JamieMason/syncpack --skill optimize-benchmarks -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/JamieMason/syncpack.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/optimize-benchmarks .github/skills/optimize-benchmarks && 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 "optimize-benchmarks" agent skill from https://github.com/JamieMason/syncpack/tree/main/.claude/skills/optimize-benchmarks into .github/skills/optimize-benchmarks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-benchmarks", 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 JamieMason/syncpack --skill optimize-benchmarks -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install JamieMason/syncpack optimize-benchmarks --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/JamieMason/syncpack.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/optimize-benchmarks .opencode/skills/optimize-benchmarks && 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 "optimize-benchmarks" agent skill from https://github.com/JamieMason/syncpack/tree/main/.claude/skills/optimize-benchmarks into .opencode/skills/optimize-benchmarks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-benchmarks", 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.
optimize-benchmarksIterative performance optimisation loop for syncpack-specifier.
Optimize Benchmarks is an agent skill from JamieMason/syncpack. Iterative performance optimisation loop for syncpack-specifier. Runs benchmarks, identifies bottlenecks, applies optimisations, verifies tests pass and benchmarks improve, then repeats.
Its SKILL.md is about 1.5k 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. The repository describes itself as: Consistent dependency versions in large JavaScript Monorepos. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 958d306. 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:
cargoFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
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.
Optimize Benchmarks loads about 1.5k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 505 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 JamieMason/syncpack at commit 958d306, republished under its MIT licence (© JamieMason). 505 words, ~1,526 tokens.
.claude/skills/optimize-benchmarks/SKILL.md (or your agent's skills folder).Iterative loop: benchmark, optimise, test, verify improvement, repeat.
cargo bench -p syncpack-specifier -- --save-baseline before 2>&1 | tail -40Save the output. Identify which variants are slowest.
From the full baseline, focus on the slowest benchmarks first.
Priority order for specifier parsing:
Specifier::create — the main parse function, called for every version stringparser::is_range — checks 12 regexes sequentiallyparser::is_exact — checks 4 regexes sequentiallyparser::is_complex_range — splits, collects, iteratesregexes.rsMake a single, focused change. Do NOT bundle multiple optimisations — each must be independently measurable.
cargo test -p syncpack-specifier 2>&1 | tail -5If tests fail, fix or revert. Never proceed with failing tests.
cargo bench -p syncpack-specifier -- --baseline before 2>&1 | tail -40Look for [-XX.XXX% ...] (improvement) or [+XX.XXX% ...] (regression).
cargo bench -p syncpack-specifier -- --save-baseline before. Continue to step 2.Go to step 2. Stop when:
Replace regex with char-based parsing in parser.rs / regexes.rs
Most regexes in regexes.rs match simple patterns like ^[0-9]+\.[0-9]+\.[0-9]+$ (exact semver). These can be replaced with byte/char iteration:
// Instead of regex EXACT: r"^[0-9]+\.[0-9]+\.[0-9]+$"
fn is_exact_version(s: &str) -> bool {
let mut dots = 0;
let bytes = s.as_bytes();
if bytes.is_empty() { return false; }
for &b in bytes {
match b {
b'0'..=b'9' => {},
b'.' => dots += 1,
_ => return false,
}
}
dots == 2
}Regex is_match() has overhead even for simple patterns: engine setup, capture group allocation. Char-based parsing for these patterns is 5-20x faster.
Reduce sequential regex attempts in parser::is_range
is_range tries 12 regexes. Instead, match on first char(s) to dispatch:
fn is_range(s: &str) -> bool {
match s.as_bytes().first() {
Some(b'^') => is_semver_after(s, 1) || is_semver_tag_after(s, 1),
Some(b'~') => is_semver_after(s, 1) || is_semver_tag_after(s, 1),
Some(b'>') => { /* check >= vs > then validate remainder */ },
Some(b'<') => { /* check <= vs < then validate remainder */ },
_ => false,
}
}Consolidate related regex patterns
Many regexes are pairs: EXACT + EXACT_TAG, CARET + CARET_TAG, etc. Merge each pair into one function that handles both cases:
fn is_exact(s: &str) -> bool {
// Parse digits.digits.digits, then optionally -tag
let rest = parse_semver_triple(s)?;
rest.is_empty() || rest.starts_with('-')
}Replace lazy_static with std::sync::OnceLock
lazy_static uses an extra indirection layer. OnceLock (stable since Rust 1.80) is zero-cost after init:
use std::sync::OnceLock;
fn exact_regex() -> &'static Regex {
static RE: OnceLock<Regex> = OnceLock::new();
RE.get_or_init(|| Regex::new(r"^[0-9]+\.[0-9]+\.[0-9]+$").unwrap())
}But if regex is being replaced with char-based parsing, this becomes irrelevant.
Reorder checks in Specifier::create by frequency
In a typical monorepo, most specifiers are ^x.y.z (range) or x.y.z (exact). The current order already checks exact first, then range — good. But is_exact tries 4 regex patterns. A single fast char check can short-circuit:
// Fast path: first char is digit → likely exact or major or minor
// Fast path: first char is ^ or ~ → likely rangeAvoid String allocation in strip_semver_range
strip_semver_range returns &str (already good), but callers like Range::create then .to_string() the result. Consider whether the allocation can be deferred.
HashMap in caches with FxHashMap (faster hashing for short strings)SmallString or stack-allocated strings for short specifiersHashMap with expected capacityKey files in crates/syncpack-specifier/src/:
| File | Role |
|---|---|
lib.rs | Specifier enum, create() dispatch, caches |
parser.rs | is_exact(), is_range(), etc. — classification functions |
regexes.rs | All lazy_static regex patterns |
exact.rs, range.rs, etc. | Variant constructors calling node_semver |
semver_range.rs | SemverRange enum, parse() |
The hot path is: Specifier::create() → parser::is_*() → regexes::* → variant ::create() → node_semver parsing.
Optimising the parser::is_* layer gives the biggest wins because it runs for every specifier, and most of the time most checks return false (only one branch matches).
before → after (% change)"batch" filter) during the loop, full suite only at start and end© JamieMason, MIT. 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/optimize-benchmarks of JamieMason/syncpack.
Open the folder on GitHubat commit 958d306
Optimize Benchmarks 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 |
|---|---|---|---|---|---|---|
| Optimize Benchmarks this skillJamieMason/syncpack | 2.1k | — | ~1.5k | Automated safety check: Pass | MIT | |
| Finishing a Development Branchobra/superpowers | 296k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Typescript Advanced Typesrolling-scopes/rsschool-app | 10k | 24 repos | ~4.2k | Automated safety check: Pass | MPL-2.0 | |
| PR Babysitteropeninterpreter/openinterpreter | 69k | 3 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Code Review ChecklistshareAI-lab/learn-claude-code | 78k | 5 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Greplooponyx-dot-app/onyx | 32k | 4 repos | ~3.3k | Automated safety check: Pass | MIT |
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
rolling-scopes/rsschool-app
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
onyx-dot-app/onyx
Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.
akash-network/node
Behavioral guidelines to reduce common LLM coding mistakes. An agent skill from akash-network/node.
JamieMason/syncpack
Add and update the documentation website for Syncpack. An agent skill from JamieMason/syncpack.
JamieMason/syncpack
Debug and fix bugs in Syncpack using scientific debugging methodology.
JamieMason/syncpack
Put the answer first, then context and details follow. An agent skill from JamieMason/syncpack.
JamieMason/syncpack
Search for code patterns in Syncpack. An agent skill from JamieMason/syncpack.
JamieMason/syncpack
Maximize useful information per word by removing filler, obvious explanations, and hedging language.
JamieMason/syncpack
Run coverage, inspect results, and identify missing test scenarios for a given source file.
Categories
Iterative performance optimisation loop for syncpack-specifier. Optimize Benchmarks is an agent skill from JamieMason/syncpack. Iterative performance optimisation loop for syncpack-specifier.
Optimize Benchmarks fits situations like: development work in your project.
Run `npx skills add JamieMason/syncpack --skill optimize-benchmarks -a claude-code`. Or copy the skill folder (.claude/skills/optimize-benchmarks in JamieMason/syncpack) into .claude/skills/optimize-benchmarks in your project. Claude Code loads it when a task matches its description.
Run `npx skills add JamieMason/syncpack --skill optimize-benchmarks -a codex`. Or copy the skill folder (.claude/skills/optimize-benchmarks in JamieMason/syncpack) into .agents/skills/optimize-benchmarks 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 JamieMason/syncpack --skill optimize-benchmarks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/optimize-benchmarks, .gemini/skills/optimize-benchmarks, .github/skills/optimize-benchmarks and .opencode/skills/optimize-benchmarks in your project.
Going by SKILL.md and its folder, Optimize Benchmarks needs the command-line tools its instructions call (cargo).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. 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.
Optimize Benchmarks 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.5k tokens (SKILL.md is roughly 6.1k 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 Optimize Benchmarks: Finishing a Development Branch (obra/superpowers, 296k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars) and Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
JamieMason (a GitHub user) maintains it in JamieMason/syncpack, which has 2,099 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 26, 2026.
Source: JamieMason/syncpack on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.