CourseFull course

LESSON 06 OF 08

Read the plugin from the outside in

Trace the loading path, then inspect six excerpts from the actual implementation.

In this lesson
  • Find the manifest, module declaration and event handlers.
  • Read a source recipe in its surrounding file.
Lessons in your path0 of 8 complete
Progress settings

Saved only in this browser.

Visual explainerExpand diagramCollapse diagram
A plugin contains its identity manifest, hooks module declaration, and register.js event handlers, which provide commands, tools, and UI.
The loading path leads from the plugin files to the code that reacts to events.

Three files get the mod loaded.

.claude-plugin/plugin.jsonIdentifies the plugin.

hooks/hooks.jsonNames the hooks module to load.

hooks/register.jsExports register(on) and handles events.

The repository’s root marketplace lists two plugins. Adding that marketplace does not install every plugin in it; select the one you need.

Read one real recipe.

The excerpts below are extracted from the current source at build time. Open the surrounding file to see the state, registration, filters, and continuation together.

YOUR TURN

Try it, then explain it.

  1. Find the plugin identity and the hooks module path.
  2. Choose a recipe and identify its event filter.
  3. Explain whether it observes, rewrites or answers the event.
QUICK CHECK · OPTIONAL

Which file contains this starter’s executable event handlers?

Choose one answer

Finish at your own pace.

The next button saves completion and opens the next lesson.