Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

transparent-ui透明用户界面

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

449

周安装

18

GitHub Stars

35

下载量

145
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:transparent-ui(透明用户界面)
来源仓库:https://github.com/petekp/claude-code-setup
仓库路径:skills/transparent-ui
安装命令:
npx skills add https://github.com/petekp/claude-code-setup --skill transparent-ui
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/petekp/claude-code-setup --skill transparent-ui

简介

用于辅助界面设计、视觉规范和布局优化。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合生成 UI 方案、检查一致性或改进组件层级。
  • 使用时需结合品牌和设计系统,避免堆砌装饰元素。
  • 涉及页面改动时应通过截图或浏览器预览检查表现。
  • transparent-ui 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Transparent UI

Build temporary debugging interfaces that make invisible system behavior visible. These are development-only routes/pages that reveal internal state, transitions, and data flow through interactive visualization.

Core Principles

Make the invisible visible. Show state that normally exists only in memory. Reveal transitions that happen too fast to observe. Surface the "why" behind system behavior.

Temporary by design. These are debugging tools, not production features. Keep changes isolated for easy removal. Use dev-only routes and environment checks.

Use existing components. Build with the project's component library and design system. The visualization should feel native to the codebase, not like a foreign debugging tool.

Match instrumentation to context. Sometimes minimal logging is enough; sometimes a full observable wrapper is needed. Choose the lightest approach that captures the necessary information.

Workflow

Step 1: Identify What to Make Transparent

Analyze the system and identify:

  1. State: What values change over time? What's the shape of the data?
  2. Transitions: What events trigger state changes? What's the sequence?
  3. Relationships: How do components/modules communicate? What depends on what?
  4. Hidden logic: What conditions, thresholds, or rules govern behavior?

Ask the user clarifying questions if the system boundary is unclear.

Step 2: Choose Visualization Approach

Select based on the system's nature. See references/patterns.md for domain-specific guidance.

System TypePrimary VisualizationKey Elements
State machinesNode-edge graphStates as nodes, transitions as edges, current state highlighted
Data flowDirected graph or SankeySources, transformations, sinks with data flowing between
Event systemsTimeline or sequence diagramEvents on time axis, handlers, propagation paths
AlgorithmsStep-by-step animationData structure state at each step, highlighting active elements
Render/update cyclesTree with diff overlayComponent tree, what re-rendered, why
AnimationsTimeline scrubberKeyframes, easing curves, current progress
CSS/LayoutBox model overlayComputed values, constraint sources

Step 3: Design Interactivity Level

Layer interactivity based on debugging needs:

Level 1 - Observation: Real-time display of current state and recent changes. Always include this.

Level 2 - Inspection: Click/hover to see details. Expand nodes, view full payloads, trace data origins.

Level 3 - Manipulation: Trigger events, modify state, inject test data. Useful for reproducing edge cases.

Level 4 - Time travel: Record history, scrub through past states, replay sequences. Essential for race conditions and timing bugs.

Start with Level 1-2. Add 3-4 when the user needs them.

Step 4: Instrument the System

Choose instrumentation strategy based on invasiveness tolerance:

Minimal (prefer when possible):

  • Add event emitters at key points
  • Wrap state setters to broadcast changes
  • Use existing debug/logging hooks if available

Wrapper/Proxy approach:

  • Create observable wrappers around the system
  • Intercept calls without modifying core code
  • Useful for third-party code or when core modifications are undesirable

Implementation patterns:

// Event emitter pattern - add to existing code
const debugEmitter = new EventEmitter();
function transition(from: State, to: State, event: string) {
  debugEmitter.emit('transition', { from, to, event, timestamp: Date.now() });
  // ... existing logic
}

// Proxy pattern - wrap without modifying
function createObservableStore<T>(store: T): T & { subscribe: (fn: Listener) => void } {
  const listeners: Listener[] = [];
  return new Proxy(store, {
    set(target, prop, value) {
      const oldValue = target[prop];
      target[prop] = value;
      listeners.forEach(fn => fn({ prop, oldValue, newValue: value }));
      return true;
    }
  });
}

Step 5: Build the Debug Route

Create a development-only route that:

  1. Guards against production: Check process.env.NODE_ENV === 'development'
  2. Connects to instrumentation: Subscribe to events/state changes
  3. Renders visualization: Use the project's components where possible
  4. Provides controls: Play/pause, speed, filters, time scrubbing as needed

Route structure (Next.js example):

app/
  __dev/
    transparent/
      [system]/
        page.tsx    # Dynamic route for different systems

Or simpler:

app/
  __dev/
    state-machine/
      page.tsx

Recommended libraries (install only if not already in project):

  • react-flow or reactflow: Node-edge graphs for state machines, data flow
  • framer-motion: Smooth transitions in visualization itself
  • Existing charting library: If project already has one, use it

Step 6: Document Removal Path

At the top of every file created, add:

/**
 * TRANSPARENT-UI DEBUG TOOL
 *
 * Temporary debugging visualization. Remove when no longer needed:
 * 1. Delete this file: app/__dev/[name]/page.tsx
 * 2. Delete instrumentation: src/lib/[system]-debug.ts
 * 3. Remove debug hooks from: src/lib/[system].ts (lines XX-YY)
 *
 * Created for: [description of what this helps debug]
 */

Cleanup

When the user asks to remove the transparent UI or is done debugging:

  1. Delete debug route: Remove the __dev/ page(s)
  2. Remove instrumentation: Delete event emitters, proxies, debug hooks
  3. Uninstall unused deps: If visualization libraries were added solely for this
  4. Verify no remnants: Search for debugEmitter, TRANSPARENT-UI, or similar markers

Provide a summary of removed files and modified lines.

Domain-Specific Patterns

For detailed visualization patterns, layouts, and code examples organized by system type, see references/patterns.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.71%
按下载量换算52

Claude

27.98%
按下载量换算41

Cursor

17.54%
按下载量换算25

Gemini CLI

8.92%
按下载量换算13

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills