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

textual-ui-developer文本 ui 开发人员

Agent Skill

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

总安装

1,198

周安装

48

GitHub Stars

968

下载量

388
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:textual-ui-developer(文本 ui 开发人员)
来源仓库:https://github.com/massgen/massgen
仓库路径:skills/textual-ui-developer
安装命令:
npx skills add https://github.com/massgen/massgen --skill textual-ui-developer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/massgen/massgen --skill textual-ui-developer

简介

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 适合整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。
  • 需结合现有品牌、设计系统和用户任务,避免堆砌装饰元素。
  • 涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出和对齐。
  • 安装前建议确认权限范围和维护状态,以及是否会触发联网或文件读写。

SKILL.md

Textual UI Developer

Use this skill to improve the MassGen Textual UI while minimizing flaky reproduction and API cost.

Use This Skill When

  • You need to debug timeline rendering or ordering issues.
  • You need to verify layout/styling changes in the real Textual shell.
  • You need to update or add TUI regression tests (snapshot/golden/transcript).
  • You need to reproduce UI behavior from events.jsonl deterministically.

Default Strategy

Prefer deterministic workflows before live model runs:

  1. Reproduce from recorded/synthetic events (events.jsonl) with no API calls.
  2. Confirm behavior in the real shell using --tui-real.
  3. Encode findings into tests (unit, transcript golden, snapshot).
  4. Use live massgen --display textual or --textual-serve only when needed.

Quick Commands

# Full frontend/TUI test suite
uv run pytest massgen/tests/frontend -q

# Timeline transcript goldens
uv run pytest massgen/tests/frontend/test_timeline_transcript_golden.py -q
UPDATE_GOLDENS=1 uv run pytest massgen/tests/frontend/test_timeline_transcript_golden.py -q

# Snapshot scaffold tests
uv run pytest massgen/tests/frontend/test_timeline_snapshot_scaffold.py -q
uv run pytest massgen/tests/frontend/test_timeline_snapshot_scaffold.py --snapshot-update -q
uv run pytest massgen/tests/frontend/test_timeline_snapshot_scaffold.py -q --snapshot-report snapshot_report.html
uv run python scripts/render_snapshot_svgs.py --real-tui-only

# Event replay (no API cost)
uv run python scripts/dump_timeline_from_events.py /path/to/events.jsonl [agent_id]
uv run python scripts/dump_timeline_from_events.py --tui /path/to/events.jsonl [agent_id]
uv run python scripts/dump_timeline_from_events.py --tui-real /path/to/events.jsonl [agent_id]

# Example synthetic fixture
uv run python scripts/dump_timeline_from_events.py --tui-real massgen/tests/frontend/fixtures/synthetic_tui_events.jsonl agent_a

Workflow

1) Reproduce with Event Replay (No API Cost)

Start with transcript replay to verify timeline semantics quickly:

uv run python scripts/dump_timeline_from_events.py /path/to/events.jsonl agent_a

Then inspect visually:

# Lightweight timeline-focused view
uv run python scripts/dump_timeline_from_events.py --tui /path/to/events.jsonl agent_a

# Full runtime TextualApp shell
uv run python scripts/dump_timeline_from_events.py --tui-real /path/to/events.jsonl agent_a

Optional speed control for real replay:

MASSGEN_TUI_REPLAY_SPEED=8 uv run python scripts/dump_timeline_from_events.py --tui-real /path/to/events.jsonl agent_a

Exit replay with q.

2) Convert Findings into Tests

Pick the narrowest layer that captures the bug:

  • Unit logic: test_tool_batch_tracker.py, test_content_processor.py, helpers.
  • Transcript/golden behavior: test_timeline_transcript_golden.py + massgen/tests/frontend/golden/.
  • Widget/shell snapshots: test_timeline_snapshot_scaffold.py + massgen/tests/frontend/__snapshots__/.
  • Replay script behavior: test_dump_timeline_from_events_script.py.

Final Presentation Focus Loop

When iterating specifically on final-answer visualization:

  1. Validate header semantics in unit tests (winner line, tie-break markers, vote line formatting) in test_timeline_section_widget.py.
  2. Regenerate only final-presentation snapshots if intended UI changed:

- uv run pytest massgen/tests/frontend/test_timeline_snapshot_scaffold.py --snapshot-update -q

  1. Verify runtime shell appearance with no API cost:

- uv run python scripts/dump_timeline_from_events.py --tui-real massgen/tests/frontend/fixtures/synthetic_tui_events.jsonl agent_a

  1. Run full frontend suite before finalizing:

- uv run pytest massgen/tests/frontend -q

3) Snapshot Workflow

If snapshot tests mismatch:

  1. Open snapshot_report.html.
  2. Check Show difference toggle interpretation:

- ON = blend-diff overlay (can look purple/black). - OFF = raw current vs historical snapshots.

  1. If change is intentional, regenerate with --snapshot-update.
  2. Re-run the frontend suite to confirm stability.

3.1) Mandatory Screenshot Review

For visual/UI tasks, do not rely on test pass/fail alone. You must read screenshots directly before finalizing:

  1. Review the snapshot images in snapshot_report.html (current vs historical).
  2. Keep Show difference OFF first to verify raw rendering; then optionally use ON for pixel-level drift.
  3. If screenshots are provided in chat/task context, inspect those images directly and compare against expected runtime appearance.
  4. If your viewer cannot open .svg, render via browser engine:

- npx playwright screenshot "file:///ABS/PATH/to/snapshot.svg" /tmp/snapshot.png - Batch all (or real-TUI-only): uv run python scripts/render_snapshot_svgs.py [--real-tui-only] - Prefer this over ImageMagick conversion for Textual snapshots to avoid false artifacts.

  1. Call out any mismatch between rendered snapshots and expected real TUI look, even if tests pass.
  2. Only conclude "visual change verified" after explicit screenshot review.

4) Optional Live Visual Validation

Use live runs only after deterministic checks pass:

# Native terminal TUI
uv run massgen --display textual

# Browser-hosted Textual
uv run massgen --textual-serve

Key Files

  • scripts/dump_timeline_from_events.py: text replay, --tui, and --tui-real modes.
  • massgen/frontend/displays/textual_terminal_display.py: TextualApp, shell layout, runtime event routing.
  • massgen/frontend/displays/tui_event_pipeline.py: timeline event adapter and filtering logic.
  • massgen/frontend/displays/timeline_event_recorder.py: deterministic text transcript recorder.
  • massgen/tests/frontend/test_timeline_snapshot_scaffold.py: snapshot scaffold (widget + real shell states).
  • massgen/tests/frontend/test_timeline_transcript_golden.py: transcript golden regressions.
  • docs/modules/testing.md: canonical testing commands and parity notes.

Done Criteria

A TUI change is complete when:

  1. Relevant deterministic tests were added or updated first.
  2. uv run pytest massgen/tests/frontend -q passes.
  3. Snapshot/golden updates are intentional and reviewed.
  4. --tui-real replay confirms expected real-shell behavior for the target scenario.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

30.62%
按下载量换算119

Gemini CLI

21.62%
按下载量换算84

Antigravity

15.38%
按下载量换算60

windsurf

11.22%
按下载量换算44

Codex

7.28%
按下载量换算28

OpenCode

3.13%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills