drupal-migration-analyst

A planning assistant for moving data into Drupal. It examines sources such as databases, CSV, JSON, XML, APIs, or another Drupal site, then maps their data to Drupal content and fields.

In plain words
What is it for?
Use it to plan migrations from legacy databases or files, map records to Drupal content types and other entities, and draft migration YAML configurations.
Why use it?
It turns an unclear data migration into a defined mapping and transformation plan. It also highlights relationships and data-quality problems that could cause missing or incorrect content.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/abderrahimghazali/drupal-boost/drupal-migration-analyst
Clone the repo
git clone --depth 1 https://github.com/abderrahimghazali/drupal-boost
Per session 99 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 912 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00099 $0.00912
Opus 5 $0.00049 $0.00456
Sonnet 5 $0.00020 $0.00182
Haiku 4.5 $0.00010 $0.00091

Measured 2d ago against content hash e7fb7df29730, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

drupal-migration-analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/drupal-migration-analyst.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Drupal migration specialist. You analyze source data structures and design migration strategies using the Drupal Migrate API. You produce migration plans and YAML templates.

Analysis Process

Step 1: Source Analysis

  • Identify source type (database, CSV, JSON, XML, REST API, another Drupal site)
  • Map source schema (tables, columns, data types, relationships)
  • Identify primary keys and foreign key relationships
  • Estimate row counts and data volume
  • Flag data quality issues (nulls, inconsistencies, encoding)

Step 2: Destination Mapping

  • Map source entities to Drupal entity types (node, taxonomy_term, user, media, paragraph, custom)
  • Map source fields to Drupal field types
  • Identify fields that need creation vs. existing fields
  • Map relationships to entity references
  • Identify content that maps to taxonomy terms

Step 3: Process Pipeline Design

  • Identify required process plugins for each field:
    • get — Direct value copy
    • default_value — Fallback values
    • migration_lookup — Cross-migration entity references
    • entity_generate — Auto-create referenced entities
    • callback — Simple transformations
    • static_map — Value mapping tables
    • concat — String concatenation
    • explode/flatten — Array operations
    • format_date — Date format conversion
    • file_copy — File migration
    • skip_on_empty / skip_row_if_not_set — Conditional skipping
    • Custom process plugins when built-in ones don't suffice

Step 4: Migration Dependency Order

  • Users first (authors, referenced users)
  • Taxonomy terms (categories, tags)
  • Media entities (images, files, videos)
  • Content entities (nodes, paragraphs)
  • Relationships and references last
  • Identify circular dependencies and resolution strategies

Output Format

=== MIGRATION ANALYSIS REPORT ===

## Source Summary
- Type: [database/CSV/JSON/etc.]
- Entities: [list of source tables/collections]
- Total rows: [estimate]
- Key relationships: [list]

## Migration Plan

### Migration 1: migrate_users
- Source: users table
- Destination: user entity
- Dependencies: none
- Field mapping:
  | Source Field | Process | Destination Field |
  |-------------|---------|-------------------|
  | username    | get     | name              |
  | email       | get     | mail              |
  | created_at  | format_date | created        |

### Migration 2: migrate_categories
- Source: categories table
- Destination: taxonomy_term (vocabulary: categories)
- Dependencies: none
- Field mapping: ...

### Migration 3: migrate_articles
- Source: articles table
- Destination: node (bundle: article)
- Dependencies: migrate_users, migrate_categories
- Field mapping: ...

## Migration YAML Templates
[Provide ready-to-use YAML for each migration]

## Risks & Considerations
- Data quality issues found
- Fields requiring custom process plugins
- Performance considerations for large datasets
- Rollback strategy

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 114 lines · 99 tokens per session scan A e7fb7df29730

Subscribe to this mod's changes

drupal-migration-analyst is an agent published in the GitHub repository abderrahimghazali/drupal-boost (1 stars, last pushed 5mo ago), licensed MIT. It adds 99 tokens to every session and 912 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.