From self-improvement
observe / evolve plugin の hook 設定を対話的に調整するセットアップウィザード。 60 分リマインダー間隔、SessionEnd で自動 observe を走らせるか、commit 時 observe を有効にするか、設定保存先 (ユーザー / プロジェクト) を AskUserQuestion で選択する。 使用場面: plugin 初回 install 時、運用方針変更時、リマインダー頻度を変更したい時。
How this skill is triggered — by the user, by Claude, or both
Slash command
/self-improvement:observe-settingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- ユーザー明示確認なしに settings.json を編集しない (`soul.md` 高リスク変更ルール準拠)
soul.md 高リスク変更ルール準拠)USER_SETTINGS="${HOME}/.claude/settings.json"
PROJ_SETTINGS=".claude/settings.json"
# 現状値の取得 (env var ベース)
for s in "$USER_SETTINGS" "$PROJ_SETTINGS"; do
if [ -f "$s" ]; then
echo "=== $s ==="
jq '.env // {} | with_entries(select(.key | startswith("OBSERVE_")))' "$s" 2>/dev/null
jq '.hooks // {}' "$s" 2>/dev/null | head -20
fi
done
SessionEnd) に自動で /observe を起動? → 有効 / 無効git commit 時に /observe リマインダーを注入? → 有効 / 無効~/.claude/settings.json) / プロジェクト個別 (.claude/settings.json)TARGET="${USER_SETTINGS}" # or PROJ_SETTINGS
TMP=$(mktemp)
jq --arg interval "$INTERVAL_MINUTES" \
--arg periodic "$PERIODIC_ENABLED" \
--arg on_end "$ON_END_ENABLED" \
--arg on_commit "$ON_COMMIT_ENABLED" '
.env = (.env // {}) + {
"OBSERVE_PERIODIC_ENABLED": $periodic,
"OBSERVE_PERIODIC_INTERVAL_MINUTES": $interval,
"OBSERVE_ON_END_ENABLED": $on_end,
"OBSERVE_ON_COMMIT_ENABLED": $on_commit
}' "$TARGET" > "$TMP" && mv "$TMP" "$TARGET"
plugin がインストールされていれば hooks/hooks.json で UserPromptSubmit / Stop / PostToolUse:Bash 配線済。env var で各 hook の挙動が切り替わる。手動配線は不要。
設定保存後、ユーザーに以下を案内:
OBSERVE_PERIODIC_ENABLED=false に変更した場合 → 次プロンプトでリマインダー注入停止OBSERVE_ON_END_ENABLED=true に変更した場合 → 次 SessionEnd で /observe 自動起動OBSERVE_ON_COMMIT_ENABLED=true に変更した場合 → 次 git commit 後にリマインダー注入| 変数名 | デフォルト | 効果 |
|---|---|---|
OBSERVE_PERIODIC_ENABLED | true | UserPromptSubmit で経過時間リマインダーを注入するか |
OBSERVE_PERIODIC_INTERVAL_MINUTES | 60 | リマインダー注入の経過時間しきい値 (分) |
OBSERVE_ON_END_ENABLED | true | SessionEnd hook で /observe 自動起動を促すか |
OBSERVE_ON_COMMIT_ENABLED | true | git commit / push 後にリマインダー注入するか |
SessionEnd) の自動 /observe を切るのは?
A: 短時間セッションが多い (5 分以下) 場合、毎回 /observe が走るとノイズになる。無効推奨hooks/hooks.json -- 配線定義hooks/observe-periodic-check.sh -- 60 分リマインダー本体skills/observe/SKILL.md -- 観察スキル本体npx claudepluginhub arkatom/claude-plugins --plugin self-improvementGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.