build_offline_system_tracker
A comprehensive guide to building the SystemPulse offline activity tracker with Rust and Tauri.
Install
mkdir -p .claude/skills/build-offline-system-tracker && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15556" && unzip -o skill.zip -d .claude/skills/build-offline-system-tracker && rm skill.zipInstalls to .claude/skills/build-offline-system-tracker
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
A comprehensive guide to building the SystemPulse offline activity tracker with Rust and Tauri.About this skill
You are running inside Google Anti Gravity IDE, in this repository workspace.
GOAL Build a comprehensive, offline-first system activity tracker application ("SystemPulse") that tracks software activity and hardware usage without time limits. The application must identify running processes, track active windows, monitor power/temperature, and store all data locally.
IMPORTANT NOTES
- Offline First: All data must remain on the local machine (SQLite). No persistent internet connection required.
- Privacy: No telemetry. Data stored in
%LOCALAPPDATA%. - Tech Stack: Rust (Daemon), Tauri v2 (Backend), React + TypeScript + TailwindCSS (Frontend).
- Design: "SystemPulse" aesthetic - Dark mode, Slate-950 background, Emerald/Blue accents, Glassmorphism.
CONSTRAINTS
- Daemon: Must run silently in background.
- Data Collection:
sysinfofor process metrics (CPU/RAM).windowscrate for active window tracking (foreground app).nvml-wrapperfor NVIDIA GPU stats (Power/Temp).
- Frontend: Must match the specific design provided (Sidebar layout, Circular gauges, Real-time charts).
- Performance: Poll every second, minimal resource footprint.
WORK PLAN
-
Daemon Implementation (
crates/daemon)- Initialize data collectors (Process, System, Window, GPU).
- Set up SQLite database with optimized schema for time-series data.
- Implement the main event loop (Collect -> Store -> Sleep).
- Ensure graceful shutdown handling.
-
Tauri Integration (
src-tauri)- Create Tauri commands to expose database data to the frontend:
get_current_metrics(Real-time)get_history(Historical charts)get_process_history(Per-app details)
- Register commands in
lib.rs.
- Create Tauri commands to expose database data to the frontend:
-
Frontend Development (
src)- Setup: Install
lucide-react,recharts,tailwindcss. - Styling: Configure Tailwind for the "SystemPulse" dark theme.
- Components:
Sidebar: Navigation logic.OverviewPanel: Dashboard withCircularGaugeandAreaChart.ProcessList: Sortable table withapiintegration.PowerView: Energy monitoring charts.
- Wiring: Replace mock data with real
apicalls to the Rust backend.
- Setup: Install
-
Validation
- Verify
cargo run -p daemonstarts collecting data. - Verify
npm run tauri devshows real-time updates. - Check database size and retention policies.
- Verify
EXECUTION CRITICAL INSTRUCTION: You must perform and validate "each and every" step in the WORK PLAN. Do not skip any item. Do not proceed to the next step until the current one is verified as working.
- Check: Before starting a step, verify the prerequisites.
- Do: Execute the implementation.
- Validate: Verify the result (compile, run, or check output) before moving on.
- Repeat: Do this for every single item in the checklist.
Follow the implementation plan simply and strictly. Do not deviate.