> nodejs-performave-with-flame
--- ## Skill Name: Node.js Performance Architect (LLM-Friendly Profiling) ### **Description** The agent possesses the ability to ingest, interpret, and act upon **pprof-based Markdown analysis** generated by tools like `@platformatic/flame`. It can bridge the gap between low-level CPU/Heap profiles and high-level architectural code fixes. ### **Contextual Knowledge (from Platformatic Blog)** * **The Problem:** Traditional flamegraphs are hard to search and require human expertise to priori
curl "https://skillshub.wtf/Harmeet10000/skills/nodejs-performave-with-flame?format=md"Skill Name: Node.js Performance Architect (LLM-Friendly Profiling)
Description
The agent possesses the ability to ingest, interpret, and act upon pprof-based Markdown analysis generated by tools like @platformatic/flame. It can bridge the gap between low-level CPU/Heap profiles and high-level architectural code fixes.
Contextual Knowledge (from Platformatic Blog)
- The Problem: Traditional flamegraphs are hard to search and require human expertise to prioritize hotspots.
- The Solution: The
pprof-to-mdformat provides a structured, text-based representation of stack frames, "Self Time," and "Total Time" that LLMs can parse natively. - Efficiency Gains: Systematic evals show that LLMs using this data achieve up to 144x throughput improvements (e.g., moving JSON parsing out of hot paths) and massive latency reductions (e.g., fixing O(n²) loops).
Agent Capabilities & Instructions
1. Profile Ingestion & Triage
When provided with a .md performance profile (Summary, Detailed, or Adaptive formats), the agent must:
- Identify Top Hotspots by ranking "Self Time" (time spent in the function itself) vs. "Total Time" (time spent in the function + its children).
- Distinguish between CPU Bottlenecks (heavy computation, regex, JSON parsing) and Heap/Memory Churn (excessive object allocation, large intermediate arrays).
2. Pattern Recognition
The agent should specifically look for these "Platformatic-Verified" anti-patterns:
- The Middleware Trap: Parsing static config files or expensive JSON inside request handlers (Fix: Move to startup/singleton).
- The N+1 Async Loop: Sequential
awaitcalls in a loop (Fix: UsePromise.all()). - Hidden Latency: Using expensive abstractions like the
URLconstructor orspreadoperators inside hot loops (Fix: Use simpler primitives orSetfor O(1) lookups).
3. Actionable Optimization Workflow
Upon identifying a bottleneck, the agent must:
- Locate the Source: Use the file paths and line numbers provided in the Markdown table.
- Hypothesize & Patch: Propose a code change (e.g., "Memoize this result," "Move this regex outside the function").
- Verify: Instruct the user to re-run
flame runto confirm the fix actually shifted the hotspots in the next profile.
Example Prompt for Triggering this Skill
"I've attached a
cpu-profile.mdgenerated by Platformatic Flame. Based on the Top Hotspots, analyze mysrc/handler.jsand provide a prioritized list of fixes. Specifically, look for any O(n²) operations or redundant I/O that could be moved to the initialization phase."
Technical Requirements for Execution
- Environment: Node.js 22.6.0+ (for ESM interoperability).
- Tooling:
@platformatic/flamelatest version. - API Usage: Use
generateMarkdown('profile.pb', 'analysis.md', { format: 'detailed' })for programmatic analysis.
Would you like me to generate a sample Performance Analysis Markdown file so you can see exactly what the AI Agent would see?
> related_skills --same-repo
> vibe-ppt
Convert this into a web based slide deck using reveal.js. Use the following brand colour and logo. Primary colour: #EE4822 Theme: Light Logo: https://media.licdn.com/dms/image/v2/D560BAQFeaNrDEATcKQ/company-logo_200_200/company-logo_200_200/0/1709465010800/100xengineers_logo?e=2147483647&v=beta&t=qKncqAfB_j9ckDOxOx1eN9EEPocLTbNqliLnAU3sP6c Slide Content: Vibe Coding with Gemini Canvas Slide 1: Vibe Coding with Gemini Canvas Slide 2: What is Vibe Coding? Vibe Coding: Use natural language pro
> upwork-scrape-apply
# Upwork Job Scrape & Apply Pipeline Scrape Upwork jobs matching AI/automation keywords, generate personalized cover letters and proposals, and output to a Google Sheet with one-click apply links. ## Inputs - **Keywords**: List of search terms (default: automation, ai agent, n8n, gpt, workflow, api integration, scraping, ai consultant) - **Limit**: Max jobs to fetch (default: 50) - **Days**: Only jobs from last N days (default: 1 = last 24 hours) - **Filters**: - `--verified-payment`: Only
> ui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: g
> typescript-magician
Designs complex generic types, refactors `any` types to strict alternatives, creates type guards and utility types, and resolves TypeScript compiler errors. Use when the user asks about TypeScript (TS) types, generics, type inference, type guards, removing `any` types, strict typing, type errors, `infer`, `extends`, conditional types, mapped types, template literal types, branded/opaque types, or utility types like `Partial`, `Record`, `ReturnType`, and `Awaited`.