Fogsight skill

From hongyangAndroid/blog_ai · View interactive version

Fogsight skill is an AI agent skill from the GitHub repository hongyangAndroid/blog_ai. Use when user wants to generate educational animation for a concept or topic, create visual explanation with HTML/CSS/JS animation, or transform abstract ideas into animated visual content

How to use this skill

Skill file

Fogsight Skill

Overview

Generate beautiful, animated educational content from abstract concepts using the Fogsight methodology. This skill transforms topics like algorithms, physics principles, or mathematical concepts into self-contained HTML files with stunning visual animations.

Core Principle: Use the Fogsight Prompt Template to generate animations - every animation is created fresh based on the topic, not pre-written templates.

When to Use

Core Workflow

Step 1: Receive Topic

User provides a topic (e.g., "冒泡排序", "TCP三次握手", "相对论")

Step 2: Apply Fogsight Prompt Template

MANDATORY: Use the following prompt template to generate the animation:

请你生成一个非常精美的动态动画,讲讲 {topic}
要动态的,要像一个完整的,正在播放的视频。包含一个完整的过程,能把知识点讲清楚。
页面极为精美,好看,有设计感,同时能够很好的传达知识。知识和图像要准确
附带一些旁白式的文字解说,从头到尾讲清楚一个小的知识点
不需要任何互动按钮,直接开始播放
使用和谐好看,广泛采用的浅色配色方案,使用很多的,丰富的视觉元素。双语字幕
**请保证任何一个元素都在一个2k分辨率的容器中被摆在了正确的位置,避免穿模,字幕遮挡,图形位置错误等等问题影响正确的视觉传达**
html+css+js+svg,放进一个html里

Replace {topic} with the user's input.

Step 3: Generate Animation According to Prompt Requirements

Based on the prompt template, generate HTML that includes:

Required Structure:

Required Scenes:

  1. Introduction Scene - What is this concept?
  2. Concept Scene - Core idea explanation
  3. Main Visualization Scene - Step-by-step demonstration
  4. Completion Scene - Summary and statistics

Required Features:

Step 4: Save and Deliver

  1. Save the HTML file with descriptive name: {topic}-animation.html
  2. Provide file path to user
  3. Briefly explain what the animation covers

Example Generation

User Input: "冒泡排序"

Prompt Used:

请你生成一个非常精美的动态动画,讲讲 冒泡排序
要动态的,要像一个完整的,正在播放的视频...
[rest of template]

Generated Output: Complete HTML file with:

Output Format

Always respond with:

  1. Confirmation of the topic
  2. Brief description of what the animation shows
  3. File path where HTML is saved
  4. Instructions to open in browser

Example response:

已为您生成"快速排序算法"的动画演示。

动画内容:
- 开场介绍快速排序的基本概念
- 核心思想:分治法与基准元素
- 可视化展示分区过程和递归调用
- 完成统计:遍历轮次、比较次数、交换次数
- 全程双语字幕解释每一步

文件已保存至:/path/to/quicksort-animation.html

直接在浏览器中打开即可观看动画。

Technical Requirements Checklist

When generating, ensure:

Common Topics

Algorithms:

Physics:

Mathematics:

Computer Science:

Important Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.