Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bizuayeu avatar

Wakeup

  • 1 installs
  • 6 repo stars
  • Updated August 2, 2026
  • bizuayeu/plugins-weave

wakeup is a Claude skill that loads long-term memory and applies a persona directive at claude.ai session start, using GitHub-backed reads and PR-based write-back.

About

This skill is a session-start engine for claude.ai that loads long-term memory and applies a persona directive from config. It fetches memory files from a GitHub repo at a pinned commit SHA using a fine-grained Read token, references a private repo on demand, and writes memory back through a branch-and-PR flow. Repository names, files, commit identity, and persona policy are all injected from config so the engine stays persona-agnostic.

  • Loads long-term memory at claude.ai session start and applies a persona directive
  • Fetches memory from a public repo at a pinned SHA with a Read PAT, references a private repo on demand
  • Writes memory back only via claude/* branches and PRs, never direct pushes to the default branch

Wakeup by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #14,098 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
At a glance

wakeup capabilities & compatibility

Works with
github
From the docs

What wakeup says it does

engine**: `scripts/interfaces/wakeup_engine.py`
SKILL.md
token は **Authorization ヘッダ**のみ
SKILL.md
default ブランチへの直接 push は禁止
SKILL.md
npx skills add https://github.com/bizuayeu/plugins-weave --skill wakeup

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars6
Last updatedAugust 2, 2026
Repositorybizuayeu/plugins-weave

What it does

Load long-term memory and apply a persona directive at claude.ai session start, with GitHub-backed read and PR write-back.

Who is it for?

Persona-agnostic session-start memory loading and persona directive application on claude.ai.

When should I use this skill?

Use at claude.ai session start to load long-term memory and apply persona load policy.

What you get

Session memory loaded from a pinned SHA and a persona directive applied, with memory updates flowing through PRs.

By the numbers

  • 3-step execution flow (config load, memory load, directive apply)
  • token used in a single bash call then discarded

Files

SKILL.mdMarkdownGitHub ↗

wakeup - セッション開始エンジン

claude.ai 環境のセッション開始時に、設定(config)に従って長期記憶をロードし、人格ロード方針を適用するスキルです。

このスキルは特定の人格・リポジトリに依存しません。 リポ名・ファイル・commit identity・人格ディレクティブはすべて config(examples/<persona>.config.json)と起動ディレクティブ md の値として与えます。下記の <owner> <name> <path> 等はプレースホルダです。

目次

---

前提

  • configexamples/ のサンプルを見本にルート直下へ `wakeup.config.json` として実値化)に public_repo / load_files / commit_identity / directive_path(任意で private_repo)を定義。配置は下記 ディレクトリ構成 を参照。
  • 起動ディレクティブ(人格ロード方針)は directive_path が指す md。
  • engine: scripts/interfaces/wakeup_engine.py(標準ライブラリのみ。claude.ai の bash で自己完結し、EpisodicRAG 本体パッケージには依存しない)。

---

ディレクトリ構成(claude.ai 展開後)

スキル zip は /mnt/skills/user/wakeup/ に展開される。あなたが用意して配置するもの:

/mnt/skills/user/wakeup/
├── SKILL.md                  # この仕様書
├── wakeup.config.json    ★  # 自分用 config(examples/ のサンプルを実値化。名前固定)
├── <directive>.md        ★  # 起動ディレクティブ(config の directive_path が指す任意名)
├── token.tar.gz          ★  # Read/Write PAT 同梱(.gitignore 済、zip 化前に配置)
├── examples/                 # テンプレート見本(コピー元。実行時は参照しない)
│   ├── weave.config.json     #   Weave サンプル → wakeup.config.json として実値化
│   ├── WeaveDirective.md     #   Weave サンプル → directive_path が指す名で配置
│   └── PROJECT_INSTRUCTIONS_snippet.md
└── scripts/
    └── interfaces/wakeup_engine.py
  • `examples/` は見本。運用時は config サンプルをルート直下へ `wakeup.config.json` としてコピーし実値を埋める。directive も同様にルート直下へ置き、その名前を config の directive_path に書く(examples/ 内のファイルは実行時に読まない)。
  • `directive_path` は config からの相対パス → config と同じディレクトリ(ルート直下)に directive を置く。ファイル名は任意(汎用例 directive.md、Weave サンプルは WeaveDirective.md)。
  • 実行時の config パスは固定で `/mnt/skills/user/wakeup/wakeup.config.json`(人格名を含めない汎用名。directive 名のみ config 経由で可変)。
  • config・directive・token のファイル名は SKILL.md/config と厳密一致させる(Linux はケースセンシティブ)。

---

実装時の注意事項

UIメッセージはコードブロックで囲む(VSCode 拡張では単一改行が空白に変換されるため)。
token を URL・stdout・ログに出さない(後述のセキュリティ規律を厳守)。
token アーカイブのファイル名はケースセンシティブ(Linux 環境。token.tar.gzTOKEN.tar.gz は別物——実配置と厳密に一致させること)。

---

実行フロー

⚠️ 以下を TodoWrite で作成し、順番に実行すること

1. config 読込       - wakeup の config を確認
2. 記憶ロード         - Read token で SHA 取得+認証付き raw を取得(load_repo=private_repo 優先)
3. ディレクティブ適用 - directive_path の md を読み、人格方針を反映
Step内容処理
1config 読込/mnt/skills/user/wakeup/wakeup.config.jsonwakeup_engine.py が解釈
2記憶ロードload_repo(private_repo 優先)の最新 SHA 取得 → raw URL を認証付き curl(Read token)
3ディレクティブ適用config と同ディレクトリの directive_path(=ルート直下の md)を読む

Step 2: 記憶ロード(要 Read token)

なぜトークンが要るか: claude.ai は共有 IP のため未認証 api.github.com の 60 req/h がすぐ枯渇し SHA を取れない。かつ raw の `main` 参照は CDN キャッシュが長く最新が取れないため、SHA 固定での取得が必須。→ SHA 取得(API)に認証が要る。公開・非公開いずれのリポでも Read token を使う(起動時ロード対象 load_files は load_repo=private_repo があればそこ、なければ public_repo から取得)。

Read token は Private リポ Contents:Read + Public repositories read-only を含む fine-grained PAT。最新 SHA を取得し、SHA 固定の raw を取得する(いずれも Authorization ヘッダ。token は単一 bash 呼び出しで使い切る):

TOKEN=$(python /mnt/skills/user/wakeup/scripts/interfaces/wakeup_engine.py extract-token --archive /mnt/skills/user/wakeup/token.tar.gz) \
  && SHA=$(curl -s --fail -H "Authorization: Bearer $TOKEN" "https://api.github.com/repos/<load_repo-owner>/<load_repo-name>/git/refs/heads/<branch>" | grep -o '"sha": *"[^"]*"' | head -1 | cut -d'"' -f4) \
  && python /mnt/skills/user/wakeup/scripts/interfaces/wakeup_engine.py resolve-urls --config /mnt/skills/user/wakeup/wakeup.config.json --sha "$SHA" \
  && curl -s --fail -H "Authorization: Bearer $TOKEN" "https://raw.githubusercontent.com/<load_repo-owner>/<load_repo-name>/$SHA/<path>"

---

Private 参照(on-demand)

Private リポの記憶(個別エントリ・Wiki 等)を対話中に引く時だけ実行します。token はスキル同梱の tar.gz/mnt/skills/user/wakeup/token.tar.gz)から取り出し、単一 bash 呼び出しで使い切る(常駐させない):

TOKEN=$(python /mnt/skills/user/wakeup/scripts/interfaces/wakeup_engine.py extract-token --archive /mnt/skills/user/wakeup/token.tar.gz) && curl -s --fail -H "Authorization: Bearer $TOKEN" "https://api.github.com/repos/<owner>/<private-name>/contents/<path>"
  • token は fine-grained PAT(admin でない write collaborator が発行。記憶ロード/Private 参照/書き戻しを 1 本で兼用できる)。push 権限を持つが、`main` は branch protection + PR 承認で守られるため、漏洩しても正本は侵せない——インテグリティは token のスコープ層でなく、ブランチ保護層に置く設計。
  • $(...) で stdout をキャプチャするため、token はツール出力に残りません。
  • 失敗時も engine は token を漏らしません(マスク済み・非ゼロ終了)。

---

記憶の書き戻し(on-demand)

記憶(作業ログ・短期メモ等)を更新する時。default ブランチへは直接 push せずclaude/* ブランチ → PR → 人間がマージします:

git config user.name "<commit_identity.author_name>"
git config user.email "<commit_identity.author_email>"   # GitHub noreply 形式
git checkout -b claude/<topic>
# ... ファイルを更新 ...
git add <files>
git commit -m "<message>

Co-authored-by: <commit_identity.coauthor>"
git push origin claude/<topic>
gh pr create --base <branch> --head claude/<topic> --title "<title>"
  • Write 権限の PAT は admin でないアカウント(write collaborator)で発行すること。admin のトークンはブランチ保護を bypass してしまう。
  • 人格核(Identity 系ファイル)への書き戻しは特に PR レビューを必須とする。

---

セキュリティ規律

  • 記憶ロード: Read token で SHA 取得(API レート回避)+ SHA 固定 raw(CDN キャッシュ回避)。claude.ai 共有 IP では未認証が枯渇するため、公開リポでも認証する。
  • 全 HTTP: token は Authorization ヘッダのみ(URL には絶対に載せない)、curl -s --fail を用いる。
  • token は $(...) で受け、stdout・ログに出さない。
  • default ブランチへの直接 push は禁止claude/* ブランチ + PR)。
  • token は公開リポに含めない(.gitignore)。token は tar.gz でスキル同梱(プロジェクトナレッジは zip 非対応・スキル zip はネスト zip 不可のため。バイナリゆえコンテキストに自動展開されない)。engine は tar.gz/tgz/tar/gz/zip を読める。難読化は補助で、本質防御は fine-grained PAT の権限最小化

--- EpisodicRAG by Weave | GitHub

Related skills

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.