
Knowledge Site Creator
Turn one sentence (“build a learning site for X”) into a deployed knowledge site with flashcards, learn mode, quiz, index, and progress—without copying template repos.
Overview
knowledge-site-creator is an agent skill most often used in Build (also Validate, Launch) that generates topic-specific knowledge learning sites with five study modes and Vercel deployment from one sentence.
Install
npx skills add https://github.com/joeseesun/knowledge-site-creator --skill knowledge-site-creatorWhat is this skill?
- Design-system-first flow—reuse layout and interaction patterns, not copied template pages
- Five learning modes: Flashcard, Learn, Quiz, Index, and Progress
- AI-authored wordData.js plus site config from a single natural-language topic
- Typical flow includes ~30 core concepts and 200–300 word descriptions per item
- One-click Vercel deploy with returned live URL
- Five core learning modes: Flashcard, Learn, Quiz, Index, Progress
- Workflow targets ~30 core concepts with 200–300 character descriptions
- Outputs both wordData.js and separate website configuration files
Adoption & trust: 820 installs on skills.sh; 346 GitHub stars; 1/3 security scanners passed (skills.sh audits).
What problem does it solve?
You want a polished learning website for a niche topic but do not have time to hand-write dozens of concepts, pages, and deploy configuration.
Who is it for?
Indie creators who need a flashcard-and-quiz learning microsite for a defined knowledge domain and are fine reviewing AI-generated educational copy.
Skip if: Large regulated corpora, multi-language CMS governance, or products that require custom backends and user accounts beyond the skill’s static-site pattern.
When should I use this skill?
User says generate/create a learning or knowledge website for a topic (e.g. 生成一个XXX学习网站, create XXX knowledge site).
What do I get? / Deliverables
You get AI-written structured content, generated pages following a minimal design system, and a live Vercel URL you can share or iterate on.
- wordData.js (or equivalent) structured concept corpus
- Generated multi-mode learning pages and deployed public URL
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
The skill’s main artifact is a generated learning web app; Build/frontend is where one-shot site generation and Vercel deploy land in the journey. frontend fits UI-heavy generated pages (home, modes, progress) even though content and deploy steps bleed into adjacent phases.
Where it fits
Test whether “evolutionary psychology concepts” deserves a dedicated learning product before building a custom platform.
Generate home, flashcard, quiz, and progress views from AI-authored wordData and site config.
Ship the Vercel URL to communities as a shareable learning workshop.
Expand the concept list and quiz bank after early user feedback on the index mode.
How it compares
One-shot generative site builder skill—not a headless CMS integration or SEO-only content brief generator.
Common Questions / FAQ
Who is knowledge-site-creator for?
Solo builders, educators, and indie founders who want a deployable learning workshop for any topic without manually scaffolding flashcards, quizzes, and landing copy.
When should I use knowledge-site-creator?
In Validate when you prototype a teachable niche offering; in Build when you generate pages and wordData; at Launch when you need a Vercel URL to share—trigger phrases include “生成一个XXX学习网站” or “create an XXX knowledge site.”
Is knowledge-site-creator safe to install?
Review Prism’s Security Audits panel and manually fact-check AI-generated educational content before promoting the site publicly.
SKILL.md
READMESKILL.md - Knowledge Site Creator
# Knowledge Site Creator - 通用知识学习网站生成器 **AI理解主题,自动创作内容,生成网站,一键部署。** ## 核心理念 **设计系统优先**: - 复用设计语言(极简主义、配色、布局、交互模式) - 不复用具体页面代码 - AI根据主题重新创作所有内容 **通用学习模式**(核心功能): - **闪卡(Flashcard)** - 快速记忆 - **学习(Learn)** - 渐进式学习 - **测试(Quiz)** - 知识检验 - **索引(Index)** - 快速查找 - **进度(Progress)** - 学习追踪 **零模板依赖**: - 不再 `cp -r` 复制模板 - AI参考设计系统,生成新页面 - 所有文案、统计、介绍都由AI创作 ## 触发方式 - "生成一个XXX学习网站" - "创建XXX知识网站" - "做个XXX学习工坊" 示例: - "生成一个进化心理学概念学习网站" - "创建量子力学基础概念网站" - "做个中医经络穴位学习工坊" ## 工作流程 ### 用户视角(一句话) ``` 用户:"生成一个进化心理学学习网站" AI自动执行: ✓ 分析"进化心理学"特点和价值 ✓ 生成30个核心概念数据 ✓ 创作首页文案、统计、介绍 ✓ 参考设计系统生成页面 ✓ 部署到 Vercel ✓ 返回:https://evolutionary-psychology.vercel.app 完成! ``` --- ## 实施流程(AI执行) ### Step 1: 理解主题 AI深入分析主题,输出主题分析: ```javascript 主题分析 { 领域: "进化心理学", 特点: "跨学科(生物学+心理学),解释人类行为的底层逻辑", 价值: "理解人性、改善关系、优化决策", 受众: "心理学爱好者、自我提升者、教育工作者", 表达: "科学严谨 + 生活化案例,避免学术术语堆砌" } ``` **思考问题**: - 这是什么领域?(学科分类、知识特点) - 为什么重要?(学习价值、应用场景) - 目标受众是谁?(背景、需求、痛点) - 如何表达更好?(语言风格、案例选择) --- ### Step 2: 生成数据 + 网站配置 ⚠️ **关键**:生成两个文件,不只是数据! #### 2.1 生成数据(wordData.js) **通用数据结构**: ```javascript const WordRoots = [ { id: 1, root: "适应性 (Adaptation)", // 知识点名称 origin: "核心理论", // 分类/来源 meaning: "通过自然选择进化出的有利特征", // 一句话解释 description: "详细说明(200-300字)...", examples: [ // 应用案例/例子(3个) { word: "恐高症", meaning: "对高处的恐惧", breakdown: { root: "适应性" }, explanation: "详细解释..." } ], quiz: { // 小测试(4选1) question: "以下哪个不是适应性的特征?", options: ["选项A", "选项B", "选项C", "选项D"], correctAnswer: 2 // 正确答案索引(0-3) } } ]; ``` **生成数量**:默认20-30个,根据主题复杂度调整 #### 2.2 生成配置(siteConfig.js)🆕 **AI创作,完全适配主题**: ```javascript const siteConfig = { // 基础信息 topic: "进化心理学", siteName: "进化心理学概念工坊", itemName: "概念", // 单个知识点的称呼 itemCount: 30, // 首页Hero区(AI创作) hero: { title: [ "30个核心概念", "理解人类行为", "的底层逻辑" ], subtitle: "从适应性到配偶选择,系统掌握进化心理学核心框架", animation: { enabled: true, // 是否显示动画 demoCount: 5 // 动画展示几个概念 } }, // 统计卡片(AI生成,匹配主题特点) stats: [ { value: "30", label: "核心概念" }, { value: "100+", label: "生活应用" }, { value: "15分钟", label: "每日学习" } ], // 底部介绍(AI创作) footer: { tagline: "像理解自己一样理解人性", description: "基于进化心理学的科学框架,用30个核心概念解释人类行为背后的生物学逻辑。从配偶选择到亲子关系,从群体合作到情绪反应,让你看懂人性的深层原因。" }, // 按钮文案(AI适配) cta: { primary: "开始第一个概念 →", secondary: "闪卡复习" } }; ``` **AI创作原则**: - `hero.title`: 简洁有力,3行,突出核心价值 - `hero.subtitle`: 具体说明学什么,为什么学 - `stats`: 真实、有说服力的数字,匹配主题特点 - `footer.tagline`: 一句话点题,朗朗上口 - `footer.description`: 2-3句,说清楚是什么、学什么、有什么用 --- ### Step 3: 参考设计系统,生成页面 ⚠️ **不再复制模板!AI参考设计规范,生成新页面** #### 3.1 设计系统参考 ⚠️ **参考文档**:`references/design-system.md` - 完整的设计规范 **核心要点**: - **配色**:黄色主题色 (#FBBF24),灰色系文字和背景 - **字体**:Inter字体族,代码用Courier New - **风格**:极简主义,大留白,清晰层级 - **组件**:圆角卡片(12px),极浅阴影 - **间距**:8px网格系统,Hero区96px留白 详细配色、字体、间距、组件样式见 `design-system.md` #### 3.2 生成页面清单 ⚠️ **功能参考**: - `references/core-patterns.md` - 核心学习模式实现 - `references/code-quality.md` - **代码质量标准(必须遵守)** - `references/seo-best-practices.md` - **SEO优化指南** 🆕 - `references/pwa-setup.md` - PWA配置指南 **代码质量要求**(强制): - ✅ **错误处理**:所有 LocalStorage 操作必须有 try-catch - ✅ **XSS 防护**:使用 textContent/createElement,禁止直接 innerHTML 插入未转义数据 - ✅ **DOM 安全**:所有 DOM 操作前检查元素存在 - ✅ **避免全局污染**:使用模块封装或 IIFE 详细规则见 `references/code-quality.md`。 AI参考设计系统,从零生成以下页面: 1. **index.html** - 首页 🆕 - Hero区:使用 `siteConfig.hero.title/subtitle` - 动画演示:从 `WordRoots` 动态加载前5个(见core-patterns.md §9) - 统计卡片:使用 `siteConfig.stats` - CTA按钮:使用 `siteConfig.cta` - Footer:使用 `siteConfig.footer` 2. **learn.html** - 学习页(见core-patterns.md §5) - 渐进式卡片展示 - 上一个/下一个导航 - 标记已掌握功能 3. **flashcard.html*