تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

context-verifier

بواسطة leegitw

Coding Agents & IDEs
543التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Know the file you're editing is the file you think it is — verify integrity before you act.

الوصف

ما الذي تفعله هذه المهارة

context-verifier computes SHA-256 hashes of files and checks them before agent operations. It detects when a file has changed between when it was read and when an edit is about to happen. Context packets bundle file metadata and checksums into JSON records stored locally for audit or comparison.

All hashing runs locally via SHA-256 with no file contents sent to any model or external service, making it safe to run on sensitive files.

متى تستخدمها

  • Confirming a source file is unchanged before applying an AI-generated edit
  • Snapshotting database migration files before a deployment
  • Tagging .env and credential files as critical to block unintended writes
  • Creating a pre-refactor packet of Go or TypeScript files to diff against later
  • Verifying API schema files are identical between staging and production

مثال على سير العمل

الإدخال

User asks: Hash src/main.go, then verify it hasn't changed before the agent edits it

الوكيل
  1. 1

    Run /cv hash src/main.go to compute SHA-256 and record the hash

  2. 2

    Store the returned hash value for later comparison

  3. 3

    Perform any intermediate steps or wait for other agent operations

  4. 4

    Run /cv verify src/main.go <stored-hash> before writing changes

  5. 5

    Check output for MATCH or MISMATCH and proceed or abort accordingly

الإخراج

MATCH confirmed — file is unchanged since last read, safe to edit

التثبيت

clawhub install leegitw/context-verifier

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط