harness-check
Run the full self-learning harness integrity report (protected hooks and skills exist and are wired, capture is flowing, transcripts are visible, memory index matches disk, no ritual overdue). Use when a session-start drift note appears, when something about hooks or memory feels off, or after editing .claude/settings.json, .claude/hooks/ or .claude/harness/.
- License 许可
- MIT
- 最近更新
- 2026-10-06
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- harness-check
- description
- Run the full self-learning harness integrity report (protected hooks and skills exist and are wired, capture is flowing, transcripts are visible, memory index matches disk, no ritual overdue). Use when a session-start drift note appears, when something about hooks or memory feels off, or after editing .claude/settings.json, .claude/hooks/ or .claude/harness/.
03 SKILL.md 正文
Harness check
The same checker runs quietly at every session start and prints only drift and overdue rituals. This is the full, loud version, with slower cross-checks (extractor agreement, 3 days of hook runtime errors, latest CI run per workflow).
python3 .claude/hooks/harness-healthcheck.py
Exit 0 = healthy, 1 = drift. Report the real output.
Fixing drift
- Missing protected file: restore it from git (
git log --oneline -- <path>), or rebuild it from itsremoval_rulein.claude/harness/manifest.json. - Hook not registered: add it back to
.claude/settings.jsonunder the event named in the manifest, then regenerate the Codex adapter (.codex/hooks.json, see.agents/README.md). This is the silent-death failure the check exists for. - Capture not flowing / not converging: confirm
capture-activity.shis underPostToolUseand resolves its path only viaharness_paths.captures_dir().python3 .claude/hooks/harness_paths.pyprints every resolved path. - Extractor sees 0 transcripts while capture logs sessions: the signal source
is disconnected. Check
transcriptsin the manifest against where your agent actually writes transcripts. - Memory index mismatch: run the
reflectskill to reconcile.
Only cadence directives, no FAILs: nothing is broken; run the reflect or
harness-optimize skill as suggested. Re-run until All N checks passed.
04 同仓库更多 Skills
ship
Release checklist for getting a build to testers or the stores. Runs the risk gate first (refuses while a risk item is open) and walks the owner through the compliance checklist. Covers the version bump, EAS build and submit, OTA updates and when they're safe, changelog, store listing, privacy nutrition label / data safety form, the Accessibility Nutrition Labels, and the account-deletion requirement. Guidance-level; it never handles signing secrets. Use when asked to ship, release, submit to TestFlight / App Store / Play, or push an OTA update.
routines
Put the project's recurring rituals on a schedule, with the owner's consent. Weekly north-star report, monthly market watch, dependency triage, Supabase advisor sweep, reflect and harness-optimize. Uses Claude Code Routines (cloud cron) where they fit, and documents the Codex / local cron equivalent. Use when asked to automate, schedule or "keep the project moving on its own", or after setup finishes.
reflect
Consolidate what recent sessions learned into the project's long-term memory (.agents/memory). Use at the end of a substantial session, after a correction from the user, after a painful debugging session, when the session-start healthcheck says reflect is overdue or a pending-reflection seed is waiting, or when MEMORY.md exceeds its budget.
pr-review
Review a pull request on the owner's behalf and fix what's safe to fix. Runs the deterministic gates first, then correctness/security, design-system, accessibility and analytics review passes, verifies each blocking finding, applies safe fixes, re-checks, and ends with a plain-English verdict. Use when a PR is opened, when asked to review a PR, a branch or a pasted diff, or before merging anything.
north-star-report
Weekly product-analytics and reliability readout. Pulls the funnel of the brief's 5 north-star events from PostHog, finds the biggest drop-offs and errors, checks each SLO in docs/slo.yaml against its error budget, compares with last week, and proposes (then, with a yes, files) tickets that target them. Use weekly, when the session-start line says it's overdue, when the backlog is empty, or when asked "how is the app doing?".
next
Decide the single next best thing to work on, with two alternates. Reads setup progress, work in progress, open PRs and failing CI, the backlog (GitHub Issues or Linear), overdue harness rituals, product decisions parked until now, and north-star analytics if PostHog is connected. Use when someone asks "what next?", "what should I work on?", at the start of a session, or after a PR merges.