wtfm — Claude Code hook: what it does, how to install
wtfm generates illustrated end-user help articles from codebase files and renders screenshots locally from the actual interface code.
Apache-2.0 ★ 1,596 updated 2026-10-29
.claude/settings.jsonWhat wtfm does
This hook bundle comes with the wtfm plugin. It drafts illustrated help documentation for end users directly from the codebase, rendering interface screenshots locally from the actual UI code.
The configuration reacts to two lifecycle events: SessionStart and PostToolUse. When a session begins, it executes plugin-session.mjs. After every tool execution, it triggers trace_hook.js, while Bash tool calls specifically trigger article-reminders.mjs with the after-bash argument.
Because all actions invoke Node scripts, a working node binary is strictly required in your environment.
What it helps with
- Draft illustrated user help articles from UI code
- Render application screenshots locally without manual capture
- Trace tool calls during documentation sessions
- Trigger reminders right after Bash commands run
Example prompts for the agent
- Write an illustrated user guide from our interface code
- Generate a help article with local screenshots for the new feature
How to install wtfm
Manually: put the files in place
.claude/settings.jsonThe hooks block: event (PreToolUse, PostToolUse, Stop…) → command. Personal ones go to ~/.claude/settings.json
Step by step, with commands for each platform: Claude Code hooks: what they are, where to configure them, how to block a risky command
Questions about wtfm
How to install wtfm in Claude Code?
Configure the hook bundle directly inside .claude/settings.json. Add the hooks object with definitions for SessionStart and PostToolUse calling the respective Node scripts.
What does wtfm do?
It automates the creation of illustrated user help articles from your codebase. It also renders UI screenshots locally from the actual code.
What dependencies are required to run these hooks?
You must have node installed on your system. All triggered actions launch JavaScript files (plugin-session.mjs, trace_hook.js, and article-reminders.mjs) through Node.
Source text
hooks.json · Apache-2.0
Hooks bundle shipped with the wtfm plugin for Claude Code.
Writes illustrated end-user help articles from a codebase, with screenshots rendered locally from the real interface code.
Triggers on: PostToolUse, SessionStart.
```json
{
"hooks": {
"SessionStart": [
{ "hooks": [{ "type": "command", "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/plugin-session.mjs\"" }] }
],
"PostToolUse": [
{ "matcher": "*", "hooks": [{ "type": "command", "command": "node \"${CLAUDE_PLUGIN_ROOT}/engine/generate-illustrated-article/scripts/trace_hook.js\"" }] },
{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/article-reminders.mjs\" after-bash" }] }
]
}
}
```
© SupportPages.io · Apache-2.0 · hashgraph-online/awesome-codex-plugins