flowai-team-dashboard
A three-tab team management admin dashboard: Members, Details, and Activity Log, featuring charts and CSV export.
1How It Works & Mechanism
This skill is not an executable program, but a prompt injected into the local coding-agent CLI: the host takes the body of SKILL.md, prepends global shared design instructions, appends user content, builds a single prompt for the logged-in agent, and retrieves the agent's stdout as HTML.
【输入格式】: ${opts.format} 【用户内容】: ${opts.content}
The shared instruction layer (which does not belong to any single skill, but sits on top of every template) pins the output as a 'self-contained single-file HTML' and explicitly forbids the agent from using file system tools like Write/Edit/Bash, streaming HTML directly as conversation text.
- **禁止使用 Write / Edit / MultiEdit / Bash / Create / 任何文件系统工具**。不要把 HTML 写到任何 \`.html\` 文件里。前端直接捕获你的 stdout 文本, 文件落盘由前端负责。
Beyond SKILL.md, there is a 'content-driven volume' override rule: any page, frame, or card count specified in the template is treated as a reference minimum, with the actual quantity determined by user content—preventing the agent from compressing user content to match template numbers.
- 模板只定义"可用版面 / 风格 / 配色 / 字体 / 组件库", **不定义** slide / 帧 / 卡片 / section 的数量。
The loading convention is 'one skill = one folder': SKILL.md (YAML frontmatter for the selector + body as template prompt), with optional example.md (sample input) and example.html (ready-to-view preview sample); adding templates requires only adding directories without modifying TS code.
* SKILL.md — frontmatter (id, scenario, tags, …) + prompt body * example.md — (optional) sample input content * example.html — (optional) pre-rendered preview, shown inline in the picker
The selection pipeline (CLI side) uses a three-tier funnel: strong signal keywords (2 points per matched keyword, threshold 3) → fallback to tags/scenario scoring → if still uncertain, passes the first 800 characters of user content to the local agent for a one-sentence classification.
const CONFIDENCE_THRESHOLD = 3;
The preview pipeline is independent of generation: /api/templates/<id>/preview returns example.html verbatim as text/html to an iframe; the frontend iframe uses sandbox="allow-scripts allow-same-origin".
sandbox="allow-scripts allow-same-origin"
The template defines a three-tab team management admin single-page: Team Members / Team Details / Activity Log, plus a row of KPI stats, a member table (avatar + role + status), a role distribution bar chart, online status with activity sparklines, and a Top contributors panel.
- Tabs: Team Members / Team Details / Activity Log - KPI stat row - Member table (avatar + 角色 + 状态) - Role distribution bar chart - Online presence + activity sparklines - Top contributors panel
Interaction details are explicitly listed: light/dark toggle, hover tooltips, click-to-zoom panels, and a 'CSV export button (frontend implementation)'—meaning export is generated entirely browser-side without hitting the server.
- light/dark 切换, hover tooltip, click-to-zoom panels - CSV export 按钮 (前端实现)
Positioned intentionally as a FlowAI aesthetic team management admin page, meaning layout and palette follow the shared instruction layer while this template handles only the backend information architecture.
【意图】FlowAI 美学的团队管理 admin 单页。
Canvas specification targets desktop 1440 (aspect_hint), selector metadata is category=dashboard, scenario=operations, and tags are flowai/team/members.
aspect_hint: "桌面 1440"
The example.html of this skill is merely an iframe shell pointing to ./assets/template.html; since that file does not exist in the pinned commit, the preview route returns this shell verbatim, causing an iframe 404.
<iframe src="./assets/template.html" title="FlowAI Team Dashboard Example"></iframe>
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| network | Tailwind / Google Fonts 由共享指令层强制(本模板 SKILL.md 未提 CDN;示例壳自身零外链) |
| network | FlowAI 品牌/美学参照(仅出现于正文命名,无端点位) |
4Recommended Governance & Evidence
- SKILL.md: Pure prompt instructions and rule text, without script execution or external side effects
5Second-Pass Verification
- [ok] 三 tab / 布局宣称 — 重读 SKILL.md【布局】6 条与 JSON 引用逐字一致。
- [ok] 『CSV 导出前端实现』 — SKILL.md【设计细节】确写『CSV export 按钮 (前端实现)』;对目录做 createObjectURL/download=/Blob 扫描零命中——模板声明了该能力,实现由生成的页面自行承担。
- [discrepancy] 预览样张可用性 — example.html 仅含 <iframe src="./assets/template.html">,而该 pin 的 skill 目录(git ls-files 复核)只有 SKILL.md 与 example.html,无 assets 目录。结论:选择器/详情页预览会 404,样张缺失。
- [ok] featured/recommended 缺失的影响 — loader 只在 if (typeof fm.featured === "number") meta.featured = fm.featured; 时写 meta.featured,故本 skill 不进推荐位——与 README showcase(按 recommended 排的 8 个)中确无 flowai-team-dashboard 相互印证。
- [ok] 安全面 — 目录内 2 个文件无脚本/凭证/写盘/网络调用 token;示例壳无外链。
- [ok] meta 元数据 — GitHub API 实查 stars=8827、pushed_at=2026-09-15T03:36:24Z、license Apache-2.0。
- [unlocatable] 安装量 — 无公开安装量数据源,installs=null。
6Verdict & Scenarios
2b713fbcbced0b31…