Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
alsk1992 avatar

Auto Reply

  • 62 installs
  • 610 repo stars
  • Updated June 26, 2026
  • alsk1992/cloddsbot

Auto-Reply is a Claude Code skill that creates rules to automatically respond to chat messages by pattern, keyword, and condition, with cooldowns and dynamic responses.

About

Auto-Reply is a skill that creates rules for automatic responses based on patterns, keywords, and conditions. It matches messages by keyword, exact, regex, startsWith, or endsWith patterns, gates replies by time, day, user, channel, or role, applies cooldowns to prevent spam, and supports dynamic variable and API-backed responses. A developer uses it to automate chat responses in a bot.

  • Auto-responds to messages by keyword, exact, regex, prefix, or suffix patterns
  • Applies conditions (time window, day, user, channel, role) and per-user/channel cooldowns
  • Supports dynamic responses with variables and API-backed replies

Auto Reply by the numbers

  • 62 all-time installs (skills.sh)
  • Ranked #984 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

auto-reply capabilities & compatibility

Capabilities
auto reply · message matching · cooldown control
Use cases
orchestration
Runs
Runs locally
From the docs

What auto-reply says it does

Create rules for automatic responses based on patterns, keywords, and conditions.
SKILL.md
/autoreply test <message> Test which rules match
SKILL.md
npx skills add https://github.com/alsk1992/cloddsbot --skill auto-reply

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs62
repo stars610
Last updatedJune 26, 2026
Repositoryalsk1992/cloddsbot

What it does

Auto-respond to chat messages using pattern rules with conditions and cooldowns.

Who is it for?

automating repetitive chat replies in a bot

Skip if: one-to-one human support or free-form conversational AI responses

When should I use this skill?

you want a bot to auto-respond to messages matching a pattern

What you get

Pattern-based auto-reply rules that fire under configured conditions with anti-spam cooldowns.

By the numbers

  • 5 pattern types
  • 6 condition types

Files

SKILL.mdMarkdownGitHub ↗

Auto-Reply - Complete API Reference

Create rules for automatic responses based on patterns, keywords, and conditions.

---

Chat Commands

List Rules

/autoreply list                             List all rules
/autoreply active                           Show active rules only
/autoreply stats                            Rule statistics

Create Rules

/autoreply add <pattern> <response>         Simple keyword match
/autoreply add-regex <regex> <response>     Regex pattern
/autoreply add-keywords <kw1,kw2> <resp>    Keyword rule

Manage Rules

/autoreply enable <id>                      Enable rule
/autoreply disable <id>                     Disable rule
/autoreply remove <id>                      Remove rule
/autoreply edit <id> <new-response>         Update response
/autoreply get <id>                         Rule details

Testing

/autoreply test <message>                   Test which rules match
/autoreply simulate <message>               Preview response

Advanced

/autoreply cooldown <id> <seconds>          Set cooldown
/autoreply schedule <id> <start-end>        Active hours (e.g. 9-17)
/autoreply priority <id> <number>           Set priority (higher first)
/autoreply channel <id> <channel>           Restrict to channel
/autoreply clear-cooldowns                  Clear all cooldowns
/autoreply reload                           Reload rules from disk

---

TypeScript API Reference

Create Auto-Reply Manager

import { createAutoReplyManager } from 'clodds/auto-reply';

const autoReply = createAutoReplyManager({
  // Storage
  storage: 'sqlite',
  dbPath: './auto-reply.db',

  // Defaults
  defaultCooldownMs: 0,
  defaultPriority: 0,

  // Limits
  maxRulesPerUser: 100,
  maxResponseLength: 2000,
});

Add Simple Rule

// Keyword match
await autoReply.addRule({
  name: 'greeting',
  pattern: {
    type: 'keyword',
    value: 'hello',
    caseSensitive: false,
  },
  response: 'Hi there! How can I help?',
});

Add Regex Rule

// Regex pattern
await autoReply.addRule({
  name: 'price-query',
  pattern: {
    type: 'regex',
    value: /price\s+(btc|eth|sol)/i,
  },
  response: async (match, ctx) => {
    const symbol = match[1].toUpperCase();
    const price = await getPrice(symbol);
    return `${symbol} price: $${price}`;
  },
});

Add Conditional Rule

// With conditions
await autoReply.addRule({
  name: 'trading-hours',
  pattern: {
    type: 'keyword',
    value: 'trade',
  },
  conditions: [
    // Only during market hours
    {
      type: 'time',
      start: '09:30',
      end: '16:00',
      timezone: 'America/New_York',
    },
    // Only on weekdays
    {
      type: 'day',
      days: ['mon', 'tue', 'wed', 'thu', 'fri'],
    },
    // Only for certain users
    {
      type: 'user',
      userIds: ['user-123', 'user-456'],
    },
  ],
  response: 'Markets are open! What would you like to trade?',
  elseResponse: 'Markets are closed. Try again during trading hours.',
});

Add Cooldown

// Prevent spam
await autoReply.addRule({
  name: 'faq',
  pattern: {
    type: 'keyword',
    value: 'faq',
  },
  response: 'Check our FAQ at https://...',
  cooldown: {
    perUser: 60000,    // 60s per user
    perChannel: 10000, // 10s per channel
    global: 5000,      // 5s global
  },
});

Dynamic Responses

// Response with variables
await autoReply.addRule({
  name: 'welcome',
  pattern: {
    type: 'exact',
    value: '!welcome',
  },
  response: 'Welcome {{user.name}}! You joined {{user.joinDate}}.',
  variables: {
    'user.name': (ctx) => ctx.user.displayName,
    'user.joinDate': (ctx) => ctx.user.createdAt.toDateString(),
  },
});

// Response with API call
await autoReply.addRule({
  name: 'portfolio',
  pattern: {
    type: 'keyword',
    value: 'portfolio',
  },
  response: async (match, ctx) => {
    const portfolio = await getPortfolio(ctx.user.id);
    return `Your portfolio: $${portfolio.totalValue.toFixed(2)}`;
  },
});

List Rules

const rules = await autoReply.listRules();

for (const rule of rules) {
  console.log(`${rule.id}: ${rule.name}`);
  console.log(`  Pattern: ${rule.pattern.value}`);
  console.log(`  Enabled: ${rule.enabled}`);
  console.log(`  Triggers: ${rule.triggerCount}`);
}

Test Rule

// Test which rules would match
const matches = await autoReply.test('hello world', {
  userId: 'user-123',
  channelId: 'telegram-456',
});

for (const match of matches) {
  console.log(`Rule: ${match.rule.name}`);
  console.log(`Response: ${match.response}`);
}

Enable/Disable

await autoReply.enable('rule-id');
await autoReply.disable('rule-id');

Delete Rule

await autoReply.deleteRule('rule-id');

---

Pattern Types

TypeExampleDescription
keywordhelloContains keyword
exact!helpExact match only
regex/price\s+\w+/iRegular expression
startsWith!Starts with prefix
endsWith?Ends with suffix

---

Condition Types

TypeDescription
timeActive during time window
dayActive on specific days
userOnly for specific users
channelOnly in specific channels
roleOnly for users with role
customCustom function

---

Response Variables

VariableDescription
{{user.name}}User display name
{{user.id}}User ID
{{channel.name}}Channel name
{{match[0]}}Full regex match
{{match[1]}}First capture group
{{date}}Current date
{{time}}Current time

---

Best Practices

1. Use priorities — Important rules first 2. Set cooldowns — Prevent spam 3. Test patterns — Verify before enabling 4. Use conditions — Context-aware responses 5. Monitor triggers — Check rule effectiveness

Related skills

FAQ

What pattern types are supported?

keyword, exact, regex, startsWith, and endsWith.

Can replies be limited to certain times or users?

Yes, via conditions for time window, day, user, channel, and role.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.