[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77Z45RZJWRMDBTT5TQ3NWV0":3,"skill-same:01M77Z45RZJWRMDBTT5TQ3NWV0":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M77Z45RZJWRMDBTT5TQ3NWV0","yuyonghao-agent-benchmark",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fy\u002Fyuyonghao-agent-benchmark\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# agent-benchmark - AI Agent 能力评估基准\n\n**版本**: 0.1.0  \n**作者**: 小蒲萄 (Clawd)  \n**创建日期**: 2026-03-18  \n**类型**: SWE-bench Lite (PowerShell Edition)\n\n---\n\n## 📖 简介\n\n评估 AI Agent 任务完成能力的基准测试系统，灵感来源于 SWE-bench。\n\n**核心功能**：\n- ✅ 12 个标准化测试任务\n- ✅ 5 大能力维度评估\n- ✅ 自动化评分和报告生成\n- ✅ 分类别能力分析\n- ✅ 可自定义扩展任务\n\n---\n\n## 🎯 评估维度\n\n| 维度 | 权重 | 测试内容 |\n|------|------|---------|\n| **文件操作** | 15% | 文件读写、目录管理、路径处理 |\n| **数据处理** | 35% | JSON\u002FCSV、数组、字符串、正则 |\n| **系统操作** | 15% | 环境变量、日期时间、系统信息 |\n| **健壮性** | 15% | 错误处理、异常捕获、边界条件 |\n| **代码质量** | 20% | 函数定义、代码复用、最佳实践 |\n\n---\n\n## 🚀 快速开始\n\n### 运行完整基准测试\n\n```powershell\n# 进入技能目录\ncd C:\\Users\\99236\\.openclaw\\workspace\\skills\\agent-benchmark\n\n# 运行基准测试\n.\\src\\benchmark-runner.ps1\n```\n\n### 自定义任务文件\n\n```powershell\n# 使用自定义任务集\n.\\src\\benchmark-runner.ps1 -TaskFile \".\\tasks\\custom-tasks.json\"\n\n# 指定输出目录\n.\\src\\benchmark-runner.ps1 -OutputDir \".\\reports\\my-benchmark\"\n\n# 详细输出模式\n.\\src\\benchmark-runner.ps1 -Verbose\n```\n\n---\n\n## 📋 测试任务清单\n\n### Easy (基础能力)\n\n| ID | 任务 | 类别 | 分值 | 测试点 |\n|----|------|------|------|--------|\n| task-001 | 文件创建与内容写入 | 文件操作 | 10 | 基础文件 I\u002FO |\n| task-002 | JSON 数据处理 | 数据处理 | 10 | JSON 解析\u002F序列化 |\n| task-003 | 数组操作 | 数据处理 | 10 | 过滤\u002F聚合 |\n| task-011 | 环境变量访问 | 系统操作 | 10 | 系统信息读取 |\n\n### Medium (中级能力)\n\n| ID | 任务 | 类别 | 分值 | 测试点 |\n|----|------|------|------|--------|\n| task-004 | 目录列表与过滤 | 文件操作 | 15 | 文件搜索\u002F统计 |\n| task-005 | 字符串操作 | 数据处理 | 15 | 多步骤转换 |\n| task-006 | 日期时间计算 | 系统操作 | 15 | 时间差计算 |\n| task-007 | CSV 数据生成 | 数据处理 | 20 | 结构化数据导出 |\n| task-012 | 正则表达式匹配 | 数据处理 | 20 | 模式提取 |\n\n### Hard (高级能力)\n\n| ID | 任务 | 类别 | 分值 | 测试点 |\n|----|------|------|------|--------|\n| task-008 | 错误处理测试 | 健壮性 | 20 | try-catch 异常处理 |\n| task-009 | 多步骤数据管道 | 数据处理 | 25 | 复杂数据流 |\n| task-010 | 函数定义与调用 | 代码质量 | 25 | 代码复用\u002F算法 |\n\n**总分**: 195 分  \n**及格线**: 60% (117 分)  \n**优秀线**: 80% (156 分)\n\n---\n\n## 📊 评分标准\n\n### 单任务评分\n\n```\n单任务得分 = 基础分 + 验证分 + 效率分\n\n基础分:\n- 成功完成：50%\n- 部分完成：30%\n- 失败：0%\n\n验证分 (50%):\n- 输出匹配预期：50%\n- 输出部分匹配：25%\n- 输出不匹配：0%\n\n效率分 (10%):\n- 在预期时间内完成：+10%\n- 超时：0%\n```\n\n### 总体评级\n\n| 平均分 | 评级 | 说明 |\n|--------|------|------|\n| ≥ 0.9 | 🏆 S 级 | 生产就绪，超越预期 |\n| ≥ 0.8 | ✅ A 级 | 生产就绪，表现优秀 |\n| ≥ 0.7 | 👍 B 级 | 良好，少量改进空间 |\n| ≥ 0.6 | ⚠️ C 级 | 及格，需要改进 |\n| \u003C 0.6 | ❌ D 级 | 不及格，需大幅提升 |\n\n---\n\n## 📁 文件结构\n\n```\nskills\u002Fagent-benchmark\u002F\n├── SKILL.md                      # 技能文档（本文件）\n├── src\u002F\n│   ├── benchmark-runner.ps1      # 基准测试执行器\n│   └── scoring-engine.ps1        # 评分引擎（可选扩展）\n├── tasks\u002F\n│   ├── default-tasks.json        # 默认任务集（12 题）\n│   ├── custom-tasks.json         # 自定义任务（用户添加）\n│   └── advanced-tasks.json       # 高级任务集（未来扩展）\n├── reports\u002F\n│   ├── benchmark-report-*.md     # 测试报告（自动生成）\n│   └── summary.json              # 汇总数据（可选）\n└── README.md                     # 使用说明\n```\n\n---\n\n## 🧪 示例任务\n\n### 任务示例：JSON 数据处理\n\n```json\n{\n  \"id\": \"task-002\",\n  \"name\": \"JSON Data Processing\",\n  \"category\": \"Data Processing\",\n  \"difficulty\": \"Easy\",\n  \"description\": \"Parse JSON and extract specific field\",\n  \"script\": \"$data = @{Name='Clawd'; Type='AI'; Version='1.0'} | ConvertTo-Json; $parsed = $data | ConvertFrom-Json; Write-Host \\\"Name: $($parsed.Name)\\\"\",\n  \"expectedOutput\": \"Name: Clawd\",\n  \"expectedTimeSeconds\": 5,\n  \"points\": 10\n}\n```\n\n### 任务示例：错误处理测试\n\n```json\n{\n  \"id\": \"task-008\",\n  \"name\": \"Error Handling Test\",\n  \"category\": \"Robustness\",\n  \"difficulty\": \"Hard\",\n  \"description\": \"Handle errors gracefully with try-catch\",\n  \"script\": \"try { \\n  $content = Get-Content -Path 'nonexistent-file.txt' -ErrorAction Stop\\n  Write-Host 'File found'\\n} catch {\\n  Write-Host 'Error handled: File not found'\\n}\",\n  \"expectedOutput\": \"Error handled: File not found\",\n  \"expectedTimeSeconds\": 5,\n  \"points\": 20\n}\n```\n\n---\n\n## 📈 报告示例\n\n运行基准测试后生成 Markdown 报告：\n\n```markdown\n# Agent Benchmark Report\n\n**Generated**: 2026-03-18 09:30:00  \n**Total Tasks**: 12  \n**Average Score**: 0.85 \u002F 1.0  \n**Average Time**: 8.5s\n\n## 📊 Summary\n\n| Metric | Value |\n|--------|-------|\n| **Success Rate** | 83.3% |\n| **Partial Completion** | 8.3% |\n| **Failure Rate** | 8.3% |\n| **Average Score** | 0.85 |\n| **Avg Execution Time** | 8.5s |\n\n## 📈 Detailed Results\n\n| Task | Category | Difficulty | Status | Score | Time (s) |\n|------|----------|------------|--------|-------|----------|\n| File Creation | File Ops | Easy | ✅ Success | 1.0 | 2.3 |\n| JSON Processing | Data | Easy | ✅ Success | 1.0 | 3.1 |\n| ... | ... | ... | ... | ... | ... |\n```\n\n---\n\n## 🔧 自定义任务\n\n### 创建自定义任务集\n\n创建 `tasks\u002Fcustom-tasks.json`:\n\n```json\n{\n  \"metadata\": {\n    \"version\": \"1.0.0\",\n    \"name\": \"My Custom Tasks\",\n    \"description\": \"Custom benchmark for specific use case\"\n  },\n  \"tasks\": [\n    {\n      \"id\": \"custom-001\",\n      \"name\": \"My Custom Task\",\n      \"category\": \"Custom Category\",\n      \"difficulty\": \"Medium\",\n      \"description\": \"Description of what to do\",\n      \"script\": \"Write-Host 'Hello World'\",\n      \"expectedOutput\": \"Hello World\",\n      \"expectedTimeSeconds\": 5,\n      \"points\": 15\n    }\n  ]\n}\n```\n\n### 运行自定义任务\n\n```powershell\n.\\src\\benchmark-runner.ps1 -TaskFile \".\\tasks\\custom-tasks.json\"\n```\n\n---\n\n## 🎯 使用场景\n\n### ✅ 适合的场景\n\n- **Agent 能力评估** - 新版本发布前测试\n- **回归测试** - 确保更新未破坏功能\n- **对比测试** - 不同配置\u002F模型对比\n- **能力诊断** - 识别薄弱环节\n- **持续集成** - 自动化质量门禁\n\n### ❌ 不适合的场景\n\n- **性能基准测试** - 非性能导向\n- **安全测试** - 无安全相关任务\n- **大规模负载测试** - 设计为轻量级\n\n---\n\n## 📊 指标解释\n\n### Task Completion Rate (任务完成率)\n成功完成的任务数 \u002F 总任务数\n\n### Average Execution Time (平均执行时间)\n所有任务执行时间的算术平均值\n\n### Success Rate (成功率)\n达到 80% 以上分数的任务比例\n\n### Error Rate (错误率)\n执行中出错的任务比例\n\n### Code Quality (代码质量)\n基于代码结构、复用性、最佳实践的综合评分\n\n---\n\n## 🔍 故障排查\n\n### 常见问题\n\n**Q: 任务执行超时**\n```\n原因：脚本复杂度过高或死循环\n解决：检查任务脚本，增加 expectedTimeSeconds\n```\n\n**Q: 输出验证失败**\n```\n原因：实际输出与 expectedOutput 不匹配\n解决：调整 expectedOutput 正则表达式或检查脚本逻辑\n```\n\n**Q: 报告生成失败**\n```\n原因：输出目录不存在或权限问题\n解决：确保 OutputDir 存在且有写权限\n```\n\n---\n\n## 📝 更新日志\n\n### v0.1.0 (2026-03-18)\n- ✅ 初始版本发布\n- ✅ 12 个标准化测试任务\n- ✅ 5 大评估维度\n- ✅ 自动化评分系统\n- ✅ Markdown 报告生成\n- ✅ 自定义任务支持\n\n---\n\n## 🤝 贡献\n\n欢迎提交新的测试任务！请遵循以下格式：\n\n1. 任务难度分级明确（Easy\u002FMedium\u002FHard）\n2. 预期输出可自动化验证\n3. 执行时间在 30 秒以内\n4. 不依赖外部网络\u002FAPI\n5. 不修改系统配置\n\n---\n\n## 📄 许可证\n\nMIT License\n\n---\n\n*最后更新：2026-03-18*\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fy\u002Fyuyonghao-agent-benchmark",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill yuyonghao-agent-benchmark",{"tool":37,"command":38},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill yuyonghao-agent-benchmark",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill yuyonghao-agent-benchmark","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fy\u002Fyuyonghao-agent-benchmark\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]