LeoYeAI/agent-master-skills / skills/ai-prompt-generator
ai-prompt-generator
Verified专业 AI 提示词生成工具,帮助用户创建高效、精准的 AI 提示词。内置多种框架和模板,让 AI 输出质量提升 10 倍。
index.js
View on GitHub#!/usr/bin/env node
/**
* AI Prompt Generator - AI 提示词生成器
* Price: ¥3
*/
async function main() {
const args = process.argv.slice(2);
const params = {};
for (let i = 0; i < args.length; i++) {
if (args[i].startsWith('--')) {
const key = args[i].slice(2);
const value = args[i + 1] && !args[i + 1].startsWith('--') ? args[++i] : true;
params[key] = value;
}
}
console.log('🎯 AI 提示词生成器已启动');
console.log('━━━━━━━━━━━━━━━━━━━━');
const { task, model, style, template, action } = params;
if (!task && !template && !action) {
console.log('用法:/ai-prompt-generator --task <任务> [选项]');
console.log('模板:cot, role, few-shot, chain');
console.log('模型:gpt-4, claude, gemini, qwen');
return;
}
console.log(`\n📋 任务:${task || '使用模板'}`);
console.log(`🤖 目标模型:${model || 'auto'}`);
console.log(`🎨 风格:${style || 'balanced'}`);
console.log(`📐 模板:${template || 'custom'}`);
console.log('\n⏳ 正在生成提示词...');
// 提示词框架示例
const frameworks = {
cot: '思维链 (Chain of Thought)',
role: '角色扮演 (Role Play)',
fewshot: '少样本学习 (Few-Shot)',
chain: '任务链 (Task Chain)'
};
console.log('\n✅ 提示词生成完成!');
console.log(`📐 使用框架:${frameworks[template] || '自定义'}`);
console.log('━━━━━━━━━━━━━━━━━━━━');
console.log('💰 本次消费:¥3');
}
main().catch(console.error);
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |