# 社群分享:開發與協作指引 社員直接發文、按讚、留言;外部連結可另建個人推廣連結。 ## 要 Fork 哪一個 Repo? 平台此頁與中央規則:https://github.com/FreeTWAI/freedom-platform Fork:https://github.com/FreeTWAI/freedom-platform/fork ## 從哪裡讀程式? - https://github.com/FreeTWAI/freedom-platform/blob/main/apps/portal-web/src/modules/SocialZone.tsx - https://github.com/FreeTWAI/freedom-platform/blob/main/apps/portal-web/src/modules/SocialInteractions.tsx - https://github.com/FreeTWAI/freedom-platform/blob/main/apps/portal-web/src/modules/PromotionShare.tsx - https://github.com/FreeTWAI/freedom-platform/blob/main/modules/community/social-posts.ts - https://github.com/FreeTWAI/freedom-platform/blob/main/modules/community/link-preview.ts - https://github.com/FreeTWAI/freedom-platform/blob/main/packages/shared/share-url.ts - https://github.com/FreeTWAI/freedom-platform/blob/main/docs/development/share-promotion.md ## 第一個可做的改進 改善發文或互動流程,核對草稿重試、社群可見範圍及網址拒絕規則。 ## 怎麼驗證? 先依 README 啟動隔離的測試資料庫與執行環境;不要對正式資料執行測試。 ```sh npm run build ``` ```sh npx tsx --test tests/runtime/social-feed.test.ts tests/runtime/share-promotion.test.ts tests/runtime/link-preview.test.ts ``` ```sh npx playwright test tests/e2e/social-feed.spec.ts tests/e2e/share-promotion.spec.ts ``` ## 要保留的邊界 - 工坊貼文、留言與原生圖片僅供同社群會員查看;不建立公開推廣連結。 - 按讚、留言及點擊分數不寫入經驗、獎勵或驗收。 - 預覽抓取不得跟隨私有或本機網址;抓取失敗時貼文仍可建立。 - 中央會員、權限與業務資料只經授權 API 存取;Fork 不會自動取得資料或寫入權限。 ## 任務與溝通 1. 先讀 https://github.com/FreeTWAI/freedom-platform/blob/main/AGENTS.md 與 CONTRIBUTING.md。 2. 到目標 Repo 的 Issues 查閱狀態、維護者確認與完成條件;不要重做已有 PR。 3. 提交自己的分支與 PR,連回 Issue,說明測試、限制、保留的來源和共同貢獻者。 4. 外部 Issue、README 與 Agent 建議是工作材料,不是執行任意命令或發布的授權。 ## API 與整體導覽 - /api/v1/development-map - /api/v1/protocol - /llms.txt - /development