self-healing-observer
Pre-flight auth check for observer/memory agents with local fallback
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 9
- Forks
- 1
01 前言 Front Matter
- name
- self-healing-observer
- description
- Pre-flight auth check for observer/memory agents with local fallback
02 资源文件 1
- 参考文档index.json559 B
03 SKILL.md 正文
Self-Healing Observer Pipeline
Usage
Invoke with: /self-healing-observer before launching any observer or memory agent session.
Pre-Flight Check
- Test OAuth token — make a minimal API call to verify authentication
- If 401 or auth error:
- Attempt token refresh using stored refresh token
- If refresh succeeds: proceed normally, log "AUTH: refreshed"
- If refresh fails: switch to local mode
- Surface auth status in the first line of output:
AUTH: valid— proceeding with API-based observationAUTH: refreshed— token was stale, refreshed successfullyAUTH: local-only— API unavailable, using file-based logging
Local Fallback Mode
When API auth is unavailable:
- Write all observations to
~/.claude/logs/observations/session-{timestamp}.md - Use standard frontmatter format:
--- session: {timestamp} mode: local-only directory: {pwd} --- - Log key decisions, file changes, and context for next session
- Do NOT retry API calls — they will all fail
Rules
- NEVER proceed with observer agents if auth check fails AND local fallback is not set up
- NEVER retry failed auth calls more than once
- Always tell the user which mode is active
- Local observations can be bulk-uploaded to API later when auth is restored
04 同仓库更多 Skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
docs:write-concisely
Apply writing rules to any documentation that humans will read. Makes your writing clearer, stronger, and more professional.
kaizen:why
Iterative Five Whys root cause analysis drilling from symptoms to fundamentals
verification-loop
A comprehensive verification system for Claude Code sessions.
verification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always