- Home
- Skills
- Workflow Automation
- Timesheet Assistant
Timesheet Assistant
by Giddy
A local Python agent for Microsoft 365 activity collection, AI hour proposals, and Excel timesheet automation.
$8
/moSubscription · cancel anytime
Secure checkout via Stripe
- Always the latest version
- Delivered live to your agent via MCP
- Cancel anytime, access ends at period end
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 Module | Status | Details |
|---|---|---|
tests/test_persistence.py | PASSED | Verified 12h limit and SQLite storage |
tests/test_graph.py | PASSED | Verified workflow rejects invalid proposals |
tests/test_workiq_collector.py | PASSED | Baseline ingestion remains stable |
Next steps
- Update
config/user_settings.pyif this limit should be user-configurable. - Run
.\windows\build.ps1to verify the change doesn't break the frozen Windows bundle. - Verify the FastAPI dashboard displays the new validation error message correctly during manual review.
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
openpyxlwithout 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
- Collector phase uses MSAL authentication and MCP tools to gather mailbox and calendar evidence for a specific time window.
- Analysis phase processes untrusted activity text through a LangGraph workflow to propose structured
Entrymodels. - Review phase serves a local FastAPI dashboard on port 8765 for the user to edit, reject, or approve proposals.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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 MCP
Python
Permissions
What's inside
Creator
Giddy
Frequently Asked Questions
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.