porting-gotchas

porting-gotchas is a skill for Claude Code from Abdulkader-Safi/wp-to-code. It costs 82 tokens per session (1,678 once invoked), scanned A, a copy of review-architecture, MIT.

A checklist for reproducing sections from WordPress or page-builder websites in another technology. It covers layout problems that can pass a simple height check, including spacing, sizing, and baseline issues.

In plain words
What is it for?
Use it while porting markup to measure both position and height, diagnose layout differences, and avoid common CSS and builder-specific mistakes.
Why use it?
A page can have the correct height while sections are still positioned incorrectly or text wraps differently.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the wp-to-code plugin — 1 skill, 8 commands, 1 hook shipped together

Good fit Use it while porting markup to measure both position and height, diagnose layout differences, and avoid common CSS and builder-specific mistakes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abdulkader-safi/wp-to-code/porting-gotchas
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.

Any agent
npx skills add Abdulkader-Safi/wp-to-code --skill porting-gotchas
Clone the repo
git clone --depth 1 https://github.com/Abdulkader-Safi/wp-to-code

Made for: Claude Code.

Or install wp-to-code, the plugin that ships this one along with the rest of its 1 skill, 8 commands, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for porting-gotchas

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdulkader-safi/wp-to-code/porting-gotchas/github.svg)](https://agentmods.dev/skills/abdulkader-safi/wp-to-code/porting-gotchas)
Your own site
<a href="https://agentmods.dev/skills/abdulkader-safi/wp-to-code/porting-gotchas"><img src="https://agentmods.dev/badge/skills/abdulkader-safi/wp-to-code/porting-gotchas/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for porting-gotchas

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdulkader-safi/wp-to-code/porting-gotchas"><img src="https://agentmods.dev/badge/skills/abdulkader-safi/wp-to-code/porting-gotchas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,678 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod 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.1 $0.00082 $0.01678
Opus 5.5 $0.00033 $0.00671
Sonnet 5.5 $0.00016 $0.00336
Haiku 4.5 $0.00008 $0.00168

Measured 3mo ago against content hash 0f025fc0abb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

porting-gotchas 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 3mo 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.

Origin

This is a copy

86% identical to review-architecture — 342 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/wp-to-code/skills/porting-gotchas/SKILL.md · 125 lines

How it starts

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

Porting gotchas

Every item here cost real hours on a real port. Read them before writing markup, not after discovering one.

The rule everything else serves

Never claim a page is done without a numeric comparison, and always compare position as well as height.

Most of the bugs below pass a height check.


Layout failures that pass a height check

Margin collapse moves whole sections

A negative top margin on an inner div collapses out of its section and takes the section's background with it. The section's own height is unchanged, so height comparison sees nothing. Only position catches it.

Symptom: Δtop on one section and every section after it, with no Δh anywhere.

Fix: flow-root on the containing element. That establishes a block formatting context and stops the margin escaping.

Padding on a fixed-width box shrinks the content

w-[287px] pl-[15px] gives a 272px content box. Text rewraps, height changes, and nothing in the class list says so.

Fix: put the gap on the sibling. mr-[15px] on the icon, not pl-[15px] on the container.

Inline-block descenders

A <textarea> or <img> without display: block sits on the text baseline and adds roughly 7px of descender space below it. Enough to fail a comparison, invisible by eye.

Fix: block on the element.

Negative margins differ per page

The same component can wrap in a 558px row on one page and a 570px row on another, because the builder applied different negative margins per instance.

Do not chase this with a magic clip value. Make the row height a prop and write down why it differs.


Silent CSS failures

A missing type token emits nothing

text-28 used in three places, --text-28 never defined. Tailwind emits no rule. The element inherits its parent's size, and if it is absolutely positioned the section height stays correct.

On the port this came from, every team member's name on four pages rendered at half size for hours, through a full geometry pass.

Read the full file on GitHub · 125 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. 3mo ago First seen · 125 lines · 82 tokens per session scan A 0f025fc0abb4

Subscribe to this mod's changes

porting-gotchas is a skill published in the GitHub repository Abdulkader-Safi/wp-to-code (4 stars, last pushed 3mo ago), licensed MIT. It adds 82 tokens to every session and 1,678 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to review-architecture, differing in 342 lines, and is treated as a copy.

Related

porting-gotchas compared with skills from other repositories

porting-gotchas next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
porting-gotchasAbdulkader-Safi/wp-to-codeSkill43mo agoMITA82Claude Code
designlang-tokensManavarya09/design-extractSkill5.2k5d agoMITA30Claude Code
design-to-code-checkmurphytrueman/design-system-opsSkill2262mo agoMITA71Claude Code
top-designwondelai/skillsSkill2.8ktodayMITA113Claude Code, Codex
web-typographywondelai/skillsSkill2.8ktodayMITA128Claude Code, Codex
interface-craftcbrock84/headcountSkill2.6ktodayMITA79Claude Code
interface-redesigncbrock84/headcountSkill2.6ktodayMITA77Claude Code