More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    ZCode Widget Builder — Floating macOS Dashboard

    1

    Build a floating macOS menu-bar dashboard for ZCode: live token usage stats, skill/plugin pickers, and a visual model-provider editor.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    ZCode Widget Builder — Floating macOS Dashboard

    ZCode Widget Builder — Floating macOS Dashboard

    Example session with this skill installed

    Build a floating macOS dashboard for ZCode that shows my token usage from the last 7 days and lets me browse my installed skills.

    • Read your context and instructions
    • Compiled the zcode widget builder

    I have scaffolded a native macOS accessory app using SwiftUI and GRDB to monitor your ZCode environment. The project includes a KeyablePanel for text input support and a TokenUsageRepository for the 7-day aggregate queries.

    ZCode Widget Scaffold

    // Sources/ZCodeWidget/Data/TokenUsageRepository.swift
    import Foundation
    import GRDB
    
    struct DailyUsage: Decodable, FetchableRecord {
        let day: String
        let inputTokens: Int
        let outputTokens: Int
    }
    
    class TokenUsageRepository {
        func getLastSevenDays() throws -> [DailyUsage] {
            try Database.shared.queue.read { db in
                let sql = """
                SELECT 
                    date(started_at / 1000, 'unixepoch') as day,
                    SUM(input_tokens) as inputTokens,
                    SUM(output_tokens) as outputTokens
                FROM turn_usage
                WHERE started_at >= ?
                GROUP BY day
                ORDER BY day DESC
                LIMIT 7
                """
                let oneWeekAgo = Int64(Date().addingTimeInterval(-7 * 24 * 60 * 60).timeIntervalSince1970 * 1000)
                return try DailyUsage.fetchAll(db, sql: sql, arguments: [oneWeekAgo])
            }
        }
    }
    

    Next steps

    1. Run xcodegen generate in the root directory to create the Xcode project.
    2. Execute ./install.sh to build and move the app to your /Applications folder.
    3. Use the menu bar icon to toggle the panel and verify database permissions.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    Monitoring ZCode token usage and managing provider configurations requires digging through CLI databases or JSON files. Developers lack a native, glanceable interface for real-time stats and visual model management.

    What it does

    • Builds a native SwiftUI + AppKit floating panel that lives in the macOS menu bar.
    • Connects to the local ZCode SQLite database via GRDB for read-only usage tracking.
    • Implements an FSEvents watcher for live token updates from JSONL logs.
    • Provides a surgical configuration editor for config.json that preserves unknown metadata keys.
    • Generates an automated XcodeGen manifest and installation scripts for a clean build pipeline.

    Frameworks & tools

    SwiftUI, AppKit (NSPanel), GRDB.swift, XcodeGen, SQLite, and FSEvents.

    Why this beats prompting it yourself

    Standard LLMs often fail at specific macOS windowing nuances, such as making borderless panels keyable for text input or managing the LSUIElement lifecycle. This skill includes pre-tested boilerplate for ZCode's specific database schema and timestamp conversions that prevent common data-type mismatches.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scanned

    Verified clean 1 month ago

    • Passed all security checks, Safe to install

    Listed1 month ago

    What's inside

    Frequently Asked Questions