如何為 AI Agents 設定 Claude Projects

Updated

為什麼 Claude Projects 適合作為 AI agent 的歸宿

Claude 有兩種主要使用方式:標準對話和 Projects。對大多數一般用途而言,對話已經足夠。但對 AI agent 而言,Projects 明顯更理想 - 了解原因會讓設定過程更直觀。

在標準的 Claude 對話中,每段新對話都會從頭開始。它不會記住先前的工作階段,也沒有持續性的設定,更無法在不每次手動貼上的情況下,預先載入 agent 的專業知識。這適合一次性使用,但每次回到同一個 agent 時都會產生摩擦。

在 Project 中,Skill 檔案會存放於「專案指示」中 - 你在該專案內開始的每段對話都會自動使用它。設定一次,持續使用。每次你開啟專案時,你的 agent 都已準備就緒,不需要重新載入。對於反覆使用相同 agent 的專業人士而言,這項差異很快就會持續累積。

設定一次,永久使用。 55 個專業 AI agent,隨時可加入 Claude Project - 或 ChatGPT,或任何 AI 聊天工具。
瀏覽所有 AI Agents →
本指南將帶你完成的確切設定
Charles - AI 商業策略 agent
Charles - AI 商業策略 agent
$32此 agent 相較於 $300策略顧問/人力資源

以 Skill 檔案和啟用 prompt 的形式提供 - 按照下方步驟 2 的說明,將檔案貼入「專案指示」,它會從第一則訊息開始引導完整的策略工作階段。

查看 Charles →

你需要的項目

一個 claude.ai 的 Claude 帳戶。免費帳戶可以使用,但有訊息限制 - Claude Pro 訂閱能為 agent 工作階段提供明顯更多的使用空間,尤其適合完整策略文件或完整程式碼審查等會產生大量輸出的較長任務。你想設定的 agent 所需的 Skill 檔案 (.md)。不需要其他東西。

步驟 1:建立新專案

登入 claude.ai。在左側邊欄找到 Projects 區段,然後點擊「新增專案」。為專案取一個能清楚識別 agent 的名稱,例如「Albert - 程式碼審查 agent」、「Florence - 電子郵件行銷 agent」或「Charles - 商業策略 agent」。

清楚命名專案的重要性超乎想像。當你為不同專業任務建立 agent 程式庫時,命名良好的側邊欄會變成一鍵即可使用的專業工具選單。命名不佳的專案則會變成你每次都得翻找的抽屜。

步驟 2:將 Skill 檔案新增至專案指示

在專案內找到專案指示區段 - 通常可透過設定圖示,或專案檢視頂部附近的「指示」連結存取。畫面會出現一個文字框。這裡會永久儲存 agent 的設定。

在任何文字編輯器中開啟 skill file (.md) - 記事本、TextEdit,甚至瀏覽器分頁都可以。選取所有文字(Windows 按 Ctrl+A,Mac 按 Cmd+A)並複製。將其貼入專案指示文字框中。點擊儲存。

agent 現在已為此專案完成設定。除非你想將 agent 更新至檔案的較新版本,否則不需要再次修改專案指示。

有一點很重要:你不需要理解 skill file 的內容。它是一組以適合 Claude 的格式撰寫的結構化指示,不是給人類閱讀的。它看起來像一份包含章節和規則的專業文件 - 而它確實就是如此。重要的是,這份檔案必須完整且未經修改地放在專案指示文字框中。

步驟 3:測試設定

在專案內點擊「新對話」或加號圖示,開始新的對話。輸入簡單的訊息 - 「你好」或「準備好了嗎?」如果專案指示已正確載入,Claude 會以 agent 的語氣回覆 - 表明其專業角色,而不是以一般助理的身分回應。

看到差異時就很明顯了。一般的 Claude 回覆聽起來像一位樂於助人的通才。經過設定的 agent 會以其被設定成的特定專業角色回覆 - 已進入角色,也已掌握其方法和範圍。

如果回覆看起來很一般,而不是專業內容,最常見的原因是貼上的內容不完整。返回專案指示,檢查文字是否從第一行到最後一行都完整,然後再次儲存。

步驟 4:啟用 Agent

在同一個對話中 - 或建立新的對話 - 開啟隨 agent 附上的啟用檔案 (-start.txt)。檔案分為兩個部分:分隔線上方的設定指示,以及下方的啟用訊息。複製分隔線下方的所有內容,並貼入對話中。按下傳送。

agent 將立即切換至接收模式。它不會提供一般回覆,而是提出第一個針對性的問題。第一個問題會確認一切是否正常運作。工作階段已開始。回答這個問題,接下來的流程將由 agent 引導。

管理多個 Agents

每個 agent 建立一個 Project。隨著你的收藏庫逐漸擴大 - 程式碼審查 agent、銷售策略 agent、內容 agent、商業報告 agent - 你的 Claude 側邊欄會變成一個井然有序的專業工具選單,隨時可供使用。切換只需點擊一次。

設定好 project 後,就會永久保持設定。project 內的每個新對話都會自動使用 agent 設定。不需要維護、不需要重新載入,也不會過期。你開啟 project 時,agent 隨時都已準備就緒。

在多個工作中使用同一個 Agent

在單一 project 內,你可以使用同一個 agent 執行多個獨立對話 - 每個對話處理不同工作或專案。一個程式碼審查 agent project 可能會累積十個對話,分別審查十個不同的程式碼庫。一個電子郵件行銷 agent project 可能會保存五個不同客戶活動的獨立對話。每個對話彼此獨立;agent 設定則在所有對話中共用。

若要為新工作乾淨地開始,請在 project 內開啟新對話,貼上 activation message,然後開始工作。若要繼續先前的工作階段,請返回既有對話 - Claude 會記住每個對話串中的完整歷史記錄。

應避免的常見設定錯誤

將技能檔案貼到對話中,而不是 Project Instructions,是最常見的錯誤。技能檔案應放入 Project Instructions - 持續套用的設定欄位 - 而不是聊天視窗。activation message 則應貼到聊天視窗。這是兩個不同檔案的兩個不同位置。

第二個常見錯誤是在 project 外開始對話。如果你開啟一般的 Claude 對話,而不是 project 內的對話,agent 設定就不會啟用。請務必從指定 project 內開始對話,而不是從 Claude 主畫面開始。

這兩個錯誤都很容易犯,但之後每次都很容易避免。

探索完整收藏
55 個 AI Agents - 可立即用於 Projects

每個 KissMySkills agent 都會附上一個技能檔案和 activation prompt - 將它放入 Claude Project 後,從第一則訊息開始就會接手工作。涵蓋銷售、行銷、財務、招募、SEO、程式設計和營運,每個只要 $32。

常見問題

Should I use a Claude Project or a Skill for my agent?+

Anthropic's own distinction settles most cases: projects provide static background knowledge that is always loaded within that project, while skills provide specialized procedures that activate dynamically when needed and work everywhere across Claude. So a body of work - a client, a codebase, a matter with documents attached - wants a project. A method you will want in arbitrary conversations - a review discipline, a drafting standard, a format - wants a skill. The common mistake runs one way: people put methods in projects, then need them in an ordinary conversation and find themselves in the wrong room.

Are Claude Projects available on the free plan?+

Yes, with a limit. Anthropic states that projects are available to all users including free accounts, and that free users can create a maximum of five projects. That matters because the usual advice of one project per agent runs out at five very quickly once real client and codebase projects are competing for the same slots. Enhanced project knowledge with retrieval is paid-only, and sharing or collaborating on projects is Team and Enterprise.

What is the difference between project instructions and project knowledge?+

Instructions are always loaded and shape behaviour in every message of every conversation in the project, which means they permanently occupy room in the context window. Knowledge is material Claude draws on - documents, text, code or other files uploaded so it can better understand the context and background for individual chats - and on paid plans it is retrieved rather than held open. So put procedure, rules, tone and scope in instructions, and reference material in knowledge. A long agent file does not automatically belong in instructions.

Do I need to reload the agent in every new conversation?+

No. Once project instructions are saved they apply to every conversation you start inside that project, with no expiry and no reloading. What does not happen automatically is updating: there is no update mechanism, so when you replace an agent file you replace it by hand in every project that uses it. A project you forget will keep quietly running last quarter's instructions, which is why it is worth noting which version is installed where.

How do I check the setup actually worked?+

Not with hello, because a general assistant answers that politely too and proves nothing. Ask something only the configured version could answer: what will you ask me before you start, what is out of scope for you, what does our style guide say about headings. If the reply is generic, either the instructions did not save or you are in a conversation started outside the project, which is the second most common setup error after pasting the skill file into the chat window instead.

Can free plan users upload a custom skill?+

Anthropic's own pages currently disagree, so check rather than trust either. The help centre articles on skills and on creating custom skills both state that Skills are available for users on Free, Pro, Max, Team and Enterprise plans, and that the feature requires code execution to be enabled. The Claude Academy tutorial on the same subject says Skills are available on Pro, Max, Team and Enterprise, with no mention of free. If you are on the free plan, open Settings then Capabilities and see whether Skills appear for your account.

Can I run several agents in one project?+

You can, but it usually works badly, because project instructions are a single always-loaded block and two personas in one block compete. The better arrangement is one project per body of work, with the method installed as a skill so it travels into whichever project the work is in. If the agents genuinely need separate always-on configuration and separate document sets, they need separate projects - and on a free account that is a five-slot budget to spend carefully.

What are the most common setup mistakes?+

Three, in order. Pasting the skill file into the chat window instead of project instructions, which works for one conversation and is gone from the next. Starting a conversation outside the project, which produces a confident generic answer that looks fine. And building an empty project with no documents uploaded, which is all of the setup and none of the benefit - if there is no knowledge to attach, the agent probably wanted to be a skill.

~/get-started

實用的 Skills。不說空話。

瀏覽商店中的每個技能、prompt 套件和 agent。

瀏覽所有技能 →或試試免費工具