{"id":19,"date":"2026-03-08T10:00:00","date_gmt":"2026-03-08T02:00:00","guid":{"rendered":"http:\/\/www.gmrea.com\/?p=19"},"modified":"2026-03-08T10:00:00","modified_gmt":"2026-03-08T02:00:00","slug":"claude-code-02-features","status":"publish","type":"post","link":"https:\/\/gmrea.com\/?p=19","title":{"rendered":"Claude Code \u6838\u5fc3\u529f\u80fd\u8be6\u89e3"},"content":{"rendered":"<p>Claude Code \u4e0d\u4ec5\u4ec5\u662f\u4e00\u4e2a\u4ee3\u7801\u8865\u5168\u5de5\u5177\uff0c\u5b83\u662f\u4e00\u4e2a\u5b8c\u6574\u7684 AI \u7f16\u7a0b\u4ee3\u7406\u3002\u672c\u6587\u5c06\u6df1\u5165\u4ecb\u7ecd\u5b83\u7684\u6838\u5fc3\u529f\u80fd\u3002<\/p>\n<p>## \u6587\u4ef6\u64cd\u4f5c<br \/>\n&#8211; **\u8bfb\u53d6\u6587\u4ef6\uff1a** `&gt; \u770b\u770b src\/utils\/helpers.ts \u7684\u5185\u5bb9`<br \/>\n&#8211; **\u521b\u5efa\u6587\u4ef6\uff1a** `&gt; \u521b\u5efa Button \u7ec4\u4ef6\uff0c\u652f\u6301 primary \u548c secondary \u6837\u5f0f`<br \/>\n&#8211; **\u7f16\u8f91\u6587\u4ef6\uff1a** \u4ee5 diff \u5f62\u5f0f\u5c55\u793a\u4fee\u6539\u5185\u5bb9<\/p>\n<p>## \u4ee3\u7801\u641c\u7d22\u4e0e\u5206\u6790<br \/>\n&#8211; **\u5168\u5c40\u641c\u7d22\uff1a** \u641c\u7d22\u9879\u76ee\u4e2d\u6240\u6709\u7684 TODO \u6ce8\u91ca<br \/>\n&#8211; **\u4ee3\u7801\u5206\u6790\uff1a** \u5206\u6790\u6a21\u5757\u4f9d\u8d56\u5173\u7cfb\u3001\u51fd\u6570\u590d\u6742\u5ea6<br \/>\n&#8211; **Bug \u5b9a\u4f4d\uff1a** \u6839\u636e\u9519\u8bef\u4fe1\u606f\u8ffd\u8e2a\u95ee\u9898\u6839\u56e0<\/p>\n<p>## \u547d\u4ee4\u6267\u884c<br \/>\nClaude Code \u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u547d\u4ee4\uff0c\u8fd0\u884c\u6d4b\u8bd5\u3001\u6784\u5efa\u3001Git \u64cd\u4f5c\u7b49\uff0c\u6bcf\u6b21\u6267\u884c\u9700\u8981\u4f60\u7684\u786e\u8ba4\u3002<\/p>\n<p>## \u591a\u6587\u4ef6\u91cd\u6784<br \/>\nClaude Code \u7684\u5f3a\u9879\u4e4b\u4e00\u662f\u8de8\u6587\u4ef6\u7684\u91cd\u6784\uff1a<br \/>\n&#8211; \u5206\u6790\u6240\u6709\u53d7\u5f71\u54cd\u7684\u6587\u4ef6<br \/>\n&#8211; \u9010\u4e2a\u4fee\u6539\u5e76\u5c55\u793a diff<br \/>\n&#8211; \u786e\u4fdd\u5bfc\u5165\u5bfc\u51fa\u5173\u7cfb\u6b63\u786e<\/p>\n<p>## Git \u96c6\u6210<br \/>\n&#8211; **\u63d0\u4ea4\u7ba1\u7406\uff1a** \u67e5\u770b\u72b6\u6001\u3001\u5199 commit message\u3001\u521b\u5efa\u5206\u652f<br \/>\n&#8211; **\u4ee3\u7801\u5ba1\u67e5\uff1a** \u5ba1\u67e5\u6700\u8fd1\u7684 commit\u3001\u6bd4\u8f83\u5206\u652f\u5dee\u5f02\u3001\u751f\u6210 PR \u63cf\u8ff0<br \/>\n&#8211; **\u51b2\u7a81\u89e3\u51b3\uff1a** \u89e3\u51b3 merge \u51b2\u7a81\u3001rebase \u5904\u7406<\/p>\n<p>## \u4e0a\u4e0b\u6587\u7ba1\u7406<br \/>\n&#8211; **\u9879\u76ee\u7ea7\u4e0a\u4e0b\u6587\uff08CLAUDE.md\uff09\uff1a** \u5b9a\u4e49\u9879\u76ee\u67b6\u6784\u3001\u7ea6\u5b9a<br \/>\n&#8211; **\u4f1a\u8bdd\u7ea7\u4e0a\u4e0b\u6587\uff1a** \u5728\u5bf9\u8bdd\u4e2d\u4e34\u65f6\u63d0\u4f9b\u4e0a\u4e0b\u6587<br \/>\n&#8211; **\u591a\u4f1a\u8bdd\u7ba1\u7406\uff1a** \u652f\u6301 `claude &#8211;continue` \u6062\u590d\u4f1a\u8bdd<\/p>\n<p>## MCP\uff08Model Context Protocol\uff09<br \/>\n\u652f\u6301 MCP \u534f\u8bae\u6269\u5c55\u5916\u90e8\u5de5\u5177\uff1a<br \/>\n&#8220;`json<br \/>\n\/\/ .claude\/mcp.json<br \/>\n{<br \/>\n  &#8220;mcpServers&#8221;: {<br \/>\n    &#8220;database&#8221;: {<br \/>\n      &#8220;command&#8221;: &#8220;npx&#8221;,<br \/>\n      &#8220;args&#8221;: [&#8220;-y&#8221;, &#8220;@modelcontextprotocol\/server-postgres&#8221;]<br \/>\n    },<br \/>\n    &#8220;github&#8221;: {<br \/>\n      &#8220;command&#8221;: &#8220;npx&#8221;,<br \/>\n      &#8220;args&#8221;: [&#8220;-y&#8221;, &#8220;@modelcontextprotocol\/server-github&#8221;]<br \/>\n    }<br \/>\n  }<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>## \u5feb\u6377\u64cd\u4f5c<br \/>\n&#8211; **\u659c\u6760\u547d\u4ee4\uff1a** \/help\u3001\/clear\u3001\/compact\u3001\/cost\u3001\/model<br \/>\n&#8211; **\u538b\u7f29\u4e0a\u4e0b\u6587\uff1a** `\/compact` \u51cf\u5c11 token \u6d88\u8017<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Claude Code \u4e0d\u4ec5\u4ec5\u662f\u4e00\u4e2a\u4ee3\u7801\u8865\u5168\u5de5\u5177\uff0c\u5b83\u662f\u4e00\u4e2a\u5b8c\u6574\u7684 AI \u7f16\u7a0b\u4ee3\u7406\u3002\u672c\u6587\u5c06\u6df1\u5165\u4ecb\u7ecd\u5b83\u7684\u6838\u5fc3\u529f\u80fd\u3002 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-claude-code"],"_links":{"self":[{"href":"https:\/\/gmrea.com\/index.php?rest_route=\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gmrea.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gmrea.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/gmrea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":0,"href":"https:\/\/gmrea.com\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/gmrea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gmrea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gmrea.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}