Stats
Actions
Tags
Help us improve
Share bugs, ideas, or general feedback.
From creo-memories
Enforces a 2-layer memory architecture (local file vs cloud trace) by blocking writes to Layer 1 files for dynamic content, logging MCP invocations, and prompting session-end memory persistence. Writes to filesystem.
5 events · 5 hooks
npx claudepluginhub chronista-club/claude-plugins --plugin creo-memoriesSafety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
echo '💡 Session 終了前 checklist:\n- 重要な decision / learning は mcp__creo-memories__remember で Layer 2 に保存\n- agent 間 comm が発生したなら mcp__creo-memories__record_work_log で persist\n- 未昇格の ttl memory に価値があれば update_memory({id, ttl: null}) で永続化\n- 完了した PR / Issue は complete_with_context で 1 発 close\n- session goal + decisions が連続したなら cookbooks/session-snapshot.md で 1 memory に pin (cross-device 復元 + 連続性保持)'Writesh -c 'JQ=$(command -v jaq 2>/dev/null || command -v jq); input=$(cat); path=$(echo "$input" | $JQ -r ".tool_input.file_path // \"\""); if echo "$path" | grep -qE "/memory/.*\\.md$"; then echo "💡 Layer 1 memory file detected ($path).\n\nPer 2-layer architecture (creo-memories/reference/decision-tree.md):\n- Layer 1 (local file) は 不変方針 / cross-project rule / reference card のみ\n- 動的な project trace / 出来事 / 決定 は Layer 2 (mcp__creo-memories__remember) を使う\n\n判定: これは不変方針? Yes → 続行 OK / No → remember を検討"; fi'sh -c 'JQ=$(command -v jaq 2>/dev/null || command -v jq); input=$(cat); tool=$(echo "$input" | $JQ -r ".tool_name // \"\""); if echo "$tool" | grep -qE "^mcp__(claude_ai_creo-memories|creo-memories|plugin_creo-memories_creo-memories)__"; then mkdir -p ~/.claude && echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) $tool" >> ~/.claude/creo-memories-invocation.log; fi'sh -c 'plugin_dir=$(find $HOME/.claude/plugins -type d -name "claude-plugin-creo-memories*" 2>/dev/null | head -1); [ -z "$plugin_dir" ] && plugin_dir="$HOME/repos/claude-plugin-creo-memories"; atlas=$($plugin_dir/scripts/infer-atlas.sh 2>/dev/null || echo ""); echo "Creo Memories v3.0: Context Engine active. Session context is automatically provided via instructions.\n\n💡 Decision Tree: 記録前に creo-memories/reference/decision-tree.md を確認 (Layer 1 local canon vs Layer 2 cloud trace の判定)。"; if [ -n "$atlas" ] && [ "$atlas" != "" ] && ! echo "$atlas" | grep -q "^(unknown"; then echo "\n💡 Suggested Atlas (branch + cwd 由来): \"$atlas\" — mcp__creo-memories__remember 等の atlasId に活用。"; fi; echo "\n💡 Self-Improvement Loop: ecosystem 全体 review が overdue な場合は /creo-memories:improvement-loop で実行 (default biweekly、 ~75 min)。"'sh -c 'JQ=$(command -v jaq 2>/dev/null || command -v jq); input=$(cat); prompt=$(echo "$input" | $JQ -r ".prompt // \"\""); if echo "$prompt" | grep -qE "(決定|確定|決まった|finalized|confirmed|done|完了|完成|merged|採用|approve|approved|reject|却下)"; then echo "💡 Decision/completion keyword detected. 該当する場合は mcp__creo-memories__remember で記録 (category: decision/task、 status: done、 link_external で Linear/GitHub と pair) を検討。 Cookbook: creo-memories/reference/cookbooks/decision-record.md"; fi'Share bugs, ideas, or general feedback.