Redesign Skill system: unified skill package with ZIP download#275
Redesign Skill system: unified skill package with ZIP download#275ShixiangWang merged 3 commits intomainfrom
Conversation
…UI and CI 1. Fix CSV quoting: Properly escape double quotes in gallery_data.csv and gallery_data_zh.csv using RFC 4180 compliant format 2. Create unified Bizard Skill: Replace per-tutorial skill.md spec with comprehensive unified skill document covering all 257 tutorials across 13 categories. Old spec renamed to skill-spec.md. 3. Update skill-button.lua: Replace per-tutorial skill modal with unified ZIP download button. Uses JavaScript for correct relative path resolution across English and Chinese pages. 4. Update Skills.qmd/Skills.zh.qmd: Feature unified skill ZIP download prominently with large download button. Keep browsable skill grid for reference. 5. Update quarto-publish.yml: Add step to generate bizard-skill.zip containing skill.md + gallery_data.csv + gallery_data_zh.csv after website render. 6. Update generate-skills.yml: Add unified skill.md regeneration and commit alongside per-tutorial skills. Reference skill-spec.md. 7. Update generate_skills.py: Add generate_unified_skill() function that builds skill.md from skills/index.json. Update spec file references from skill.md to skill-spec.md. Agent-Logs-Url: https://github.com/openbiox/Bizard/sessions/d7b279b9-6241-402c-8062-1b941a90d6fe Co-authored-by: ShixiangWang <25057508+ShixiangWang@users.noreply.github.com>
|
实现的有一些问题,我希望的是用户在网站能点击下载bizard的skill压缩包,压缩包里包含 skill.md(包括对gallery_data.csv的指向和利用) 和 gallery_data.csv,(加一个 README.md,可选),这样用户可以直接将该skill安装到任意ai工具里使用。当前skill.md更像一个README.md,而不是利用Bizard的skill。 请认真思考我的需求进行修改优化 |
skill.md is now a proper AI skill that instructs AI assistants how to use Bizard's gallery_data.csv to recommend visualizations and generate code. It includes: role definition, gallery CSV column reference, workflow for answering queries, decision guide, code conventions, and response format. Added files/bizard-skill-readme.md with installation instructions for ChatGPT, Claude, Copilot, and local LLMs. Updated quarto-publish.yml to include README.md in the ZIP package. Updated generate_unified_skill() to produce the new AI skill format. Updated Skills.qmd/zh.qmd descriptions to explain the skill's purpose. Agent-Logs-Url: https://github.com/openbiox/Bizard/sessions/78fe388d-1ba4-4eaa-9a15-a69176258161 Co-authored-by: ShixiangWang <25057508+ShixiangWang@users.noreply.github.com>
Redesigned in
ZIP contents (
The |
The per-tutorial skill system was unreliable (some pages broken) and fragmented. This replaces it with a single unified Bizard Skill package that users download as a ZIP. Also fixes illegal CSV quoting that GitHub's renderer rejected.
CSV quoting fix
files/gallery_data.csv(76 lines) andfiles/gallery_data_zh.csv(17 lines) with RFC 4180 compliant quoting — fields containing"are now properly enclosed and escaped (e.g.palette="Dark2"→"palette=""Dark2""").Unified skill document
skill.mdis now a proper AI skill instruction document (system-prompt style) that teaches AI assistants how to use Bizard'sgallery_data.csvto recommend visualizations and generate reproducible code. It includes: role definition, gallery CSV column reference, 5-step workflow for answering queries, decision guide mapping 17 research goals to visualization types, code conventions for R/Python/Julia, and a structured response format.skills/index.jsonviagenerate_unified_skill()ingenerate_skills.py, with dynamic counts and categories.skill-spec.md.Skill ZIP package contents
skill.md— AI skill instructions (the AI's "system prompt")gallery_data.csv— 793 figure examples with image URLs, tutorial links, descriptions, and categoriesgallery_data_zh.csv— Chinese version of the gallery dataREADME.md— Installation guide for ChatGPT, Claude, GitHub Copilot Chat, and local LLMs (Ollama, LM Studio)Website UI — per-tutorial modal → ZIP download
skill-button.lua: Replaced the per-tutorial fetch/modal/copy flow with a single download link tobizard-skill.zip. Uses runtime JS path resolution to handle bothCategory/Page.htmlandzh/Category/Page.html.Skills.qmd/Skills.zh.qmd: Prominent download button with clear description of what the skill does and quick-start instructions. Retained browsable skill grid for reference.CI coordination
quarto-publish.yml: Added post-render step that stages files into a temp directory and creates_site/bizard-skill.zipwith clean filenames (includingREADME.md).generate-skills.yml: Now commitsskill.mdalongsideskills/, triggers onskill-spec.mdchanges.