⚒️ Review n8n workflows from Slack with Claude Opus and GitHub skills
⚡ 270 views · ⚒️ Engineering
💡 Pro Tip — If you need GitHub data beyond what the REST API gives you, ScraperNode has a repository scraper that extracts metadata at scale without token rate limits.
Description
Quick overview
A Slack bot that reviews any n8n workflow on demand. Mention it or DM it a workflow URL and it replies in-thread with a graded review, plain-English overview, and findings tiered as Must Fix, Should Fix, and Nice to Have.
How it works
- Triggers when the bot is @mentioned in Slack or receives a direct message.
- Adds an :eyes: reaction, extracts a
/workflow/<id>from the message text, and validates that a workflow ID is present. - Uses the n8n API to fetch the top-level workflow JSON and pulls the workflow review checklist and skills file index from the public n8n-io/skills GitHub repository.
- Detects any Execute Workflow references in the workflow, fetches those direct subworkflow JSONs via the n8n API, and aggregates them into a single payload.
- Sends the workflow JSON, subworkflows, checklist, and available skill file paths to an OpenRouter-hosted model that can fetch additional skill markdown files as needed.
- Removes the :eyes: reaction and posts the graded review back to the originating Slack thread as a Block Kit message, or posts a threaded error message if the URL, API fetch, GitHub fetch, or agent run fails.
Setup
- Connect a Slack API credential with permission to receive app mentions/DMs, add reactions, and post threaded replies, and configure the trigger to watch the intended workspace.
- Add an n8n API credential that can read workflows, and ensure the n8n host in your workflow URLs matches the instance the credential points to.
- Add an OpenRouter API credential and choose the model you want to use for the reviewer agent and (optionally) the structured-output fixer.
- Install the Slack app, enable event subscriptions for
app_mentionand direct messages, and invite the app to any channels where you want to request reviews. - If your environment restricts outbound HTTP, allow access to
raw.githubusercontent.comandapi.github.comso the workflow can load the n8n-io/skills checklist and file index.
🔗 Nodes Used
HTTP Request, Slack, n8n, Filter, AI Agent, Structured Output Parser
📥 Import
Download workflow.json and import into n8n:
Workflow menu → Import from File