Skip to content
Back to skills

167 Fn 14 Wv3 65519d48

ASecurity

Integrate Ralph async control commands into flow-next-tui, allowing users to monitor and control Ralph runs from the terminal UI.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 31, 2026
toolsbash

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 31, 2026

npx -y skills add tools-only/X-Skills --skill 167-fn-14-wv3_65519d48 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 167 Fn 14 Wv3 65519d48?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 167 Fn 14 Wv3 65519d48
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-167-fn-14-wv3-65519d48/badge)](https://www.skillsdirectory.com/skills/tools-only-167-fn-14-wv3-65519d48)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# TUI: Ralph Control Integration

## Overview

Integrate Ralph async control commands into flow-next-tui, allowing users to monitor and control Ralph runs from the terminal UI.

**Depends on:** fn-13-pxj (Ralph Async Control)

## Scope

**In scope:**
- Display pause/stop state in run list and detail views
- Show `completion_reason` for finished runs
- Add keybindings for pause/resume/stop actions
- Real-time state updates (poll or watch sentinel files)

**Out of scope:**
- Task reset from TUI (use CLI for now)
- Multiple concurrent runs

## Key Integration Points

From research (flow-next-tui codebase):
- `src/lib/runs.ts` — run discovery, `isRunActive()` at L162-185
- `src/lib/types.ts` — `TaskStatus`, need new `RunState` values
- Need to detect PAUSE/STOP sentinel files in run directories

## Approach

1. **Extend run state detection:**
   - Add `getRunControlState(runPath)` → `{paused: boolean, stopped: boolean, completion_reason?: string}`
   - Update `isRunActive()` to account for completion marker

2. **UI changes:**
   - Run list: show [PAUSED] / [STOPPED] badges
   - Run detail: show control state + completion reason
   - Add keybindings: `p` pause, `r` resume, `s` stop

3. **Actions:**
   - Call `flowctl ralph pause/resume/stop` via subprocess
   - Refresh state after action

## Quick Commands

```bash
# Dev server
cd flow-next-tui && bun dev

# Build
cd flow-next-tui && bun run build
```

## Acceptance

- [ ] Run list shows pause/stop state badges
- [ ] Run detail shows completion_reason for finished runs
- [ ] Keybindings work for pause/resume/stop
- [ ] State updates after control actions
- [ ] Works with sentinel files from fn-13-pxj

## References

- `flow-next-tui/src/lib/runs.ts` — run discovery
- `flow-next-tui/src/lib/types.ts` — type definitions
- fn-13-pxj spec — sentinel file locations and semantics

Files in this skill

  • README.md903 B
  • skill.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.