skills/updating-service-skills/SKILL.md
Detect implementation drift and sync expert persona documentation. Activates automatically via PostToolUse hook when files in a registered service territory are modified. Use when a skill's documentation has fallen behind the actual implementation.
npx skillsauth add jaggerxtrm/jaggers-agent-tools updating-service-skillsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the Service Skills Librarian. Your job is to keep expert persona documentation in sync with the actual implementation as the codebase evolves.
After any Write or Edit operation, the PostToolUse hook runs
drift_detector.py check-hook. It reads the modified file path from stdin JSON
and checks whether it falls within a registered service territory.
If drift is detected, you will see this in your context:
[Skill Sync]: Implementation drift detected in 'db-expert'.
File 'src/db/users.ts' was modified.
Use '/updating-service-skills' to sync the Database Expert documentation.
python3 "$CLAUDE_PROJECT_DIR/.claude/skills/updating-service-skills/scripts/drift_detector.py" scan
Read: .claude/skills/<service-id>/SKILL.md
Use Serena LSP tools (not raw file reads) to understand what changed:
get_symbols_overview(<modified-file>, depth=1)
find_symbol(<changed-function>, include_body=True)
search_for_pattern("<new-pattern>")
scripts/log_hunter.py if new log strings foundservice-registry.json if scope expanded<!-- SEMANTIC_START --> ... <!-- SEMANTIC_END --> blockspython3 "$CLAUDE_PROJECT_DIR/.claude/skills/updating-service-skills/scripts/drift_detector.py" \
sync <service-id>
search_for_pattern("raise.*New.*Error|logger.error.*new") to find itscripts/log_hunter.py PATTERNS list with correct severityservice-registry.json cover new filesterritory array in service-registry.jsonget_symbols_overview on all changed filesWrite to:
.claude/skills/*/SKILL.md — skill documentation updates.claude/skills/service-registry.json — territory and sync timestamp updatesAvoid:
✅ Skill Synced: `<service-id>`
Updated:
- log_hunter.py: added 2 new patterns from exception handlers
- SKILL.md: Failure Modes table updated with OAuth expiry scenario
- Territory: unchanged
Next sync: triggers on next modification to <territory-patterns>
/using-service-skills — Discover and activate expert personas/creating-service-skills — Scaffold new expert personasdevelopment
Operational service-knowledge system for a project's services. One skill that creates, discovers, activates, updates, and scopes per-service expert skill packages (SKILL.md + diagnostic scripts + references), kept in sync with the code via a GitNexus-aware drift engine. Use when onboarding to a service, routing a task to the right expert, scaffolding a missing skill, or syncing a skill after the implementation drifted. Triggers: /service-skills, /creating-service-skills, /using-service-skills, /updating-service-skills, /scope, or any task that touches a registered service territory.
development
Bootstrap a complete security pipeline (Dependabot + OSV + Semgrep + gitleaks + pre-commit hooks + Codex review) on any GitHub repo. Designed for free user-private repos where GitHub Advanced Security is unavailable. Reusable across Python/TypeScript/Go/Rust stacks.
testing
Merges queued PRs from xt worktree sessions in the correct order (FIFO), maintaining linear history by rebasing remaining PRs after each merge. Use this skill whenever the user has multiple open PRs from xt worktrees, asks to "merge my PRs", "process the PR queue", "drain the queue", "merge worktree branches", or says "what PRs do I have open". Also activate after any xt-end completion when other PRs are already open, or when the user asks "can I merge yet" or "is CI green". Handles the full sequence: list → sort → CI check → merge oldest → rebase cascade → repeat until queue is empty.
testing
Autonomous session close flow for xt worktree sessions. Use this skill whenever the user says "done", "finished", "wrap up", "close session", "ship it", "I'm done", "ready to merge", or similar. Also activate when all beads issues in the session are closed, or when the user explicitly runs /xt-end. This skill is designed for headless/specialist use: it must make deterministic decisions, auto-remediate common anomalies, and avoid clarification questions unless execution is truly blocked.