slack_report
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSlack Report Share
Slack报告分享
Overview
概述
Use this skill to send markdown reports to Slack through the Fastfold Cloud backend endpoint:
POST /v1/slack/messages/agent-cli-report
The endpoint posts to the configured Slack channel and stores the same markdown as a library markdown item.
agent_cli_report使用此skill通过Fastfold Cloud后端端点将markdown报告发送至Slack:
POST /v1/slack/messages/agent-cli-report
该端点会将内容发布到已配置的 Slack频道,并将相同的markdown存储为库中的markdown项。
agent_cli_reportAuthentication
认证方式
- Resolve key in this order:
- from environment
FASTFOLD_API_KEY - FastFold CLI config (
~/.fastfold-cli/config.json)api.fastfold_cloud_key
- Do not ask users to paste secrets into chat.
- If key is still missing:
- Default guidance (generic agents): ask the user to set in environment or
FASTFOLD_API_KEY..env - Only if user is explicitly using FastFold CLI, you may suggest:
fastfold setupfastfold config set api.fastfold_cloud_key <key>
- Default guidance (generic agents): ask the user to set
- 按以下顺序解析密钥:
- 从环境变量中获取
FASTFOLD_API_KEY - 从FastFold CLI配置文件中获取
~/.fastfold-cli/config.jsonapi.fastfold_cloud_key
- 从环境变量中获取
- 不要要求用户在聊天中粘贴密钥。
- 如果仍然缺少密钥:
- 默认指引(通用Agent):请用户在环境变量或文件中设置
.env。FASTFOLD_API_KEY - 仅当用户明确使用FastFold CLI时,可建议:
fastfold setupfastfold config set api.fastfold_cloud_key <key>
- 默认指引(通用Agent):请用户在环境变量或
When to Use
适用场景
- User asks to share/export a session report to Slack.
- User asks to send markdown summary to the team's report channel.
- User asks to save a report in the library and Slack in one step.
- 用户要求将会话报告分享/导出到Slack。
- 用户要求将markdown摘要发送至团队报告频道。
- 用户要求一步完成报告保存到库和Slack的操作。
Agent Workflow
Agent工作流程
- Export or prepare markdown report content.
- Call the helper script:
python scripts/send_agent_cli_report.py --markdown-file <path>- Do not replace this with ad-hoc Python code.
requests
- If response has and
ok: false, tell user:needs_slack_setup: true- Configure Slack at https://cloud.fastfold.ai/integrations/slack
- Set a channel for .
agent_cli_report
- If response includes , include this open link in the reply:
library_item_idhttps://cloud.fastfold.ai/code/<library_item_id>?from=library
- 导出或准备markdown报告内容。
- 调用辅助脚本:
python scripts/send_agent_cli_report.py --markdown-file <path>- 请勿用临时编写的Python 代码替代此脚本。
requests
- 如果响应返回且
ok: false,告知用户:needs_slack_setup: true- 在https://cloud.fastfold.ai/integrations/slack配置Slack
- 为设置一个频道。
agent_cli_report
- 如果响应包含,在回复中包含以下可打开链接:
library_item_idhttps://cloud.fastfold.ai/code/<library_item_id>?from=library
Friendly Failure Message
友好失败提示
If Slack is not configured, return a user-friendly instruction and include:
如果未配置Slack,返回用户友好的指引并包含:
Resources
资源
- API details: references/api.md
- API详情:references/api.md