← 返回 Skills 市场
fulcra

Fulcra Dashboard

作者 Fulcra.ai · GitHub ↗ · v0.0.4 · MIT-0
cross-platform ⚠ suspicious
32
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install fulcra-dashboard
功能描述
Builds a highly customizable, single-file HTML dashboard using Alpine.js and modern Vanilla CSS to visualize Fulcra data. Use this skill when the user wants...
使用说明 (SKILL.md)

Fulcra Dashboard

This skill provides the automated setup for a lightweight, build-less web dashboard. It relies entirely on Alpine.js for state management and Vanilla CSS for styling. It eschews complex frameworks (like SvelteKit) and utility-class libraries in favor of a "Single-Scroll Artifact" or a "Static Triad" that is instantly deployable to simple hosts like GitHub Pages without any build tools or Content Security Policy conflicts.

Architecture Decrees

When constructing this dashboard, you MUST follow these strict architectural rules to prevent the file from becoming a tangled, unmaintainable monolith:

  1. Monumental Landmarks (Banner Comments): Divide the HTML file into distinct provinces using highly visible comments. This ensures you (the agent) can navigate and edit surgical blocks safely.

    \x3C!-- ========================================== -->
    \x3C!-- 🏛️ PROVINCE: DASHBOARD LAYOUT & UI         -->
    \x3C!-- ========================================== -->
    \x3Cmain> ... \x3C/main>
    
    \x3C!-- ========================================== -->
    \x3C!-- 🧠 PROVINCE: ALPINE.JS STATE & LOGIC       -->
    \x3C!-- ========================================== -->
    \x3Cscript> ... \x3C/script>
    
    \x3C!-- ========================================== -->
    \x3C!-- 🎨 PROVINCE: D3.js VISUALIZATIONS          -->
    \x3C!-- ========================================== -->
    \x3Cscript> ... \x3C/script>
    
  2. The Separation of Domains: Do not write massive inline Alpine logic (e.g., x-data="{ huge object }"). You must use Alpine.data() within the "Alpine.js State & Logic" province to extract the logic into a clean script block. The HTML should only contain the bindings (x-data="dashboard()", x-text, x-show, etc.).

  3. The Static Triad (Escape Hatch): While a single index.html is preferred, if the dashboard grows too vast, you may split it into three files:

    • index.html (Structure & Semantic HTML)
    • app.js (Alpine Alpine.data() and D3 functions)
    • styles.css (Custom overriding aesthetics) No build step is allowed.

Usage

When a user requests to "set up the web app" or "create a dashboard for the Fulcra skills" (or if they are transitioning from the fulcra-onboarding skill), you should execute the setup script provided by this skill.

# Run the setup script to scaffold the Alpine dashboard
./scripts/setup-dashboard.sh \x3Ctarget-directory>

If no \x3Ctarget-directory> is provided, it defaults to creating a fulcra-dashboard folder in the current working directory.

Workflow

Contextual Awareness (Standalone vs. Post-Onboarding): Do not assume this skill is always run immediately after fulcra-onboarding.

  • If transitioning from Onboarding: The user has likely just seen a static HTML preview of their data. Acknowledge this transition and frame this step as building out and upgrading their existing preview into a live, interactive web app. Leverage the context of the annotations they just built, skip redundant discovery, and carry over their preferred theme.
  • If running Standalone: You must first discover what data the user wants to visualize (run uv tool run fulcra-api catalog to check for user annotations and discuss options before proceeding).
  1. Scaffold: The script copies a clean, un-styled Alpine.js dashboard template into the target directory.
  2. Data Ingestion (Requires Consent): Automatically fetch the user's relevant Fulcra data using the fulcra-api CLI.
    • Important: Always ask the user for permission to query the Fulcra API to build the dashboard before fetching records.
    • Run uv tool run fulcra-api catalog to discover available data. CRITICAL: Prioritize user-configured data over passive metrics (like step count). Explicitly filter for items where categories includes "user_configured", or where the id follows the format *Annotation/\x3CUUID> (e.g., ScaleAnnotation/1234-abcd...).
    • Fetch records for the user's custom annotations (e.g., uv tool run fulcra-api get-records "ScaleAnnotation/\x3CUUID>" "30 days" > timeline_name.jsonl).
    • Records Processed: You MUST fetch the RecordsProcessed metric for the timeline (e.g., uv tool run fulcra-api get-records "RecordsProcessed" "30 days" > records_processed.jsonl) to populate the Data Velocity chart. Do not skip this step or set it to null.
    • Keep the files as raw JSONL in the dashboard directory.
    • Agent Memory Dashboard Status: Automatically check if the user has agent backup files stored in Fulcra. Run uv tool run fulcra-api file list "agent/\x3Clowercase-agent-name>/memory/" to check for memory.gz or top_of_mind.md. The dashboard template natively includes an "Agent Vault" module. You must update the href paths in this module to use your actual agent name (e.g., replacing agent/treecle/memory/memory.gz with agent/your_name_here/memory/memory.gz), and you can optionally update the modified dates if you fetched them.
    • The data.json config file acts as a manifest. It should map your layout to the .jsonl files you downloaded, and you must include the annotation description in the timeline block, like this: {"summary": "A concise overview of the current data and recent activity...", "timelines": [{"id": "...", "title": "...", "description": "The description from the catalog...", "icon": "...", "color": "...", "data": "timeline_name.jsonl"}], "recordsProcessed": "records_processed.jsonl"}. Crucial: For the "summary" field, you MUST read the downloaded .jsonl data and write a short, personalized text summary of the actual real-world activity shown in the data (e.g., "You've been consistently tracking your mood, with a slight dip this week"). Do not write meta-descriptions like "This is a retro dashboard."
    • You do not need to write an aggregation script; the dashboard will automatically parse .jsonl files and aggregate records for the charts natively on init().
  3. Theming & Visualization:
    • Theme Discovery: Ask the user what "theme" or "vibe" they want (e.g., minimalist dark mode, cyberpunk, a retro diner, a space station, a cozy bakery).
    • Embrace the Theme (HTML & Copy): Do not leave default boilerplate intact! Modify index.html directly to rewrite the main title, subtitle, and all component headers to fit the theme (e.g., change "Fulcra Dashboard" to "The Cybernetic Core", "Records Processed" to "Baguettes Baked", and "Relay" to something thematically appropriate for the chat interface like "The Oracle's Ear" or "Comms Link"). Replace all default emojis (like 📊 or 🛰️) with theme-appropriate icons. You may alter the HTML structure to add new thematic containers or elements.
    • Preserve the Bento Layout: The base HTML and CSS files use a .dashboard-bento-grid layout that features a sticky left column and a flexible right column for a highly engaging presentation. Do not flatten this into a single plain vertical layout. When you edit the CSS, maintain the structural grid properties (grid-template-columns, sticky positioning) to ensure the layout remains interesting on desktop viewports.
    • Original Art (Required): Generate one piece of highly creative thematic art using the image_generate tool. Save it to the folder and reference it via an \x3Cimg> tag in the dashboard header. Style Directive: The image must be extremely high-quality and perfectly cohesive with the user's chosen theme. Whether the vibe calls for retro 2D pixel art, a minimalist vector illustration, or a sleek 3D render, ensure the specific art style, color palette, and lighting strictly match the CSS variables and overall aesthetic you are building.
    • Hero Text Legibility & Scale: When styling the hero header, ensure the text overlaid on the image is highly legible. Adapt the technique to fit the theme (e.g., use a frosted glass backdrop-filter: blur() block for tech/modern themes, an ambient radial-gradient vignette for dark/moody themes). Additionally, the hero must not dominate the viewport. Keep it compact (e.g., min-height: 250px) so the core telemetry data is visible "above the fold."
    • Dynamic Animated Elements: Inject at least one CSS animation (using standard CSS @keyframes in theme.css) that fits the theme (e.g., a floating asteroid, a blinking cursor, a buzzing fly) and attach it to the .animation-layer or other suitable elements.
  4. Git Repository Initialization:
    • Once scaffolded, you MUST prompt the user to initialize a git repository.
    • Check if git is installed. Suggest 1 or 2 fun repository names based on their theme.
    • Initialize locally (git init && git add . && git commit -m "Initial commit"). Do not push to GitHub yet.
  5. Run & Verify:
    • Start the local Python server to preview the dashboard:
      cd \x3Ctarget-directory>
      python3 server.py 8081 > dev.log 2>&1 &
      
    • Provide the user with the localhost link.
  6. Chat Envoy & GitHub Deployment:
    • The dashboard includes a chat envoy component (default title "Relay"). Remind the user that this envoy only functions locally via the Python server.
    • If the user pushes the repository to GitHub Pages, the CSS is designed to automatically hide the envoy to prevent user confusion, as the chat interface cannot route messages to the local Python bridge from a remote host.
    • GitHub Pages Offer: Explicitly ask if they would like to publish this dashboard live to the internet using GitHub Pages so they can view it anywhere.
    • If they agree, ensure the gh (GitHub CLI) is installed and authenticated (gh auth status). If it is not, provide instructions or execute the installation (brew install gh or equivalent) and wait for the user to complete gh auth login.
    • Once authenticated, create the repository and push the code (gh repo create \x3Cname> --public --source=. --remote=origin --push).
    • Crucially, after pushing, execute the command to enable GitHub pages for the repository from the main branch: gh api repos/{owner}/{repo}/pages -X POST -f "source[branch]=main" -f "source[path]=/".
    • Provide the user with the final public https://\x3Cusername>.github.io/\x3Crepo>/ URL.
  7. Handoff & Next Steps:
    • Once the user has seen the live local dashboard, do not just stop. Outline possible next directions to keep the momentum going:
      • Enrich the Data: Pull in passive data from the Fulcra Context app (e.g., location, heart rate) or ingest data from other external sources to correlate with their custom annotations.
      • Connect the Chat Envoy: Work on wiring up the Chat Envoy so they can chat with you directly from within the dashboard itself.
      • Advanced Visualizations: Build more complex D3.js charts or specific data rollups.
      • Python Data Analysis: Set up scripts on the Python backend (server.py) to analyze their data before sending it to the frontend.

Advanced Modifications

Connecting the Chat Envoy: If the user asks you to "connect the chat envoy" (as prompted by the default placeholder error message in the dashboard), you must edit server.py to route messages back to your main OpenClaw session.

  1. Modify server.py to use a persistent chat.json file rather than an in-memory chat_history list.
  2. In the do_POST handler for /api/chat, instead of appending a simulated reply, use Python's subprocess module to trigger an OpenClaw background command that targets the main session:
    import subprocess
    # ... inside do_POST after saving the user's message to chat.json ...
    prompt = f'A new user message was posted in the Fulcra dashboard chat: "{user_msg}". Read the local chat.json file in this directory to get full context. Respond to the user\'s latest message, and append your response to the chat.json file as role \\\'assistant\\\' with a timestamp. Do not modify the history. Reply with a short summary when done.'
    
    # We use subprocess.Popen without shell=True to avoid bash quoting nightmares
    subprocess.Popen(["openclaw", "agent", "--to", "main", "--message", prompt])
    
  3. After the python server is restarted, the chat envoy will successfully pipe messages from the web dashboard directly into your OpenClaw session!
安全使用建议
Install only if you are comfortable with a dashboard that can query Fulcra data, run a local Python server, expose download endpoints, and optionally publish generated files publicly. Before using it, bind the server to 127.0.0.1, remove or gate the Agent Vault and /api/download features, avoid connecting the chat envoy to the main agent session unless isolated, and carefully review/redact all data before any GitHub Pages publish.
能力标签
crypto
能力评估
Purpose & Capability
The stated purpose is visualizing Fulcra data, but the artifacts also include a Python server, unauthenticated Fulcra file download endpoint, agent memory links, chat relay code, and optional GitHub Pages publication.
Instruction Scope
The skill asks consent before fetching normal Fulcra records, but other sensitive flows are less clearly scoped, including automatic agent memory checks, silent browser error posts to /api/chat, and an advanced OpenClaw main-session chat bridge.
Install Mechanism
The setup script mainly scaffolds files and does not install persistence by default, but it prints agent directives to query Fulcra, start a server, initialize Git, and optionally publish to GitHub Pages.
Credentials
The local server binds on all interfaces while comments describe local-only behavior, and the dashboard loads external CDN/font resources despite being framed as lightweight and locally deployable.
Persistence & Privilege
There is no startup persistence or privilege escalation, but the workflow can create a public repository, expose user-derived dashboard files, fetch auth-scoped Fulcra files, and optionally route web chat into a privileged agent session.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fulcra-dashboard
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fulcra-dashboard 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.4
fulcra-dashboard v0.0.4 - Updated data ingestion instructions: Agent Vault module now requires updating `href` paths with the actual agent name and optionally the modified dates. - The `summary` field in `data.json` must now be a personalized summary of recent activity, generated by reading the downloaded `.jsonl` timeline data, not a generic description. - Clarified and improved theming guidelines: references to thematic relabeling and element customization are more explicit. - File cleanup: removed legacy `skill-card.md`. - Documentation improvements for workflow clarity and dashboard customization.
v0.0.3
- Updated dashboard template and theme files for improved structure and styling. - Removed redundant or outdated documentation file (skill-card.md). - No build tools required; maintains fully-static, deployable architecture principles. - Keeps all usage instructions and workflow guidance in SKILL.md up-to-date.
v0.0.2
fulcra-dashboard 0.0.2 - Improved security and privacy for agent backup files: Agent Vault module now includes a `local-only` class to hide it on public deployments, and download links are routed through `/api/download` for backend handling. - Updated documentation in SKILL.md to clarify workflow, theming, and Agent Vault requirements. - Internal code and style adjustments in the dashboard server and CSS for better structure and maintainability. - Removed obsolete file `skill-card.md`.
v0.0.1
Initial release of the Fulcra Dashboard skill. - Automates creation of a lightweight, customizable Fulcra data dashboard using Alpine.js and Vanilla CSS in a single-file or split "Static Triad" format. - Enforces clear file architecture with strict code separation and visible HTML comment landmarks for maintainability. - Scaffolds an interactive dashboard via a setup script; requests user permission before fetching Fulcra data and prioritizes annotated, user-configured insights. - Supports creative theming: prompts user for a visual "vibe", integrates custom art, and adapts UI/UX (text, icons, structure) to fit the chosen theme while preserving a bento grid layout. - Native handling of agent memory vaults and inclusion of processed records metrics; all data stored as raw JSONL for direct in-browser aggregation.
元数据
Slug fulcra-dashboard
版本 0.0.4
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

Fulcra Dashboard 是什么?

Builds a highly customizable, single-file HTML dashboard using Alpine.js and modern Vanilla CSS to visualize Fulcra data. Use this skill when the user wants... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 32 次。

如何安装 Fulcra Dashboard?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fulcra-dashboard」即可一键安装,无需额外配置。

Fulcra Dashboard 是免费的吗?

是的,Fulcra Dashboard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Fulcra Dashboard 支持哪些平台?

Fulcra Dashboard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Fulcra Dashboard?

由 Fulcra.ai(@fulcra)开发并维护,当前版本 v0.0.4。

💬 留言讨论