Community编程与开发github.com

ComposioHQ/Harvest-Automation

自动化 Harvest 时间追踪、项目管理和发票工作流程——通过自然语言命令记录工时、管理项目、客户和任务。

Harvest-Automation 是什么?

Harvest Automation 技能允许用户通过自然语言命令直接在 Claude Code 中自动化 Harvest 的时间追踪操作。它集成了一套完整的工具,用于创建和管理时间记录、项目、客户和任务,而无需离开终端。该技能支持基于持续时间或时间戳的账户,并提供灵活的筛选与分页功能,适合日常的计费与报告需求。通过 Rube MCP 服务器进行身份验证后,用户可以执行诸如“记录今天 3.5 小时的开发工作”或“显示 2026 年 1 月所有未计费的时间记录”等操作。该技能主要面向使用 Harvest 进行时间追踪和项目管理的开发者或项目经理,帮助他们提高效率、减少手动操作错误。

兼容平台✓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 Automation

直接从 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

为今天记录 3.5 小时开发工作,项目 12345,任务 67890

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,按任务计费并设置项目预算

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)

由 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.

相关技能