Agent skill

Microservice Optimization

by uw-syfi in uw-syfi/vibesys

Restructuring the request graph of a microservice application to cut end-to-end latency.

MITAuto-check passedBackend & APIs

Install Microservice Optimization

skills CLI
$ npx skills add uw-syfi/vibesys --skill microservice-optimization -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install uw-syfi/vibesys microservice-optimization --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/uw-syfi/vibesys.git skills-src && mkdir -p .claude/skills && cp -r skills-src/resources/skills/microservice-optimization .claude/skills/microservice-optimization && rm -rf skills-src

Use ~/.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/

Facts

Skill name
microservice-optimization
GitHub stars
103
Token cost
~1.7k tokens
SKILL.md length
951 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
MIT

At a glance

Restructuring the request graph of a microservice application to cut end-to-end latency.

  • Works in 3 steps: trace_graphs() to locate schema-v2 graphs. → critical_path(path=...,… → Read nodes_by_contribution for ranked…
  • Tasks that involve Microservices
  • SKILL.md covers Establish the evidence first, Strategy 1: change when work…, Strategy 2: change how many… and What is fixed and what is not, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Microservice Optimization is an agent skill from uw-syfi/vibesys. Restructuring the request graph of a microservice application to cut end-to-end latency. Activate on serialized cross-service calls, critical-path contribution, sequential dependencies that could run in parallel, work that could move off the request path, batching repeated calls to one service, or collapsing a call edge by co-locating or merging two services.

Its SKILL.md is about 1.7k 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 Backend & APIs, covering Microservices. The repository describes itself as: Can AI Agents Build Bespoke Systems? The licence is MIT.

When your agent uses it

  • Tasks that involve Microservices

Example prompts

  • “/microservice-optimization”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. trace_graphs() to locate schema-v2 graphs.
  2. critical_path(path=..., telemetry_path=...) for wall-clock attribution.
  3. Read nodes_by_contribution for ranked contributors, and the representative

What it can do on your machine

Read from SKILL.md and the folder at commit c7784eb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Microservice Optimization loads about 1.7k tokens when it runs. Until then it costs about 97 tokens; SKILL.md has 951 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~97
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from uw-syfi/vibesys at commit c7784eb, republished under its MIT licence (© uw-syfi). 951 words, ~1,691 tokens.

Download SKILL.mdSave it as .claude/skills/microservice-optimization/SKILL.md (or your agent's skills folder).
name
microservice-optimization
description
Restructuring the request graph of a microservice application to cut end-to-end latency. Activate on serialized cross-service calls, critical-path contribution, sequential dependencies that could run in parallel, work that could move off the request path, batching repeated calls to one service, or collapsing a call edge by co-locating or merging two services.

microservice-optimization

Two strategies for cutting end-to-end latency by changing the shape of the request graph, not by tuning parameters inside a fixed topology.

StrategyChangesReach for it when
1. When work happensTiming of calls relative to the requestThe critical path is a chain of calls that need not be a chain
2. How many calls happenCount of cross-service callsThe critical path is dominated by call count or per-call overhead

Tuning within the current topology (connection pools, gateway upstreams, cache usage, database indexes, worker counts, serialization) is covered by the orchestrator's standing task guidance and is not repeated here. Reach for this skill when the evidence points at the graph rather than at one service's configuration.

Establish the evidence first

The two roles see different evidence. Neither should act on the other's.

Orchestrator. You see the profiler's prose summary, not the trace graph. Select a strategy only when that summary names a specific bottleneck: a service, an operation, or an edge with critical-path contribution. A ranking of services by aggregate latency is not sufficient. Aggregate cost and critical-path contribution are different quantities, and the expensive service is frequently not the one holding the request open. When the summary names no edge, plan a profiling round rather than guessing one.

Implementer. You can read the graph. Confirm the edge or the structure before editing:

  1. trace_graphs() to locate schema-v2 graphs.
  2. critical_path(path=..., telemetry_path=...) for wall-clock attribution.
  3. Read nodes_by_contribution for ranked contributors, and the representative segments for the order in which calls actually occur.

Overlapping sibling calls are not additive. Two calls each showing 10ms of inclusive latency may cost 10ms together, not 20ms, in which case parallelizing them gains nothing. Representative segments distinguish sequential work from overlapping work; flat span aggregates do not.

Critical-path scope is synchronous_request. Async and linked relationships are excluded and counted in async_relationships_excluded. Work moved off the synchronous path leaves the critical path by construction, so a before/after critical-path comparison cannot by itself show that the work got cheaper. Confirm every claim against the benchmark's primary_value.

Strategy 1: change when work happens

Two forms, in increasing risk.

Parallelize independent sequential calls. Two calls issued one after the other, where the second does not consume the first's result, can be issued concurrently. Verify the independence in the code, not from the trace: the trace shows they are sequential, not that they must be.

Preconditions: no data dependency, no ordering requirement the correctness contract relies on, and a downstream that tolerates the added concurrency. Check the second condition against the accuracy oracle's properties, not against the benchmark.

Move work off the request path. Precompute it, do it at write time, or run it in the background. This removes the work from the measured path rather than making it faster.

This form changes consistency semantics, and that is where it fails. The accuracy oracle independently checks read-your-write behavior, index invalidation, deletion, and isolation. Work deferred out of a write path can improve the benchmark and fail accuracy, which is a rejected round, not a tradeoff. State which property you are relying on staying true before making the change.

Show full SKILL.md (428 more words)Show less

Strategy 2: change how many cross-service calls happen

A ladder, cheapest and most reversible first. Take one step per round and measure. Each step subsumes the one before it, so a step that does not pay off is evidence against the steps above it.

StepChangeKeeps
1. BatchCoalesce repeated calls to one service into one callBoth services, the network hop, the process boundary
2. Co-locateSchedule both services on one host so the call stops crossing the networkBoth services, the RPC, the process boundary
3. Merge processesThe call becomes an in-process function callBoth codebases, separate storage
4. Merge storageThe two services share one datastoreNothing of the boundary

Step 1 changes the callee's internal API and is usually the largest win per unit of risk when a call is issued in a loop or once per result row. Look for N+1 patterns in the representative segments before reaching for step 3.

Step 2 is worth measuring on its own because it separates two causes that get conflated: network transit and serialization cost versus the process boundary itself. If co-location captures most of the gain, steps 3 and 4 are buying little.

Steps 3 and 4 are hard to reverse. Step 4 in particular is what usually makes step 3 pay off, and also what makes the change difficult to unwind if a later round wants the boundary back.

What is fixed and what is not

The externally visible API behavior and the correctness contract are fixed. Everything else is in scope: internal architecture, programming languages, service decomposition, storage systems, caches, RPC mechanisms, deployment topology, and internal APIs.

This means step 3 and step 4 are legitimate optimizations, not contract violations. It also means the accuracy oracle, which exercises the external contract with randomized cases, is the check that matters. A restructuring that passes the benchmark and fails accuracy has not found anything.

Verification

For any change from either strategy:

  • The benchmark's primary_value is the result. Critical-path contribution, span latency, and trace graphs are diagnostic evidence for choosing the change, never evidence that it worked.
  • Re-read the critical path after the change. A restructuring that moves the bottleneck to a different edge is a partial result worth recording, and it names the next round's target.
  • Compare graphs only across matching workload identity and window count. The critical_path tool rejects mismatched pairs; do not work around it.
  • When a step in the strategy 2 ladder produces no measurable gain, record that and stop climbing. The remaining steps cost more and are less reversible.

© uw-syfi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in resources/skills/microservice-optimization of uw-syfi/vibesys.

Open the folder on GitHubat commit c7784eb

Compare with similar skills

Microservice Optimization 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.

Microservice Optimization compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Microservice Optimization this skilluw-syfi/vibesys103—~1.7kAutomated safety check: PassMIT
Node Backend Development Guidelinesdiet103/claude-code-infrastructure-showcase10k2 repos~2kAutomated safety check: PassMIT
Nodejs Backend Patternsever-works/ever-works16218 repos~4kAutomated safety check: PassAGPL-3.0
AWS Serverless Edazxkane/aws-skills3674 repos~3.2kAutomated safety check: PassMIT
Golang Proantoniopaya22/go-rest-template1723 repos~1.2kAutomated safety check: PassMIT
Dr Jskilljdubois/dr-jskill342—~4.6kAutomated safety check: NotesApache-2.0

Similar skills

  • Node Backend Development Guidelines

    diet103/claude-code-infrastructure-showcase

    Sets layered architecture and coding rules for Node.js, Express and TypeScript microservices, covering routes, controllers, services, repositories, Prisma, Sentry and Zod.

    10k GitHub starsUsed in 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • Nodejs Backend Patterns

    ever-works/ever-works

    Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.

    162 GitHub starsUsed in 18 repos~4k tokens
    Backend & APIsAuto-check passed
  • AWS Serverless Eda

    zxkane/aws-skills

    AWS serverless and event-driven architecture expert based on Well-Architected Framework.

    367 GitHub starsUsed in 4 repos~3.2k tokens
    Backend & APIsAuto-check passed
  • Golang Pro

    antoniopaya22/go-rest-template

    Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with…

    172 GitHub starsUsed in 3 repos~1.2k tokens
    Backend & APIsAuto-check passed
  • Dr Jskill

    jdubois/dr-jskill

    Creates Java + Spring Boot projects: Web applications, full-stack apps with Vue.js or Angular or React or vanilla JS, PostgreSQL, REST APIs, and Docker.

    342 GitHub stars~4.6k tokensUpdated 9 days ago
    Backend & APIsAuto-check: notes
  • Hybrid Cloud Test Gen

    getsentry/sentry

    Official

    Generate hybrid cloud tests for the Sentry codebase. An agent skill from getsentry/sentry.

    46k GitHub stars~2.6k tokensUpdated today
    Backend & APIsAuto-check passed

More from uw-syfi/vibesys

All 15 skills in this repo
  • Neuron Nki Profiling

    uw-syfi/vibesys

    This skill guides using the cli to generate NKI kernel profiles (NEFF + NTFF pairs) to analyze performance on Neuron hardware.

    103 GitHub stars~3.2k tokensUpdated today
    Auto-check passed
  • Neuron Nki Debugging

    uw-syfi/vibesys

    This skill guides debugging NKI compilation errors on Neuron hardware.

    103 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Neuron Nki Docs

    uw-syfi/vibesys

    Research NKI documentation for API lookups, tutorials, error codes, architecture, and optimization guides.

    103 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Query and analyze NKI kernel profile data from neuron-explorer parquet files.

    103 GitHub stars~4.3k tokensUpdated today
    Auto-check passed
  • Neuron Nki Writing

    uw-syfi/vibesys

    Guide for writing and modifying NKI kernels. An agent skill from uw-syfi/vibesys.

    103 GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Triage PRs

    uw-syfi/vibesys

    Triage the open pull requests of the VibeSys repository. An agent skill from uw-syfi/vibesys.

    103 GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Categories

Questions about Microservice Optimization

What does Microservice Optimization do?

Restructuring the request graph of a microservice application to cut end-to-end latency. Microservice Optimization is an agent skill from uw-syfi/vibesys. Restructuring the request graph of a microservice application to cut end-to-end latency.

When should I use Microservice Optimization?

Microservice Optimization fits situations like: tasks that involve Microservices.

How do I install Microservice Optimization in Claude Code?

Run `npx skills add uw-syfi/vibesys --skill microservice-optimization -a claude-code`. Or copy the skill folder (resources/skills/microservice-optimization in uw-syfi/vibesys) into .claude/skills/microservice-optimization in your project. Claude Code loads it when a task matches its description.

How do I install Microservice Optimization in Codex?

Run `npx skills add uw-syfi/vibesys --skill microservice-optimization -a codex`. Or copy the skill folder (resources/skills/microservice-optimization in uw-syfi/vibesys) into .agents/skills/microservice-optimization in your project. Codex loads it when a task matches its description.

Can I use Microservice Optimization in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add uw-syfi/vibesys --skill microservice-optimization -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/microservice-optimization, .gemini/skills/microservice-optimization, .github/skills/microservice-optimization and .opencode/skills/microservice-optimization in your project.

What does Microservice Optimization need to run?

SKILL.md names no scripts, command-line tools or credentials: Microservice Optimization is instructions for the agent only.

Does Microservice Optimization access the network?

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.

Is Microservice Optimization safe to install?

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.

What licence does Microservice Optimization use?

Microservice Optimization is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Microservice Optimization use?

About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Microservice Optimization?

Skills that share tags, products or a category with Microservice Optimization: Node Backend Development Guidelines (diet103/claude-code-infrastructure-showcase, 10k stars), Nodejs Backend Patterns (ever-works/ever-works, 162 stars), AWS Serverless Eda (zxkane/aws-skills, 367 stars) and Golang Pro (antoniopaya22/go-rest-template, 172 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Microservice Optimization?

uw-syfi (a GitHub organization) maintains it in uw-syfi/vibesys, which has 103 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 9, 2026.

Source: uw-syfi/vibesys on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.