Skip to content
Development
Command

/context-load-dragonfly

Load comprehensive DragonflyDB documentation context for development

From plugin
claude-cmd
313180 skills180 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/context-load-dragonfly

Context preview

What this command does when you run it.

Load comprehensive DragonflyDB documentation context for development

Command definition

context-load-dragonfly.md
allowed-tools: mcp__context7__resolve-library-id, mcp__context7__get-library-docs, WebFetch, Write, Bash(gdate:*)
name: "Context Load Dragonfly"
description: "Load comprehensive DragonflyDB documentation context for development"
author: "wcygan"
tags: ["context","db"]
version: "1.0.0"
created_at: "2025-07-14T00:00:00Z"
updated_at: "2025-07-14T00:00:00Z"

Context

  • Session ID: !`gdate +%s%N`
  • Current directory: !`pwd`
  • Database configs: !`fd "(docker-compose|dragonfly|redis)" --max-depth 3 | head -5 || echo "No database configs found"`
  • Existing Redis usage: !`rg "(redis|cache)" --type js --type ts --type go --type py | head -5 || echo "No Redis usage found"`

Your Task

STEP 1: Initialize Context Loading Session

  • Create context session file: /tmp/dragonfly-context-$SESSION_ID.json
  • Initialize documentation tracking and priority loading queue
  • Set focus areas based on project context

STEP 2: Load Core DragonflyDB Documentation

TRY:

  • Resolve DragonflyDB library ID using Context7 MCP server
  • Load comprehensive documentation with focus on:
  • Redis API compatibility and migration paths
  • Performance characteristics and benchmarks
  • Clustering configuration and deployment
  • Memory optimization strategies

CATCH (context7_unavailable):

  • Fallback to WebFetch for essential documentation URLs:
  • `https://dragonflydb.io/docs/getting-started`
  • `https://dragonflydb.io/docs/managing-dragonfly/`
  • `https://dragonflydb.io/docs/integrations/`

STEP 3: Focus Area Deep Dive

Load specialized context based on detected project needs:

IF Redis usage detected:

  • Prioritize migration documentation and compatibility guides
  • Load Redis command mapping and behavioral differences
  • Focus on client library configuration changes

ELSE IF Docker configs found:

  • Emphasize container deployment and orchestration
  • Load cluster configuration and scaling patterns
  • Focus on monitoring and health check setup

ELSE:

  • Load general installation and configuration guidance
  • Emphasize performance tuning and optimization
  • Focus on client connection patterns

STEP 4: Synthesize Loaded Context

  • Create actionable knowledge summary in context session file
  • Organize by: installation, configuration, migration, performance, monitoring
  • Highlight critical differences from Redis
  • Document best practices and common pitfalls

STEP 5: Validate Context Completeness

  • Verify coverage of essential DragonflyDB concepts
  • Ensure migration path documentation is complete
  • Confirm performance optimization guidance is loaded
  • Save context validation results to session state

Expected Capabilities After Loading

Upon completion, you will provide expert guidance on:

  • **Migration Strategy**: Redis to DragonflyDB transition planning
  • **Performance Optimization**: Memory efficiency and throughput tuning
  • **Cluster Configuration**: High-availability deployment patterns
  • **Monitoring Setup**: Metrics collection and alerting
  • **Client Integration**: Connection patterns and library usage
  • **Security Configuration**: Authentication and network security
  • **Troubleshooting**: Common issues and diagnostic approaches

Context Loading Priority

1. **High Priority**: Getting started, Redis compatibility, basic configuration 2. **Medium Priority**: Performance tuning, clustering, monitoring 3. **Low Priority**: Advanced features, integrations, troubleshooting

The goal is comprehensive DragonflyDB expertise enabling efficient Redis replacement and optimization.

Read more
Ships withclaude-cmd

A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.

Get the whole plugin