bhaveshpabnani/humungousaur/bot-loop-protection
Claude Code and agent skill by bhaveshpabnani/humungousaur
- community
Checking that the SKILL.md file is still in the repository.
Prevent bot-to-bot reply loops by detecting bot-authored inbound messages, pair suppression, channel policy, and ambient context rules. Use when handling channels that may receive messages from other assistants or automation.
Install
npx vskill@latest install bhaveshpabnani/humungousaur/bot-loop-protectionSKILL.md
Bot Loop Protection
Purpose
Keep assistants from endlessly replying to each other. This skill adapts external reference bot-loop protection concepts to Humungousaur's native channel metadata and policy gates.
When To Use
Use for Slack, Discord, Telegram, Teams, WebChat, SMS, or any channel where inbound messages may be bot-authored or automation-authored.
Inputs And Evidence
- Inbound metadata:
bot_authored, author type, sender ID, message ID, conversation ID, and channel ID. - Channel manifest loop-protection support.
- Recent messages and outbox entries.
- Group/DM policy.
Tool Map
channel_manifestchannel_catalogchannel_outboxactivity_ingestcognitive_interaction_reviewchannel_message_prepare
Workflow
- Inspect inbound metadata before considering message content.
- If the message is bot-authored and the channel does not allow bot-authored inbound handling, suppress response.
- For supported bot-authored handling, check pair/session policy and recent outbox to avoid ping-pong.
- Convert suppressed messages into passive context only when useful and safe.
- Let model-led cognition review ambiguous cases; do not build hardcoded phrase triggers.
- Record suppression reason for diagnostics.
Safety
- Never let two bot accounts repeatedly call each other's message tools.
- Do not bypass bot-loop protection because the text appears urgent.
- Do not import external reference bot-loop code directly.
Native Implementation Boundaries
- Use native channel metadata, outbox history, and cognitive review to distinguish bot-authored context from user intent.
- Use
activity_ingestfor safe passive context andchannel_message_prepareonly when policy allows a response. - Treat missing bot metadata from an adapter as a channel implementation gap; do not infer bot identity from vague text patterns.
Verification
- Suppressed events should show a reason such as bot-authored or pair suppression.
- Prepared replies should not target bot-authored messages unless policy explicitly allows it.
- Outbox should not show repeated alternating bot replies.
Failure Modes
- Missing bot identity metadata from a channel adapter.
- Treating assistant-generated text as user intent.
- Suppressing all automation messages even when the user configured them as signals.
References
- Shortlist item:
bot-loop-protection. - Upstream inspiration: external reference bot-loop protection.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-core/bot-loop-protection/SKILL.md
Popularity
- Repository stars
- 8
- 7-day trend score
- 16
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bhaveshpabnani/humungousaur/bot-loop-protection)