Borrowing it
Nothing to install: this file belongs to ebibibi/ebi-agent-chat-relay. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ebibibi/ebi-agent-chat-relay/main/.claude/skills/add-cog/SKILL.mdgit clone --depth 1 https://github.com/ebibibi/ebi-agent-chat-relayWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ebibibi/ebi-agent-chat-relay/add-cog)<a href="https://agentmods.dev/skills/ebibibi/ebi-agent-chat-relay/add-cog"><img src="https://agentmods.dev/badge/skills/ebibibi/ebi-agent-chat-relay/add-cog/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ebibibi/ebi-agent-chat-relay/add-cog"><img src="https://agentmods.dev/badge/skills/ebibibi/ebi-agent-chat-relay/add-cog.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00018 | $0.00617 |
| Opus 5.5 | $0.00007 | $0.00247 |
| Sonnet 5.5 | $0.00004 | $0.00123 |
| Haiku 4.5 | $0.00002 | $0.00062 |
Grade A, and why
add-cog scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add Cog — Scaffold a New Discord.py Cog
When to Activate
- Adding new Discord bot functionality
- Creating a new slash command or event handler
- When asked to "add a cog", "create a command", or "add a feature"
Steps
1. Create the Cog File
Create claude_discord/cogs/your_cog.py:
"""Short description of what this Cog does."""
from __future__ import annotations
import logging
import discord
from discord import app_commands
from discord.ext import commands
logger = logging.getLogger(__name__)
class YourCog(commands.Cog):
"""Docstring explaining the Cog's purpose."""
def __init__(
self,
bot: commands.Bot,
# Add dependencies as constructor params (dependency injection)
) -> None:
self.bot = bot
# Add commands and listeners here
2. If It Runs Claude CLI
Use the shared helper — never duplicate the streaming logic:
from ._run_helper import run_claude_in_thread
# In your command handler:
runner = self.runner.clone() # Always clone for concurrent safety
await run_claude_in_thread(
thread=thread,
runner=runner,
repo=self.repo,
prompt=user_input,
session_id=existing_session_id,
)
3. Export from Package
Add to claude_discord/cogs/__init__.py:
from .your_cog import YourCog
Add to claude_discord/__init__.py:
from .cogs.your_cog import YourCog
# And add "YourCog" to __all__
4. Write Tests
Create tests/test_your_cog.py:
- Test command validation (invalid inputs, edge cases)
- Test authorization checks
- Mock Discord objects (
discord.Interaction,discord.TextChannel, etc.) - Test error handling paths
5. Verify
Run the verify skill to ensure everything passes:
uv run ruff check claude_discord/
uv run ruff format claude_discord/
uv run pytest tests/ -v --cov=claude_discord
Conventions
- Type hints: Required on all function signatures
from __future__ import annotations: Required in every file- Logging: Use
logger = logging.getLogger(__name__), neverprint() - Authorization: If the Cog accepts user commands, check
_is_authorized(user_id) - Input validation: Validate all user-provided strings with regex before passing to subprocess
- Error handling: Use
contextlib.suppress(discord.HTTPException)for non-critical Discord API calls
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 107 lines · 18 tokens per session scan A 981ba457d5af
add-cog is a skill published in the GitHub repository ebibibi/ebi-agent-chat-relay (68 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 617 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
add-cog compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-cogebibibi/ebi-agent-chat-relay | Skill | 68 | yesterday | MIT | A | 18 | Claude Code |
| fastapi-patternsaffaan-m/ECC | Skill | 317k | 5d ago | MIT | A | 35 | Claude Code, Kiro |
| stripe-projectse2b-dev/E2B | Skill | 15k | 2d ago | Apache-2.0 | A | 51 | Claude Code, Codex |
| azure-mgmt-botservice-pymicrosoft/skills | Skill | 3.3k | 2d ago | MIT | A | 59 | Claude Code |
| azure-messaging-webpubsubservice-pymicrosoft/skills | Skill | 3.3k | 2d ago | MIT | A | 64 | Claude Code |
| azure-appconfiguration-pybenjaminasterA/antigravity-awesome-skills | Skill | 530 | yesterday | MIT | A | 0 | Claude Code, Codex |
| azure-messaging-webpubsubservice-pybenjaminasterA/antigravity-awesome-skills | Skill | 530 | yesterday | MIT | A | 0 | Claude Code, Codex |