スキル一覧に戻る
harehimself

replay-dead-letters

by harehimself

ETL system utilizing the DuxSoup API for programmatic LinkedIn extraction. The project is a data extraction pipeline that automatically retrieves extensive LinkedIn profile data from first-degree connections for network analysis and relationship intelligence applications.

1🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: replay-dead-letters description: Replay failed observations after bug fixes or database issues. Shows which observations succeed and fail, helping recover from failures and validate fixes work on real data.

Replay Dead Letters

Purpose: Operational task for recovering from failures and validating fixes.

Instructions for Claude

When this skill is invoked:

  1. Parse flags:

    • --limit N: replay only first N dead letters (default: all pending)
    • --dry-run: simulate without actually updating (default: false)
    • --filter TYPE: only replay specific source type (visit/scan)
  2. Create and run a Node.js script that:

    Step 1: Query dead letters

    • Find all with status: 'pending'
    • Apply filters if provided
    • Show count and sample errors

    Step 2: Replay each one

    • Load original observation (Visit or Scan)
    • Attempt PersonController.upsertFromObservation()
    • Track success/failure
    • Update DeadLetter status accordingly

    Step 3: Report results

    • Show summary stats
    • List successful replays
    • List still-failing (with new errors)
    • Suggest next actions
  3. Output format:

    REPLAY DEAD LETTERS
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    
    📋 Configuration:
    • Limit: [N] records
    • Dry run: [yes/no]
    • Filter: [type]
    
    📊 Found [X] pending dead letters
    
    Common errors:
    • INVALID_IDENTIFIER: [count]
    • MISSING_STABLE_ID: [count]
    • DUPLICATE_PERSON: [count]
    
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    
    🔄 Replaying...
    
    ✓ 1/10 - Observation [id] → Person [canonical_id]
    ✓ 2/10 - Observation [id] → Person [canonical_id]
    ✗ 3/10 - Observation [id] → Still fails: [error]
    ✓ 4/10 - Observation [id] → Person [canonical_id]
    ...
    
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    
    📈 RESULTS:
    ✓ Successful:  [Y]  ([Y/X * 100]%)
    ✗ Still failing: [Z]  ([Z/X * 100]%)
    
    NEXT ACTIONS:
    1. Investigate still-failing observations
    2. Fix root cause of [most common error]
    3. Run /replay-dead-letters again
    

Error Handling

  • If no pending dead letters: celebrate and notify
  • If DB errors during replay: log, mark as 'failed_again', continue
  • If observation not found: mark dead letter as 'skipped'

スコア

総合スコア

75/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です