{"id":19047,"date":"2025-01-21T16:50:43","date_gmt":"2025-01-21T08:50:43","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=19047"},"modified":"2025-08-25T00:32:24","modified_gmt":"2025-08-24T16:32:24","slug":"repomix","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/ja\/repomix\/","title":{"rendered":"Repomix\uff1a\u6253\u5305\u4ee3\u7801\u5e93\u4e3a\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u4ee5\u4fbf\u5927\u6a21\u578b\u68c0\u7d22"},"content":{"rendered":"<p>Repomix\uff08\u524d\u79f0Repopack\uff09\u662f\u4e00\u6b3e\u5f00\u6e90\u5de5\u5177\uff0c\u4e13\u95e8\u7528\u4e8e\u5c06\u6574\u4e2a\u4ee3\u7801\u5e93\u6253\u5305\u6210\u4e00\u4e2a\u5355\u4e00\u7684\u3001AI\u53cb\u597d\u7684\u6587\u4ef6\u3002\u8fd9\u4e2a\u5de5\u5177\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u8f7b\u677e\u5730\u5c06\u4ed6\u4eec\u7684\u4ee3\u7801\u5e93\u63d0\u4f9b\u7ed9\u5927\u8bed\u8a00\u6a21\u578b\uff08\u5982Claude\u3001ChatGPT\u548cGemini\uff09\u8fdb\u884c\u5206\u6790\u548c\u5904\u7406\u3002\u5176\u8bbe\u8ba1\u521d\u8877\u662f\u7b80\u5316AI\u5728\u4ee3\u7801\u7406\u89e3\u548c\u751f\u6210\u65b9\u9762\u7684\u4efb\u52a1\uff0c\u9002\u7528\u4e8e\u9700\u8981\u5bf9\u4ee3\u7801\u5e93\u8fdb\u884c\u5feb\u901f\u5ba1\u67e5\u6216\u91cd\u6784\u7684\u573a\u666f\u3002Repomix\u652f\u6301\u591a\u79cd\u8f93\u51fa\u683c\u5f0f\uff0c\u5305\u62ecXML\u3001Markdown\u548c\u7eaf\u6587\u672c\uff0c\u5e76\u63d0\u4f9b\u914d\u7f6e\u6587\u4ef6\u4ee5\u6ee1\u8db3\u4e0d\u540c\u9879\u76ee\u7684\u9700\u6c42\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19048 aligncenter\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/01\/90023899e2b18ae.png\" alt=\"\" width=\"710\" height=\"247\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/01\/90023899e2b18ae.png 710w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/01\/90023899e2b18ae-300x104.png 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/01\/90023899e2b18ae-18x6.png 18w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u4ee3\u7801\u5e93\u6253\u5305<\/strong>\uff1a\u5c06\u6574\u4e2a\u9879\u76ee\u6253\u5305\u6210\u5355\u4e00\u6587\u4ef6\uff0c\u65b9\u4fbfAI\u5206\u6790\u3002<\/li>\n<li><strong>\u591a\u683c\u5f0f\u8f93\u51fa\u652f\u6301<\/strong>\uff1a\u63d0\u4f9bXML\u3001Markdown\u548c\u7eaf\u6587\u672c\u7b49\u591a\u79cd\u8f93\u51fa\u683c\u5f0f\uff0c\u7528\u6237\u53ef\u4ee5\u6309\u9700\u9009\u62e9\u3002<\/li>\n<li><strong>\u914d\u7f6e\u7075\u6d3b\u6027<\/strong>\uff1a\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u5ffd\u7565\u6587\u4ef6\u3001\u6ce8\u91ca\u79fb\u9664\u7b49\u9009\u9879\u3002<\/li>\n<li><strong>\u8fdc\u7a0b\u4ed3\u5e93\u652f\u6301<\/strong>\uff1a\u53ef\u4ee5\u76f4\u63a5\u4ece\u8fdc\u7a0bGitHub\u4ed3\u5e93\u83b7\u53d6\u5e76\u6253\u5305\u4ee3\u7801\u3002<\/li>\n<li><strong>Docker\u652f\u6301<\/strong>\uff1a\u63d0\u4f9bDocker\u955c\u50cf\uff0c\u65b9\u4fbf\u5728\u5bb9\u5668\u5316\u73af\u5883\u4e2d\u8fd0\u884cRepomix\u3002<\/li>\n<li><strong>\u5b89\u5168\u68c0\u67e5<\/strong>\uff1a\u9ed8\u8ba4\u5f00\u542f\u5b89\u5168\u68c0\u67e5\uff0c\u4ee5\u907f\u514d\u654f\u611f\u4fe1\u606f\u6cc4\u9732\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5Repomix<\/h3>\n<p>Repomix\u662f\u4e00\u4e2a\u57fa\u4e8eNode.js\u7684\u5de5\u5177\uff0c\u56e0\u6b64\u4f60\u9700\u8981\u786e\u4fdd\u4f60\u7684\u7cfb\u7edf\u5df2\u7ecf\u5b89\u88c5\u4e86Node.js\u3002<\/p>\n<p>1.<strong>\u5b89\u88c5Node.js<\/strong>\uff1a<\/p>\n<ul>\n<li>\u8bbf\u95eeNode.js\u5b98\u7f51\uff0c\u4e0b\u8f7d\u5e76\u5b89\u88c5\u9002\u5408\u4f60\u7cfb\u7edf\u7684\u7248\u672c\u3002<\/li>\n<\/ul>\n<p>2.<strong>\u5b89\u88c5Repomix<\/strong>\uff1a<\/p>\n<ul>\n<li>\u901a\u8fc7npm\u5168\u5c40\u5b89\u88c5Repomix\uff1a\n<pre><code>npm install -g repomix\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>\u4f7f\u7528Repomix<\/h3>\n<h4>\u57fa\u672c\u4f7f\u7528<\/h4>\n<ul>\n<li><strong>\u6253\u5305\u672c\u5730\u9879\u76ee<\/strong>\uff1a<br \/>\n\u8fdb\u5165\u4f60\u7684\u9879\u76ee\u76ee\u5f55\uff0c\u7136\u540e\u8fd0\u884c\uff1a<\/li>\n<\/ul>\n<pre><code>repomix\r\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u751f\u6210\u4e00\u4e2a\u540d\u4e3a<strong>repomix-output.xml<\/strong>\u7684\u6587\u4ef6\u3002\u5982\u679c\u9700\u8981\u6307\u5b9a\u8f93\u51fa\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528**&#8211;style<strong>\u53c2\u6570\uff1a<\/strong><\/p>\n<pre><code>repomix --style markdown\r\n<\/code><\/pre>\n<ul>\n<li><strong>\u6253\u5305\u8fdc\u7a0b\u4ed3\u5e93<\/strong>\uff1a<br \/>\n\u5982\u679c\u4f60\u60f3\u76f4\u63a5\u6253\u5305\u4e00\u4e2a\u8fdc\u7a0bGitHub\u4ed3\u5e93\uff0c\u6267\u884c\uff1a<\/p>\n<pre><code>repomix --remote https:\/\/github.com\/yamadashy\/repomix\r\n<\/code><\/pre>\n<p><strong>\u4f60\u4e5f\u53ef\u4ee5\u6307\u5b9a\u5206\u652f\u6216\u7279\u5b9a\u7684commit\uff1a<\/strong><\/p>\n<pre><code>repomix --remote yamadashy\/repomix --remote-branch main\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h4>\u914d\u7f6e\u6587\u4ef6<\/h4>\n<ul>\n<li><strong>Repomix\u652f\u6301\u81ea\u5b9a\u4e49\u914d\u7f6e\uff0c\u53ef\u4ee5\u901a\u8fc7<\/strong>repomix &#8211;init<strong>\u751f\u6210\u4e00\u4e2a<\/strong>repomix.config.json<strong>\u6587\u4ef6\u3002\u4f60\u53ef\u4ee5\u5728\u5176\u4e2d\u5b9a\u4e49\uff1a<\/strong>\n<ul>\n<li><strong>\u5ffd\u7565\u6587\u4ef6<\/strong>\uff1a\u4f7f\u7528**.repomixignore<strong>\u6587\u4ef6\u6216\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684<\/strong>ignore<strong>\u9009\u9879\uff0c\u7c7b\u4f3c\u4e8e<\/strong>.gitignore**\u3002<\/li>\n<li><strong>\u8f93\u51fa\u683c\u5f0f<\/strong>\uff1a\u9009\u62e9\u8f93\u51fa\u6587\u4ef6\u7684\u683c\u5f0f\uff08\u5982XML\u3001Markdown\uff09\u3002<\/li>\n<li><strong>\u5934\u90e8\u6587\u672c<\/strong>\uff1a\u6dfb\u52a0\u8bf4\u660e\u6027\u6587\u672c\u5230\u8f93\u51fa\u6587\u4ef6\u7684\u5f00\u59cb\u90e8\u5206\u3002<\/li>\n<li><strong>\u5b89\u5168\u68c0\u67e5<\/strong>\uff1a\u662f\u5426\u5f00\u542f\u5b89\u5168\u68c0\u67e5\u4ee5\u907f\u514d\u654f\u611f\u4fe1\u606f\u6cc4\u9732\u3002<\/li>\n<\/ul>\n<p><strong>\u914d\u7f6e\u6587\u4ef6\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre><code>{\r\n\"output\": {\r\n\"filePath\": \"repomix-output.xml\",\r\n\"style\": \"xml\",\r\n\"fileSummary\": true\r\n},\r\n\"ignore\": {\r\n\"useGitignore\": true\r\n}\r\n}\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h4>\u8fd0\u884cRepomix<\/h4>\n<ul>\n<li><strong>\u5728Docker\u4e2d\u8fd0\u884c<\/strong>\uff1a<br \/>\n\u5982\u679c\u4f60\u66f4\u559c\u6b22\u4f7f\u7528Docker\u6765\u7ba1\u7406\u73af\u5883\uff0c\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n<pre><code>docker run -v .\/output:\/app -it --rm ghcr.io\/yamadashy\/repomix --remote yamadashy\/repomix\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>Repomix\u914d\u5408\u5176\u4ed6AI\u5de5\u5177\u4f7f\u7528<\/h3>\n<ul>\n<li><strong>\u751f\u6210\u7684\u5355\u4e00\u6587\u4ef6\u53ef\u4ee5\u76f4\u63a5\u4e0a\u4f20\u5230AI\u5de5\u5177\u5982Claude\u3001ChatGPT\u6216Gemini\u8fdb\u884c\u5206\u6790\uff1a<\/strong>\n<ul>\n<li><strong>\u4ee3\u7801\u5ba1\u67e5<\/strong>\uff1a\u7ed9AI\u63d0\u4f9b\u6587\u4ef6\uff0c\u8bf7\u6c42\u5176\u8fdb\u884c\u4ee3\u7801\u5ba1\u67e5\u6216\u5efa\u8bae\u91cd\u6784\u3002<\/li>\n<li><strong>\u6587\u6863\u751f\u6210<\/strong>\uff1a\u57fa\u4e8e\u4ee3\u7801\u5e93\u751f\u6210\u6587\u6863\u6216README\u6587\u4ef6\u3002<\/li>\n<li><strong>\u95ee\u9898\u89e3\u51b3<\/strong>\uff1a\u901a\u8fc7AI\u5de5\u5177\u627e\u51fa\u4ee3\u7801\u4e2d\u7684\u95ee\u9898\u5e76\u63d0\u4f9b\u89e3\u51b3\u65b9\u6848\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Repomix\uff08\u524d\u79f0Repopack\uff09\u662f\u4e00\u6b3e\u5f00\u6e90\u5de5\u5177\uff0c\u4e13\u95e8\u7528\u4e8e\u5c06\u6574\u4e2a\u4ee3\u7801\u5e93\u6253\u5305\u6210\u4e00\u4e2a\u5355\u4e00\u7684\u3001AI\u53cb\u597d\u7684\u6587\u4ef6\u3002\u8fd9\u4e2a\u5de5\u5177\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u8f7b\u677e\u5730\u5c06\u4ed6\u4eec\u7684\u4ee3\u7801\u5e93\u63d0\u4f9b\u7ed9\u5927\u8bed\u8a00\u6a21\u578b\uff08\u5982Claude\u3001ChatGPT\u548cGemini\uff09\u8fdb\u884c\u5206\u6790\u548c\u5904\u7406\u3002\u5176\u8bbe\u8ba1\u521d\u8877\u662f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":32782,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,499],"tags":[230,252],"class_list":["post-19047","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","category-document-extraction","tag-aikaiyuanxiangmu","tag-markdown"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/19047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/comments?post=19047"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/19047\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media\/32782"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media?parent=19047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/categories?post=19047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/tags?post=19047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}