ScriptsApr 16, 2026·1 min read

harvest-feishu.sh

harvest

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
Script
Install
Stage only
Trust
Trust: Established
Entrypoint
harvest-feishu.sh
Safe staging command
npx -y tokrepo@latest install c7a5ea26-ffcd-486a-8a0b-724951105973 --target codex

Stages files first; activation requires review of the staged README and plan.

#!/bin/bash

素材收割 - 每天21:00自动拉取飞书素材群聊消息

调用 claude CLI 执行 /week inbox feishu

export PATH="/opt/homebrew/bin:$PATH"

LOG_DIR="$HOME/Desktop/AI/logs" mkdir -p "$LOG_DIR" LOG_FILE="$LOG_DIR/harvest-feishu-$(date +%Y%m%d).log"

echo "=== $(date) ===" >> "$LOG_FILE"

claude --print -p "执行 /week inbox feishu。拉取今天的飞书素材群聊新消息,按分流规则处理(素材→Ob收集箱/feishu/,待办→滴答清单Inbox,互相关联)。处理完成后,读current_week.md获取本周主任务,然后通过webhook向飞书群聊推送一张收割报告卡片,包含:处理了多少条、素材/待办各几条、亮点素材、和周任务的关联反馈。如果今天没有新消息则不推送。" >> "$LOG_FILE" 2>&1

echo "=== done ===" >> "$LOG_FILE"

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets