Skip to content
Back to skills

Pacer Owner

ASecurity

The operating loop for the session that owns Pacer — scheduled triage of Sentry, PostHog, GitHub and the owner's Mac; fixing what it finds in worktrees with subagents; merging and releasing on its own bar; escalating only direction-level decisions. Use at the start of any session put in charge of the whole project, after a restart of that session, and on each scheduled sweep.

  • 12 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 25, 2026
ai-agentsgogitapi

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add EricAndrechek/Pacer --skill pacer-owner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pacer Owner?

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

Security grade badge for Pacer Owner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ericandrechek-pacer-owner/badge)](https://www.skillsdirectory.com/skills/ericandrechek-pacer-owner)

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
---
name: pacer-owner
description: The operating loop for the session that owns Pacer — scheduled triage of Sentry, PostHog, GitHub and the owner's Mac; fixing what it finds in worktrees with subagents; merging and releasing on its own bar; escalating only direction-level decisions. Use at the start of any session put in charge of the whole project, after a restart of that session, and on each scheduled sweep.
---

# Own Pacer

The maintainer (the repo owner) has delegated the project to the owning session:
triage → fix → PR → merge → release → verify, without a per-merge or
per-release yes. The owner is asked only for direction (below). Everything else
in AGENTS.md still holds — above all **never take over the machine**.

## 1 · On start or restart

1. Read AGENTS.md, the pinned work queue (#249), and `~/.local/state/pacer-owner/state.json`
   (create it if missing: `{"lastSweep": null, "waves": [], "waiting": []}`).
2. `CronList`. Scheduled jobs live only in the session's memory, so re-arm whatever is
   missing — prompts verbatim, off-minute times:
   - **Sweep**, every 6 h: `CronCreate("17 */6 * * *", "pacer-owner: sweep")`
   - **Weekly note**, Monday morning: `CronCreate("13 9 * * 1", "pacer-owner: weekly")`
   - **Pricing watch**, Monday late morning: `CronCreate("37 10 * * 1", "pacer-owner: pricing watch")` (§6a)
   - **Sentry watcher**: run `~/.local/state/pacer-owner/sentry-watch.sh` with
     `run_in_background`; it exits on a new problem or after 5 quiet hours, so start it
     again each time it ends.
   - **Reminders**: `state.json` `reminders` holds one-time reminders (`due`, `text`).
     Raise each one whose `due` has passed (on start and at every sweep), then remove it
     or move its `due` on. A one-shot `CronCreate` may also carry it within a session, but
     `state.json` is the durable copy.
   Recurring jobs expire after 30 days; on the run that says it is the last, create it
   again.
3. Run one sweep now.

**API keys** live in ONE untracked `.env` at the root of the main checkout (git-ignored,
mode 600): `POSTHOG_PERSONAL_API_KEY` (+ `POSTHOG_HOST`, `POSTHOG_PROJECT_ID`) and
`SENTRY_AUTH_TOKEN` (+ `SENTRY_ORG`, `SENTRY_PROJECT`). Worktrees don't get a copy (a
copy goes stale when a key rotates); load it from any worktree through git:

```sh
set -a; . "$(git rev-parse --path-format=absolute --git-common-dir)/../.env"; set +a
```

They are the fallback when an MCP connection is down or signed out: the vendor's REST
API (PostHog `POST /api/projects/$POSTHOG_PROJECT_ID/query/` with a HogQL query;
`sentry-cli` or Sentry's API). CI's own secrets are in `keys/` (`keys/.env` and the key
files); `keys/refresh-secrets.sh` re-uploads all of them, and no secret may live only in
GitHub. Never print a key, never pass one to a subagent's prompt, and never send it
anywhere but its vendor.

## 2 · Sweep ("pacer-owner: sweep")

1. `~/.claude/skills/pacer/pacer gate --model <your model>`. On 10, checkpoint and
   `pacer wait` in the background; the sweep resumes when it exits.
2. In parallel, two **Sonnet** subagents (log and data reading on a precise brief),
   read-only, each told the time of the last sweep:
   - **Sentry** (`pacer-sentry` MCP): new, regressed and escalating issues; production
     vs `development` (the owner's debug build, release `@dev+<build>`); events on the
     latest release; dropped events. Top in-app frame and release for each.
   - **PostHog** (`pacer-posthog` MCP, `build.config='release'` only): each Mac's version
     and update state (`lifecycle.*`), stall and hang counters, archive integrity, the
     data canary, OAuth outcomes, crash relaunches; new and silent Macs. No ids, emails
     or names in the report.
3. Yourself, cheaply: GitHub (`gh issue list`/`gh pr list` updated since the last
   sweep, comments from anyone else, Dependabot, CI on `main`); this Mac (Pacer running,
   `~/Library/Logs/DiagnosticReports/Pacer-*.ips`, `[Hang]` and stall rates by display
   state, `[Memory]`, `installed-commit` vs `main`).
4. Triage each finding:
   - **Already tracked** → note on the issue only if it adds evidence.
   - **New** → file an issue (labels; evidence; no personal details — the repo is
     public), and resolve/archive/annotate the Sentry issue with the reason.
   - **Urgent** — a crash, data loss or a wrong number on the current release, a broken
     update path, a regression from our last release → start a fix wave now.
   - **An external PR or issue** → answer within the sweep; pull PRs with `wt switch pr:N`.
5. Update `state.json`. Edit #249's queue only when the queue changed (it is the public
   work list, never a place for messages to the owner). Stay silent otherwise.

## 3 · Work

Pick the next item from #249 (urgent first). For each wave:
- Gate first. Builders in their own `wt` worktrees off `main` (or a stacked branch),
  with the builder rules: no app launches, renders, installs or pushes; gate before each
  `make`; `make test-changed` / `make verify-changed`, never the full `make test`
  (AGENTS.md, "What to run for a change"). Models by task (CLAUDE.md): Sonnet for
  precise specs, Opus for judgement.
- Builders open DRAFT PRs (no CI runs on drafts: the macOS runners do about one job
  at a time, ~5 per PR). Fold the reviewed branches into ONE release-candidate branch
  (`rc/<version>` or `batch/<version>`); don't `gh pr update-branch` PRs that will be
  folded. Full `make test` on a quiet machine, `make verify`, `make lint-hangs`,
  `make test-ingest-parity` when ingest changed, `make verify-data` when a stored
  number changed.
- **An independent adversarial Opus review** of the whole diff, given the code, not the
  builders' claims. Fix what it finds; review the fixes.
- `make install` **in the foreground** from the candidate's worktree (a backgrounded
  install can't reach Apple's timestamp server), confirm `ok keychain` in the log. It
  may be installed before CI finishes. One non-draft PR to `main`: CI runs once on it
  (the screenshots workflow adds a commit; check it).
- **Merge yourself** once CI is green (squash, PR body as the message, `Fixes …` lines
  in the PR body). Docs, research and skill-only PRs merge without waiting for macOS CI.
  `wt remove` the merged worktrees.

## 4 · Release

Follow the `ship` skill; you are pre-authorized. On top of it:
- **Soak:** the exact code runs on the owner's Mac for at least 6 h, including a stretch
  with a display awake, with no new crash report and no hang spike for the same display
  state (the hang tags say whether the Mac itself was saturated). A crash, data-loss or
  update-path fix may ship after 2 h, never less, never skipping the crash check.
- **Cadence:** batch; at most one release a day, unless an urgent patch is needed (a
  crash, data loss, a wrong number, a broken update path).
- **Skipping versions must be safe:** a Mac several releases behind updates straight to
  the newest in one install, so every migration has to compose from any shipped
  release. Before a release that touches `Models/` or a version-gated upgrade, run the
  upgrade check from every shipped release (see `docs/releasing.md`).
- After verify: resolve the fixed Sentry issues in the new release, close or update
  issues, and record it in memory.

## 5 · Ask the owner only for these

Product direction or new features; a new or redesigned piece of UI (render it first, `make render-live`, and
show it; small visual fixes such as alignment, clipping or a wrong colour need no ask);
a schema change (a minor release); a change to what telemetry sends or to the README's
privacy promise; pricing policy; spending money or a new external service; posting
anywhere public; anything needing the owner's credentials, Apple account or screen
(an on-machine scripted check needs his yes for that run).

**`parked`, `needs-decision` and `design-first` are not "wait for the owner".** The owning
session drives them (owner, 2026-12-04). Before working an item the owner parked, show him
what it is and why it was parked (the issue's comments, #249, memory), so he can add his
cautions first. Then build it, or bring renders for UI.

How: a message in the owning session, as it comes up: plain numbered questions, each
with a recommendation. Never in a commit, a GitHub issue or a comment (the repo is
public), and don't rely on push notifications reaching anyone. Keep the item in
`state.json` `waiting` and carry on with other work; never sit idle waiting.

## 6 · Weekly ("pacer-owner: weekly")

One message in the owning session: what shipped, the fleet (versions, health), what's
next, and anything waiting on the owner. Not posted anywhere public. The owner's periodic
reports also carry: settings across Macs, which pages and features are and aren't used,
CLI usage, and every `pacer feedback` report since the last report (Sentry
`issue.category:feedback`, plus what pacer-manager forwards), handled or not.

## 6a · Pricing watch ("pacer-owner: pricing watch")

A judgement job for this session, not a GitHub Action. The deterministic part is
`price-catalog-sync.yml`, every 6 h. Each Monday, a Sonnet subagent reads, read-only:
Anthropic's pricing page and model docs, Claude Code release notes, and the SDKs' model
lists. It compares them with the live price list (`pacer.andrechek.com/price-history.json`)
and its curated records. Look for:
- wrong rates;
- new or preview models without a row (a missing price shows as $0);
- long-context thresholds other than 200k;
- new cache tiers, fees or billing rules Pacer can't represent;
- the sync workflow's health.

Fix wrong rates with curated records (`docs/releasing.md`, "The price list"; never
hand-edit or revert catalog records). File code changes for rules Pacer can't represent.
Tell the owner only if a price was wrong or something needs his call.

## Never

Take over the screen; delete raw data; rewrite `main`'s history or force-push it;
let usage percentages pick models, scope or what to defer (the pacer gate only stops
work); merge without the review and soak above.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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