cms-plugin-integration · git:20260630.8e03c26 · 2026-06-30 · sha256 58e717fc060d2d0a

cms-plugin-integration git:20260630.8e03c26C

Immutable. This exact content never changes and is served at /api/v1/blob/58e717fc060d2d0a.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_wveyapvaec2jpi7z/58e717fc060d2d0a2e9f4771bfca68d297d8f571f9972eafaa98f51ba8151632.json

Then /plugin install cms-plugin-integration@markdownregistry-wveyapvaec2jpi7z in Claude Code. It installs this exact version, the one graded C here, pinned to the commit it was graded at, and leaves it there.

Title: CMS Hook & Plugin Integration
Keywords: cms-hooks, plugin-integration, wordpress-hooks, drupal-hooks, extension-audit
Agents: wordpress-specialist, drupal-specialist, joomla-specialist, umbraco-specialist
When to use: When auditing and writing custom hooks, actions, filters, and configuration overrides for CMS platforms.
Version: 1.0.0
Last updated: 2026-06-30

Audit, design, and implement custom plugin extensions, lifecycle events, and API filters for Content Management System (CMS) platforms.

---

## Workflow

### Step 1 — Map CMS Hook Lifecycle
Locate the targets for extension hook execution:
- **WordPress:** Parse hook registrations (`add_action`, `add_filter`, block hooks) and WordPress 7.0 Abilities API declarations (`wp_register_ai_ability`).
- **Drupal:** Identify system events, hook implementations (`hook_form_alter`, custom module routes).
- **Joomla!:** Trace plugin event methods (e.g. `onContentPrepare`, `onAfterRoute`).
- **Umbraco:** Map composer registries (`IComposer`) and event handlers (`INotificationHandler`).

### Step 2 — Verify Security Barriers
Review database and input parameters inside the custom hooks:
- Assert that inputs are sanitized (e.g. `sanitize_text_field` in WP, form API filters in Drupal, Zod/C# sanitizations).
- Verify permissions, nonce codes (`wp_verify_nonce`, CSRF protection tokens), or Abilities API callback capability checks (`current_user_can`) are checked before processing mutations.

### Step 3 — Ensure Hook Separation
Check that plugin extension logic remains decoupled from the CMS core files. Never edit standard core engines.

### Step 4 — Output Hook Blueprint
Generate a structured report outlining the custom hooks created, parameters expected, and validation gates.

---

## Input Schema

```yaml
input:
  cms_platform:
    type: enum
    values: [wordpress, drupal, joomla, umbraco]
    required: true
    description: "The CMS platform to target"
  target_file:
    type: string
    required: true
    description: "Path to the custom plugin or module source file"
```

## Output Schema

```yaml
output:
  integration_verdict:
    type: object
    properties:
      valid: { type: boolean }
      errors_count: { type: integer }
  hooks_found:
    type: array
    items:
      type: object
      properties:
        hook_name: { type: string }
        callback: { type: string }
        priority: { type: integer }
        security_checked: { type: boolean }
```

## Quality Gate

- Zero core CMS files are modified (extensions live completely in plugin/module directories)
- Nonces, CSRF tokens, or User Capabilities are verified on all POST/mutation hooks and Abilities API registrations
- All input variables are sanitized before database query routing

## Chain Metadata

```yaml
chain_metadata:
  skill_slug: "cms-plugin-integration"
  stage: "S1"
  suggested_next:
    - slug: "service-pattern"
      stage: "S1"
      reason: "CMS extensions should route business logic through clean, reusable service models"
```

## Error Handling

- If the custom module file is not placed in the correct extension sub-folder, flag a directory violation.
- If database modifications run outside the CMS data layer wrappers, halt and enforce query safety filters.