Skip to content

LeoYeAI/agent-master-skills / skills/ai-prompt-generator

ai-prompt-generator

Verified

专业 AI 提示词生成工具,帮助用户创建高效、精准的 AI 提示词。内置多种框架和模板,让 AI 输出质量提升 10 倍。

FileKindSize
README.mdmarkdown980 B
SKILL.mdskill md1.2 KB
index.jsscript1.6 KB
#!/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);
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall