code-generator.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "id": "code-generator",
  3. "name": "代码生成技能",
  4. "description": "帮助生成高质量的代码,包括函数、类、模块和完整项目。支持多种编程语言,遵循最佳实践和设计模式。适用于快速开发、代码示例生成或教学演示。",
  5. "steps": [
  6. {
  7. "id": 1,
  8. "name": "**清晰性**",
  9. "description": "**清晰性**: 代码应清晰易懂,命名规范",
  10. "type": "instruction"
  11. },
  12. {
  13. "id": 2,
  14. "name": "**可维护性**",
  15. "description": "**可维护性**: 结构良好,易于修改和扩展",
  16. "type": "instruction"
  17. },
  18. {
  19. "id": 3,
  20. "name": "**健壮性**",
  21. "description": "**健壮性**: 包含错误处理和边界检查",
  22. "type": "instruction"
  23. },
  24. {
  25. "id": 4,
  26. "name": "**文档化**",
  27. "description": "**文档化**: 提供完整的注释和文档",
  28. "type": "instruction"
  29. },
  30. {
  31. "id": 5,
  32. "name": "**测试性**",
  33. "description": "**测试性**: 代码应易于测试",
  34. "type": "instruction"
  35. }
  36. ],
  37. "inputs": [],
  38. "outputs": []
  39. }