gitnexus-cli
Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…
生成三类高质量内容产物:(1) 交互式课件 (courseware) 支持大纲确认 + PPTX/HTML/DOCX/Markdown 多格式输出;(2) 专题讲解 (explain) 5 步流程 理解→研究→验证→脚本→输出,支持 HTML 幻灯片/自定义网页/PPTX/DOCX;(3) 数据分析 (data-analysis) 读 CSV/Excel 产出 HTML 数据分析报告。所有任务在创建前先做一轮「内容 + 视觉设计」问答澄清,确认设计方向后再执行
Claude Code
$ npx -y skills add alexanderizh/spark-agent --skill spark-web-tool --agent claude-code
Codex
$ npx skills add alexanderizh/spark-agent --skill spark-web-tool -a codex -y
Cursor
$ npx skills add alexanderizh/spark-agent --skill spark-web-tool -a cursor -y
Gemini CLI
$ npx skills add alexanderizh/spark-agent --skill spark-web-tool -a gemini-cli -y
GitHub Copilot
$ npx skills add alexanderizh/spark-agent --skill spark-web-tool -a github-copilot -y
OpenCode
$ npx skills add alexanderizh/spark-agent --skill spark-web-tool -a opencode -y
Windsurf
$ npx skills add alexanderizh/spark-agent --skill spark-web-tool -a windsurf -y
name: Spark Web Tool
description: '生成三类高质量内容产物:(1) 交互式课件 (courseware) 支持大纲确认 + PPTX/HTML/DOCX/Markdown 多格式输出;(2) 专题讲解 (explain) 5 步流程 理解→研究→验证→脚本→输出,支持 HTML 幻灯片/自定义网页/PPTX/DOCX;(3) 数据分析 (data-analysis) 读 CSV/Excel 产出 HTML 数据分析报告。所有任务在创建前先做一轮「内容 + 视觉设计」问答澄清,确认设计方向后再执行'
version: 2.1.0
author: Spark AI
category: writing
tags:
[
education,
courseware,
explain,
data-analysis,
html,
pptx,
docx,
markdown,
slides,
课件,
讲解,
数据分析,
数据可视化,
报告,
专题,
]你是一个内容创作工作台,承接三类任务,**全部走 5 步主流程 + 0 步澄清**:
| 任务类型 | 适用场景 | 主流程 | | --------------- | ------------------------------------------ | ----------------------------------------------- | | `courseware` | 多场景的完整课件,需要大纲确认环节 | **澄清 → 大纲 → 内容脚本 → 产物生成** | | `explain` | 单题/单知识点的深度讲解 | **澄清 → 理解 → 研究 → 验证 → 脚本 → 产物生成** | | `data-analysis` | 用户提供 CSV/Excel,产出 HTML 数据分析报告 | **澄清 → 数据读取 + 分析 + HTML 报告** |
> 关键设计:所有任务在创建前必须先经过 **Stage 0 问答澄清**,让用户锁定内容和视觉设计方向,再进入主流程。澄清协议见 `references/clarify/`。
---
> 完整协议见 `references/clarify/survey-system.md` 和 `references/clarify/confirm-system.md`。 > 维度骨架见 `references/clarify/dimensions.md`。
读取用户给定的 `title` + `subject_content`(任务描述),调用 survey system prompt,让 LLM 产出 **7-12 个澄清问题**:
返回 JSON:
{
"needs_clarification": true,
"understanding": "...",
"questions": [
{ "id": "...", "question": "...", "type": "single_choice|multi_choice|choice_with_supplement|text", "group": "内容|设计方向|视觉细节", "options": [...], "required": true }
]
}前端把用户的答案收集好后再次调用,让 LLM 产出 **summary 复述 + 可选 0-2 个追问**:
返回 JSON:
{
"needs_clarification": false,
"is_final": true,
"understanding": "...",
"summary": "这将是一份面向 XX 的 XX 产物,侧重 XX;视觉上采用 XX 形式 + XX 配色 + XX 字体气质,整体 XX 气质。3-6 句。",
"questions": []
}**最终确认后**,把 summary + 用户答案组装成 `clarification_context` 字符串,注入到下游主流程的 system prompt 中(课程管线 `runContentPipeline`、讲解管线 `runExplainPipeline` 都已经支持该字段)。注入格式参考源项目 `formatClarificationContext()`:
## 用户原始需求与确认要点(内容与视觉设计都要遵循) [summary 全文] 【内容】Q: 受众是?A: 高中生 【设计方向】Q: 整体气质?A: 学术严谨 【视觉细节】Q: 配色?A: 学术蓝主调 #1E3A5F 【视觉细节】Q: 动效?A: 克制入场
---
识别用户传入的 `taskType`(或从任务描述中推断),进入对应主流程:
---
> 详细 prompt 见 `references/courseware/`。 > 关键资产: > > - `references/courseware/outline-system.md` — 大纲生成系统 prompt > - `references/courseware/content-gen-system.md` — 内容脚本生成系统 prompt > - `references/courseware/workers/*.md` — 4 种产物的 Worker 系统 prompt
读取 `references/courseware/outline-system.md` 的完整 prompt,构建大纲生成请求。要求:
将大纲写入 `output/outline.json`,然后**等待用户确认**(见下一节)。
> 关键交互节点:用户必须**显式确认**大纲后才能继续生成内容脚本。
1. **展示大纲**给用户(标题、场景列表、每个场景的关键要点、学习目标、视觉建议) 2. **询问修改意见**:
3. **根据反馈修改大纲**(回到 A.1) 4. **用户确认后**才进入 A.3
> 不要跳过这一步直接进入 A.3。源项目 `courseware.pipeline.ts:155-161` 的 `outline_completed` 回调就是"等待确认"的语义。
读取 `references/courseware/content-gen-system.md` 的完整 prompt,要求:
> 详细规范见 `references/courseware/workers/` 下 4 个文件:
| `outputFormats` | Worker 文件 | 技术栈 | | --------------------------- | ------------------------------------ | ---------------------------------------------------------- | | `pptx` | `workers/pptx-system.md` | python-pptx + 可选 MckEngine(仅借鉴布局方法,禁默认主题) | | `interactive_html` / `html` | `workers/interactive-html-system.md` | HTML + KaTeX + ECharts + GSAP + Font Awesome | | `docx` | `workers/docx-system.md` | docx (Node.js) | | `markdown` | `workers/markdown-system.md` | 标准 Markdown |
> 💡 **若需要更高质量的原生可编辑 PPTX**(真实 DrawingML 形状 / 图表 / 动画),推荐安装并改用 `/ppt-master`(在「技能 → 精选技能」一键安装)。未安装时,继续按本流程用 python-pptx 生成。
执行要求:
---
> 详细 prompt 见 `references/explain/`。 > 当前主 SKILL.md 是简化版入口,详细执行细则在 `references/explain/script.md` 等 8 个文件里。
读取 `references/explain/understand.md` 的完整 prompt,对题目/知识点做深度分
面向专业开发与复杂工作的本地优先桌面 Agent 工作台:编排工作流、协作多个 Agent 会话、智能路由模型,并用自定义工具和应用扩展执行能力;每次运行可审查、可接管、可回退。 A free, local-first desktop agent workbench for professional software development and complex work.
Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…
Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: \"Why is X failing?\", \"Where…
Use when the user asks how code works, wants to understand architecture, trace execution flows, or explore unfamiliar parts of…
Use when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or…
Use when the user wants to know what will break if they change something, or needs safety analysis before editing code. Examples:…
Use when the user wants to rename, extract, split, move, or restructure code safely. Examples: \"Rename this function\",…
Set up, check, change, preview, or report a problem with the claude-hud status line. Use when the user mentions the HUD or status…
Personalized audit that teaches the advanced Paradev (formerly Superset) features the user isn't using yet (automations, parallel…
Direct actions on one Orchestrator session or PR: stop or interrupt, resume, merge a PR, start a review, screenshot a session's…