Timesheet Assistant

    by Giddy

    1

    A local Python agent for Microsoft 365 activity collection, AI hour proposals, and Excel timesheet automation.

    $8

    /mo

    Subscription · cancel anytime

    Secure checkout via Stripe

    • Always the latest version
    • Delivered live to your agent via MCP
    • Cancel anytime, access ends at period end
    Security scanned

    Works with the AI Agents you already use

    Timesheet Assistant

    Example session with this skill installed

    Add a new validation rule to the entry model to ensure no single project entry exceeds 12 hours, then run the relevant tests.

    • Read your context and instructions
    • Compiled the timesheet assistant

    I have updated the Entry model validation logic and verified the changes against the test suite.

    Validation Update and Test Results

    The Entry model in src/database/models.py was modified to include a max_hours_per_entry constraint. I also updated tests/test_persistence.py to include a boundary test for this new invariant.

    
    # src/database/models.py updates
    from pydantic import validator
    
    class Entry(BaseModel):
        project_code: str
        hours: float
        description: str
    
        @validator('hours')
        def limit_single_entry_duration(cls, v):
            if v > 12.0:
                raise ValueError('Single entry cannot exceed 12 hours')
            if v <= 0:
                raise ValueError('Hours must be greater than zero')
            return v
    

    Test Execution Log:

    Test ModuleStatusDetails
    tests/test_persistence.pyPASSEDVerified 12h limit and SQLite storage
    tests/test_graph.pyPASSEDVerified workflow rejects invalid proposals
    tests/test_workiq_collector.pyPASSEDBaseline ingestion remains stable

    Next steps

    1. Update config/user_settings.py if this limit should be user-configurable.
    2. Run .\windows\build.ps1 to verify the change doesn't break the frozen Windows bundle.
    3. Verify the FastAPI dashboard displays the new validation error message correctly during manual review.
    $8/mo

    Subscription · always the latest version

    • Secure checkout via Stripe
    • Cancel anytime
    • Delivered live via MCP

    About this skill

    Stop manually tallying hours from emails and calendars. This skill provides the development context to maintain and extend a local Python application that automates Microsoft 365 activity collection and Excel timesheet generation.

    What it does

    • Automates activity ingestion via Work IQ and Microsoft 365 APIs to track email, calendar, and chat events.
    • Generates project proposals using Azure OpenAI to map raw activity data to specific project codes and hour increments.
    • Enforces human approval by requiring explicit user verification in a FastAPI dashboard before any data is saved or exported.
    • Exports to Excel by writing approved entries into standard templates using openpyxl without overwriting existing formulas.
    • Secures local data using Windows DPAPI for profile-specific settings and keeping all dashboard traffic on the local loopback.

    How it works

    1. Collector phase uses MSAL authentication and MCP tools to gather mailbox and calendar evidence for a specific time window.
    2. Analysis phase processes untrusted activity text through a LangGraph workflow to propose structured Entry models.
    3. Review phase serves a local FastAPI dashboard on port 8765 for the user to edit, reject, or approve proposals.
    4. Persistence phase saves approved records to a local SQLAlchemy/SQLite database and triggers the Excel export worker.

    Frameworks & tools

    Built with Python 3.11, FastAPI, LangGraph, SQLAlchemy, MSAL, and Azure OpenAI. Packaging is handled via PyInstaller and MSIX for Windows desktop environments.

    Why this beats prompting it yourself

    Prompting alone lacks the state management required for multi-step approval workflows and the deterministic validation needed for project registries. This skill ensures that activity data is treated as untrusted evidence rather than instructions, preventing prompt injection from mailbox content.

    Use cases

    • Build custom MCP integrations for new Microsoft 365 data sources.
    • Modify the LangGraph workflow to implement stricter project code validation.
    • Extend the Excel export logic to support complex enterprise timesheet templates.
    • Debug local MSAL authentication flows and Windows-specific profile locking.

    Known limitations

    Requires Python 3.11 or later and a Windows environment for DPAPI and MSIX features. Limited to single-user local deployment; not designed for multi-tenant cloud hosting.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    Software
    Ic MCPLangchain Adapters MCPPython

    Permissions

    Read Files
    Write Files
    Network Access
    Listed8 days ago

    What's inside

    Creator

    Giddy

    Giddy

    Frequently Asked Questions

    The assistant automates the collection of activity data from Microsoft 365, uses AI to categorize those events into project codes, and populates your Excel timesheets, saving hours of manual data entry.

    This skill requires a Windows environment (for DPAPI security) and Python 3.11+. It is designed for local deployment rather than cloud hosting to ensure your sensitive activity data stays on your machine.

    Security is a priority; the tool uses Windows DPAPI for profile-specific encryption and hosts the review dashboard on a local loopback (port 8765), ensuring your data never leaves your local network during the review phase.

    You receive the complete development context including the FastAPI dashboard, LangGraph workflows, and MSIX packaging logic, allowing you to customize project validation rules or Excel templates.

    Yes, the collector phase is built using Model Context Protocol (MCP) tools, making it highly extensible if you need to integrate additional data sources beyond standard email and calendar events.

    Unlike simple prompts, this skill uses a structured LangGraph workflow and a human-in-the-loop FastAPI dashboard to ensure every AI-generated proposal is verified and validated before it hits your official records.

    New in Workflow Automation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.