feat(agent): skywatch Claude Code subagent + install command#22
Merged
Conversation
Adds a Claude Code subagent that lets users ask for AIM 7-1-5 weather
briefs in natural language ("plan a flight from KCDW to KACY tomorrow at
8am, give me a brief"). The parent agent dispatches to the skywatch
subagent, which invokes the gem CLI and returns a prose briefing in
formal AIM 7-1-5 section order.
- agents/skywatch.md — subagent definition (frontmatter + system prompt)
- Tool surface: Bash only (gem CLI is the single data source)
- Output: AIM 7-1-5 prose with formal section headings
- Surfaces "VFR FLIGHT NOT RECOMMENDED" objectively when the slot
indicates it; never issues commands ("don't fly") — pilots decide
- lib/skywatch/agent/cli.rb — `skywatch agent install` Thor subcommand
- Copies the bundled file to ~/.claude/agents/skywatch.md
- Honors SKYWATCH_AGENTS_DIR env var for testability
- Prompts before overwrite (--yes to skip prompt)
- gemspec — includes agents/*.md in the published gem
Closes the v1 agent task.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Claude Code subagent (`agents/skywatch.md`) that lets users ask for AIM 7-1-5 weather briefs in natural language and get a prose briefing back. The parent agent dispatches to skywatch, which invokes the gem CLI and formats the JSON brief in formal AIM 7-1-5 section order.
Design decisions (locked with the user before building):
Install path: `skywatch agent install` copies the bundled agent file to `~/.claude/agents/skywatch.md`. `SKYWATCH_AGENTS_DIR` env var honored for testability. Prompts before overwrite (`--yes` skips).
After install + a Claude Code restart:
```
User: hey Claude, plan a flight from KCDW to KACY tomorrow at 8am, VFR only — give me a weather brief
Claude Code: [dispatches to skywatch subagent → CLI → formatted AIM 7-1-5 brief]
```
Test plan
🤖 Generated with Claude Code