Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

build-tui-view

БесплатноБез исполняемых скриптовНе проверен

Provides instructions for building Hatchet TUI views in the Hatchet CLI.

hatchet-devот hatchet-dev★ 8 377 звёзд на GitHub20 установок в других каталогах

Об этом скилле

📝 SELF-UPDATING DOCUMENT: This skill automatically updates itself when inaccuracies are discovered or new patterns are learned. Always verify information against the actual codebase and update this file when needed.

Overview

This skill provides instructions for creating and maintaining Terminal User Interface (TUI) views in the Hatchet CLI using bubbletea and lipgloss. The TUI system uses a modular view architecture where individual views are isolated in separate files within the views/ directory.

IMPORTANT: Always start by finding the corresponding view in the frontend application to understand the structure, columns, and API calls.

Self-Updating Skill Instructions

CRITICAL - READ FIRST: This skill document is designed to be continuously improved and kept accurate.

When to Update This Skill

You MUST update this skill file in the following situations:

  1. Discovering Inaccuracies

    • When you find incorrect file paths or directory structures
    • When code examples don't compile or don't match actual implementations
    • When API signatures have changed
    • When referenced files don't exist at specified locations
  2. Learning New Patterns

    • When implementing a new view and discovering better approaches
    • When the user teaches you new conventions or patterns
    • When you find reusable patterns that should be documented
    • When you discover common pitfalls that should be warned about
  3. Finding Missing Information

    • When you need information that isn't documented here
    • When new components or utilities are added to the codebase
    • When new bubbletea/lipgloss patterns are adopted
  4. User Corrections

    • When the user corrects any information in this document
    • When the user provides updated approaches or conventions
    • When the user points out outdated information

How to Update This Skill

When updating this skill:

  1. Verify Before Adding: Always verify paths, code, and API signatures against the actual codebase before adding to this document
  2. Use Read/Glob/Grep: Check the actual files to ensure accuracy
  3. Test Code Examples: Ensure code examples compile and follow current patterns
  4. Be Specific: Include exact file paths, function signatures, and working code examples
  5. Update Immediately: Make updates as soon as inaccuracies are discovered, not at the end of a session
  6. Preserve Structure: Maintain the existing document structure and formatting
  7. Add Context: When adding new sections, explain why the pattern is recommended

Verification Checklist

Before using information from this skill, verify:

  • File paths exist and are correct
  • Code examples match current implementations
  • API signatures match the generated REST client
  • Reusable components are correctly referenced
  • Directory structures are accurate

Self-Correction Process

If you discover an inaccuracy while working:

  1. Immediately note the issue
  2. Verify the correct information by reading the actual files
  3. Update this skill document with the correction
  4. Continue with the user's task using the corrected information

Remember: This skill should be a living document that grows more accurate and comprehensive with each use.

Project Context

  • Framework: bubbletea (TUI framework)
  • Styling: lipgloss (style definitions)
  • TUI Command Location: cmd/hatchet-cli/cli/tui.go
  • Views Location: cmd/hatchet-cli/cli/tui/ directory
  • Theme: Pre-defined Hatchet theme in cmd/hatchet-cli/cli/internal/styles/styles.go
  • Frontend Reference: frontend/app/src/pages/main/v1/ directory

Finding Frontend Prior Art

CRITICAL FIRST STEP: Before implementing any TUI view, locate the corresponding frontend view to understand:

  1. Column structure and names
  2. API endpoints and query parameters
  3. Data types and fields used
  4. Filtering and sorting logic

Process for Finding Frontend Reference:

  1. Locate the Frontend View

    # Navigate to frontend pages
    cd frontend/app/src/pages/main/v1/
    
    # Find views related to your feature (e.g., workflow-runs, tasks, events)
    ls -la
    
  2. Study the Column Definitions

    • Look for files like {feature}-columns.tsx
    • Note the column keys, titles, and accessors
    • Example: frontend/app/src/pages/main/v1/workflow-runs-v1/components/v1/task-runs-columns.tsx
    export const TaskRunColumn = {
      taskName: "Task Name",
      status: "Status",
      workflow: "Workflow",
      createdAt: "Created At",
      startedAt: "Started At",
      duration: "Duration",
    };
    
  3. Identify the Data Hook

    • Look for use-{feature}.tsx files in the hooks/ directory
    • These contain the API query logic
    • Example: frontend/app/src/pages/main/v1/workflow-runs-v1/hooks/use-runs.tsx
  4. **Find the API Q

Полный SKILL.md на GitHub

Установить build-tui-view в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл build-tui-view?

Provides instructions for building Hatchet TUI views in the Hatchet CLI.

Как установить скилл build-tui-view?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл build-tui-view запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить build-tui-view с