Writing
PromptBeginner5 minmarkdown
Agentic Bill Payments MCP Server
generic skill
1
For a simple ping-pong bot skill:
Sign in to like and favorite skills
generic skill
References to demo script and key prompts for validation
I want you to act as an English translator, spelling corrector and improver. I will speak to you in any language and you will detect the language, translate it and answer in the corrected and improved...
For a simple ping-pong bot skill:
const cheerio = require('cheerio') const _ = require('lodash') exports.name = 'ping-pong bot skill' exports.description = 'reply to "ping" with "pong"' function isPing (event) { let $ = cheerio.load(_.get(event, 'resource.metadata.body')) let txt = $('body').text().trim() console.log('txt:', txt) return txt === 'ping' } exports.onEvent = async ({ event, client, handled // hanlded by prev skills }) => { if (handled) { return } if (isPing(event)) { await client.reply(event, { title: 'pong', body: 'pong' }) return true } }
For full config, check full-config-skill.js
// in you bot file const skillA = require('skill-a') const skillB = require('skill-b') exports.skills = [skillA, skillB]
That is it.