Community程式設計與開發github.com

ComposioHQ/Harvest-自動化

自動化 Harvest 的計時、專案管理和發票流程——透過自然語言指令記錄工時、管理專案、客戶與任務。

Harvest-自動化 是什麼?

此技能讓 Claude Code 能直接透過自然語言指令操控 Harvest API,涵蓋時間追蹤、專案管理、客戶與任務操作,以及報表查詢。使用者無需離開終端機即可建立或修改時間條目、新增專案客戶、建立任務類型,並搭配日期與狀態篩選器擷取未開立帳單的工時紀錄。技能提供詳細的工具清單與參數說明,同時提醒常見陷阱,例如任務必須正確指派至專案、帳號類型影響時間格式,以及不同端點的分頁上限差異。整體設計緊密整合 Composio 的 Harvest 工具組,透過 MCP 伺服器進行認證,適合開發者與專案團隊在 CLI 環境中流暢管理工時工作流程。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/harvest-automation

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Harvest 自動化

直接從 Claude Code 自動化您的 Harvest 時間追蹤操作。記錄時間條目、管理專案與客戶、建立任務、提取報表資料——全部在終端機內完成。

工具組文件: composio.dev/toolkits/harvest


設定

  1. 將 Rube MCP 伺服器加入您的 Claude Code 設定檔,URL 設為:https://rube.app/mcp
  2. 出現提示時,透過提供的連線連結驗證您的 Harvest 帳戶
  3. 使用自然語言開始自動化時間追蹤工作流程

核心工作流程

1. 記錄與管理時間條目

建立、列出、更新及擷取時間條目,以便進行準確的帳單與報表。

工具: HARVEST_CREATE_TIME_ENTRY、HARVEST_LIST_TIME_ENTRIES、HARVEST_GET_TIME_ENTRY、HARVEST_UPDATE_TIME_ENTRY

針對專案 12345、任務 67890 記錄今天 3.5 小時的開發工作

HARVEST_CREATE_TIME_ENTRY 的關鍵參數:

  • project_id(必填)——要記錄的專案
  • task_id(必填)——任務必須指派給該專案
  • spent_date(必填)——日期,格式為 YYYY-MM-DD
  • hours——總時數(適用於時數型帳戶)
  • started_time / ended_time——適用於時間戳型帳戶
  • notes——工作內容說明

HARVEST_LIST_TIME_ENTRIES 的關鍵參數:

  • from_date / to——日期範圍篩選(YYYY-MM-DD)
  • project_id、client_id、task_id、user_id——實體篩選
  • is_billed / is_running——狀態篩選
  • page / per_page(最大 2000)——分頁

2. 管理專案

建立新專案並列出既有專案,包含客戶與計費設定。

工具: HARVEST_CREATE_PROJECT、HARVEST_LIST_PROJECTS、HARVEST_GET_PROJECT

為客戶 456 建立一個名為「網站改版」的可計費專案,採用 Tasks 計費與專案預算

HARVEST_CREATE_PROJECT 的關鍵參數:

  • name、client_id、is_billable、bill_by、budget_by(皆為必填)
  • bill_by 選項:"Project"、"Tasks"、"People"、"none"
  • budget_by 選項:"project"、"project_cost"、"task"、"task_fees"、"person"、"none"
  • 可選:budget、hourly_rate、starts_on、ends_on、is_fixed_fee

3. 管理客戶

建立並列出專案所歸屬的客戶。

工具: HARVEST_CREATE_CLIENT、HARVEST_LIST_CLIENTS

列出我們 Harvest 帳戶中所有活躍的客戶
  • HARVEST_CREATE_CLIENT 需要 name;可接受 address、currency、is_active
  • HARVEST_LIST_CLIENTS 支援 is_active 篩選與分頁(per_page 最大 2000)

4. 管理任務

建立並列出可重複使用的任務類型,用於時間追蹤。

工具: HARVEST_CREATE_TASK、HARVEST_LIST_TASKS

建立一個名為「程式碼審查」的可計費任務,預設費率為每小時 $150
  • HARVEST_CREATE_TASK 需要 name;可接受 billable_by_default、default_hourly_rate、is_active、is_default
  • HARVEST_LIST_TASKS 支援 is_active、is_default 篩選與分頁(per_page 最大 100)
  • 所有任務的名稱必須唯一(包含活躍與已封存任務)

5. 時間條目報表

透過日期範圍與篩選器提取時間條目,用於帳單摘要與利用率報告。

工具: HARVEST_LIST_TIME_ENTRIES、HARVEST_GET_TIME_ENTRY

顯示專案 789 從 2026 年 1 月起所有未開立帳單的時間條目
  • 使用 from_date 和 to 設定日期範圍
  • 使用 is_billed: false 篩選未開立帳單的條目
  • 結合 project_id、user_id、client_id 進行跨維度報表
  • 使用 page 和 per_page 分頁以收集完整資料集

6. 更新與修正時間條目

修改現有時間條目以修正時數、重新指派專案或更新備註。

工具: HARVEST_UPDATE_TIME_ENTRY

將時間條目 123456 的時數改為 4.0,並新增備註「已完成 API 整合」
  • 需要 time_entry_id
  • 支援部分更新——僅需包含要變更的欄位
  • 可更新 hours、notes、project_id、task_id、spent_date、started_time、ended_time

已知陷阱

  • 任務指派很重要: 建立時間條目時,task_id 必須對應實際指派給指定 project_id 的任務。請使用專案任務指派端點來確認,而非僅依賴 HARVEST_LIST_TASKS(後者回傳的是全域任務)。
  • 時數型 vs. 時間戳型追蹤: Harvest 帳戶可設定為時數型或時間戳型追蹤。在時間戳型帳戶中 hours 會被忽略;在時數型帳戶中 started_time/ended_time 會被忽略。
  • 分頁上限不同: HARVEST_LIST_TIME_ENTRIES 和 HARVEST_LIST_CLIENTS 每頁最多支援 2000 筆,但 HARVEST_LIST_PROJECTS 和 HARVEST_LIST_TASKS 每頁上限為 100 筆。
  • 日期格式一致性: 所有日期參數必須使用 YYYY-MM-DD 格式。updated_since 篩選器則使用含時區的 ISO 8601 格式。
  • 專案必填欄位: HARVEST_CREATE_PROJECT 需要五個欄位:name、client_id、is_billable、bill_by 和 budget_by。缺少任一項將導致驗證錯誤。

快速參考

工具代號說明
HARVEST_LIST_TIME_ENTRIES依日期、專案、客戶、使用者篩選列出時間條目
HARVEST_CREATE_TIME_ENTRY記錄新的時間條目(需要 project_id、task_id、spent_date)
HARVEST_GET_TIME_ENTRY依 ID 擷取特定時間條目
HARVEST_UPDATE_TIME_ENTRY更新現有時間條目(需要 time_entry_id)
HARVEST_LIST_PROJECTS列出專案,可搭配客戶篩選
HARVEST_CREATE_PROJECT建立新專案並設定計費配置
HARVEST_GET_PROJECT依 ID 擷取特定專案
HARVEST_LIST_CLIENTS列出客戶,可依活躍/非活躍篩選
HARVEST_CREATE_CLIENT建立新客戶(需要 name)
HARVEST_LIST_TASKS列出可重複使用的任務類型
HARVEST_CREATE_TASK建立新任務類型(需要 name)

Powered by Composio

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相關技能