{"id":22756,"date":"2026-06-10T13:54:27","date_gmt":"2026-06-10T05:54:27","guid":{"rendered":"https:\/\/ab123.xyz\/?p=22756"},"modified":"2026-06-10T13:54:27","modified_gmt":"2026-06-10T05:54:27","slug":"github-copilot-custom-prompts%ef%bc%9a%e4%b8%aa%e6%80%a7%e5%8c%96ai%e7%bc%96%e7%a8%8b%e5%8a%a9%e6%89%8b%e7%9a%84%e6%9d%83%e5%a8%81%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/ab123.xyz\/?p=22756","title":{"rendered":"GitHub Copilot Custom Prompts\uff1a\u4e2a\u6027\u5316AI\u7f16\u7a0b\u52a9\u624b\u7684\u6743\u5a01\u6307\u5357"},"content":{"rendered":"<p>\u5728\u8f6f\u4ef6\u5f00\u53d1\u9886\u57df\uff0cGitHub Copilot \u65e9\u5df2\u6210\u4e3a\u5f00\u53d1\u8005\u4e0d\u53ef\u6216\u7f3a\u7684AI\u7f16\u7a0b\u52a9\u624b\u3002\u800c\u6700\u65b0\u63a8\u51fa\u7684 <strong>GitHub Copilot Custom Prompts<\/strong> \u529f\u80fd\uff0c\u66f4\u662f\u5c06\u4ee3\u7801\u751f\u6210\u80fd\u529b\u63d0\u5347\u5230\u4e86\u5168\u65b0\u7684\u4e2a\u6027\u5316\u9ad8\u5ea6\u3002\u8fd9\u9879\u529f\u80fd\u5141\u8bb8\u5f00\u53d1\u8005\u6839\u636e\u9879\u76ee\u9700\u6c42\u3001\u56e2\u961f\u7f16\u7801\u89c4\u8303\u751a\u81f3\u4e2a\u4eba\u504f\u597d\uff0c\u81ea\u5b9a\u4e49\u63d0\u793a\u8bcd\uff08Prompts\uff09\uff0c\u4ece\u800c\u8ba9Copilot\u751f\u6210\u66f4\u7cbe\u51c6\u3001\u66f4\u7b26\u5408\u4e0a\u4e0b\u6587\u7684\u4ee3\u7801\u7247\u6bb5\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8be5\u5de5\u5177\u7684\u529f\u80fd\u3001\u4f18\u52bf\u3001\u5e94\u7528\u573a\u666f\u53ca\u4f7f\u7528\u65b9\u6cd5\uff0c\u5e76\u9644\u4e0a<a href=\"https:\/\/github.com\/features\/copilot\" target=\"_blank\">\u5b98\u65b9\u7f51\u7ad9<\/a>\u94fe\u63a5\uff0c\u52a9\u4f60\u5feb\u901f\u4e0a\u624b\u3002<\/p>\n<h2>\u4ec0\u4e48\u662fGitHub Copilot Custom Prompts\uff1f<\/h2>\n<p>GitHub Copilot Custom Prompts \u662f GitHub \u4e3a Copilot \u63a8\u51fa\u7684\u4e00\u9879\u8fdb\u9636\u529f\u80fd\uff0c\u5b83\u6253\u7834\u4e86\u539f\u6709\u901a\u7528\u63d0\u793a\u7684\u9650\u5236\uff0c\u8ba9\u5f00\u53d1\u8005\u53ef\u4ee5\u7f16\u5199\u81ea\u5b9a\u4e49\u7684\u6307\u4ee4\u6a21\u677f\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4e3a\u9879\u76ee\u8bbe\u5b9a\u201c\u4f7f\u7528TypeScript\u3001\u9075\u5faaESLint\u89c4\u5219\u3001\u4f18\u5148\u4f7f\u7528\u51fd\u6570\u5f0f\u7f16\u7a0b\u201d\u7b49\u89c4\u5219\uff0cCopilot \u5728\u540e\u7eed\u4ee3\u7801\u5efa\u8bae\u4e2d\u4fbf\u4f1a\u81ea\u52a8\u9075\u5faa\u8fd9\u4e9b\u7ea6\u675f\u3002\u8fd9\u76f8\u5f53\u4e8e\u4e3a AI \u7f16\u7a0b\u52a9\u624b\u914d\u5907\u4e86\u4e13\u5c5e\u7684\u201c\u884c\u4e3a\u624b\u518c\u201d\u3002<\/p>\n<h3>\u6838\u5fc3\u529f\u80fd\u7279\u6027<\/h3>\n<ul>\n<li>\u81ea\u5b9a\u4e49\u6307\u4ee4\u6a21\u677f\uff1a\u652f\u6301\u5728\u9879\u76ee\u6839\u76ee\u5f55\u521b\u5efa .github\/copilot-instructions.md \u6587\u4ef6\uff0c\u7f16\u5199\u81ea\u7136\u8bed\u8a00\u89c4\u5219\u3002<\/li>\n<li>\u4e0a\u4e0b\u6587\u611f\u77e5\uff1a\u81ea\u5b9a\u4e49\u63d0\u793a\u4f1a\u4e0e\u5f53\u524d\u6587\u4ef6\u3001\u8bed\u8a00\u3001\u6846\u67b6\u81ea\u52a8\u878d\u5408\uff0c\u65e0\u9700\u91cd\u590d\u58f0\u660e\u3002<\/li>\n<li>\u56e2\u961f\u540c\u6b65\uff1a\u5c06\u914d\u7f6e\u6587\u4ef6\u7eb3\u5165\u7248\u672c\u63a7\u5236\uff0c\u6574\u4e2a\u56e2\u961f\u53ef\u5171\u4eab\u76f8\u540c\u7684\u7f16\u7801\u98ce\u683c\u3002<\/li>\n<\/ul>\n<h2>\u4f7f\u7528Custom Prompts\u7684\u4e09\u5927\u4f18\u52bf<\/h2>\n<h3>\u63d0\u5347\u4ee3\u7801\u4e00\u81f4\u6027<\/h3>\n<p>\u5f53\u56e2\u961f\u534f\u4f5c\u65f6\uff0c\u7f16\u7801\u98ce\u683c\u5dee\u5f02\u5f80\u5f80\u5bfc\u81f4\u4ee3\u7801\u5ba1\u67e5\u6548\u7387\u4f4e\u4e0b\u3002\u901a\u8fc7Custom Prompts\u8bbe\u5b9a\u7edf\u4e00\u89c4\u8303\uff0cCopilot \u751f\u6210\u7684\u4ee3\u7801\u5929\u7136\u7b26\u5408\u56e2\u961f\u6807\u51c6\uff0c\u51cf\u5c11\u540e\u671f\u4fee\u6539\u5de5\u4f5c\u91cf\u3002<\/p>\n<h3>\u52a0\u901f\u590d\u6742\u4efb\u52a1\u5f00\u53d1<\/h3>\n<p>\u5bf9\u4e8e\u91cd\u590d\u6027\u8f83\u9ad8\u7684\u6a21\u5f0f\uff08\u5982\u5fae\u670d\u52a1\u63a5\u53e3\u3001\u6570\u636e\u5e93\u67e5\u8be2\u3001\u5355\u5143\u6d4b\u8bd5\uff09\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u4e3a\u7279\u5b9a\u4efb\u52a1\u7f16\u5199\u4e13\u7528\u63d0\u793a\u3002\u4f8b\u5982\u5b9a\u4e49\u4e00\u4e2a\u201c\u751f\u6210RESTful API\u63a7\u5236\u5668\u201d\u7684\u63d0\u793a\uff0cCopilot \u5373\u53ef\u8f93\u51fa\u7ed3\u6784\u5b8c\u6574\u7684\u4ee3\u7801\u6a21\u677f\u3002<\/p>\n<h3>\u964d\u4f4e\u5b66\u4e60\u6210\u672c<\/h3>\n<p>\u65b0\u624b\u5f00\u53d1\u8005\u5e38\u56e0\u4e0d\u719f\u6089\u6846\u67b6 API \u800c\u9891\u7e41\u67e5\u9605\u6587\u6863\u3002\u5229\u7528Custom Prompts\u5c06\u5e38\u7528\u6700\u4f73\u5b9e\u8df5\u5185\u7f6e\u5230\u547d\u4ee4\u4e2d\uff0c\u5165\u95e8\u7ea7\u6210\u5458\u4e5f\u80fd\u751f\u6210\u9ad8\u8d28\u91cf\u4ee3\u7801\u3002<\/p>\n<h2>\u5982\u4f55\u914d\u7f6e\u4e0e\u4f7f\u7528<\/h2>\n<p>\u914d\u7f6e\u8fc7\u7a0b\u6781\u5176\u7b80\u5355\uff0c\u65e0\u9700\u5b89\u88c5\u989d\u5916\u63d2\u4ef6\u3002\u53ea\u9700\u5728\u9879\u76ee\u6839\u76ee\u5f55\u521b\u5efa\u4e00\u4e2a\u9690\u85cf\u6587\u4ef6\u5939 <code>.github<\/code>\uff0c\u5e76\u5728\u5176\u4e2d\u65b0\u5efa\u6587\u4ef6 <code>copilot-instructions.md<\/code>\u3002\u6587\u4ef6\u5185\u5bb9\u91c7\u7528Markdown\u683c\u5f0f\uff0c\u7f16\u5199\u5982\u4e0b\u7684\u6307\u4ee4\uff1a<\/p>\n<ul>\n<li><strong>\u8bed\u8a00\u504f\u597d<\/strong>\uff1a\u201c\u672c\u9879\u76ee\u4e2d\u6240\u6709\u4ee3\u7801\u4f7f\u7528Python 3.11+\uff0c\u9075\u5faaPEP 8\u89c4\u8303\u3002\u201d<\/li>\n<li><strong>\u6846\u67b6\u7ea6\u675f<\/strong>\uff1a\u201c\u4f7f\u7528Django 5.0\uff0c\u6240\u6709\u89c6\u56fe\u91c7\u7528\u7c7b\u89c6\u56fe\uff08Class-Based Views\uff09\u3002\u201d<\/li>\n<li><strong>\u6d4b\u8bd5\u8981\u6c42<\/strong>\uff1a\u201c\u6bcf\u6b21\u751f\u6210\u51fd\u6570\u65f6\uff0c\u81ea\u52a8\u9644\u5e26\u5bf9\u5e94\u7684pytest\u5355\u5143\u6d4b\u8bd5\u3002\u201d<\/li>\n<\/ul>\n<p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u91cd\u542fVS Code\u5e76\u6fc0\u6d3bCopilot\uff0c\u540e\u7eed\u5efa\u8bae\u5373\u4f1a\u4f53\u73b0\u4e0a\u8ff0\u89c4\u5219\u3002\u4f60\u8fd8\u53ef\u4ee5\u901a\u8fc7Copilot\u9762\u677f\u5b9e\u65f6\u6d4b\u8bd5\u81ea\u5b9a\u4e49\u63d0\u793a\u7684\u6548\u679c\u3002<\/p>\n<h2>\u5178\u578b\u5e94\u7528\u573a\u666f<\/h2>\n<ul>\n<li>\u4f01\u4e1a\u7ea7\u9879\u76ee\uff1a\u5927\u578b\u56e2\u961f\u901a\u8fc7Custom Prompts\u5f3a\u5236\u4ee3\u7801\u98ce\u683c\u4e0e\u67b6\u6784\u51b3\u7b56\u3002<\/li>\n<li>\u5f00\u6e90\u9879\u76ee\uff1a\u7ef4\u62a4\u8005\u5b9a\u4e49\u8d21\u732e\u6307\u5357\uff0c\u8ba9AI\u534f\u52a9\u81ea\u52a8\u751f\u6210\u89c4\u8303\u7684PR\u4ee3\u7801\u3002<\/li>\n<li>\u4e2a\u4eba\u5b66\u4e60\uff1a\u9488\u5bf9\u7279\u5b9a\u6280\u672f\u6808\uff08\u5982Rust\u3001Go\uff09\u7f16\u5199\u63d0\u793a\uff0c\u5feb\u901f\u638c\u63e1\u6700\u4f73\u5b9e\u8df5\u3002<\/li>\n<\/ul>\n<p>GitHub Copilot Custom Prompts \u6b63\u5728\u91cd\u65b0\u5b9a\u4e49\u4eba\u673a\u534f\u4f5c\u7f16\u7a0b\u7684\u8fb9\u754c\u3002\u7acb\u5373\u8bbf\u95ee<a href=\"https:\/\/github.com\/features\/copilot\" target=\"_blank\">\u5b98\u65b9\u7f51\u7ad9<\/a>\uff0c\u4f53\u9a8c\u667a\u80fd\u4ee3\u7801\u751f\u6210\u7684\u65b0\u7ef4\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u8f6f\u4ef6\u5f00\u53d1\u9886\u57df\uff0cGitHub Copilot \u65e9\u5df2\u6210\u4e3a\u5f00\u53d1\u8005\u4e0d\u53ef\u6216\u7f3a\u7684AI\u7f16\u7a0b\u52a9\u624b\u3002\u800c\u6700\u65b0\u63a8\u51fa\u7684 GitHub [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[6182,6180,25863,6186,25862],"class_list":["post-22756","post","type-post","status-publish","format-standard","hentry","category-4","tag-ai","tag-github-copilot","tag-25863","tag-6186","tag-25862"],"_links":{"self":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/22756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22756"}],"version-history":[{"count":1,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/22756\/revisions"}],"predecessor-version":[{"id":22757,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/22756\/revisions\/22757"}],"wp:attachment":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}