CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

modal-patterns

React Portal modal implementation patterns for Dr. Sophia AI. Covers createPortal usage, AnimatePresence integration, z-index hierarchy (header always visible), dark mode styling, backdrop opacity. Use when creating modals, fixing header overlap issues, implementing React Portal components, or debugging modal stacking problems.

Quality

79%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./skill-builder-package/examples/modal-patterns/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

60%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The core pattern is concrete and actionable with a useful troubleshooting table, but the skill is weakened by repeated opacity/dark-mode rules across sections and, most seriously, by a Detailed Examples section that points to a references/modal-examples.md file that is missing from the bundle entirely.

Suggestions

Ship the referenced file: create references/modal-examples.md (with the WearablesQuickView.jsx and HealthUserManager.jsx examples) or remove the "Detailed Examples" and "Working Examples" sections, since the pointer currently leads to a nonexistent file.

Consolidate the opacity guidance: state the backdrop-70%/content-100% rule and the solid color tokens once (e.g., in the Correct Modal Pattern section) and cut the duplicate Backdrop Opacity, Dark Mode Implementation, and footer summary restatements.

Make the primary snippet self-contained by adding the `useState` import and either defining or clearly labeling `<ModalContent />` as the app's slot for modal body content.

DimensionReasoningScore

Conciseness

The opacity rules and solid-background classes ("bg-[#EBE5DC] dark:bg-[#1a1a2e]", "bg-black/70", "Never use transparency on modal content") are repeated across the Backdrop Opacity, Dark Mode Implementation, and footer summary sections, and the "Critical Rule" section restates what the Correct Modal Pattern section already shows. Mostly efficient but could be tightened into a single statement of each rule.

3 / 5

Actionability

The main JSX pattern with exact classes and z-index values, the correct/wrong comparisons, and the issue-cause-fix table are concrete and near copy-paste ready. Not 5 because the primary snippet omits the `useState` import and depends on an undefined `<ModalContent onClose={...} />` placeholder, so it is not fully standalone-executable.

4 / 5

Workflow Clarity

The single governing action ("ALWAYS use React Portal for modals" rendered at document.body with the exact pattern) is unambiguous, and the Common Issues & Fixes table gives error-recovery guidance. Not 5 because the body is organized as scattered topical sections with no verification checkpoint (e.g., confirm the header stays visible above the modal) tying them into a usable sequence.

4 / 5

Progressive Disclosure

The body's only reference, [references/modal-examples.md](references/modal-examples.md), does not exist in the bundle (no references/ directory is present), and the "Working Examples" section names files (WearablesQuickView.jsx, HealthUserManager.jsx) that are likewise absent. The clearly signaled pointer leads nowhere, so navigation to the promised detailed examples fails entirely — worse than a present-but-buried reference (3).

2 / 5

Total

13

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: it names the domain, enumerates concrete capabilities, and gives an explicit "Use when" clause with natural trigger phrases. The only weakness is modest synonym coverage (no "dialog"/"popup" variations).

DimensionReasoningScore

Specificity

"Covers createPortal usage, AnimatePresence integration, z-index hierarchy (header always visible), dark mode styling, backdrop opacity" lists five concrete, distinct capabilities with no obvious coverage gaps, matching the comprehensive-coverage anchor rather than the minor-gaps anchor (4).

5 / 5

Completeness

It explicitly answers both questions: what ("React Portal modal implementation patterns... Covers createPortal usage, AnimatePresence integration, z-index hierarchy...") and when ("Use when creating modals, fixing header overlap issues...") with concrete trigger phrases, exactly matching the anchor-5 example structure.

5 / 5

Trigger Term Quality

"Use when creating modals, fixing header overlap issues, implementing React Portal components, or debugging modal stacking problems" provides good natural trigger phrases, but common variations users might say ("dialog", "popup", "modal covering the header") are absent. Not 5 because synonym coverage is incomplete; not 3 because the included terms are specific and phrased the way users would actually ask.

4 / 5

Distinctiveness Conflict Risk

The niche is highly specific (React Portal modals with an app-specific z-index hierarchy for "Dr. Sophia AI"), and the triggers (header overlap, modal stacking, Portal components) are distinct from generic UI or styling skills, giving minimal conflict risk.

5 / 5

Total

19

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

relative_links

Relative link issues: 1 missing

Warning

referenced_paths_exist

Referenced path issues: 2 missing

Warning

Total

14

/

16

Passed

Repository

fernandezbaptiste/Skrillz

Path

skill-builder-package/examples/modal-patterns/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.