一键导入
new-command
Scaffold a new Discord slash command following project patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new Discord slash command following project patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use after implementing any new feature or modifying existing features — audits and updates all related docs, landing pages, help categories, steering docs, changelog, and i18n before declaring work complete
Scaffold a new landing site page following i18n patterns (shared component + EN/VI wrappers + translation keys)
SPEC methodology workflow - bridging product requirements and technical implementation. Use when users want to create, plan, discuss, or manage feature specifications. Triggers on /spec commands or requests like "create a spec for X", "plan feature Y", "discuss requirements".
| name | new-command |
| description | Scaffold a new Discord slash command following project patterns |
Create a new Discord slash command in src/commands/slash/.
The user will provide:
All commands in this project follow this structure:
import {
ChatInputCommandInteraction,
EmbedBuilder,
SlashCommandBuilder,
} from "discord.js";
import Reply from "../../util/decorator/reply";
export default {
data: new SlashCommandBuilder()
.setName("command-name")
.setDescription("Command description"),
async execute(interaction: ChatInputCommandInteraction) {
const embed = new EmbedBuilder().setColor("Random").setTimestamp();
// Command logic here
return Reply.embed(interaction, embed);
},
};
src/commands/slash/{name}.tsChatInputCommandInteraction (not CommandInteraction)Reply utility from ../../util/decorator/reply for responsesEmbedBuilder for rich responsesawait interaction.deferReply() then Reply.embedEdit()(true) to getString() / getInteger() for required options to get non-null typesif (!(interaction.channel as TextChannel)?.nsfw).addSubcommand()src/loaders/commands.ts auto-discovers it