resolve
Review pending drift warnings and fix affected documentation or dismiss false positives
What this skill does
# doc-sentinel:resolve Process accumulated drift warnings from `.doc-sentinel-drift.json`. For each warning, verify whether the doc actually drifted, fix it if so, or dismiss if it is a false positive. ## Phase 1: Load Drift Queue ```bash cat .doc-sentinel-drift.json 2>/dev/null || echo "No drift warnings pending" ``` If the file is empty or missing, report "No drift warnings to resolve" and exit. ## Phase 2: Deduplicate and Group Group warnings by doc file. Multiple source changes may affect the same doc — process them together for coherent updates. Example grouping: ``` ARCHITECTURE.md - src/routes/auth.ts changed (commit abc123) - src/routes/users.ts changed (commit def456) docs/api.md - src/controllers/payments.ts changed (commit abc123) ``` Present the grouped summary and total count before proceeding. ## Phase 3: Triage Each Group For each doc file with drift warnings: ### 3a: Read Current State Read the doc file and the changed source files to understand what actually changed. ### 3b: Classify the Drift Determine what kind of drift occurred: | Classification | Description | Action | |---------------|-------------|--------| | **Path moved** | Source file was renamed or moved | Update path references in doc | | **API changed** | Function signatures, endpoints, or interfaces changed | Update API documentation | | **Config changed** | Env vars, ports, or settings changed | Update config references | | **Structure changed** | Directories added/removed, module reorganized | Update codemap/architecture sections | | **Behavioral change** | Logic changed but interface stayed the same | Update descriptions if they mention specific behavior | | **False positive** | Doc references the file but the relevant content did not change | Dismiss | ### 3c: Apply Fix or Dismiss **For real drift:** - Read the doc section that references the changed code - Read the new state of the source code - Update the doc to reflect the current reality - Keep the same writing style and level of detail as the surrounding content - If unsure about intent, add a `<!-- TODO: verify -->` comment rather than guessing **For false positives:** - Record as dismissed (remove from queue) - No changes needed ## Phase 4: Commit Fixes After processing all groups: ```bash # Stage only modified doc files git add <fixed-doc-files> git commit -m "docs: resolve documentation drift from recent changes Updated docs to reflect code changes detected by doc-sentinel: - <brief summary of fixes>" ``` Use the `docs:` commit prefix to prevent the post-commit hook from re-triggering on this commit. ## Phase 5: Clear Drift Queue ```bash # Remove the drift file — it is session-scoped rm -f .doc-sentinel-drift.json ``` ## Phase 6: Report Print resolution summary: ``` doc-sentinel: resolved N drift warning(s) Fixed: - ARCHITECTURE.md — updated 2 path references - docs/api.md — updated endpoint documentation Dismissed (false positives): - README.md — logo path unchanged despite src/ changes Remaining: - None (all warnings resolved) ``` If any warnings could not be resolved automatically (require human judgment about intent), list them separately under "Needs Review" with specific questions. ## Rules - Always read both the doc and the source before making changes - Preserve the existing writing style — match tone, detail level, and formatting - Never remove documentation sections wholesale — update them - Use `docs:` commit prefix to avoid hook feedback loops - If a doc file has >5 drift warnings from a single commit, consider whether the doc needs a broader rewrite rather than point fixes — dispatch a `drift-resolver` agent for complex cases - Delete `.doc-sentinel-drift.json` after processing, even if some warnings were dismissed - If doc-sync or inkwell is also installed, do not duplicate their work — sentinel fixes references and accuracy, not content generation
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.