tui-canvas: Skill for OpenCode

.opencode/skill/flight/SKILL.md

flight is a skill for OpenCode from Czaruno/tui-canvas. It costs 29 tokens per session (1,361 once invoked), scanned A, original, MIT.

A flight-search canvas for comparing available flights and choosing seats in an interactive interface.

In plain words
What is it for?
Use it to search routes, compare flight options, and select seats on an interactive seat map when one is provided.
Why use it?
It puts flight details such as airlines, times, durations, and prices in one view, so you can compare options without checking them one by one.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: positional $N argument.

This is Czaruno/tui-canvas's own configuration. It tells OpenCode how to work on tui-canvas itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tui-canvas configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Czaruno/tui-canvas. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Czaruno/tui-canvas/main/.opencode/skill/flight/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Czaruno/tui-canvas

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flight

README.md
[![agentmods](https://agentmods.dev/badge/skills/czaruno/tui-canvas/flight/github.svg)](https://agentmods.dev/skills/czaruno/tui-canvas/flight)
Your own site
<a href="https://agentmods.dev/skills/czaruno/tui-canvas/flight"><img src="https://agentmods.dev/badge/skills/czaruno/tui-canvas/flight/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flight

Your own site · 80×15
<a href="https://agentmods.dev/skills/czaruno/tui-canvas/flight"><img src="https://agentmods.dev/badge/skills/czaruno/tui-canvas/flight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,361 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01361
Opus 5.5 $0.00012 $0.00544
Sonnet 5.5 $0.00006 $0.00272
Haiku 4.5 $0.00003 $0.00136

Measured 2mo ago against content hash c93193e7da1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flight scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skill/flight/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flight Canvas

Cyberpunk-themed flight comparison and seat selection interface.

Example Prompts

  • "Find flights from San Francisco to Denver on January 15th"
  • "Book me a window seat on the cheapest nonstop to NYC"
  • "Compare morning flights from LAX to Seattle next Monday"
  • "I need a business class seat to Chicago with extra legroom"
  • "Show me United flights to Boston under $300"

Scenario

booking (default)

Interactive flight comparison and seat selection.

  • Shows flight options with airline, times, duration, and price
  • Interactive seat map for seat selection (when seatmap provided)
  • Keyboard navigation between flights and seats
  • Cyberpunk aesthetic with neon colors

Tool Usage

canvas_flight({
  config: JSON.stringify({
    title: "// SFO -> DEN //",
    flights: [
      {
        id: "ua123",
        airline: "United Airlines",
        flightNumber: "UA 123",
        origin: {
          code: "SFO",
          name: "San Francisco International",
          city: "San Francisco",
          timezone: "PST"
        },
        destination: {
          code: "DEN",
          name: "Denver International",
          city: "Denver",
          timezone: "MST"
        },
        departureTime: "2026-01-15T08:00:00",
        arrivalTime: "2026-01-15T11:30:00",
        duration: 150,
        price: 29900,  // cents ($299.00)
        currency: "USD",
        cabinClass: "economy",
        aircraft: "Boeing 737-800",
        stops: 0
      }
    ]
  })
})

Configuration Types

interface FlightConfig {
  flights: Flight[];
  title?: string;           // Header title (cyberpunk style)
  showSeatmap?: boolean;    // Enable seat selection
  selectedFlightId?: string; // Pre-select a flight
}

interface Flight {
  id: string;
  airline: string;          // e.g., "United Airlines"
  flightNumber: string;     // e.g., "UA 123"
  origin: Airport;
  destination: Airport;
  departureTime: string;    // ISO datetime
  arrivalTime: string;      // ISO datetime
  duration: number;         // Minutes
  price: number;            // Cents (29900 = $299.00)
  currency: string;         // e.g., "USD"
  cabinClass: "economy" | "premium" | "business" | "first";
  aircraft?: string;        // e.g., "Boeing 737-800"
  stops: number;            // 0 = nonstop
  seatmap?: Seatmap;        // Optional seat selection
}

interface Airport {
  code: string;             // 3-letter code (SFO, JFK, etc.)
  name: string;             // Full airport name
  city: string;
  timezone: string;         // PST, EST, etc.
}

interface Seatmap {
  rows: number;             // Total rows
  seatsPerRow: string[];    // e.g., ["A", "B", "C", "D", "E", "F"]
  aisleAfter: string[];     // e.g., ["C"] = aisle after seat C
  unavailable: string[];    // Blocked seats (e.g., ["1A", "1B"])
  premium: string[];        // Extra legroom/exit row seats
  occupied: string[];       // Already booked seats
}

Read the full file on GitHub · 169 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 169 lines · 29 tokens per session scan A c93193e7da1e

Subscribe to this mod's changes

flight is a skill published in the GitHub repository Czaruno/tui-canvas (0 stars, last pushed 9mo ago), licensed MIT. It adds 29 tokens to every session and 1,361 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

flight compared with skills from other repositories

flight next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flightCzaruno/tui-canvasSkill09mo agoMITA29OpenCode
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code