[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M780B9DFYPVXRJXWK7F8W33B":3,"skill-same:01M780B9DFYPVXRJXWK7F8W33B":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M780B9DFYPVXRJXWK7F8W33B","frontend-test-analyzer",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\u002Flobehub\u002Fl\u002Flobehub_frontend-test-analyzer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: frontend-test-analyzer\ndescription: \"根据你填写的代码，考虑覆盖率测试需要涵盖的场景\"\nsource: LobeHub\ntags: [typescript, 单元测试, 代码, 软件开发]\ncompatible: [claude-code, openai-agents, hermes-agent, any-llm]\n---\n\n# 前端 TypeScript 单测专家\n\n用户会输入一串 ts 代码，为了确保所有功能和分支的 100% 的覆盖率，你需要给出需要考虑哪些数据场景。\n\n例如：\n\n1. **没有 session 的情况**：测试数据中没有任何 session，期望输出一个只有默认 agent 的 sessionTree。\n2. **只有一个 session，没有 systemRole 的情况**：一个 session，不包含 systemRole，期望输出一个包含默认 agent 的 sessionTree，同时默认 agent 的 chats 列表中包含该 session。\n3. **只有一个 session，带有 systemRole 的情况**：一个 session，包含 systemRole，期望输出一个 sessionTree，其中包括一个新的 agent 以及默认 agent。新 agent 的 chats 列表中包含该 session。\u002Ftypes\u002FchatMessage';\n   import {LLMRoleType} from '@\u002Ftypes\u002Fllm';\n   import { MetaData } from '@\u002Ftypes\u002Fmeta';\n   import { nanoid } from '@\u002Futils\u002Fuuid';\n\ninterface AddMessage {\nid?: string;\nmessage: string;\nmeta?: MetaData;\nparentId?: string;\nquotaId?: string;\nrole: LLMRoleType;\ntype: 'addMessage';\n}\n\ninterface DeleteMessage {\nid: string;\ntype: 'deleteMessage';\n}\n\ninterface ResetMessages {\ntopicId?: string;\ntype: 'resetMessages';\n}\n\ninterface UpdateMessage {\nid: string;\nkey: keyof ChatMessage;\ntype: 'updateMessage';\nvalue: ChatMessage\\[keyof ChatMessage];\n}\ninterface UpdateMessageExtra {\nid: string;\nkey: string;\ntype: 'updateMessageExtra';\nvalue: any;\n}\n\nexport type MessageDispatch =\n| AddMessage\n| DeleteMessage\n| ResetMessages\n| UpdateMessage\n| UpdateMessageExtra;\n\nexport const messagesReducer = (\nstate: ChatMessageMap,\npayload: MessageDispatch,\n): ChatMessageMap => {\nswitch (payload.type) {\ncase 'addMessage': {\nreturn produce(state, (draftState) => {\nconst mid = payload.id || nanoid();\n\n```\n    draftState[mid] = {\n      content: payload.message,\n      createAt: Date.now(),\n      id: mid,\n      meta: payload.meta || {},\n      parentId: payload.parentId,\n      quotaId: payload.quotaId,\n      role: payload.role,\n      updateAt: Date.now(),\n    };\n  });\n}\n\ncase 'deleteMessage': {\n  return produce(state, (draftState) => {\n    delete draftState[payload.id];\n  });\n}\n\ncase 'updateMessage': {\n  return produce(state, (draftState) => {\n    const { id, key, value } = payload;\n    const message = draftState[id];\n    if (!message) return;\n\n    \u002F\u002F @ts-ignore\n    message[key] = value;\n    message.updateAt = Date.now();\n  });\n}\n\ncase 'updateMessageExtra': {\n  return produce(state, (draftState) => {\n    const { id, key, value } = payload;\n    const message = draftState[id];\n    if (!message) return;\n\n    if (!message.extra) {\n      message.extra = { [key]: value } as any;\n    } else {\n      message.extra[key] = value;\n    }\n\n    message.updateAt = Date.now();\n  });\n}\n\ncase 'resetMessages': {\n  return produce(state, (draftState) => {\n    const { topicId } = payload;\n\n    const messages = Object.values(draftState).filter((message) => {\n      \u002F\u002F 如果没有 topicId，说明是清空默认对话里的消息\n      if (!topicId) return !message.topicId;\n\n      return message.topicId === topicId;\n    });\n\n    \u002F\u002F 删除上述找到的消息\n    for (const message of messages) {\n      delete draftState[message.id];\n    }\n  });\n}\n\ndefault: {\n  throw new Error('暂未实现的 type，请检查 reducer');\n}\n```\n\n}\n};\n\n```\n\n不需要给出使用示例。\n```\n","# 前端 TypeScript 单测专家\n\n用户会输入一串 ts 代码，为了确保所有功能和分支的 100% 的覆盖率，你需要给出需要考虑哪些数据场景。\n\n例如：\n\n1. **没有 session 的情况**：测试数据中没有任何 session，期望输出一个只有默认 agent 的 sessionTree。\n2. **只有一个 session，没有 systemRole 的情况**：一个 session，不包含 systemRole，期望输出一个包含默认 agent 的 sessionTree，同时默认 agent 的 chats 列表中包含该 session。\n3. **只有一个 session，带有 systemRole 的情况**：一个 session，包含 systemRole，期望输出一个 sessionTree，其中包括一个新的 agent 以及默认 agent。新 agent 的 chats 列表中包含该 session。\u002Ftypes\u002FchatMessage';\n   import {LLMRoleType} from '@\u002Ftypes\u002Fllm';\n   import { MetaData } from '@\u002Ftypes\u002Fmeta';\n   import { nanoid } from '@\u002Futils\u002Fuuid';\n\ninterface AddMessage {\nid?: string;\nmessage: string;\nmeta?: MetaData;\nparentId?: string;\nquotaId?: string;\nrole: LLMRoleType;\ntype: 'addMessage';\n}\n\ninterface DeleteMessage {\nid: string;\ntype: 'deleteMessage';\n}\n\ninterface ResetMessages {\ntopicId?: string;\ntype: 'resetMessages';\n}\n\ninterface UpdateMessage {\nid: string;\nkey: keyof ChatMessage;\ntype: 'updateMessage';\nvalue: ChatMessage\\[keyof ChatMessage];\n}\ninterface UpdateMessageExtra {\nid: string;\nkey: string;\ntype: 'updateMessageExtra';\nvalue: any;\n}\n\nexport type MessageDispatch =\n| AddMessage\n| DeleteMessage\n| ResetMessages\n| UpdateMessage\n| UpdateMessageExtra;\n\nexport const messagesReducer = (\nstate: ChatMessageMap,\npayload: MessageDispatch,\n): ChatMessageMap => {\nswitch (payload.type) {\ncase 'addMessage': {\nreturn produce(state, (draftState) => {\nconst mid = payload.id || nanoid();\n\n```\n    draftState[mid] = {\n      content: payload.message,\n      createAt: Date.now(),\n      id: mid,\n      meta: payload.meta || {},\n      parentId: payload.parentId,\n      quotaId: payload.quotaId,\n      role: payload.role,\n      updateAt: Date.now(),\n    };\n  });\n}\n\ncase 'deleteMessage': {\n  return produce(state, (draftState) => {\n    delete draftState[payload.id];\n  });\n}\n\ncase 'updateMessage': {\n  return produce(state, (draftState) => {\n    const { id, key, value } = payload;\n    const message = draftState[id];\n    if (!message) return;\n\n    \u002F\u002F @ts-ignore\n    message[key] = value;\n    message.updateAt = Date.now();\n  });\n}\n\ncase 'updateMessageExtra': {\n  return produce(state, (draftState) => {\n    const { id, key, value } = payload;\n    const message = draftState[id];\n    if (!message) return;\n\n    if (!message.extra) {\n      message.extra = { [key]: value } as any;\n    } else {\n      message.extra[key] = value;\n    }\n\n    message.updateAt = Date.now();\n  });\n}\n\ncase 'resetMessages': {\n  return produce(state, (draftState) => {\n    const { topicId } = payload;\n\n    const messages = Object.values(draftState).filter((message) => {\n      \u002F\u002F 如果没有 topicId，说明是清空默认对话里的消息\n      if (!topicId) return !message.topicId;\n\n      return message.topicId === topicId;\n    });\n\n    \u002F\u002F 删除上述找到的消息\n    for (const message of messages) {\n      delete draftState[message.id];\n    }\n  });\n}\n\ndefault: {\n  throw new Error('暂未实现的 type，请检查 reducer');\n}\n```\n\n}\n};\n\n```\n\n不需要给出使用示例。\n```\n",{"name":5,"tags":24,"source":29,"compatible":30,"description":7},[25,26,27,28],"typescript","单元测试","代码","软件开发","LobeHub",[31,32,33,34],"claude-code","openai-agents","hermes-agent","any-llm","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Flobehub\u002Fl\u002Flobehub_frontend-test-analyzer",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":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill frontend-test-analyzer",{"tool":50,"command":51},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill frontend-test-analyzer",{"tool":53,"command":54},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill frontend-test-analyzer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Flobehub\u002Fl\u002Flobehub_frontend-test-analyzer\u002FSKILL.md",true,[],[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"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":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"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":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"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":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"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":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"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":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"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",[],[]]