ingest-threads
Full lifecycle for a single Threads task: fetch → summarise → write report → append suggestion → mark done.
Prerequisites:
agent-browserinstalled. For Google Tasks API calls, refer to../gws-tasks/SKILL.md.
Parameters
| Parameter | Required | Description |
|---|---|---|
THREADS_URL |
Yes | The Threads post URL to process. |
TASK_ID |
Yes | Google Tasks task ID to mark as completed. |
DELEGATE_LIST_ID |
Yes | Google Tasks tasklist ID for the Delegate list. |
SuggestionOutputPath |
Optional | When provided by daily-workflow, pass through to suggestion_log.md to write to a per-subagent file instead of the default location. |
Procedure
Step 1 — Fetch the Threads post content
Follow the full procedure defined in fetch-threads-post:
📄 Read and follow
../fetch-threads-post/SKILL.md
Use a unique session name per task to avoid state collisions:
agent-browser --session ingest-threads-<task-id> open "<THREADS_URL>"
# ... follow fetch-threads-post procedure to expand and extract content ...
agent-browser --session ingest-threads-<task-id> close
Anti-Truncation Standard:
- Click "Read more" if visible.
- Run
agent-browser --session ... scroll down 1000to trigger lazy-loading. - Use
agent-browser --session ... get text bodyas the primary extraction method. - A complete post ends with a footer, signature, or engagement metrics. Truncated = retry.
- The
📄 原始內容section MUST contain verbatim extraction — never summarize.
Step 2 — Verify and generate a summary in the configured output language
Verification: Compare extracted text length against the visible post. If cut off, repeat extraction.
📄 Read
../content-summary/references/summarise.md
Step 3 — Write the report
📄 Read
../content-summary/references/filename_rules.md
📄 Read
../content-summary/references/output_template.md
Confirm the file is written before proceeding.
Step 4 — Append suggestion to pending backlog
📄 Read
../content-summary/references/ai_analysis.md
📄 Follow
../content-summary/references/suggestion_log.md
{SourceType} = Threads
If SuggestionOutputPath was provided by the caller, pass it through to suggestion_log.md.
Step 5 — Mark the task as completed
gws tasks tasks patch \
--params '{"tasklist": "<DELEGATE_LIST_ID>", "task": "<TASK_ID>"}' \
--json '{"status": "completed"}'
Log: "✅ Task '<title>' marked as completed. Report saved to reports/Threads_YYYY_MM_DD/<filename>.md"
Troubleshooting
Threads URL behind login wall: Follow the authenticated access section in fetch-threads-post/SKILL.md.
gws tasks tasks patch fails: Double-check tasklist and task are IDs (not titles).