optimize-merman-performance
Skill by Latias94
Guides an AI assistant through diagnosing and improving performance in Merman, a Rust Mermaid renderer. It is for maintainers who need measured, semantics-preserving speedups or resource-bound fixes.
Install optimize-merman-performance
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Latias94/merman /tmp/merman && mkdir -p ~/.claude/skills && cp -r /tmp/merman/.agents/skills/optimize-merman-performance ~/.claude/skills/optimize-merman-performanceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install optimize-merman-performance in Claude Code
git clone --depth 1 https://github.com/Latias94/merman /tmp/merman && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/merman/.agents/skills/optimize-merman-performance ~/.gemini/antigravity-cli/skills/optimize-merman-performanceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install optimize-merman-performance in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill gives an assistant a structured workflow for performance work on Merman. It covers latency, throughput, memory use, input-amplifiable complexity, dependency closure, and artifact size. The workflow requires choosing one primary lane, registering an experiment ledger under target/bench, and establishing a baseline before changing code. Each change must be a causal hypothesis tested with same-input A/B runs, controls, and correctness gates. Shortcuts and caches must pass a semantic review. The skill is written for maintainers of the Merman project who compare native Rust, Node N-API, Node-WASM, and browser WASM builds.
Written from the project's SKILL.md and checked against it.
What it can do
- Define the questionClassifies work as latency, memory, complexity, artifact size, or dependency closure and sets an admission model.
- Register the experimentRecords host, revisions, commands, fixtures, thresholds, and hypotheses in an ignored experiment ledger.
- Establish and attribute the baselineRuns calibrated A/B comparisons and splits regressions across parse, layout, render, and end-to-end stages.
- Form a causal hypothesisRequires one falsifiable explanation linking an observed cost to a proposed change before implementation.
- Review semantic shortcutsChecks fast paths, caches, and bypasses for equivalence and rejects heuristic or fixture-specific shortcuts.
- Run isolated experimentsTests one causal change at a time in separate worktrees and marks each result kept, rejected, or inconclusive.
- Prove the winnerReruns decision-grade measurements and runs focused tests, cargo nextest, and xtask verify checks.
- Prepare the handoffReports baseline, candidate, deltas, parity gates, rejected hypotheses, and residual risk.
What you need
- Rust toolchain with Cargo
- cargo nextest
- Merman repository with xtask
- Node.js for N-API or Node-WASM comparisons
Try asking
- Profile the render stage for this Merman regression and compare baseline and candidate.
- Check whether this proposed Merman cache is a real performance improvement.
- Find superlinear input-amplified work in the Merman parser and propose a bounded fix.
Good to know
- Benchmark work is not added to regular CI by default and needs an explicit request.
- Cargo work must run serially and debug builds are not measured unless requested.
- Rejected changes must not leave dead fast paths or benchmark-only production switches.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/optimize-merman-performance/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to optimize-merman-performance
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
optimize-merman-performance: common questions
Does this skill accept speedups that change Mermaid output?
No. The skill rejects any candidate that changes accepted output, errors, security policy, resource behavior, or capability coverage, even when it is faster.
Can it prove a complexity improvement from a wall-clock timing?
No. The skill requires named input variables, reachable old and new bounds, and an exact work counter or scale curve for complexity claims.
Which Merman builds does it compare?
It keeps native Rust, Node N-API, Node-WASM, browser-WASM, and external renderers in separate lanes and compares them only on the same host.
How do I install optimize-merman-performance?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is optimize-merman-performance free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is optimize-merman-performance safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to optimize-merman-performance?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
