Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
2 critical · 2 cautions to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs.
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Events to logevents
Space-separated hook event names to log; globs work, such as Post*. * logs every event. The journal needs UserPromptSubmit and PostToolUse*.
stringdefault *
Enabledenabled
Master switch. Off: no log, journal, state files, git steps or status line, whatever else is set.
booleandefault false
Journaljournal
On Stop, append the turn (prompt, reply, tool uses) to the journal and commit only that file.
booleandefault false
Log pathlog_path
Event log file (JSON lines), relative to the git root or absolute.
stringdefault .skogai/logs/event.jsonl
State directorystate_dir
Where the state files go, relative to the git root or absolute.
stringdefault .skogai/tmp
Status linestatus_line
Show hook: <event> from the log's last row.
booleandefault false
Write state fileswrite_state
On SessionStart, UserPromptSubmit and Stop, write git-diff, git-diff-cached and wt-step-diff to the state directory.
booleandefault false
Journal pathjournal_path
Turn journal file, relative to the git root or absolute.
stringdefault .skogai/journal.md
Merge on Stopmerge_on_stop
wt merge --no-remove when a turn ends.
booleandefault false
Stage on Stopstage_on_stop
git add -A when a turn ends.
booleandefault false
Commit on Stopcommit_on_stop
wt step commit when a turn ends.
booleandefault false
Merge on promptmerge_on_prompt
wt merge --no-remove when a prompt is submitted.
booleandefault false
Stage on promptstage_on_prompt
git add -A when a prompt is submitted.
booleandefault false
Commit on promptcommit_on_prompt
wt step commit when a prompt is submitted.
booleandefault false
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin for acting upon hook events. Each event we act upon has its own script, every action is logged, and the status line shows the event being acted upon. What it does and why is in FEATURES.md:
.skogai/logs/event.jsonl at the git root.Stop, appends the turn (prompt, reply, tool uses) to .skogai/journal.md at the git root and commits only that file (other work and the log are left alone). Optional git steps run git add -A, wt step commit and wt merge.hook: <event> from the log's last row.All of it is off until switched on in the settings.
/plugin install skogai-events@skogai-marketplace
The marketplace is skogai2/marketplace. This plugin was skogai-core there until 0.11.1; that copy is left as it is for its current users.
From a checkout of this repo:
claude --plugin-dir .
The scripts need bash, jq, git and flock. Check the plugin without a session:
claude plugin validate .
Test the scripts without a session (needs nothing but the tools above):
tests/run.sh
Tail the log while you use Claude:
tail -f .skogai/logs/event.jsonl | jq -c '{event, action}'
Mod settings (userConfig in .claude-plugin/plugin.json). Set them with /plugin configure skogai-events@skogai-marketplace or in /config; they're stored under pluginConfigs in ~/.claude/settings.json, so they apply to every project. Hooks read them from CLAUDE_PLUGIN_OPTION_<KEY> (through scripts/settings.sh), the status-line module from options. Run /reload-plugins after a change.
| Key | Default | What it does |
|---|---|---|
enabled | false | Master switch. Off: nothing is logged, journaled, written or run |
events | * | Hook events to log, space-separated; globs such as Post* work. The journal needs UserPromptSubmit and PostToolUse*. MessageDisplay writes a row per batch of streamed lines, so leave it out for a quieter log |
log_path | .skogai/logs/event.jsonl | Event log, relative to the git root or absolute |
journal | false | On Stop, append the turn to the journal and commit only that file |
journal_path | .skogai/journal.md | Turn journal, relative to the git root or absolute |
write_state | false | Write git-diff, git-diff-cached and wt-step-diff on SessionStart, UserPromptSubmit and Stop |
state_dir | .skogai/tmp | Where the state files go |
status_line | false | Show hook: <event> from the log's last row |
stage_on_stop / stage_on_prompt | false | git add -A at turn end / on prompt submit |
commit_on_stop / commit_on_prompt | false | wt step commit, skipped when the tree is clean |
merge_on_stop / merge_on_prompt | false | wt merge --no-remove |
Loaded with --plugin-dir, the plugin has no configure dialog; set the values under pluginConfigs["skogai-events@inline"].options in ~/.claude/settings.json.
.claude-plugin/plugin.json manifest
hooks/hooks.json generated: the events we act upon, plus the status-line module
hooks/register.ts the status-line mod: shows the log's last event
scripts/events/<Event>.sh one script per event, run with the event's JSON on stdin
scripts/append-json.sh appends one row to the log: <json> | append-json.sh [action]
scripts/git-steps.sh runs the switched-on git steps: git-steps.sh <stop|prompt> <root> [path...]
scripts/write-state.sh writes git-diff, git-diff-cached, wt-step-diff: write-state.sh <root> <dir>
scripts/generate-hooks-json.sh writes hooks/hooks.json from scripts/events/: [--check]
scripts/guard.sh sourced first by the scripts: ends the hook when `enabled` is off
scripts/settings.sh sourced by the scripts: reads the mod settings
tests/run.sh tests the scripts in a throwaway git repo
Every event in the hooks reference has a script already, except the two listed under event log. For a new one:
scripts/events/<Event>.sh and make it executable.scripts/generate-hooks-json.sh. tests/run.sh fails when hooks.json is out of date.In the script, do the work, then pipe the input to append-json.sh with a short description of what you did. A script that only logs is one line:
exec "$(dirname "$0")/../append-json.sh"
A script can also answer back the way any command hook can, with exit code 2 or JSON on stdout.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
skogai-events@skogai-marketplace is listed by skogai2/marketplace — review the source before installing
npx claudepluginhub skogai2/marketplace --plugin skogai-eventsPlugins from other owners that cover similar ground