Search chat

From stevehuang0115/crewly · View interactive version

Search chat is an AI agent skill from the GitHub repository stevehuang0115/crewly. Search the chat history you can see (your DMs, the channels and rooms you are in, messages that @-mention you) by keyword, channel and date range. Use it before telling anyone you cannot find an earlier conversation or request.

How to use this skill

Skill file

Search Chat

Your conversation restarts empty, but the chat log is kept. Before you tell

anyone you cannot find an earlier conversation or request, search it.

bash execute.sh --query "video plan"
bash execute.sh --query "video" --channel '#awesome-videos' --from 2026-10-09 --to 2026-10-09

| Flag | Required | Description |

|------|----------|-------------|

| --query / -q | Yes | Keywords; every word must appear (case-insensitive) |

| --channel / -c | No | Only this channel: '#name', name or id |

| --from / --to | No | Date range, YYYY-MM-DD (a bare --to date includes that whole day) or a timestamp |

| --limit / -l | No | Most hits (default 10, max 30) |

Output: `{ "data": { "count": N, "hits": [ { "id", "time", "channelId", "channel",

"sender", "text", "threadId" } ] } }, newest first. text` is trimmed to

300 characters. threadId is the thread root, or null for a top-level message.

are a member of, and messages that @-mention you.

matched as written, without word splitting.

What it does not search

Posts an agent makes with reply --work-item, --new-thread or --ticket are in this history when the Slack channel is a team room or an agent DM. In any other Slack channel they go to Slack only and are not searched; the result carries a note saying so. A missing hit does not mean such a post failed: the reply call itself returns slackChannelId and messageTs as proof it landed. Ask the poster for those, or read the Slack thread, before posting the answer again.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.