{"id":106440,"date":"2026-09-17T11:56:41","date_gmt":"2026-09-17T03:56:41","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/106440.html"},"modified":"2026-09-17T11:56:41","modified_gmt":"2026-09-17T03:56:41","slug":"%e3%80%90%e5%85%b1%e5%88%9b%e7%a8%bf%e4%ba%8b%e8%8a%82%e3%80%91harmonyos-7-%e5%ba%94%e7%94%a8-skill-%e5%8c%96%e5%ae%9e%e6%88%98%ef%bc%9a%e4%bb%8e%e8%a2%ab%e6%89%93%e5%bc%80%e5%88%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/106440.html","title":{"rendered":"\u3010\u5171\u521b\u7a3f\u4e8b\u8282\u3011HarmonyOS 7 \u5e94\u7528 Skill \u5316\u5b9e\u6218\uff1a\u4ece\u201c\u88ab\u6253\u5f00\u201c\u5230\u201c\u88ab\u8c03\u7528\u201c\uff0c\u628a\u529f\u80fd\u9012\u8fdb\u7cfb\u7edf\u610f\u56fe\u5206\u53d1\u6c60"},"content":{"rendered":"<p>\u672c\u6587\u57fa\u4e8e HarmonyOS 7&#xff08;API 26&#xff09;\u7684\u300a\u57fa\u4e8eArkTS\u811a\u672c\u7684\u5e94\u7528Skill\u5f00\u53d1\u6307\u5bfc\u300b\u4e0e\u5b98\u65b9\u65b0\u80fd\u529b\u4e00\u89c8\u6574\u7406\u3002\u6587\u4e2d\u4ee3\u7801\u662f\u4e3a\u8bf4\u660e\u95ee\u9898\u81ea\u5199\u7684\u5b8c\u6574\u793a\u4f8b&#xff0c;\u4e0d\u662f\u5b98\u65b9\u793a\u4f8b\u7684\u642c\u8fd0&#xff1b;API \u540d\u79f0\u3001\u6807\u7b7e\u4e0e\u7248\u672c\u53f7\u7b49\u4e8b\u5b9e\u6027\u4fe1\u606f\u5747\u6807\u6ce8\u5b98\u65b9\u51fa\u5904&#xff1b;\u6d89\u53ca\u771f\u673a\u8868\u73b0\u7684\u90e8\u5206\u5df2\u660e\u786e\u6807\u6ce8&#xff0c;\u672a\u505a\u4efb\u4f55\u5b9e\u6d4b\u6570\u636e\u7f16\u9020\u3002<\/p>\n<hr \/>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260917035639-6aab64f7ab7d8.png\" alt=\"HarmonyOS 7 \u5e94\u7528 Skill \u5316\u5b9e\u6218\" \/><\/p>\n<h3>\u5f15\u5b50&#xff1a;\u56fe\u6807\u662f\u4e00\u6247\u95e8&#xff0c;\u4f46\u95e8\u4e0d\u4f1a\u81ea\u5df1\u5f00<\/h3>\n<p>V\u54e5\u8ba4\u8bc6\u4e00\u4e2a\u505a\u672c\u5730\u9910\u996e\u5e94\u7528\u7684\u670b\u53cb&#xff0c;\u529f\u80fd\u505a\u5f97\u5f88\u5168&#xff1a;\u626b\u7801\u70b9\u5355\u3001\u6392\u961f\u53d6\u9910\u3001\u4f1a\u5458\u50a8\u503c&#xff0c;\u4e00\u4e2a\u4e0d\u843d\u3002\u6709\u5929V\u54e5\u95ee\u4ed6&#xff1a;&#034;\u7528\u6237\u627e\u4f60\u4eec\u2019\u6392\u961f\u53d6\u9910\u2019\u8fd9\u4e2a\u529f\u80fd&#xff0c;\u8981\u70b9\u51e0\u6b65&#xff1f;&#034;\u4ed6\u63b0\u6307\u5934\u6570&#xff1a;\u89e3\u9501\u3001\u627e\u56fe\u6807\u3001\u8fdb\u9996\u9875\u3001\u8fc7\u5e7f\u544a\u4f4d\u3001\u70b9 tabBar\u3001\u518d\u8fdb\u4e8c\u7ea7\u9875\u2014\u2014\u4e94\u6b65\u3002<\/p>\n<p>\u800c\u7528\u6237\u7684\u8868\u8fbe\u5176\u5b9e\u53ea\u6709\u56db\u4e2a\u5b57&#xff1a;\u201c\u5e2e\u6211\u53d6\u9910\u3002\u201d<\/p>\n<p>\u8fd9\u4e8b\u5728 HarmonyOS 7&#xff08;API 26&#xff09;\u4e4b\u524d\u65e0\u89e3&#xff0c;\u5e94\u7528\u53ea\u80fd\u5728\u56fe\u6807\u91cc\u7b49\u7528\u6237\u6765\u70b9\u30027.0 \u628a\u8fd9\u4e2a\u524d\u63d0\u6539\u4e86&#xff1a;\u5e94\u7528\u5185\u4e1a\u52a1\u80fd\u529b\u53ef\u4ee5\u4ee5 Skill \u7684\u5f62\u5f0f\u5f00\u653e\u7ed9\u7cfb\u7edf\u667a\u80fd\u4f53\u8c03\u7528&#xff0c;\u7528\u6237\u8bf4\u4e00\u53e5&#034;\u5e2e\u6211\u53d6\u9910&#034;&#xff0c;\u7cfb\u7edf\u81ea\u5df1\u627e\u5230\u4f60\u7684\u80fd\u529b\u3001\u81ea\u5df1\u8c03&#xff08;\u5b98\u65b9\u65b0\u80fd\u529b\u4e00\u89c8&#xff09;\u3002V\u54e5\u7684\u539f\u8bdd\u6982\u62ec\u5c31\u662f\u6807\u9898\u90a3\u534a\u53e5\u2014\u2014\u5e94\u7528\u4ece&#034;\u88ab\u6253\u5f00&#034;&#xff0c;\u53d8\u6210\u4e86&#034;\u88ab\u8c03\u7528&#034;\u3002<\/p>\n<p>\u522b\u5c0f\u770b\u8fd9\u4e00\u4e2a\u8bcd\u7684\u5dee\u522b\u3002\u88ab\u6253\u5f00&#xff0c;\u6d41\u91cf\u5165\u53e3\u662f\u56fe\u6807\u548c\u5e94\u7528\u5e02\u573a&#xff1b;\u88ab\u8c03\u7528&#xff0c;\u6d41\u91cf\u5165\u53e3\u53d8\u6210\u4e86\u7cfb\u7edf\u7ea7\u667a\u80fd\u5206\u53d1\u3002\u8fd9\u671fV\u54e5\u628a Skill \u5316\u7684\u5b8c\u6574\u8def\u5f84\u62c6\u5f00\u8bb2&#xff1a;\u673a\u5236\u3001\u76ee\u5f55\u3001\u5951\u7ea6\u3001\u4ee3\u7801&#xff0c;\u6700\u540e\u7ed9\u4e00\u4efd\u4e0a\u7ebf\u524d\u81ea\u68c0\u6e05\u5355\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u5148\u60f3\u660e\u767d&#xff1a;Skill \u5230\u5e95\u5f00\u653e\u4e86\u4ec0\u4e48<\/h3>\n<p>\u5148\u770b\u5b98\u65b9\u7684\u5173\u952e\u8868\u8ff0&#xff08;\u57fa\u4e8eArkTS\u811a\u672c\u7684\u5e94\u7528Skill\u5f00\u53d1\u6307\u5bfc&#xff09;&#xff1a;<\/p>\n<p>\u4ece API \u7248\u672c 26.0.0 \u5f00\u59cb&#xff0c;Ability Kit \u652f\u6301\u5c06\u5e94\u7528\u5185\u4e1a\u52a1\u80fd\u529b\u4ee5 Skill \u5f62\u5f0f\u5f00\u653e\u7ed9\u7cfb\u7edf\u667a\u80fd\u4f53\u8c03\u7528\u3002Skill \u63d0\u4f9b\u4e00\u79cd\u58f0\u660e\u5f0f\u7684\u80fd\u529b\u5916\u5316\u673a\u5236\u2026\u2026\u8fd0\u884c\u65f6&#xff0c;\u7cfb\u7edf\u667a\u80fd\u4f53\u4f9d\u636e\u63cf\u8ff0\u6587\u4ef6\u5b8c\u6210&#034;\u610f\u56fe\u2014\u80fd\u529b&#034;\u7684\u8bed\u4e49\u5339\u914d&#xff0c;\u5e76\u5c06\u7ed3\u679c\u8f6c\u5316\u4e3a\u9762\u5411\u7528\u6237\u7684\u81ea\u7136\u8bed\u8a00\u56de\u590d\u3002<\/p>\n<p>V\u54e5\u4ece\u8fd9\u6bb5\u8bdd\u91cc\u8bfb\u51fa\u4e09\u4e2a\u91cd\u70b9&#xff0c;\u6bd4 API \u672c\u8eab\u91cd\u8981&#xff1a;<\/p>\n<table>\n<tr>\u91cd\u70b9\u610f\u601d\u5bf9\u5f00\u53d1\u8005\u7684\u76f4\u63a5\u5f71\u54cd<\/tr>\n<tbody>\n<tr>\n<td>\u58f0\u660e\u5f0f<\/td>\n<td>\u4f60\u4e0d\u5199&#034;\u600e\u4e48\u88ab\u8c03\u7528&#034;&#xff0c;\u53ea\u58f0\u660e&#034;\u80fd\u505a\u4ec0\u4e48\u3001\u4ec0\u4e48\u65f6\u5019\u8c03\u3001\u53c2\u6570\u4ec0\u4e48\u6837&#034;<\/td>\n<td>\u4e3b\u4f53\u5de5\u4f5c\u91cf\u5728\u5199\u5951\u7ea6&#xff0c;\u4e0d\u5728\u5199\u4ee3\u7801<\/td>\n<\/tr>\n<tr>\n<td>\u8584\u5c01\u88c5<\/td>\n<td>\u4e0d\u6539\u9020\u65e2\u6709\u4e1a\u52a1\u5b9e\u73b0&#xff0c;\u5165\u53e3\u811a\u672c\u53ea\u662f&#034;\u53c2\u6570\u9002\u914d\u5668&#034;<\/td>\n<td>\u8001\u4e1a\u52a1\u4e00\u884c\u4e0d\u52a8&#xff0c;\u52a0\u4e2a\u58f3\u5c31\u80fd\u4e0a<\/td>\n<\/tr>\n<tr>\n<td>\u8bed\u4e49\u5339\u914d<\/td>\n<td>\u7cfb\u7edf\u9760\u4f60\u7684\u63cf\u8ff0\u6587\u4ef6\u731c\u7528\u6237\u610f\u56fe&#xff0c;\u5339\u914d\u4e0a\u4e86\u624d\u8c03\u4f60<\/td>\n<td>\u5951\u7ea6\u5199\u5f97\u7cd9 &#061; \u6c38\u8fdc\u5339\u914d\u4e0d\u4e0a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7b2c\u4e09\u6761\u662f\u5f88\u591a\u4eba\u4f1a\u6f0f\u7684\u3002\u56fe\u6807\u65f6\u4ee3&#xff0c;\u4f60\u7684\u5e94\u7528\u540d\u79f0\u5199\u9519\u9876\u591a\u641c\u7d22\u6392\u540d\u9760\u540e&#xff1b;Skill \u65f6\u4ee3&#xff0c;\u63cf\u8ff0\u6587\u4ef6\u5c31\u662f\u4f60\u5728\u610f\u56fe\u5206\u53d1\u6c60\u91cc\u7684\u5168\u90e8\u7b80\u5386\u2014\u2014\u7cfb\u7edf\u667a\u80fd\u4f53\u4e0d\u8fdb\u4f60\u7684\u4ee3\u7801&#xff0c;\u53ea\u770b\u8fd9\u4efd\u7b80\u5386\u51b3\u5b9a\u8c03\u4e0d\u8c03\u4f60\u3002<\/p>\n<p>\u8fd8\u6709\u4e00\u4e2a\u786c\u8fb9\u754c\u5148\u8bf4\u5728\u524d&#xff1a;\u8fd9\u5957\u673a\u5236\u4ec5\u652f\u6301 Stage \u6a21\u578b&#xff0c;FA \u6a21\u578b\u4e0d\u53ef\u7528&#xff08;\u5b98\u65b9\u539f\u6587&#xff09;\u3002\u5b58\u91cf FA \u6a21\u578b\u5de5\u7a0b\u5f97\u5148\u8fc1\u79fb&#xff0c;\u8fd9\u4e0d\u662f Skill \u7684\u5751&#xff0c;\u662f\u524d\u7f6e\u6761\u4ef6\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001Skill \u7684\u89e3\u5256\u56fe&#xff1a;\u4e00\u4e2a\u76ee\u5f55\u3001\u4e24\u4efd\u6587\u4ef6\u3001\u4e00\u5904\u6ce8\u518c<\/h3>\n<p>\u5b98\u65b9\u628a\u4e00\u4e2a Skill \u7684\u7269\u7406\u5f62\u6001\u89c4\u5b9a\u5f97\u5f88\u6b7b&#xff0c;V\u54e5\u753b\u6210\u4e00\u5f20\u94fe\u8def\u56fe&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260917035640-6aab64f83e752.png\" alt=\"Skill \u5316\u7684\u610f\u56fe\u5206\u53d1\u94fe\u8def\" \/><\/p>\n<p>\u843d\u5230\u5de5\u7a0b\u91cc&#xff0c;\u5c31\u662f\u5728\u6a21\u5757&#xff08;entry&#xff09;\u4e0b\u5efa\u4e00\u4e2a skills\/ \u76ee\u5f55&#xff0c;\u91cc\u9762\u6bcf\u4e2a Skill \u4e00\u4e2a\u6587\u4ef6\u5939&#xff08;\u5b98\u65b9\u5f00\u53d1\u6307\u5bfc&#xff09;&#xff1a;<\/p>\n<p>entry\/<br \/>\n\u251c\u2500\u2500 skills\/                              &lt;- \u56fa\u5b9a\u503c&#xff1a;\u672c\u6a21\u5757\u6240\u6709 Skill \u7684\u6839\u76ee\u5f55<br \/>\n\u2502   \u2514\u2500\u2500 vge-org-milktea-assistant\/       &lt;- Skill \u540d&#xff0c;\u987b\u4e0e SKILL.md \u7684 name \u4e00\u81f4<br \/>\n\u2502       \u251c\u2500\u2500 scripts\/<br \/>\n\u2502       \u2502   \u2514\u2500\u2500 MilkteaSkill.ets         &lt;- \u5165\u53e3\u811a\u672c&#xff08;\u8584\u9002\u914d\u5c42&#xff09;<br \/>\n\u2502       \u2514\u2500\u2500 SKILL.md                     &lt;- \u63cf\u8ff0\u6587\u4ef6&#xff08;\u610f\u56fe\u5339\u914d\u7684\u552f\u4e00\u4f9d\u636e&#xff09;<br \/>\n\u2514\u2500\u2500 src\/main\/<br \/>\n    \u251c\u2500\u2500 ets\/service\/MilkTeaService.ets   &lt;- \u5e94\u7528\u65e2\u6709\u4e1a\u52a1&#xff08;\u88ab\u811a\u672c\u8c03\u7528&#xff0c;\u96f6\u6539\u52a8&#xff09;<br \/>\n    \u2514\u2500\u2500 module.json5                     &lt;- \u5728\u8fd9\u91cc\u6ce8\u518c skillProfiles<\/p>\n<p>\u4e09\u5904\u540d\u5b57\u5fc5\u987b\u5b8c\u5168\u4e00\u81f4&#xff1a;\u76ee\u5f55\u540d &#061; SKILL.md \u7684 name &#061; module.json5 \u91cc skillProfiles[].name\u3002\u5b98\u65b9\u8fd8\u4e13\u95e8\u63d0\u9192&#xff0c;\u4e3a\u9632\u547d\u540d\u51b2\u7a81&#xff0c;Skill \u540d\u63a8\u8350\u7528\u516c\u53f8\u6216\u7ec4\u7ec7\u540d\u505a\u524d\u7f00\u2014\u2014V\u54e5\u793a\u4f8b\u91cc\u7684 vge-org- \u5c31\u662f\u8fd9\u4e2a\u7528\u9014\u3002<\/p>\n<p>\u6ce8\u518c\u5199\u8fdb module.json5 \u7684 skillProfiles \u6807\u7b7e&#xff08;\u5b98\u65b9\u65b0\u589e\u6807\u7b7e&#xff09;&#xff1a;<\/p>\n<p>{<br \/>\n  &#034;module&#034;: {<br \/>\n    &#034;skillProfiles&#034;: [<br \/>\n      {<br \/>\n        &#034;name&#034;: &#034;vge-org-milktea-assistant&#034;,   \/\/ \u4e0e\u76ee\u5f55\u540d\u3001SKILL.md \u7684 name \u4e09\u5904\u4e00\u81f4<br \/>\n        &#034;abilityName&#034;: &#034;EntryAbility&#034;,          \/\/ Skill \u7ed1\u5b9a\u5230\u54ea\u4e2a Ability \u7684\u8fd0\u884c\u4e0a\u4e0b\u6587<br \/>\n        &#034;srcEntries&#034;: [                         \/\/ \u5165\u53e3\u811a\u672c\u8def\u5f84<br \/>\n          &#034;..\/..\/skills\/vge-org-milktea-assistant\/scripts\/MilkteaSkill.ets&#034;<br \/>\n        ],<br \/>\n        &#034;version&#034;: &#034;1.0.0&#034;<br \/>\n      }<br \/>\n    ],<br \/>\n    &#034;requestPermissions&#034;: [<br \/>\n      { &#034;name&#034;: &#034;ohos.permission.INTERNET&#034; }    \/\/ Skill \u8fd0\u884c\u9700\u8981\u7684\u6743\u9650\u7167\u5e38\u58f0\u660e<br \/>\n    ]<br \/>\n  }<br \/>\n}<\/p>\n<p>\u6ce8\u610f abilityName \u8fd9\u4e00\u9879&#xff1a;Skill \u4e0d\u662f\u60ac\u6d6e\u7684&#xff0c;\u5b83\u7ed1\u5b9a\u5728\u6307\u5b9a Ability \u7684\u8fd0\u884c\u4e0a\u4e0b\u6587\u91cc\u6267\u884c\u3002\u6743\u9650\u4e5f\u662f\u8001\u89c4\u77e9\u2014\u2014Skill \u8981\u8054\u7f51\u5c31\u58f0\u660e\u8054\u7f51&#xff0c;\u8be5\u6700\u5c0f\u5316\u5c31\u6700\u5c0f\u5316\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u52a8\u624b&#xff1a;\u628a&#034;\u70b9\u5976\u8336&#034;\u9012\u7ed9\u5c0f\u827a<\/h3>\n<p>V\u54e5\u7684\u793a\u4f8b\u5e94\u7528\u662f\u5976\u8336\u70b9\u5355&#xff0c;\u65e2\u6709\u4e1a\u52a1\u91cc\u5df2\u7ecf\u6709 MilkTeaService&#xff08;\u4e0b\u5355\u3001\u67e5\u5355&#xff09;\u3002\u73b0\u5728\u8981\u5f00\u653e\u4e24\u4e2a\u80fd\u529b\u7ed9\u7cfb\u7edf\u667a\u80fd\u4f53&#xff1a;\u70b9\u5355&#xff08;orderMilkTea&#xff09;\u548c\u67e5\u53d6\u9910\u8fdb\u5ea6&#xff08;queryQueue&#xff09;\u3002<\/p>\n<h4>\u5165\u53e3\u811a\u672c&#xff1a;\u4e00\u4e2a\u53ea\u505a&#034;\u7ffb\u8bd1&#034;\u7684\u7c7b<\/h4>\n<p>\u5165\u53e3\u811a\u672c\u4ee5 export default \u5bfc\u51fa\u4e00\u4e2a\u7c7b&#xff0c;\u7c7b\u91cc\u6bcf\u4e2a public async \u65b9\u6cd5\u5bf9\u5e94 SKILL.md \u58f0\u660e\u7684\u4e00\u9879\u80fd\u529b&#xff0c;\u65b9\u6cd5\u540d\u5fc5\u987b\u4e0e\u5951\u7ea6\u91cc\u7684 functionName \u4e25\u683c\u4e00\u81f4&#xff0c;\u7b2c\u4e00\u4e2a\u53c2\u6570\u56fa\u5b9a\u662f ArkTSScriptInfo&#xff08;\u5b98\u65b9\u7ea6\u5b9a&#xff09;\u3002V\u54e5\u7684\u5199\u6cd5&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ MilkteaSkill.ets \u2014\u2014 \u8584\u9002\u914d\u5c42&#xff1a;\u53ea\u7ffb\u8bd1\u53c2\u6570&#xff0c;\u4e0d\u88c5\u4e1a\u52a1<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> scriptManager <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;&#064;kit.AbilityKit&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> BusinessError <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;&#064;kit.BasicServicesKit&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">\/\/ \u5e94\u7528\u65e2\u6709\u4e1a\u52a1\u6a21\u5757&#xff0c;Skill \u5316\u524d\u540e\u96f6\u6539\u52a8<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> MilkTeaService<span class=\"token punctuation\">,<\/span> OrderResult <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;..\/..\/..\/src\/main\/ets\/service\/MilkTeaService&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">export<\/span> <span class=\"token keyword\">default<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">MilkteaSkill<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>  <span class=\"token comment\">\/\/ \u70b9\u5355&#xff1a;\u54c1\u540d\u5fc5\u586b&#xff0c;\u7cd6\u5ea6\u3001\u51b0\u91cf\u53ef\u9009&#xff08;\u4e0e SKILL.md \u7684 args Schema \u5bf9\u5e94&#xff09;<\/span><br \/>\n  <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">async<\/span> <span class=\"token function\">orderMilkTea<\/span><span class=\"token punctuation\">(<\/span>info<span class=\"token operator\">:<\/span> scriptManager<span class=\"token punctuation\">.<\/span>ArkTSScriptInfo<span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&#8230;<\/span>argv<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span><span class=\"token keyword\">void<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">const<\/span> drink<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span> <span class=\"token operator\">&#061;<\/span> argv<span class=\"token punctuation\">.<\/span>length <span class=\"token operator\">&gt;<\/span> <span class=\"token number\">0<\/span> <span class=\"token operator\">?<\/span> argv<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">trim<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">const<\/span> sugar<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span> <span class=\"token operator\">&#061;<\/span> argv<span class=\"token punctuation\">.<\/span>length <span class=\"token operator\">&gt;<\/span> <span class=\"token number\">1<\/span> <span class=\"token operator\">?<\/span> argv<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">trim<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;\u4e94\u5206\u751c&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">const<\/span> ice<span class=\"token operator\">:<\/span> <span class=\"token builtin\">string<\/span> <span class=\"token operator\">&#061;<\/span> argv<span class=\"token punctuation\">.<\/span>length <span class=\"token operator\">&gt;<\/span> <span class=\"token number\">2<\/span> <span class=\"token operator\">?<\/span> argv<span class=\"token punctuation\">[<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">trim<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;\u5c11\u51b0&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u2460 \u524d\u7f6e\u6821\u9a8c&#xff1a;\u54c1\u540d\u4e3a\u7a7a\u76f4\u63a5\u8d70\u53c2\u6570\u9519\u8bef\u5206\u652f&#xff0c;\u4e0d\u8fdb\u4e1a\u52a1<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>drink<span class=\"token punctuation\">.<\/span>length <span class=\"token operator\">&#061;&#061;&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token keyword\">await<\/span> <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">report<\/span><span class=\"token punctuation\">(<\/span>info<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        code<span class=\"token operator\">:<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        result<span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n          type<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;result&#039;<\/span><span class=\"token punctuation\">,<\/span> status<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;failed&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          errCode<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;ERR_INVALID_PARAMS&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          errMsg<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;drink name is empty&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          suggestion<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;V\u54e5\u6ca1\u542c\u6e05\u54c1\u540d&#xff0c;\u4f60\u60f3\u559d\u54ea\u676f&#xff1f;&#039;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token keyword\">return<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u2461 \u8c03\u65e2\u6709\u4e1a\u52a1&#xff1a;\u5165\u53e3\u811a\u672c\u4e0d\u5199\u4e1a\u52a1\u903b\u8f91<\/span><br \/>\n    <span class=\"token keyword\">try<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token keyword\">const<\/span> order<span class=\"token operator\">:<\/span> OrderResult <span class=\"token operator\">&#061;<\/span> MilkTeaService<span class=\"token punctuation\">.<\/span><span class=\"token function\">createOrder<\/span><span class=\"token punctuation\">(<\/span>drink<span class=\"token punctuation\">,<\/span> sugar<span class=\"token punctuation\">,<\/span> ice<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u2462 \u6309\u5951\u7ea6\u628a\u4e1a\u52a1\u7ed3\u679c\u88c5\u8fdb\u56de\u5305<\/span><br \/>\n      <span class=\"token keyword\">await<\/span> <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">report<\/span><span class=\"token punctuation\">(<\/span>info<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        code<span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        result<span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n          type<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;result&#039;<\/span><span class=\"token punctuation\">,<\/span> status<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;success&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          data<span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            orderNo<span class=\"token operator\">:<\/span> order<span class=\"token punctuation\">.<\/span>orderNo<span class=\"token punctuation\">,<\/span><br \/>\n            pickupCode<span class=\"token operator\">:<\/span> order<span class=\"token punctuation\">.<\/span>pickupCode<span class=\"token punctuation\">,<\/span><br \/>\n            etaMinutes<span class=\"token operator\">:<\/span> order<span class=\"token punctuation\">.<\/span>etaMinutes<br \/>\n          <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">catch<\/span> <span class=\"token punctuation\">(<\/span>e<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token keyword\">const<\/span> err <span class=\"token operator\">&#061;<\/span> e <span class=\"token keyword\">as<\/span> BusinessError<span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u4e1a\u52a1\u5f02\u5e38\u7edf\u4e00\u6620\u5c04\u5230\u5185\u90e8\u9519\u8bef\u5206\u652f<\/span><br \/>\n      <span class=\"token keyword\">await<\/span> <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">report<\/span><span class=\"token punctuation\">(<\/span>info<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        code<span class=\"token operator\">:<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        result<span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n          type<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;result&#039;<\/span><span class=\"token punctuation\">,<\/span> status<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;failed&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          errCode<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;ERR_INTERNAL&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          errMsg<span class=\"token operator\">:<\/span> err<span class=\"token punctuation\">.<\/span>message<span class=\"token punctuation\">,<\/span><br \/>\n          suggestion<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;\u4e0b\u5355\u5931\u8d25\u4e86&#xff0c;\u7a0d\u540e\u518d\u8bd5\u8bd5&#039;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><\/p>\n<p>  <span class=\"token comment\">\/\/ \u67e5\u8be2\u53d6\u9910\u8fdb\u5ea6&#xff08;\u5951\u7ea6\u7ed3\u6784\u540c\u7406&#xff0c;\u7565&#xff09;<\/span><\/p>\n<p>  <span class=\"token comment\">\/\/ \u2463 \u552f\u4e00\u56de\u5305\u51fa\u53e3&#xff1a;\u53ea\u7ba1\u4e0a\u62a5&#xff0c;\u4e0d\u53c2\u4e0e\u7ed3\u679c\u6784\u9020<\/span><br \/>\n  <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">async<\/span> <span class=\"token function\">report<\/span><span class=\"token punctuation\">(<\/span>info<span class=\"token operator\">:<\/span> scriptManager<span class=\"token punctuation\">.<\/span>ArkTSScriptInfo<span class=\"token punctuation\">,<\/span><br \/>\n                       result<span class=\"token operator\">:<\/span> scriptManager<span class=\"token punctuation\">.<\/span>ExecuteResult<span class=\"token punctuation\">)<\/span><span class=\"token operator\">:<\/span> <span class=\"token builtin\">Promise<\/span><span class=\"token operator\">&lt;<\/span><span class=\"token keyword\">void<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">try<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token keyword\">await<\/span> scriptManager<span class=\"token punctuation\">.<\/span><span class=\"token function\">completeArkTSScriptInApp<\/span><span class=\"token punctuation\">(<\/span>info<span class=\"token punctuation\">.<\/span>context<span class=\"token punctuation\">,<\/span> info<span class=\"token punctuation\">.<\/span>requestCode<span class=\"token punctuation\">,<\/span> result<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">catch<\/span> <span class=\"token punctuation\">(<\/span>e<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token keyword\">const<\/span> err <span class=\"token operator\">&#061;<\/span> e <span class=\"token keyword\">as<\/span> BusinessError<span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token builtin\">console<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">error<\/span><span class=\"token punctuation\">(<\/span><span class=\"token template-string\"><span class=\"token template-punctuation string\">&#096;<\/span><span class=\"token string\">completeArkTSScriptInApp failed, code: <\/span><span class=\"token interpolation\"><span class=\"token interpolation-punctuation punctuation\">${<\/span>err<span class=\"token punctuation\">.<\/span>code<span class=\"token interpolation-punctuation punctuation\">}<\/span><\/span><span class=\"token string\">, message: <\/span><span class=\"token interpolation\"><span class=\"token interpolation-punctuation punctuation\">${<\/span>err<span class=\"token punctuation\">.<\/span>message<span class=\"token interpolation-punctuation punctuation\">}<\/span><\/span><span class=\"token template-punctuation string\">&#096;<\/span><\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u56db\u4e2a\u73af\u8282\u5bf9\u5e94\u5b98\u65b9\u89c4\u5b9a\u7684\u56db\u6b65&#xff1a;\u89e3\u6790\u6821\u9a8c\u5165\u53c2 \u2192 \u8c03\u65e2\u6709\u4e1a\u52a1 \u2192 \u6309\u5951\u7ea6\u6784\u9020 ExecuteResult \u2192 \u7ecf completeArkTSScriptInApp \u56de\u4f20\u3002\u6838\u5fc3\u63a5\u53e3\u5c31\u4e09\u4e2a&#xff1a;ExecuteResult&#xff08;\u811a\u672c\u6267\u884c\u7ed3\u679c&#xff09;\u3001ArkTSScriptInfo&#xff08;\u7cfb\u7edf\u4f20\u8fdb\u6765\u7684\u811a\u672c\u4e0a\u4e0b\u6587&#xff09;\u3001completeArkTSScriptInApp&#xff08;\u4e0a\u62a5\u7ed3\u679c&#xff09;&#xff0c;\u90fd\u6302\u5728 &#064;ohos.app.ability.scriptManager \u4e0b&#xff08;\u63a5\u53e3\u53c2\u8003&#xff09;\u3002<\/p>\n<p>V\u54e5\u6700\u60f3\u5f3a\u8c03\u7684\u662f\u90a3\u53e5\u6ce8\u91ca\u2014\u2014\u552f\u4e00\u7684\u56de\u5305\u51fa\u53e3\u3002\u5b98\u65b9\u793a\u4f8b\u628a completeArkTSScriptInApp \u6536\u8fdb\u4e00\u4e2a report \u79c1\u6709\u65b9\u6cd5&#xff0c;V\u54e5\u7167\u505a\u4e86&#xff0c;\u7406\u7531\u5f88\u5b9e\u9645&#xff1a;\u56de\u5305\u70b9\u4e00\u6563&#xff0c;\u67d0\u4e2a\u5206\u652f\u5fd8\u4e86\u62a5\u3001\u62a5\u9519\u4e86\u6ca1\u4eba\u77e5\u9053&#xff0c;\u7cfb\u7edf\u667a\u80fd\u4f53\u53ea\u4f1a\u89c9\u5f97&#034;\u8fd9\u4e2a Skill \u5931\u8054\u4e86&#034;&#xff0c;\u4e0b\u6b21\u76f4\u63a5\u4e0d\u8c03\u4f60\u3002<\/p>\n<h4>SKILL.md&#xff1a;\u7cfb\u7edf\u667a\u80fd\u4f53\u7684&#034;\u62db\u8058\u7b80\u5386&#034;<\/h4>\n<p>SKILL.md \u5206\u4e09\u6bb5&#xff1a;\u5143\u6570\u636e\u3001\u89e6\u53d1\u573a\u666f\u3001\u80fd\u529b\u5951\u7ea6&#xff08;\u5b98\u65b9\u5f00\u53d1\u6307\u5bfc \u00b7 \u7b2c 4 \u8282&#xff09;\u3002V\u54e5\u6309\u81ea\u5df1\u7684\u793a\u4f8b\u5199\u4e86\u4e00\u4efd&#xff1a;<\/p>\n<p>&#8212;<br \/>\nname: vge-org-milktea-assistant<br \/>\ndescription: \u63d0\u4f9b\u5976\u8336\u70b9\u5355\u4e0e\u53d6\u9910\u8fdb\u5ea6\u67e5\u8be2\u80fd\u529b&#xff0c;\u54cd\u5e94&#034;\u70b9\u4e00\u676f\u5976\u8336&#034;\u3001&#034;\u5e2e\u6211\u70b9\u5355&#034;\u3001<br \/>\n  &#034;\u8fd8\u6709\u591a\u4e45\u80fd\u53d6\u9910&#034;\u7b49\u6307\u4ee4<br \/>\n&#8212;<\/p>\n<p>## \u89e6\u53d1\u573a\u666f<\/p>\n<p>\u5f53\u7528\u6237\u660e\u786e\u8868\u8fbe**\u70b9\u5976\u8336**\u6216**\u67e5\u8be2\u53d6\u9910\u8fdb\u5ea6**\u65f6\u8c03\u7528\u3002\u5178\u578b\u8bdd\u672f&#xff1a;<br \/>\n&#8211; &#034;\u70b9\u4e00\u676f\u829d\u58eb\u8461\u8404&#xff0c;\u4e94\u5206\u751c\u5c11\u51b0&#034;<br \/>\n&#8211; &#034;\u5e2e\u6211\u70b9\u5355&#xff0c;\u8981\u4e09\u5206\u751c\u7684\u73cd\u73e0\u5976\u8336&#034;<br \/>\n&#8211; &#034;\u6211\u7684\u5976\u8336\u505a\u5230\u54ea\u4e86&#034;\u3001&#034;\u8fd8\u8981\u7b49\u591a\u4e45&#034;<\/p>\n<p>\u4e0d\u8c03\u7528\u7684\u60c5\u51b5&#xff1a;<br \/>\n&#8211; \u7528\u6237\u8bf4&#034;\u9644\u8fd1\u7684\u5976\u8336\u5e97\u6709\u54ea\u4e9b&#034;\u2014\u2014\u610f\u56fe\u662f\u641c\u7d22\u5e97\u94fa&#xff0c;\u672c Skill \u53ea\u7ba1\u4e0b\u5355\u548c\u8fdb\u5ea6\u3002<br \/>\n&#8211; \u7528\u6237\u8bf4&#034;\u8fd9\u676f\u5976\u8336\u591a\u5c11\u94b1&#034;\u2014\u2014\u610f\u56fe\u662f\u67e5\u4ef7\u683c&#xff0c;\u5e94\u8d70\u5546\u54c1\u67e5\u8be2\u80fd\u529b\u3002<br \/>\n&#8211; \u7528\u6237\u8bf4&#034;\u53d6\u6d88\u8ba2\u5355&#034;\u2014\u2014\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301&#xff0c;\u907f\u514d\u8bef\u89e6\u53d1\u3002<\/p>\n<p>### \u573a\u666f1&#xff1a;\u70b9\u5355&#xff08;orderMilkTea&#xff09;<\/p>\n<p>\u6267\u884c\u53c2\u6570&#xff1a;<br \/>\nexec-cli(command: ohos-arkTSScript &#8211;skillName &#039;vge-org-milktea-assistant&#039;<br \/>\n  &#8211;scriptPath &#039;scripts\/MilkteaSkill.ets&#039; &#8211;functionName &#039;orderMilkTea&#039;<br \/>\n  &#8211;args &#039;{ &#034;arg1&#034;: &#034;\u829d\u58eb\u8461\u8404&#034;, &#034;arg2&#034;: &#034;\u4e94\u5206\u751c&#034;, &#034;arg3&#034;: &#034;\u5c11\u51b0&#034; }&#039;)<\/p>\n<p>&#xff08;JSON Schema&#xff1a;arg1 \u54c1\u540d\u4e3a\u5fc5\u586b&#xff0c;arg2 \u7cd6\u5ea6\u3001arg3 \u51b0\u91cf\u4e3a\u53ef\u9009\u679a\u4e3e&#xff0c;\u6b64\u5904\u7565&#xff09;<\/p>\n<p>\u6267\u884c\u8fd4\u56de\u503c&#xff1a;<br \/>\n&#xff08;\u5148\u5217\u6210\u529f\/\u53c2\u6570\u975e\u6cd5\/\u95e8\u5e97\u672a\u547d\u4e2d\/\u5185\u90e8\u9519\u8bef\u56db\u7ec4\u793a\u4f8b&#xff0c;\u518d\u7528 oneOf \u6536\u53e3&#xff0c;\u6b64\u5904\u7565&#xff09;<\/p>\n<p>\u4e09\u6bb5\u5404\u6709\u5404\u7684\u547d\u95e8&#xff1a;<\/p>\n<ul>\n<li>\u5143\u6570\u636e&#xff1a;name \u4e09\u5904\u4e00\u81f4\u4e0d\u8d58\u8ff0&#xff1b;description \u662f\u7cfb\u7edf\u505a\u521d\u6b21\u7b5b\u9009\u7684\u4f9d\u636e\u2014\u2014\u5199&#034;\u5976\u8336\u76f8\u5173\u670d\u52a1&#034;\u8fd9\u79cd\u7cca\u6d82\u8bdd&#xff0c;\u7b5b\u9009\u8fd9\u5173\u5c31\u8fc7\u4e0d\u53bb\u3002<\/li>\n<li>\u89e6\u53d1\u573a\u666f&#xff1a;\u5b98\u65b9\u660e\u786e\u5efa\u8bae\u9664\u4e86\u5217\u5178\u578b\u8bdd\u672f&#xff0c;\u8fd8\u8981\u5199**\u201c\u4e0d\u8c03\u7528\u7684\u60c5\u51b5\u201d**\u6765\u5212\u6e05\u80fd\u529b\u8fb9\u754c\u3002V\u54e5\u7684\u7406\u89e3&#xff1a;\u4e0d\u5199\u8fb9\u754c&#xff0c;\u76f8\u90bb\u610f\u56fe\u5168\u7b97\u4f60\u5934\u4e0a&#xff0c;\u8bef\u89e6\u53d1\u4e00\u591a&#xff0c;\u7528\u6237\u548c\u5c0f\u827a\u5bf9\u4f60\u7684\u4fe1\u4efb\u4e00\u8d77\u6389\u3002<\/li>\n<li>\u80fd\u529b\u5951\u7ea6&#xff1a;\u6bcf\u9879\u80fd\u529b\u4e00\u4e2a exec-cli \u8c03\u7528\u793a\u4f8b\u52a0 JSON Schema\u3002anyOf&#xff08;\u4e8c\u9009\u4e00\u5fc5\u586b&#xff09;\u3001oneOf&#xff08;\u591a\u79cd\u56de\u5305\u5206\u652f\u4e92\u65a5&#xff09;\u90fd\u662f\u6807\u51c6 JSON Schema \u73a9\u6cd5&#xff0c;\u8ddf\u540e\u7aef\u540c\u5b66\u5bf9\u8fc7\u63a5\u53e3\u89c4\u8303\u7684\u4f1a\u6709\u719f\u6089\u611f\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u56db\u3001\u5951\u7ea6\u8d28\u91cf &#061; \u5206\u53d1\u8d28\u91cf&#xff1a;V\u54e5\u7684\u4e09\u6761\u5224\u65ad<\/h3>\n<p>\u5199\u5b8c\u4ee3\u7801\u53ea\u662f\u53ca\u683c\u7ebf&#xff0c;Skill \u5316\u771f\u6b63\u7684\u529f\u592b\u5728\u5951\u7ea6\u4e0a\u3002V\u54e5\u7ed9\u4e09\u6761\u5224\u65ad&#xff1a;<\/p>\n<p>\u2460 \u5178\u578b\u8bdd\u672f\u8981\u8986\u76d6&#034;\u540c\u4e49\u6539\u5199&#034;&#xff0c;\u4e0d\u662f\u7f57\u5217\u529f\u80fd\u3002 \u201c\u70b9\u4e00\u676f\u201d\u201c\u6765\u4e00\u676f\u201d&#034;\u5e2e\u6211\u5e26\u4e00\u676f&#034;\u662f\u4e09\u4e2a\u8bf4\u6cd5\u4e00\u4e2a\u610f\u56fe&#xff0c;\u5168\u5199\u8fdb\u5178\u578b\u8bdd\u672f&#xff0c;\u5339\u914d\u9762\u624d\u591f\u5bbd\u3002\u53ea\u5199\u529f\u80fd\u540d\u7684\u5951\u7ea6&#xff0c;\u8ddf\u7b80\u5386\u53ea\u5199\u5c97\u4f4d\u540d\u4e0d\u5199\u7ecf\u5386\u7684\u5019\u9009\u4eba\u4e00\u6837\u2014\u2014\u4e0d\u662f\u4e0d\u80fd\u5e72&#xff0c;\u662f\u6ca1\u4eba\u6562\u8c03\u3002<\/p>\n<p>\u2461 \u8fb9\u754c\u6761\u6b3e\u662f\u9632\u8bef\u89e6\u53d1\u7684\u4fdd\u9669\u4e1d\u3002 \u5b98\u65b9\u5efa\u8bae\u6bcf\u6761\u5178\u578b\u8bdd\u672f\u914d&#034;\u4e0d\u8c03\u7528\u7684\u60c5\u51b5&#034;&#xff0c;V\u54e5\u628a\u5b83\u5f53\u6d4b\u8bd5\u7528\u4f8b\u6765\u5199&#xff1a;\u628a\u5bb9\u6613\u6df7\u6dc6\u7684\u76f8\u90bb\u610f\u56fe\u4e00\u6761\u6761\u5217\u51fa\u6765\u3001\u660e\u786e\u8e22\u51fa\u53bb\u3002\u8bef\u89e6\u53d1\u4e00\u6b21&#xff0c;\u7528\u6237\u8bf4&#034;\u8fd9 App \u62a2\u7b54&#034;&#xff1b;\u6f0f\u89e6\u53d1\u4e00\u6b21&#xff0c;\u7528\u6237\u8bf4&#034;\u8fd9 App \u5931\u806a&#034;\u2014\u2014\u4f46\u8bef\u89e6\u53d1\u7684\u4f24\u5bb3\u66f4\u5927&#xff0c;\u56e0\u4e3a\u5b83\u900f\u652f\u7684\u662f\u5bf9\u6574\u4e2a\u5165\u53e3\u7684\u4fe1\u4efb\u3002<\/p>\n<p>\u2462 suggestion \u5b57\u6bb5\u8981\u5199\u4eba\u8bdd\u3002 \u56de\u5305\u91cc\u7684 suggestion \u662f\u76f4\u63a5\u7ed9\u7528\u6237\u770b\u7684\u3002V\u54e5\u89c1\u8fc7\u628a\u5185\u90e8\u5f02\u5e38\u7801\u76f4\u63a5\u603c\u8fdb\u53bb\u7684\u5199\u6cd5&#xff0c;\u7528\u6237\u770b\u5230\u7684\u56de\u590d\u662f&#034;ERR_TIMEOUT_504&#034;\u2014\u2014\u8fd9\u4e0d\u53eb\u5931\u8d25\u63d0\u793a&#xff0c;\u8fd9\u53eb\u529d\u9000\u3002\u9519\u8bef\u5206\u652f\u7684 suggestion \u6309&#034;\u7528\u6237\u4e0b\u4e00\u6b65\u80fd\u5e72\u4ec0\u4e48&#034;\u6765\u5199\u3002<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u4e0a\u7ebf\u524d\u81ea\u68c0\u6e05\u5355<\/h3>\n<p>V\u54e5\u628a\u6574\u6761\u94fe\u8def\u538b\u6210\u4e00\u5f20\u81ea\u68c0\u8868&#xff0c;\u516d\u9879\u5168\u52fe\u518d\u63d0\u4ea4&#xff1a;<\/p>\n<table>\n<tr>#\u68c0\u67e5\u9879\u6302\u4e86\u4f1a\u600e\u6837<\/tr>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>Stage \u6a21\u578b&#xff1f;FA \u6a21\u578b\u76f4\u63a5\u4e0d\u53ef\u7528&#xff0c;\u5148\u8fc1\u79fb<\/td>\n<td>\u7f16\u8bd1\u671f\u5c31\u8fc7\u4e0d\u53bb<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u76ee\u5f55\u540d &#061; SKILL.md name &#061; skillProfiles[].name&#xff1f;<\/td>\n<td>\u6ce8\u518c\u5931\u8d25\u6216\u5339\u914d\u4e0d\u4e0a&#xff0c;\u65e0\u62a5\u9519<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u65b9\u6cd5\u540d\u4e0e\u5951\u7ea6 functionName \u4e25\u683c\u4e00\u81f4&#xff1f;\u7b7e\u540d\u9996\u53c2 ArkTSScriptInfo&#xff1f;<\/td>\n<td>\u8c03\u7528\u9759\u9ed8\u5931\u8d25<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u6bcf\u4e2a\u80fd\u529b\u65b9\u6cd5\u90fd\u6709\u56de\u5305&#xff1f;\u6240\u6709\u5206\u652f\u90fd\u8d70 report \u51fa\u53e3&#xff1f;<\/td>\n<td>\u7cfb\u7edf\u4fa7&#034;Skill \u5931\u8054&#034;&#xff0c;\u88ab\u964d\u6743<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>exec-cli \u7684 skillName\/scriptPath\/functionName \u4e0e\u5de5\u7a0b\u4e00\u81f4&#xff1f;<\/td>\n<td>\u5339\u914d\u4e0a\u4e86\u4e5f\u8c03\u4e0d\u901a<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u89e6\u53d1\u573a\u666f\u542b&#034;\u4e0d\u8c03\u7528\u7684\u60c5\u51b5&#034;&#xff1f;suggestion \u662f\u4eba\u8bdd&#xff1f;<\/td>\n<td>\u8bef\u89e6\u53d1 \/ \u56de\u590d\u529d\u9000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5f00\u53d1\u5b8c\u6210\u540e\u8d70\u5b98\u65b9\u7684\u771f\u673a\u6d4b\u8bd5\u6d41\u7a0b\u8c03\u8bd5&#xff08;\u771f\u673a\u6d4b\u8bd5&#xff09;&#xff0c;\u522b\u53ea\u8dd1\u6a21\u62df\u5668\u3002<\/p>\n<hr \/>\n<h3>\u516d\u3001V\u54e5\u7684\u6536\u5c3e\u5224\u65ad&#xff1a;\u7ea2\u5229\u7a97\u53e3\u5c31\u662f\u73b0\u5728<\/h3>\n<p>\u56de\u770b\u6574\u5957\u673a\u5236&#xff0c;V\u54e5\u7684\u603b\u7ed3\u662f&#xff1a;Skill \u5316\u628a&#034;\u5e94\u7528\u5206\u53d1&#034;\u7684\u7c92\u5ea6\u4ece App \u964d\u5230\u4e86\u529f\u80fd\u3002\u4ee5\u524d\u7528\u6237\u88c5\u4f60\u7684\u5e94\u7528\u624d\u80fd\u7528\u4f60\u7684\u529f\u80fd&#xff1b;\u73b0\u5728\u4f60\u7684\u529f\u80fd\u76f4\u63a5\u8fdb\u610f\u56fe\u5206\u53d1\u6c60&#xff0c;\u88ab\u7cfb\u7edf\u667a\u80fd\u4f53\u6309\u9700\u8c03\u7528\u3002\u5165\u53e3\u524d\u7f6e\u4e86&#xff0c;\u9732\u51fa\u53d8\u77ed\u4e86&#xff0c;\u957f\u5c3e\u529f\u80fd\u7b2c\u4e00\u6b21\u6709\u673a\u4f1a\u88ab&#034;\u8bf4&#034;\u51fa\u6765\u3002<\/p>\n<p>\u4ee3\u4ef7\u662f\u65b0\u589e\u4e86\u4e00\u79cd\u5de5\u7a0b\u8d44\u4ea7\u2014\u2014\u5951\u7ea6\u6587\u4ef6\u3002\u5b83\u4e0d\u662f\u5199\u5b8c\u5c31\u5b8c\u7684&#xff1a;\u8bdd\u672f\u8981\u968f\u7528\u6237\u8868\u8fbe\u6f14\u8fdb\u3001\u8fb9\u754c\u8981\u968f\u80fd\u529b\u6269\u5c55\u4fee\u8ba2\u3002V\u54e5\u628a\u5b83\u7c7b\u6bd4\u6210&#034;\u7ed9\u667a\u80fd\u4f53\u7ef4\u62a4\u7684 API \u6587\u6863&#034;&#xff0c;\u7248\u672c\u5316\u7ba1\u8d77\u6765&#xff0c;\u548c\u4ee3\u7801\u4e00\u4e2a\u5f85\u9047\u3002<\/p>\n<p>7.0 \u521a\u53d1&#xff0c;\u610f\u56fe\u5206\u53d1\u6c60\u91cc\u5360\u4f4d\u7684\u4eba\u8fd8\u4e0d\u591a\u3002\u7b2c\u4e00\u671f\u7684\u4e0a\u67b6\u5ba1\u6838\u90a3\u7bc7V\u54e5\u5199\u8fc7\u4e00\u53e5\u8bdd&#xff1a;\u5408\u89c4\u662f\u95e8\u7968\u3002\u8fd9\u4e00\u671f\u8865\u4e0a\u540e\u534a\u53e5\u2014\u2014Skill \u5316\u662f\u65b0\u7684\u95e8\u7968&#xff0c;\u95e8\u5f00\u7740\u7684\u7a97\u53e3\u4e0d\u4f1a\u4e00\u76f4\u5f00\u7740\u3002<\/p>\n<hr \/>\n<h3>\u53c2\u8003\u4e0e\u51fa\u5904<\/h3>\n<p>\u672c\u6587\u6d89\u53ca\u7684\u673a\u5236\u3001\u63a5\u53e3\u4e0e\u914d\u7f6e\u9879\u6765\u81ea\u4ee5\u4e0b\u5b98\u65b9\u6587\u6863&#xff1a;<\/p>\n<ul>\n<li>\u57fa\u4e8eArkTS\u811a\u672c\u7684\u5e94\u7528Skill\u5f00\u53d1\u6307\u5bfc&#xff08;Ability Kit&#xff09;<\/li>\n<li>&#064;ohos.app.ability.scriptManager \u63a5\u53e3\u53c2\u8003<\/li>\n<li>Skill \u771f\u673a\u6d4b\u8bd5<\/li>\n<li>HarmonyOS \u65b0\u80fd\u529b\u4e00\u89c8&#xff08;7 \/ API 26&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<p>\u6700\u540e\u4e00\u53e5&#xff1a;\u56fe\u6807\u65f6\u4ee3\u4f60\u7684\u529f\u80fd\u5728\u7b49\u4eba\u70b9&#xff0c;\u610f\u56fe\u65f6\u4ee3\u4f60\u7684\u529f\u80fd\u5728\u88ab\u70b9\u540d\u2014\u2014\u628a SKILL.md \u5f53\u7b80\u5386\u5199&#xff0c;\u628a\u8584\u811a\u672c\u5f53\u7ffb\u8bd1\u5199&#xff0c;\u5c0f\u827a\u5ff5\u5230\u540d\u5b57\u7684\u90a3\u4e00\u523b&#xff0c;\u5c31\u662f\u4f60\u957f\u5c3e\u529f\u80fd\u7ffb\u8eab\u7684\u90a3\u4e00\u5929\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u57fa\u4e8e HarmonyOS 7&#xff08;API 26&#xff09;\u7684\u300a\u57fa\u4e8eArkTS\u811a\u672c\u7684\u5e94\u7528Skill\u5f00\u53d1\u6307\u5bfc\u300b\u4e0e\u5b98\u65b9\u65b0\u80fd\u529b\u4e00\u89c8\u6574\u7406\u3002\u6587\u4e2d\u4ee3\u7801\u662f\u4e3a\u8bf4\u660e\u95ee\u9898\u81ea\u5199\u7684\u5b8c\u6574\u793a\u4f8b&#xff0c;\u4e0d\u662f\u5b98\u65b9\u793a\u4f8b\u7684\u642c\u8fd0&#xff1b;API \u540d\u79f0\u3001\u6807\u7b7e\u4e0e\u7248\u672c\u53f7\u7b49\u4e8b\u5b9e\u6027\u4fe1\u606f\u5747\u6807\u6ce8\u5b98\u65b9\u51fa\u5904&#xff1b;\u6d89\u53ca\u771f\u673a\u8868\u73b0\u7684\u90e8\u5206\u5df2\u660e\u786e\u6807\u6ce8&#xff0c;\u672a\u505a\u4efb\u4f55\u5b9e\u6d4b\u6570\u636e\u7f16\u9020\u3002 \u5f15\u5b50&#xff1a;\u56fe\u6807\u662f\u4e00\u6247\u95e8&#xff0c;\u4f46\u95e8\u4e0d\u4f1a\u81ea\u5df1\u5f00<br \/>\nV\u54e5\u8ba4\u8bc6\u4e00\u4e2a\u505a\u672c\u5730\u9910\u996e\u5e94\u7528\u7684\u670b\u53cb&#xff0c;<\/p>\n","protected":false},"author":2,"featured_media":106438,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11815,280,152,86],"topic":[],"class_list":["post-106440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-11815","tag-harmonyos","tag-pytorch","tag-86"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u5171\u521b\u7a3f\u4e8b\u8282\u3011HarmonyOS 7 \u5e94\u7528 Skill \u5316\u5b9e\u6218\uff1a\u4ece\u201c\u88ab\u6253\u5f00\u201c\u5230\u201c\u88ab\u8c03\u7528\u201c\uff0c\u628a\u529f\u80fd\u9012\u8fdb\u7cfb\u7edf\u610f\u56fe\u5206\u53d1\u6c60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/106440.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u5171\u521b\u7a3f\u4e8b\u8282\u3011HarmonyOS 7 \u5e94\u7528 Skill \u5316\u5b9e\u6218\uff1a\u4ece\u201c\u88ab\u6253\u5f00\u201c\u5230\u201c\u88ab\u8c03\u7528\u201c\uff0c\u628a\u529f\u80fd\u9012\u8fdb\u7cfb\u7edf\u610f\u56fe\u5206\u53d1\u6c60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u57fa\u4e8e HarmonyOS 7&#xff08;API 26&#xff09;\u7684\u300a\u57fa\u4e8eArkTS\u811a\u672c\u7684\u5e94\u7528Skill\u5f00\u53d1\u6307\u5bfc\u300b\u4e0e\u5b98\u65b9\u65b0\u80fd\u529b\u4e00\u89c8\u6574\u7406\u3002\u6587\u4e2d\u4ee3\u7801\u662f\u4e3a\u8bf4\u660e\u95ee\u9898\u81ea\u5199\u7684\u5b8c\u6574\u793a\u4f8b&#xff0c;\u4e0d\u662f\u5b98\u65b9\u793a\u4f8b\u7684\u642c\u8fd0&#xff1b;API \u540d\u79f0\u3001\u6807\u7b7e\u4e0e\u7248\u672c\u53f7\u7b49\u4e8b\u5b9e\u6027\u4fe1\u606f\u5747\u6807\u6ce8\u5b98\u65b9\u51fa\u5904&#xff1b;\u6d89\u53ca\u771f\u673a\u8868\u73b0\u7684\u90e8\u5206\u5df2\u660e\u786e\u6807\u6ce8&#xff0c;\u672a\u505a\u4efb\u4f55\u5b9e\u6d4b\u6570\u636e\u7f16\u9020\u3002 \u5f15\u5b50&#xff1a;\u56fe\u6807\u662f\u4e00\u6247\u95e8&#xff0c;\u4f46\u95e8\u4e0d\u4f1a\u81ea\u5df1\u5f00 V\u54e5\u8ba4\u8bc6\u4e00\u4e2a\u505a\u672c\u5730\u9910\u996e\u5e94\u7528\u7684\u670b\u53cb&#xff0c;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/106440.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-17T03:56:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260917035639-6aab64f7ab7d8.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/106440.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/106440.html\",\"name\":\"\u3010\u5171\u521b\u7a3f\u4e8b\u8282\u3011HarmonyOS 7 \u5e94\u7528 Skill \u5316\u5b9e\u6218\uff1a\u4ece\u201c\u88ab\u6253\u5f00\u201c\u5230\u201c\u88ab\u8c03\u7528\u201c\uff0c\u628a\u529f\u80fd\u9012\u8fdb\u7cfb\u7edf\u610f\u56fe\u5206\u53d1\u6c60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-17T03:56:41+00:00\",\"dateModified\":\"2026-09-17T03:56:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/106440.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/106440.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/106440.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u5171\u521b\u7a3f\u4e8b\u8282\u3011HarmonyOS 7 \u5e94\u7528 Skill \u5316\u5b9e\u6218\uff1a\u4ece\u201c\u88ab\u6253\u5f00\u201c\u5230\u201c\u88ab\u8c03\u7528\u201c\uff0c\u628a\u529f\u80fd\u9012\u8fdb\u7cfb\u7edf\u610f\u56fe\u5206\u53d1\u6c60\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u5171\u521b\u7a3f\u4e8b\u8282\u3011HarmonyOS 7 \u5e94\u7528 Skill \u5316\u5b9e\u6218\uff1a\u4ece\u201c\u88ab\u6253\u5f00\u201c\u5230\u201c\u88ab\u8c03\u7528\u201c\uff0c\u628a\u529f\u80fd\u9012\u8fdb\u7cfb\u7edf\u610f\u56fe\u5206\u53d1\u6c60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/106440.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u5171\u521b\u7a3f\u4e8b\u8282\u3011HarmonyOS 7 \u5e94\u7528 Skill \u5316\u5b9e\u6218\uff1a\u4ece\u201c\u88ab\u6253\u5f00\u201c\u5230\u201c\u88ab\u8c03\u7528\u201c\uff0c\u628a\u529f\u80fd\u9012\u8fdb\u7cfb\u7edf\u610f\u56fe\u5206\u53d1\u6c60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u6587\u57fa\u4e8e HarmonyOS 7&#xff08;API 26&#xff09;\u7684\u300a\u57fa\u4e8eArkTS\u811a\u672c\u7684\u5e94\u7528Skill\u5f00\u53d1\u6307\u5bfc\u300b\u4e0e\u5b98\u65b9\u65b0\u80fd\u529b\u4e00\u89c8\u6574\u7406\u3002\u6587\u4e2d\u4ee3\u7801\u662f\u4e3a\u8bf4\u660e\u95ee\u9898\u81ea\u5199\u7684\u5b8c\u6574\u793a\u4f8b&#xff0c;\u4e0d\u662f\u5b98\u65b9\u793a\u4f8b\u7684\u642c\u8fd0&#xff1b;API \u540d\u79f0\u3001\u6807\u7b7e\u4e0e\u7248\u672c\u53f7\u7b49\u4e8b\u5b9e\u6027\u4fe1\u606f\u5747\u6807\u6ce8\u5b98\u65b9\u51fa\u5904&#xff1b;\u6d89\u53ca\u771f\u673a\u8868\u73b0\u7684\u90e8\u5206\u5df2\u660e\u786e\u6807\u6ce8&#xff0c;\u672a\u505a\u4efb\u4f55\u5b9e\u6d4b\u6570\u636e\u7f16\u9020\u3002 \u5f15\u5b50&#xff1a;\u56fe\u6807\u662f\u4e00\u6247\u95e8&#xff0c;\u4f46\u95e8\u4e0d\u4f1a\u81ea\u5df1\u5f00 V\u54e5\u8ba4\u8bc6\u4e00\u4e2a\u505a\u672c\u5730\u9910\u996e\u5e94\u7528\u7684\u670b\u53cb&#xff0c;","og_url":"https:\/\/www.wsisp.com\/helps\/106440.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-17T03:56:41+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260917035639-6aab64f7ab7d8.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/106440.html","url":"https:\/\/www.wsisp.com\/helps\/106440.html","name":"\u3010\u5171\u521b\u7a3f\u4e8b\u8282\u3011HarmonyOS 7 \u5e94\u7528 Skill \u5316\u5b9e\u6218\uff1a\u4ece\u201c\u88ab\u6253\u5f00\u201c\u5230\u201c\u88ab\u8c03\u7528\u201c\uff0c\u628a\u529f\u80fd\u9012\u8fdb\u7cfb\u7edf\u610f\u56fe\u5206\u53d1\u6c60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-17T03:56:41+00:00","dateModified":"2026-09-17T03:56:41+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/106440.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/106440.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/106440.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u5171\u521b\u7a3f\u4e8b\u8282\u3011HarmonyOS 7 \u5e94\u7528 Skill \u5316\u5b9e\u6218\uff1a\u4ece\u201c\u88ab\u6253\u5f00\u201c\u5230\u201c\u88ab\u8c03\u7528\u201c\uff0c\u628a\u529f\u80fd\u9012\u8fdb\u7cfb\u7edf\u610f\u56fe\u5206\u53d1\u6c60"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/106440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=106440"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/106440\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/106438"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=106440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=106440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=106440"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=106440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}