com um clique
delete-slack-messages
// Delete Slack messages from a channel filtered by bot username and repository names. Use when the user wants to bulk-delete bot messages for specific repos.
// Delete Slack messages from a channel filtered by bot username and repository names. Use when the user wants to bulk-delete bot messages for specific repos.
Auto-detect top maintainers for each repo in an org and set the maintainers custom property via the GitHub API. Use when the user wants to populate or update maintainer metadata.
Validate metadata fields (author, source, category) in opengrep/semgrep YAML rule files. Use when the user wants to lint or check rule quality.
Clean up stale security-action Slack messages based on review signals (reactions, label removal, resolved threads). Use when the user wants to clean old notifications from a Slack channel.
Auto-dismiss Dependabot alerts matching configurable hotwords (e.g. DoS) or a GHSA/CVE dismiss list. Use when the user wants to bulk-dismiss low-priority Dependabot alerts.
Scan org repos for open Dependabot alerts at or above a severity threshold and build notification messages for maintainers. Use when the user wants to check or nudge about Dependabot vulnerabilities.
Fetch and parse a JSON config file from a GitHub repository. Use when the user wants to read a configuration file from a remote repo.
| name | delete-slack-messages |
| description | Delete Slack messages from a channel filtered by bot username and repository names. Use when the user wants to bulk-delete bot messages for specific repos. |
| argument-hint | [channel] [username] [repos] |
| allowed-tools | Bash(node *) |
Delete Slack messages from a channel that match a specific bot username and repository filter.
Run from the project root:
# Delete messages from a specific bot for specific repos
node run.js ./src/deleteSlackMessages.js --token=xoxb-... --channel="#secops-hotspots" --username=github-actions --repos="org/repo1,org/repo2"
# Dry run
node run.js ./src/deleteSlackMessages.js --token=xoxb-... --channel="#secops-hotspots" --username=github-actions --repos="org/repo1" --debug=true
# Custom lookback window
node run.js ./src/deleteSlackMessages.js --token=xoxb-... --channel="#secops-hotspots" --username=github-actions --repos="org/repo1" --lookbackDays=14
| Parameter | Required | Default | Description |
|---|---|---|---|
--token | Yes | $SLACK_TOKEN | Slack bot token |
--channel | Yes | - | Slack channel name |
--username | Yes | - | Bot username to filter messages by |
--repos | No | - | Comma-separated repo full names (e.g. org/repo) |
--debug | No | false | Log what would be deleted without deleting |
--lookbackDays | No | 8 | Number of days to look back |
Returns a number -- count of messages deleted.
.env file with SLACK_TOKENchat:write, channels:read, channels:history scopesrun.js entry point automatically loads .env credentials--debug=true first to preview what would be deleted