xiaohongshu
xiaohongshu
load-testing
Create and manage K6 load tests for REST and GraphQL APIs. Use when creating load tests, writing K6 scripts, testing API performance, debugging load test failures, or setting up performance monitoring. Covers REST endpoints, GraphQL operations, data generation, IRI handling, configuration pattern...
Full skill instructions
This skill provides guidance for creating and managing K6 load tests for both REST and GraphQL APIs following VilnaCRM ecosystem patterns.
createResource.js, getResource.js, updateResource.js, deleteResource.jsgraphQLCreateResource.js, graphQLGetResource.js, etc.__ITER % N)setup() function to create test dependenciesteardown() function to clean up test datatests/Load/scripts/# All load tests (REST + GraphQL)
make load-tests
# Specific load levels
make smoke-load-tests # Minimal load (2-5 VUs, 10s)
make average-load-tests # Normal load (10-20 VUs, 2-3 min)
make stress-load-tests # High load (30-80 VUs, 5-15 min)
make spike-load-tests # Extreme load (100-200 VUs, 1-3 min)
# Individual script
make execute-load-tests-script scenario=createCustomer
make execute-load-tests-script scenario=graphQLCreateCustomer
# List all available scenarios
./tests/Load/get-load-test-scenarios.sh
# Create in tests/Load/scripts/
touch tests/Load/scripts/yourOperation.js # REST
touch tests/Load/scripts/graphQLYourOperation.js # GraphQL
See Supporting Files below for detailed templates and examples.
Update tests/Load/config.json.dist with script parameters.
# Test with smoke load first
make smoke-load-tests
# Verify cleanup
# Check no test data remains in database
| Level | VUs | Duration | Success Rate | Purpose |
|---|---|---|---|---|
| Smoke | 2-5 | 10 seconds | 100% | Basic functionality verification |
| Average | 10-20 | 2-3 minutes | >99% | Normal traffic simulation |
| Stress | 30-80 | 5-15 minutes | >95% | Find breaking points |
| Spike | 100-200 | 1-3 minutes | >90% | Test resilience under sudden load |
// Random operations - unpredictable results
const operation = Math.random();
// Hardcoded test data
const email = '[email protected]'; // Will cause conflicts
// Missing cleanup in teardown()
// Deterministic operations
const operationIndex = __ITER % 3;
// Dynamic test data
const email = `test_${Date.now()}_${randomString(6)}@example.com`;
// Proper cleanup
export function teardown(data) {
// Clean up all created resources
}
config.json.distgraphQL prefix for GraphQL tests./tests/Load/get-load-test-scenarios.shFor detailed patterns, examples, and reference documentation:
This skill ensures consistent, professional, and effective load testing for both REST and GraphQL APIs across all VilnaCRM projects.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience