All skills
elithrar avatar

/wow-addon-development

@67ac9d6
by Matt Silverlockelithrar/dotfiles201 stars
15

Build, improve, debug, port, or review World of Warcraft Midnight/Retail and official Forever add-ons. Use for addon Lua/XML, packaging, settings, profiles, performance, and UI layout. Not for gameplay advice, addon recommendations, or WoW-themed websites.

Use this Skill: https://skilld.dev/gh/elithrar/dotfiles/wow-addon-development

This session only. Nothing lands on disk.

referenceslayout.md

≈821 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Layout and scaling

Coordinate and geometry model

Distinguish physical pixels, UIParent units, and a frame's local coordinates. Track parent and effective scale, and convert at explicit boundaries. Follow the user's UI scale unless separate add-on scaling is requested. Use the matching client's PixelUtil implementation when pixel alignment matters; do not substitute a remembered conversion formula.

Share one normalized geometry model between preview, live rendering, hit regions, and movers. Resolve profile overrides before computing dimensions. Include insets, spacing, borders, and rounding consistently; apply pixel snapping once. Invalidate geometry caches when scale, content, style, or dimensions change.

Read usable dimensions before clearing valid anchors. Hidden or newly constructed regions can have unresolved geometry. Preserve the last valid placement and retry through an appropriate layout notification rather than collapsing to zero or polling indefinitely. Keep measurement and application distinct, guard reentrant layout, and bound settling work when width changes text wrapping and height.

Responsive content

Derive minimum dimensions from the sidebar, insets, scrollbars, labels, and usable controls. If the viewport cannot accommodate those dimensions, adapt the arrangement or provide scrolling. Clamping position cannot fix an oversized window.

Resize and restyle existing controls. Do not reconstruct a page tree because its width changed. Coalesce resize updates where useful and always apply the final layout at drag completion. Provide a real resize interaction when requested, using the target client's supported bounds and sizing APIs.

Synchronize a scroll child's width with its viewport and compute height from actual content. Initialize geometry on construction as well as resize. A bare ScrollFrame clips content but supplies no user navigation; provide a scrollbar, wheel, or keyboard interaction and clamp its offset to the current range.

Measure wrapped/localized text rather than estimating height from byte counts. Give truncated content an accessible full-text view. Multiline editors need caret visibility in both directions; check the target template's cursor-coordinate contract and recompute scroll range when wrapping changes.

Placement and recovery

Store independent placement records for independently movable frames. Choose whether scaling preserves screen position, an anchor relationship, or logical offsets, then use that convention for both saving and restoring. Validate anchor names and finite coordinates; choose deliberate defaults before clamping.

Refit size and position after restoration, resizing, scale changes, and display changes. Keep the drag handle reachable and provide a reset-position path. Apply the same fitting rules regardless of the order of resize and scale operations, and keep persisted dimensions consistent with the applied result.

Check small/large viewports, fractional scales, scaled parents, long content, first open, reopen, and off-screen saved positions. Verify resolved control bounds and reachability; use a real client for rendering and physical input behavior.

Source: SKILL.md on GitHub

No alerts11d3 checks · Risk SAFE
  • Gen Agent Trust Hub11d

    The skill provides comprehensive guidelines and reference material for World of Warcraft add-on development. It emphasizes secure coding practices, such as avoiding the evaluation of untrusted strings as code and validating data schemas. No malicious patterns or security risks were identified.

  • Socket11d

    No alerts

  • Snyk11d

    Risk: LOW · No issues

Signed by skilld at 67ac9d6. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 weeks ago

README badge

README badge for elithrar/dotfiles/wow-addon-development