Skip to content
Productivity
Hook

Hooks

What super-pm runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
super-pm
9157 skills1 hook

Claude Code

> /plugin marketplace add konglong87/superPM

What fires, and when

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • Matchesstartup|resume|clear|compact${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh
Read hooks/hooks.json

Where it lives

  • hooks/session-start.shRunsGitHub
    Read the script
    #!/usr/bin/env bash
    # SessionStart hook for super-pm plugin
    
    set -euo pipefail
    
    # Determine plugin root directory
    SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
    PLUGIN_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
    
    # Check for project-specific PM configuration
    project_config_message=""
    if [ -f "PM-CLAUDE.md" ]; then
        # Read project configuration
        project_config=$(cat "PM-CLAUDE.md" 2>/dev/null || true)
        if [ -n "$project_config" ]; then
            project_config_message="\n\n<project-pm-context>\n**Project-specific PM Configuration:**\n\`\`\`markdown\n${project_config}\n\`\`\`\n</project-pm-context>"
        fi
    fi
    
    # Check for existing docs directory and provide status
    docs_status_message=""
    if [ -d "docs" ]; then
        # Check what stages have been completed
        completed_stages=""
        [ -d "docs/01-需求调研" ] && completed_stages="${completed_stages}- ✅ 需求洞察阶段\n"
        [ -d "docs/02-方案设计" ] && completed_stages="${completed_stages}- ✅ 方案落地阶段\n"
        [ -d "docs/03-增长迭代" ] && completed_stages="${completed_stages}- ✅ 增长迭代阶段\n"
        [ -d "docs/04-风控管理" ] && completed_stages="${completed_stages}- ✅ 风控管理阶段\n"
    
        if [ -n "$completed_stages" ]; then
            docs_status_message="\n\n<pm-progress>\n**📊 Current PM Workflow Progress:**\n${completed_stages}\nUse \`/pm-selfcheck\` to see detailed progress and recommended next steps.\n</pm-progress>"
        fi
    fi
    
    # Escape string for JSON embedding using bash parameter substitution
    escape_for_json() {
        local s="$1"
        s="${s//\\/\\\\}"
        s="${s//\"/\\\"}"
        s="${s//$'\n'/\\n}"
        s="${s//$'\r'/\\r}"
        s="${s//$'\t'/\\t}"
        printf '%s' "$s"
    }
    
    project_config_escaped=$(escape_for_json "$project_config_message")
    docs_status_escaped=$(escape_for_json "$docs_status_message")
    
    

Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.

@konglong87
Ships withsuper-pm

让每个产品经理都能轻轻松松的高效工作 ☕️ 📺 🚀

Stars on GitHub

Momentum

stars in total
91
Star history of konglong87/superPM on GitHub, a chart by star-history.com

More plugins that ship hooks.

i-have-adhd

i-have-adhd

A skill that shapes Claude Code's output for readers with ADHD: it leads with the next action, numbers multi-step work, restates state across turns, drops tangents, gives specific time estimates, and makes progress visible. Invoke it with /i-h.

1 skill1 hook61k
@ayghri@ayghri
Install Plugin
pua

pua

A Claude Code plugin that makes the assistant work harder when it stalls or repeats failures. It adds pressure-style coaching, plus skills for workplace reminders and senior engineer, CTO and team-lead modes for planning and execution.

12 skills+320k
@tanweai@tanweai
Install Plugin
claude-obsidian

claude-obsidian

Turns the sources you read, such as papers, articles and transcripts, into a linked wiki of Markdown notes in Obsidian. Claude keeps sources and citations so every summary can be traced back to its origin.

15 skills+216k
@agricidaniel@agricidaniel
Install Plugin
obsidian-second-brain

obsidian-second-brain

Gives Claude Code a persistent second brain stored as plain markdown in an Obsidian vault. Notes rewrite themselves as new sources arrive, and scheduled agents handle research synthesis and note capture.

1 skill+25.3k
@eugeniughelbur@eugeniughelbur
Install Plugin
arscontexta

arscontexta

A Claude Code plugin that builds a personal knowledge system through conversation, with skills for adding knowledge domains, checking vault health, getting methodology guidance, and evolving the system over time.

10 skills+23.5k
@agenticnotetaking@agenticnotetaking
Install Plugin
pro-workflow

pro-workflow

A Claude Code workflow plugin that learns from your corrections and keeps a self-correcting memory across sessions. It adds skills for agent teams, parallel worktree batch changes, bug capture as GitHub issues, project auto-setup and context compaction.

41 skills+33k
@rohitg00@rohitg00
Install Plugin
engram

engram

Helps you learn any topic with a first-principles curriculum, guided tutoring, and spaced review that schedules free-recall practice. Includes coaching for retention stats and study strategy.

3 skills+21.5k
@nagisanzenin@nagisanzenin
Install Plugin
hey

hey

A command line tool for HEY that lets you read and send email, manage contacts, labels, calendars, todos, habits, time tracking and journal entries from the terminal or from your coding agent.

1 skill1 hook426
@basecamp@basecamp
Install Plugin

Questions about the hooks in super-pm.

Which coding agents can use the hooks in super-pm?
The hooks in super-pm install in Claude Code and Cursor: each runs Claude Code hooks from .claude/settings.json, so copy the hooks there.