Skip to content
Development
Command

/context-load-deno-fresh

Load comprehensive Deno Fresh framework context with islands architecture and modern styling

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-deno-fresh

Context preview

What this command does when you run it.

Load comprehensive Deno Fresh framework context with islands architecture and modern styling

Command definition

context-load-deno-fresh.md
allowed-tools: mcp__context7__resolve-library-id, mcp__context7__get-library-docs, WebFetch, Read, Write, Bash(fd:*), Bash(rg:*), Bash(gdate:*)
name: "Context Load Deno Fresh"
description: "Load comprehensive Deno Fresh framework context with islands architecture and modern styling"
author: "wcygan"
tags: ["context","deno"]
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`
  • Fresh projects detected: !`fd "deno\.json" --max-depth 2 | rg fresh | head -5 || echo "No Fresh projects found"`
  • Deno version: !`deno --version | head -1 || echo "Deno not installed"`
  • Framework files: !`fd "(fresh\.config|routes|islands)" --type d --max-depth 3 | head -10 || echo "No Fresh structure detected"`
  • Tailwind configs: !`fd "(tailwind\.config|twind\.config)" --max-depth 2 | head -5 || echo "No styling configs found"`
  • Git status: !`git status --porcelain | head -5 || echo "Not a git repository"`
  • Current branch: !`git branch --show-current 2>/dev/null || echo "No git repository"`

Your Task

STEP 1: Context Loading Session Initialization

  • Create session state file: /tmp/fresh-context-$SESSION_ID.json
  • Initialize context loading registry and source tracking
  • Set up parallel context loading coordination
  • Create checkpoint system for resumable context loading

STEP 2: Fresh Framework Context Discovery

TRY:

  • Use Context7 MCP server to load Fresh framework documentation:
  • Resolve Fresh library ID: `/denoland/fresh`
  • Load comprehensive Fresh documentation context
  • Focus on: islands architecture, routing, SSR, hydration
  • Save checkpoint: context7_fresh_loaded

CATCH (context7_unavailable):

  • Fall back to WebFetch for direct documentation loading
  • Use systematic web fetching for key Fresh resources
  • Document context7 availability for future sessions
  • Continue with manual context loading strategy

STEP 3: Parallel Documentation Loading (Sub-Agent Approach)

FOR comprehensive Fresh ecosystem coverage:

Launch 5 parallel context loading sub-agents:

  • **Fresh Core Agent**: Load islands architecture, routing, and SSR documentation
  • **Preact Integration Agent**: Load component patterns, hooks, and signals documentation
  • **Styling Agent**: Load Tailwind CSS integration and Fresh styling strategies
  • **Deployment Agent**: Load Deno Deploy and production deployment documentation
  • **Examples Agent**: Analyze Fresh example projects and implementation patterns

ELSE (focused context loading):

Load core Fresh documentation sequentially:

  • Fresh Documentation: `https://fresh.deno.dev/docs/`
  • Preact Guide: `https://preactjs.com/guide/v10/getting-started`
  • Tailwind CSS Integration: `https://fresh.deno.dev/docs/concepts/styling`
  • Deno Deploy: `https://docs.deno.com/deploy/`

STEP 4: Context Integration and Validation

TRY:

  • Validate loaded documentation completeness
  • Cross-reference Fresh version compatibility (1.6+ vs 2.0 alpha)
  • Generate Fresh-specific guidance summary
  • Test context integration with project detection
  • Save checkpoint: context_integration_complete

CATCH (incomplete_context_loading):

  • Document missing documentation sections
  • Provide fallback guidance sources
  • Create manual context loading instructions
  • Save partial context state for incremental loading

CATCH (network_connectivity_issues):

  • Use cached documentation if available
  • Provide offline Fresh reference materials
  • Document connectivity limitations in session state
  • Create alternative context loading strategy

STEP 5: Fresh Expertise Capabilities Enablement

Activate expert capabilities for:

**Core Fresh Framework:**

  • Islands architecture design and optimization
  • File-based routing system implementation
  • Server-side rendering and client-side hydration
  • Component composition and state management
  • Signal-based reactive state patterns

**Modern Styling Ecosystem:**

  • Tailwind CSS plugin configuration (Fresh 1.6+)
  • Migration from Twind to Tailwind CSS
  • Responsive design and component patterns
  • Performance optimization and CSS purging
  • Dark mode and theming strategies

**Production Deployment:**

  • Deno Deploy configuration and optimization
  • Edge functions and KV storage integration
  • Performance monitoring and analytics
  • CI/CD pipeline setup for Fresh applications

STEP 6: Project-Specific Context Enhancement

IF Fresh projects detected:

  • Analyze existing Fresh configuration files
  • Identify current version and feature usage
  • Map component patterns and styling approaches
  • Document migration opportunities and best practices

IF Tailwind configs detected:

  • Load Tailwind-specific Fresh integration patterns
  • Analyze current styling architecture
  • Identify optimization opportunities within Fresh context

STEP 7: Context Validation and Session Management

TRY:

  • Execute comprehensive Fresh framework validation
  • Validate context coverage across all Fresh capabilities
  • Generate Fresh-specific project guidance
  • Test expert guidance capabilities
  • Save checkpoint: context_validation_complete

CATCH (context_validation_failed):

  • Document context gaps and limitations
  • Provide alternative guidance sources
  • Create context improvement plan
  • Save validation issues to session state

FINALLY:

  • Update Fresh context session state
  • Create context summary for current session
  • Clean up temporary context files: /tmp/fresh-temp-$SESSION_ID-*
  • Archive loaded context for future sessions

State Management Structure

// /tmp/fresh-context-$SESSION_ID.json
{
  "sessionId": "$SESSION_ID",
  "timestamp": "ISO_8601_TIMESTAMP",
  "context_sources": {
    "context7_available": true,
    "loaded_docs": [
      {
        "source": "fresh_framework_docs",
        "status": "loaded",
        "focus_areas": ["islands", "routing", "ssr", "styling"]
      },
      {
        "source": "preact_integration",
        "status": "loaded",
        "focus_areas": ["components", "hooks", "signals
Read more
Ships withclaude-cmd

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

Get the whole plugin