agentleFS
zkylek1212-kzkylek1212-k/Project-init-skill/skills/project-init/SKILL.md

project-init

Skill0 starsChanged 2 months agoMITView on GitHub

「手動專用」新專案開場設定:讀取並優化 implement.md、建立 shared project memory。只有在使用者親自輸入 /project-init 時才執行;嚴禁自動觸發、嚴禁因為使用者提到「新專案」「初始化」「implement.md」「memory」就自己啟用。每個專案只跑一次。

46 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use harness-audit, workflow and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • sattva2020Skill

    harness-audit

    Audits a codebase for "AI-agent harness" maturity across six layers (context engineering, tools & MCP, memory & state, tests & evals, observability, guardrails & approvals). Scores each layer, flags AGENTS.md/CLAUDE.md drift, gives prioritized fixes. Use for "audit harness", "оцени харнес", "check agent readiness", "is this project agent-ready", "проверь готовность к AI-агентам".

    Also in 3 projects that use this

  • VercelSkill

    workflow

    Creates durable, resumable workflows using Vercel's Workflow DevKit. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of "workflow", "durable functions", "resumable", "workflow devkit", or step-based orchestration.

    Also in 3 projects that use this

  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 4 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

Files
SKILL.md

Project Init(開場一次性設定)

啟用規則(最高優先)

  • 只由使用者執行:唯一合法觸發是使用者輸入 /project-init。其他情況一律不啟用, 即使對話提到新專案、初始化、implement.md、memory 也一樣。
  • 每個專案只跑一次:起手先檢查哨兵檔 .project-init.done。存在就立刻停止, 回一句「此專案已初始化(見 .project-init.done),如需重跑請先刪除該檔」,不做任何修改。
  • 全程在當前專案根目錄操作,不動其他專案。

起手:哨兵檢查

test -f .project-init.done && cat .project-init.done

有輸出 → 停止(見上)。沒有 → 往下跑步驟 1。


步驟 1:讀 implement.md(條件執行)

ls implement.md IMPLEMENT.md docs/implement.md 2>/dev/null
  • 找不到 → 跳過步驟 1、2,直接進步驟 3,並在最後回報寫明「無 implement.md,略過優化」。
  • 找到 → 完整讀完(不要只讀開頭),再進步驟 2。

步驟 2:優化 implement.md(只在步驟 1 有讀到時)

先備份:cp implement.md implement.md.bak(已有 .bak 就加時間戳)。

用這份檢查表逐條掃,只改真的有問題的地方,不要重寫整份、不要為了顯得有做事而加篇幅:

#檢查項不合格的樣子怎麼改
1目標可驗收「優化效能」「改善體驗」換成可測的完成條件(數字、指令、預期輸出)
2任務顆粒度一條任務橫跨多個模組拆成單一責任的子任務
3檔案清單沒寫會動到哪些檔每個子任務補上 檔案: 一行
4依賴順序全部平鋪、看不出先後標 依賴: 無 / 1,2;同批平行任務檔案不得重疊
5過度設計為未來需求預留的抽象層、設定檔、介面砍掉並在該行註明「YAGNI:需要時再加」
6驗證方式沒說怎麼確認做完了補一行可執行的檢查(測試指令 / 手動步驟)
7未決事項假設被寫成事實獨立 ## 待確認 區塊列出,標明誰來決定

改法:用 Edit 就地修改,保留原作者的結構與用字,不重排章節、不換語言。 改完輸出一張 diff 摘要表:項次 | 原本 | 改成 | 理由(一行一項,不貼整份檔案)。

若 implement.md 本來就過關(沒有任何一條不合格)→ 明講「已檢查 7 項,無需修改」, 不要硬生生改幾個字來交差。


步驟 3:memory-init(永遠執行)

  1. 確認是 git repo:git rev-parse --git-dir。
    • 不是 → 問使用者要不要 git init(memory-init 需要 git hooks)。使用者說不要就跳過本步驟, 在回報中標明「未建立 shared memory:非 git repo」。
  2. 是 git repo → 依執行環境載入 memory-init:
    • Codex:執行 shared-project-memory:source-command-memory-init skill。
    • Claude Code / Antigravity:保持既有 shared-project-memory:memory-init 流程。 兩者都必須走完原流程;初始化本身 idempotent,不覆蓋既有檔案。
  3. 填 .project-memory/STATE.md 與 handoff.md 時,只寫從 README / 建置檔 / git log 真的看得到的事實; 推測的一律標 Unverified。不得杜撰進度或任務。

收尾

  1. 寫哨兵檔:
printf 'project-init done: %s\n' "$(date -Iseconds)" > .project-init.done
  1. 回報(精簡,三行以內+一張表):
    • 步驟 1/2:有無 implement.md;有的話貼 diff 摘要表
    • 步驟 3:memory scaffold 建了什麼 / 跳過的原因
    • 剩下的手動動作:git add .project-memory .githooks .gitattributes CLAUDE.md AGENTS.md .agents .project-init.done && git commit; 其他機器 clone 後要跑 git config core.hooksPath .githooks

硬性禁止

  • 不得在沒有使用者明確 /project-init 的情況下啟用。
  • 不得在哨兵檔存在時重跑。
  • 不得覆蓋既有檔案(.project-memory/* 一律「不存在才建」; implement.md 是唯一會被就地修改的檔,且必須先備份)。
  • 不得杜撰專案進度或測試結果。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.