pp-alaska-airlines
Search Alaska Airlines flights and check Atmos Rewards balance from the terminal, with offline-cached airports and agent-native JSON output. Trigger phrases: `search alaska flights`, `atmos rewards balance`, `alaska shoulder dates`, `alaska airport lookup`, `use alaska-airlines`.
What this skill does
<!-- GENERATED FILE — DO NOT EDIT.
This file is a verbatim mirror of library/travel/alaska-airlines/SKILL.md,
regenerated post-merge by tools/generate-skills/. Hand-edits here are
silently overwritten on the next regen. Edit the library/ source instead.
See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". -->
# Alaska Airlines — Printing Press CLI
## Prerequisites: Install the CLI
This skill drives the `alaska-airlines-pp-cli` binary. **You must verify the CLI is installed before invoking any command from this skill.** If it is missing, install it first:
1. Install via the Printing Press installer. It defaults binaries to `$HOME/.local/bin` on macOS/Linux and `%LOCALAPPDATA%\Programs\PrintingPress\bin` on Windows:
```bash
npx -y @mvanhorn/printing-press-library install alaska-airlines --cli-only
```
2. Verify: `alaska-airlines-pp-cli --version`
3. Ensure the reported install directory is on `$PATH` for the agent/runtime that will invoke this skill.
If the `npx` install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.3 or newer):
```bash
go install github.com/mvanhorn/printing-press-library/library/travel/alaska-airlines/cmd/alaska-airlines-pp-cli@latest
```
If `--version` reports "command not found" after install, the runtime cannot see the binary directory on `$PATH`. Do not proceed with skill commands until verification succeeds.
## When to Use This CLI
Pick this CLI when an agent needs to search Alaska flights or check Atmos Rewards data programmatically with cached airport lookup and trimmed JSON output. Don't pick it for booking automation; the final pay POST is not replayable from a static binary and is not attempted.
## Known Gaps
These capabilities were scoped in the manuscript for this CLI but were not implemented in this generation. They are not currently available; planning around them will fail with "unknown command" or "unknown flag" errors. Use the listed real command instead where applicable:
- `book prepare` (pre-checkout deeplink builder) - not implemented
- `flights search --want-seats-together` (family-of-N seat finder) - not implemented
- `flights award-watch` (award fare-drop watcher) - not implemented; track manually by re-running `flights award-cheapest` on a schedule
- `atmos status` (tier progress) - not implemented; use `atmos-rewards balance` for raw points
- `flights search multi` (multi-leg composer) - not implemented; run separate `flights search` invocations per leg
- `doctor --auth` (dedicated JWT decode flag) - not implemented; `doctor` performs the general auth check
## Unique Capabilities
These capabilities aren't available in any other tool for this API.
### Agent-native plumbing
- **`flights search --select`** — Generic --select flag narrows the ~50KB search/results JSON to just the fields the agent needs.
_Lets the agent ask for exactly what it needs and skip the chrome._
```bash
alaska-airlines-pp-cli flights search --origin SFO --destination SEA --depart 2026-11-27 --json --select flights.flightNumber,flights.fares.saver.price,flights.duration
```
### Award (miles+cash) planner
- **`flights award-cheapest --destination-region japan --month 2026-08`** — Fan out across every (depart, return) pair in a calendar month across multiple destination airports in parallel; return the cheapest round-trip in miles.
_Solves "find me a flight to Japan using points lowest price in August" in one command instead of clicking the Alaska site N times._
```bash
alaska-airlines-pp-cli flights award-cheapest --origin SFO --destination-region japan --month 2026-08 --cabin economy --max-stops 1 --json
```
Built on the same `/search/results/__data.json` endpoint the cash search uses; the `--award` flag (or `flights award-search`) toggles `ShoppingMethod=onlineaward`.
### Cash vs. points value comparator with TPG valuation
- **`flights value-compare --origin FCO --destination SEA --depart 2026-08-30`** — Runs paired cash + award searches for the same itinerary and applies a cents-per-point baseline (default: Alaska/Atmos from The Points Guy's monthly valuations page, scraped on first use and cached locally for 30 days). Returns effective cpp, TPG multiple, and TPG-valued dollar cost of paying with points.
_Answers "is this redemption actually a good deal?" in one read instead of running two searches and a calculator._
```bash
alaska-airlines-pp-cli flights value-compare --origin FCO --destination SEA --depart 2026-08-30 --cabin economy --max-stops 0 --json
```
Use `--cpp 1.2` to override the baseline (e.g. NerdWallet's number) or `--no-valuation-cache` to force a fresh TPG scrape. Soft-fallback chain: override → fresh cache → live TPG → stale cache → constant. Never hard-fails on a valuation lookup issue; surfaces the source in `meta.cpp_baseline_source` (`tpg-live`, `tpg-cached`, `override`, `fallback-stale`, `fallback-constant`).
## HTTP Transport
This CLI uses Chrome-compatible HTTP transport for browser-facing endpoints. It does not require a resident browser process for normal API calls.
## Command Reference
**account** — Login status, session tokens
- `alaska-airlines-pp-cli account login-status` — Check if current cookie session is authenticated
- `alaska-airlines-pp-cli account token` — Refresh primary session JWT
**airports** — Airport lookup, codeshare partner info, and full catalog
- `alaska-airlines-pp-cli airports get` — Get airport details by IATA code, including codeshare carrier coverage
- `alaska-airlines-pp-cli airports list` — Full Alaska Airlines + codeshare airport list (IATA + city + region + lat/lon)
**atmos-rewards** — Atmos Rewards loyalty program account data
- `alaska-airlines-pp-cli atmos-rewards balance` — Current Atmos Rewards points balance
- `alaska-airlines-pp-cli atmos-rewards token-refresh` — Refresh Atmos Rewards token via cookie session
**cart** — Cart state for a constructed itinerary deeplink (read-only inspection)
- `alaska-airlines-pp-cli cart` — Inspect cart state for a constructed itinerary deeplink (requires `--leg1` and `--adults` flags)
**flights** — Search Alaska Airlines flights with pricing, fare classes, and flexible-date matrices
- `alaska-airlines-pp-cli flights business` — Alaska for Business program metadata
- `alaska-airlines-pp-cli flights et-info` — Electronic ticket info / general metadata
- `alaska-airlines-pp-cli flights get-features` — Feature flags scoped to a user (used internally by site)
- `alaska-airlines-pp-cli flights search` — Search flights between two airports for given dates and passenger mix. Pass `--award` to switch from cash to miles+cash fares (same endpoint, `ShoppingMethod=onlineaward`).
- `alaska-airlines-pp-cli flights shoulder-dates` — Flexible-date pricing matrix - get fares for dates near your target
- `alaska-airlines-pp-cli flights award-search` — Single-date award fare matrix (miles + cash). Thin alias over `flights search --award`.
- `alaska-airlines-pp-cli flights award-cheapest` — Lowest-miles-in-a-month planner. Fans out across destinations and (depart, return) pairs in parallel; returns the cheapest round-trip in miles.
- `alaska-airlines-pp-cli flights value-compare` — Cash vs. points comparator with TPG cents-per-point valuation. Runs paired searches for the same itinerary and emits effective cpp, TPG multiple, and TPG-valued dollar cost of paying with points. Pass `--cpp <float>` to override the baseline.
### Finding the right command
When you know what you want to do but not which command does it, ask the CLI directly:
```bash
alaska-airlines-pp-cli which "<capability in your own words>"
```
`which` resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code `0` means at least one match; exit code `2` means no confident match — fall back to `--help` or use a narrower query.
## Recipes
### Trim a flights seaRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.