Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

section-dividers部分分隔线

Agent Skill

section-dividers 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

372

周安装

16

GitHub Stars

3

下载量

131
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:section-dividers(部分分隔线)
来源仓库:https://github.com/b-open-io/gemskills
仓库路径:skills/section-dividers
安装命令:
npx skills add https://github.com/b-open-io/gemskills --skill section-dividers
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/b-open-io/gemskills --skill section-dividers

简介

用于根据关键词或任务目标查找、筛选相关信息,支持快速定位候选结果。

  • 适合在研究、资料整理或知识检索类任务中提高信息获取效率。
  • 通过 GitHub 仓库安装,使用 npx 命令调用并传入查询参数执行搜索。
  • 搜索结果依赖外部数据源,建议结合上下文判断结果的相关性与准确性。
  • section-dividers 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.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:

  1. Clean edges when removing background (high contrast = sharp removal)
  2. No color fringing or halos (color exists in the parallax)
  3. Seamless blending with the actual parallax

Get the Parallax Color

# Analyze the parallax image to find colors in its palette
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/section-dividers/scripts/analyze-bg.ts /path/to/parallax.png top   # for top border
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/section-dividers/scripts/analyze-bg.ts /path/to/parallax.png bottom # for bottom border

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:

bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/section-dividers/scripts/remove-bg.ts input.png output.png

Generation Workflow

Step 1: Generate

bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/generate-image/scripts/generate.ts "[PROMPT]" --aspect 21:9 --size 2K --negative "[NEGATIVES]" --output divider-raw.png

Prompt template:

ONE THIN horizontal SOLID terrain strip floating in solid [PARALLAX_COLOR].
FULL WIDTH from left edge to right edge.
The strip is SOLID FILLED - not hollow, not a cave.
TOP EDGE silhouette: [SURFACE_CONTENT] pointing UPWARD.
BOTTOM EDGE silhouette: [UNDERGROUND_CONTENT] pointing DOWNWARD.
SOLID MASS between top and bottom edges - filled with [SECTION_COLOR].
JAGGED organic edges on BOTH top AND bottom.
Strip is 12-15% of image height floating in vertical center.
85% solid [PARALLAX_COLOR] background above and below.
Shadow puppet silhouettes.

Negative prompt:

hollow, cave, empty center, arch, tunnel view, flat edges, reflection, mirror, white, pink, magenta, tall, thick, floating island, not full width

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

bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/section-dividers/scripts/remove-bg.ts divider-raw.png divider.png

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.

bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/section-dividers/scripts/remove-bg.ts input.png output.png

analyze-bg.ts

Extract dominant color from parallax image.

bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/section-dividers/scripts/analyze-bg.ts parallax.png bottom

colorize.ts

Tint transparent silhouette to match theme.

bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/section-dividers/scripts/colorize.ts input.png output.png "#042f2e"

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

bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/section-dividers/scripts/remove-bg.ts original.png transparent.png

Step 2: Make SOLID with Section Color

The remove-bg output has semi-transparent edges. To make it SOLID and match the section:

from PIL import Image

img = Image.open('transparent.png').convert('RGBA')
pixels = img.load()
width, height = img.size

# Get EXACT section color from CSS/computed style
# Example: oklch(0.12 0.015 260) = RGB(3, 6, 11)
sr, sg, sb = 3, 6, 11

for y in range(height):
    for x in range(width):
        r, g, b, a = pixels[x, y]
        if a > 50:  # Any visible pixel = SOLID section color
            pixels[x, y] = (sr, sg, sb, 255)
        else:  # Transparent stays transparent
            pixels[x, y] = (0, 0, 0, 0)

img.save('final.png')

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

// In browser console on the page:
const el = document.querySelector('#section-id');
const canvas = document.createElement('canvas');
canvas.width = 1; canvas.height = 1;
const ctx = canvas.getContext('2d');
ctx.fillStyle = getComputedStyle(el).backgroundColor;
ctx.fillRect(0, 0, 1, 1);
const data = ctx.getImageData(0, 0, 1, 1).data;
console.log(`RGB(${data[0]}, ${data[1]}, ${data[2]})`);

Troubleshooting

ProblemCauseFix
Content doesn't span full widthMissing "FULL WIDTH"Add "FULL WIDTH from left edge to right edge"
Bottom is mirror of topReflection not cross-sectionUse DIFFERENT content for top and bottom
Hollow/cave shapeWrong shape promptAdd "SOLID FILLED - not hollow, not a cave"
Content touches edgesStrip too tallAdd "12-15% height, 85% background above/below"
Fuzzy edges after removalBackground color mismatchEnsure background EXACTLY matches parallax color
AI removed too muchComplex edgesTry regenerating with cleaner silhouette shapes
Wrong colorsDidn't match exactlyUse exact hex values from analyze-bg and CSS
Ghosting/semi-transparent edgesSoft edges in generationRegenerate with sharper silhouette style
Semi-transparent silhouetteAI removal creates soft alphaUse "Fixing Existing Dividers" workflow above
Color doesn't match sectionWrong RGB valuesGet 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:

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

/* Position divider on seam between sections */
.divider-top {
  position: absolute;
  top: -20px;  /* Adjust until CENTER sits on seam */
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}

Layout Structure

SECTION (solid background)
    ↓
    SEAM ← divider CENTER should align HERE
    ↓
PARALLAX CONTAINER
  └── DIVIDER (absolute, top: -20px, adjusts per image)
  └── PARALLAX IMAGE
  └── DIVIDER (absolute, bottom: 0, transform for bottom)
    ↓
    SEAM
    ↓
SECTION (solid background)

Implementation Pattern

From tokenpass-web/src/components/BorderedParallax.tsx:

{/* Top divider - sits on seam above parallax */}
<div
  className="absolute left-0 right-0 z-50 pointer-events-none float"
  style={{ top: "-20px" }}  // Simple fixed value
>
  <img src={borders.top} className="w-full h-auto" />
</div>

Positioning Tips

  1. Start with top: -20px and adjust visually
  2. Goal: CENTER of divider image sits on the SEAM
  3. If image has transparent space, account for it
  4. Test on both mobile AND desktop
  5. Fixed pixel values work consistently across screen sizes

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.5%
按下载量换算48

Claude

28.75%
按下载量换算38

Cursor

17.81%
按下载量换算23

Gemini CLI

9.45%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills