b-open-io/gemskills/section-dividers
Claude Code and agent skill by b-open-io/gemskills
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "create section dividers", "make transparent dividers", "generate decorative borders", "create parallax dividers", "design section transitions", "make HR dividers", "crystal dividers", "organic borders", "silhouette borders", or needs transparent PNG dividers for web sections.
Install
npx vskill@latest install b-open-io/gemskills/section-dividersSKILL.md
Section Dividers
Generate transparent decorative dividers for web page sections.
CRITICAL RULES - Read Before Generating
1. FULL WIDTH Required
- Strip MUST extend from LEFT EDGE to RIGHT EDGE of image
- NO floating islands - content spans entire width
- Add "FULL WIDTH from left edge to right edge" to prompt
2. Cross-Section NOT Reflection
- TOP edge: Content pointing UPWARD (houses, trees, rooftops)
- BOTTOM edge: DIFFERENT content pointing DOWNWARD (pipes, caves, roots)
- NOT a mirror/reflection of the same scene
- Add "TOP EDGE has [X] pointing UPWARD. BOTTOM EDGE has [Y] pointing DOWNWARD" - use DIFFERENT X and Y
3. SOLID Filled Strip
- Strip must be SOLID between top and bottom edges
- NOT hollow, NOT a cave opening, NOT an arch
- Add "SOLID FILLED strip - not hollow, not a cave"
4. Clean Boundary Required
- Sharp, clear edge between silhouette content and background
- High contrast between the two colors
- If edges are fuzzy or blended = generation failed
5. Content Must NOT Touch Image Edges
- Content should float in CENTER with background above and below
- If content touches TOP or BOTTOM of image = JUNK, do not process
- Verify raw image BEFORE running bg removal
6. Exact Color Matching
- Background = EXACT parallax color (use
analyze-bg.ts) - Silhouette = EXACT section CSS color
- Both colors must be explicitly stated in prompt with hex values
Background Color Strategy
Use a HIGH CONTRAST color from the parallax image's own palette. This ensures:
- Clean edges when removing background (high contrast = sharp removal)
- No color fringing or halos (color exists in the parallax)
- Seamless blending with the actual parallax
Get the Parallax Color
Choose the color from the parallax palette that provides HIGHEST CONTRAST with your silhouette color. For dark silhouettes, pick the lightest color from the parallax. For light silhouettes, pick the darkest.
Background Removal
Use remove-bg.ts (AI-based) for reliable background removal:
Generation Workflow
Step 1: Generate
Prompt template:
Negative prompt:
Step 2: Verify Raw Image (CRITICAL)
Before processing, verify:
- [ ] Content spans FULL WIDTH (left to right)
- [ ] TOP content points UP, BOTTOM content points DOWN (not reflection)
- [ ] Strip is SOLID (not hollow/cave)
- [ ] Content does NOT touch top/bottom image edges
- [ ] Clear boundary between content and background
If ANY check fails = REGENERATE. Do not process junk.
Step 3: Remove Background
Uses cjwbw/rembg model which PRESERVES RESOLUTION.
Step 4: Verify Final Image
- [ ] Transparency is clean (no artifacts)
- [ ] Full resolution preserved
- [ ] Blends with parallax and section on page
Scripts
remove-bg.ts
AI background removal via Replicate (rembg model). Preserves original resolution.
analyze-bg.ts
Extract dominant color from parallax image.
colorize.ts
Tint transparent silhouette to match theme.
Context Discipline
Do not read generated divider images back into context. Scripts output file paths. Ask the user to visually verify the divider in their browser against the parallax and section backgrounds. To inspect programmatically, optimize the image first (via the optimize-images skill).
Fixing Existing Dividers (Color Mismatch)
When an existing divider has wrong colors or semi-transparent edges:
Step 1: Remove Background
Step 2: Make SOLID with Section Color
The remove-bg output has semi-transparent edges. To make it SOLID and match the section:
Key points:
- Alpha > 50 = make fully opaque (255) with section color
- Alpha <= 50 = make fully transparent (0)
- This eliminates semi-transparent edges from AI removal
- Section color must EXACTLY match the adjacent section's background
Getting Exact Section Color
Troubleshooting
| Problem | Cause | Fix | |
|---|---|---|---|
| Content doesn't span full width | Missing "FULL WIDTH" | Add "FULL WIDTH from left edge to right edge" | |
| Bottom is mirror of top | Reflection not cross-section | Use DIFFERENT content for top and bottom | |
| Hollow/cave shape | Wrong shape prompt | Add "SOLID FILLED - not hollow, not a cave" | |
| Content touches edges | Strip too tall | Add "12-15% height, 85% background above/below" | |
| Fuzzy edges after removal | Background color mismatch | Ensure background EXACTLY matches parallax color | |
| AI removed too much | Complex edges | Try regenerating with cleaner silhouette shapes | |
| Wrong colors | Didn't match exactly | Use exact hex values from analyze-bg and CSS | |
| Ghosting/semi-transparent edges | Soft edges in generation | Regenerate with sharper silhouette style | |
| Semi-transparent silhouette | AI removal creates soft alpha | Use "Fixing Existing Dividers" workflow above | |
| Color doesn't match section | Wrong RGB values | Get exact color from browser computed style |
CSS Positioning
Animated vs Static Dividers
For ANIMATED dividers (with .float or other CSS animations):
- Use fixed pixel values:
top: -20px - DO NOT use
translateY(-50%)
For STATIC dividers (no animation):
translateY(-50%)works fine- Centers element on the seam
Why Transforms Fail with Animations
When an element has a CSS animation that uses transform in its keyframes:
The animation's transform completely overrides any inline transform:
- Your
style={{ transform: "translateY(-50%)" }}gets replaced - Element renders with animation's
translateY(0px)instead
Also note: percentage margins (margin-top: -50%) are based on parent WIDTH, not height.
Correct Approach: Simple Negative Top
Layout Structure
Implementation Pattern
From tokenpass-web/src/components/BorderedParallax.tsx:
Positioning Tips
- Start with
top: -20pxand adjust visually - Goal: CENTER of divider image sits on the SEAM
- If image has transparent space, account for it
- Test on both mobile AND desktop
- Fixed pixel values work consistently across screen sizes
Provider support
Generation uses generate-image with --negative. A dedicated negative prompt exists only on Gemini, so auto-pick routes this skill to Gemini and needs GEMINI_API_KEY. With --provider openai, the negatives are folded into the prompt text and the script prints a note; check the strip edges before using the result. Background removal needs REPLICATE_API_TOKEN.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/section-dividers/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 9 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/b-open-io/gemskills/section-dividers)