bot-command
OfficialAdd admin-safe bot commands reliably.
Software Engineering#unit testing#bots#command handling#regex parsing#teams messaging#command matcher#admin gating
Authorinterserver
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill solves the problem of creating consistent, testable bot command handlers without breaking the dispatcher’s match/ordering rules or leaking command existence to non-admin users.
Core Features & Use Cases
- Command Module Scaffold: Creates a new
server/commands/<camelCaseName>.jsmodule that exports exactly{ match(text, lcText, deps), execute(matchResult, deps) }so the dispatcher can load it. - Deterministic Matching & Admin Gating: Ensures
match()is synchronous, does not throw, and placesif (deps.ima !== 'admin') return null;as the first line when the command is admin-only to avoid information leakage. - Safe Execution & Proper Registration: Guides the addition of the module to
server/commands/index.jsand the creation of atest/commands.test.jsmatch test so ordering and regex behavior don’t regress.
Quick Start
Create a new module at server/commands/uptime.js and implement an anchored match() that parses the admin-only input, then register it in server/commands/index.js and add a matching test in test/commands.test.js.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: bot-command Download link: https://github.com/interserver/teams-chat-bot/archive/main.zip#bot-command Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.