Completion Check

作者 parcadeid07ff4b06b62無授權條款3.9K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫8 個月前更新

Completion Check: Verify Infrastructure Is Wired

僅含說明DevOps & Cloud
AI 產生的概覽

一套檢查清單,用來確認新建基礎設施是否真正接上系統並被使用,而非死程式碼。

功能
為基礎設施工作提供完成度驗證模式:從進入點追蹤執行路徑到程式碼、確認掛鉤已註冊、檢查是否使用正確的資料庫或後端、執行端對端測試,並尋找孤立或平行的實作。它包含一份檢查清單,以及一個對比錯誤建置與正確接線的 DAG 任務圖範例。產出的是驗證步驟與判定標準,而非檔案或程式碼。
適用情境
在宣布基礎設施工作完成之前使用,尤其是程式碼已寫好但可能尚未接上執行系統時。也適用於懷疑存在死程式碼、未註冊的掛鉤、錯誤後端或重複平行實作的情況。
執行需求
僅為說明性指示,不附帶指令碼。範例指令涉及 grep、ls、ast-grep、uv 等 shell 工具,但只是舉例,並非必要。

Completion Check: Verify Infrastructure Is Wired

When building infrastructure, verify it's actually connected to the system before marking as complete.

Pattern

Infrastructure is not done when the code is written - it's done when it's wired into the system and actively used. Dead code (built but never called) is wasted effort.

DO

  1. Trace the execution path - Follow from user intent to actual code execution:

    bash
    # Example: Verify Task tool spawns correctlygrep -r "claude -p" src/grep -r "Task(" src/
  2. Check hooks are registered, not just implemented:

    bash
    # Hook exists?ls -la .claude/hooks/my-hook.sh
    # Hook registered in settings?grep "my-hook" .claude/settings.json
  3. Verify database connections - Ensure infrastructure uses the right backend:

    bash
    # Check connection stringsgrep -r "postgresql://" src/grep -r "sqlite:" src/  # Should NOT find if PostgreSQL expected
  4. Test end-to-end - Run the feature and verify infrastructure is invoked:

    bash
    # Add debug loggingecho "DEBUG: DAG spawn invoked" >> /tmp/debug.log
    # Trigger featureuv run python -m my_feature
    # Verify infrastructure was calledcat /tmp/debug.log
  5. Search for orphaned implementations:

    bash
    # Find functions defined but never calledast-grep --pattern 'async function $NAME() { $$$ }' | \  xargs -I {} grep -r "{}" src/

DON'T

  • Mark infrastructure "complete" without testing execution path
  • Assume code is wired just because it exists
  • Build parallel systems (Task tool vs claude -p spawn)
  • Use wrong backends (SQLite when PostgreSQL is architected)
  • Skip end-to-end testing ("it compiles" ≠ "it runs")

Completion Checklist

Before declaring infrastructure complete:

  • Traced execution path from entry point to infrastructure
  • Verified hooks are registered in .claude/settings.json
  • Confirmed correct database/backend in use
  • Ran end-to-end test showing infrastructure invoked
  • Searched for dead code or parallel implementations
  • Checked configuration files match implementation

Example: DAG Task Graph

Wrong approach:

✓ Built BeadsTaskGraph class✓ Implemented DAG dependencies✓ Added spawn logic✗ Never wired - Task tool still runs instead✗ Used SQLite instead of PostgreSQL

Right approach:

✓ Built BeadsTaskGraph class✓ Wired into Task tool execution path✓ Verified claude -p spawn is called✓ Confirmed PostgreSQL backend in use✓ Tested: user calls Task() → DAG spawns → beads execute✓ No parallel implementations found

Source Sessions

  • This session: Architecture gap discovery - DAG built but not wired, Task tool runs instead of spawn, SQLite used instead of PostgreSQL

來源與署名

來源:parcadei/continuous-claude-v3位於.claude/skills/completion-check提交d07ff4b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架