返回 Skill 列表
extension
分类: 数据与分析需要 API Key

MILKEE Swiss Accounting

{"answer":"为瑞士企业提供完整的 MILKEE 会计集成。管理项目、客户、时间追踪、任务和产品。适用于:(1) 使用计时器追踪计费时间,(2) 创建/管理项目与客户,(3) 记录带描述的工作条目,(4) 查看每日时间汇总。具备智能模糊项目匹配功能。"}

person作者: xenofex7hubclawhub

MILKEE Skill

Complete integration for MILKEE Swiss accounting software. Manage projects, customers, time tracking, tasks, and products.

Features

  • ⏱️ Time Tracking – Start/stop timers with fuzzy project matching
  • 👥 Customers – Full CRUD operations
  • 📋 Projects – Create, update, manage budgets
  • Tasks – Track project tasks
  • 📦 Products – Manage billable items

Quick Start

Time Tracking (Main Feature)

# Start timer (smart fuzzy match)
python3 scripts/milkee.py start_timer "Website" "Building authentication"

# Stop timer (auto-logs to MILKEE)
python3 scripts/milkee.py stop_timer

# Show today's times
python3 scripts/milkee.py list_times_today

Projects

python3 scripts/milkee.py list_projects
python3 scripts/milkee.py create_project "My Project" --customer-id 123 --budget 5000
python3 scripts/milkee.py update_project 456 --name "Updated" --budget 6000

Customers

python3 scripts/milkee.py list_customers

# Create with all fields
python3 scripts/milkee.py create_customer "Example AG" \
  --street "Musterstrasse 1" \
  --zip "8000" \
  --city "Zürich" \
  --phone "+41 44 123 45 67" \
  --email "info@example.ch" \
  --website "https://example.ch"

# Update specific fields
python3 scripts/milkee.py update_customer 123 --name "New Name" --phone "+41 44 999 88 77"

Tasks & Products

python3 scripts/milkee.py list_tasks
python3 scripts/milkee.py create_task "Implement feature" --project-id 456

python3 scripts/milkee.py list_products
python3 scripts/milkee.py create_product "Consulting Hour" --price 150

Configuration

Set environment variables:

export MILKEE_API_TOKEN="USER_ID|API_KEY"
export MILKEE_COMPANY_ID="YOUR_COMPANY_ID"

Or configure via your gateway config under skills.entries.milkee.env.

Get Your Credentials

  1. Log in to MILKEE → SettingsAPI
  2. Copy your User ID and API Key
  3. Format: USER_ID|API_KEY
  4. Company ID is shown in Settings

Special Features

Fuzzy Project Matching

When you say "Website", the skill:

  1. Fetches all projects from MILKEE
  2. Fuzzy-matches using Levenshtein distance
  3. Auto-selects the closest match
  4. Starts timer on that project

Timer Persistence

  • Timer state saved to ~/.milkee_timer
  • Survives between sessions
  • Auto-calculates elapsed time on stop

Daily Summary

list_times_today shows:

  • All time entries for today
  • Duration per entry
  • Total hours worked

Technical Details

  • Language: Python 3.8+
  • Dependencies: None (stdlib only)
  • Timer File: ~/.milkee_timer (JSON)
  • API Docs: https://apidocs.milkee.ch/api

Author: xenofex7 | Version: 2.0.0