drupal-paragraphs

Access, create, and render Drupal Paragraph entities from node fields.

67|13|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/edutrul/drupal-ai --skill drupal-paragraphs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drupal-paragraphs
Source: https://github.com/edutrul/drupal-ai/tree/main/.claude/skills/drupal-paragraphs
Command: npx skills add https://github.com/edutrul/drupal-ai --skill drupal-paragraphs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Paragraphs in Drupal can be complex to load, render, and alter programmatically. This skill bundles patterns for accessing, creating, and rendering paragraph entities across bundles, and for modifying paragraph forms with hooks.

Core Features & Use Cases

  • Access and iterate paragraph entities from node fields.
  • Create, attach, and render paragraphs programmatically.
  • Alter paragraph forms and render with Twig templates.

Quick Start

Use this skill to fetch and render all paragraphs from a node field, then attach a new text_block paragraph to the node.

Frequently Asked Questions about drupal-paragraphs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render Drupal paragraphs programmatically from a node field?

You can programmatically create new paragraph entities in Drupal, attach them to node fields, and render them using bundle-aware handling and view builders for proper Twig template integration.

How do I alter Drupal paragraph forms with hook_form_alter?

You alter Drupal paragraph forms by implementing hook_field_widget_single_element_paragraphs_form_alter, which allows you to modify paragraph form structures during widget rendering.

Can I attach new paragraphs to a node without manual SQL in Drupal?

Yes, you can create new paragraph entities and attach them directly to a node's paragraph reference field programmatically using the Drupal Paragraphs API without writing manual SQL queries.

What is the best way to handle multiple paragraph bundles when rendering nodes in Drupal?

The best way to handle multiple paragraph bundles in Drupal is using bundle-aware handling, which applies specific rendering logic and Twig templates based on each paragraph entity's bundle type.

Why does my Drupal paragraph rendering fail when loading entities from node fields?

Drupal paragraph rendering often fails when entities are loaded without enforcing Paragraphs API best practices, such as using proper bundle-aware handling and view builders for referenced entities.