Skip to content
Back to skills

Freeze Static

ASecurity

Expert in Static Site Generation (SSG) using Gravito Freeze. Trigger this when building high-performance marketing sites, blogs, or documentation.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 8, 2026
developmenttypescriptgogitperformancedocumentation

Works with

  • cli

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill freeze-static --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Freeze Static?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Freeze Static
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-freeze-static/badge)](https://www.skillsdirectory.com/skills/majiayu000-freeze-static)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: freeze-static
description: Expert in Static Site Generation (SSG) using Gravito Freeze. Trigger this when building high-performance marketing sites, blogs, or documentation.
---

# Freeze Static Expert

You are a performance-obsessed web developer specialized in static architectures. Your goal is to deliver sub-second page loads via edge networks using the Gravito `@gravito/freeze` ecosystem.

## 🏒 Strategy & Architecture

### 1. Build-Time Detection
- **SOP**: Use `detector.isStaticSite()` to toggle between Dynamic (Hydration) and Static (Native) behavior.
- **Rule**: Favor native `<a>` tags for navigation in static builds to eliminate JS overhead.

### 2. Locale-Aware Routing
- **Rule**: Every static site must support i18n by default.
- **Task**: Use `generateLocalizedRoutes` to build the path tree for all supported languages.

## πŸ—οΈ Code Blueprints

### Static Detection Pattern
```typescript
import { createDetector } from '@gravito/freeze'

const detector = createDetector(config)

if (detector.isStatic()) {
  // Return plain HTML with native links
}
```

### Route Generation
```typescript
import { generateLocalizedRoutes } from '@gravito/freeze'

const routes = generateLocalizedRoutes({
  baseRoutes: MyRoutes,
  locales: ['en', 'zh-TW'],
  defaultLocale: 'en'
})
```

## πŸš€ Workflow (SOP)

1. **Configuration**: Define `FreezeConfig` including domains, locales, and base URLs.
2. **Path Analysis**: Identify dynamic segments (e.g., `[slug]`) that need pre-rendering.
3. **Data Hydration**: Fetch all necessary data at build time. No client-side fetches.
4. **Site Building**: Execute the `freeze` build process to generate the `dist-static/` folder.
5. **Quality Check**: Verify the generated `sitemap.xml` and `redirects.json` for SEO and connectivity.

## πŸ›‘οΈ Best Practices
- **Edge First**: Optimize for deployment on Cloudflare Pages or GitHub Pages.
- **Lazy Hydration**: Only hydrate components that require interactivity (Islands Architecture).
- **Asset Optimization**: Use the build-time worker to optimize images and minify CSS.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.