verify

द्वारा anthropic

Verify harness changes end-to-end without docker — drive the real pinned CLI against a header-capturing stub server with the exact env resolve_auth_env()…

npx skills add https://github.com/anthropics/defending-code-reference-harness --skill verify

Verifying harness changes on a docker-less host

The pipeline's real surface is the in-container claude -p process and its outbound API requests. Without docker, drive the same pinned CLI binary directly with the env dict the harness would inject via docker -e.

Recipe

  1. Get the pinned CLI (version from harness/agent_image.py:CLAUDE_CODE_VERSION): npm install --no-save @anthropic-ai/claude-code@<pin> in a temp dir → binary at node_modules/@anthropic-ai/claude-code/bin/claude.exe (the .exe name is the real native-binary entry on Linux too, filled in by the package's postinstall — not a Windows leftover).
  2. Stub API server: a tiny HTTP server that appends each request's headers to a JSONL file and returns a 400 invalid_request_error (non-retryable, so the CLI exits fast; exit=1 is expected).
  3. Build the agent env exactly as the pipeline does: python3 -c "from harness.auth import resolve_auth_env; ..." and dump to an export-lines file with shlex.quote (values contain newlines — NEVER pass via env $(...), word-splitting mangles them; source the file).
  4. Emulate the container env: unset ANTHROPIC_CUSTOM_HEADERS (and any other ambient var not in the resolved dict) before sourcing — a Claude Code session in this repo injects .claude/settings.json env into shells, which containers never see.
  5. Run: ANTHROPIC_BASE_URL=http://127.0.0.1:<port> CLAUDECODE= IS_SANDBOX=1 timeout 30 <cli> -p hi --model claude-sonnet-4-5 --max-turns 1, then read the captured JSONL.

Gotchas

  • Unit tests in tests/test_patch.py / tests/test_patch_grade.py need docker and fail on docker-less hosts — pre-existing, not your change.
  • The docker -e injection leg itself can't be exercised without docker; it's the same mechanism that carries ANTHROPIC_API_KEY in production.
  • For the interactive-skills surface, copy .claude/settings.json into a fresh temp dir and run the host claude from there (with ambient ANTHROPIC_CUSTOM_HEADERS unset so settings.json is the only source).

anthropic की और Skills

access
anthropic
Discord चैनल एक्सेस प्रबंधित करें — पेयरिंग स्वीकृत करें, अनुमति सूची संपादित करें, DM/ग्रुप नीति सेट करें। उपयोग तब करें जब उपयोगकर्ता पेयर करने, किसी को स्वीकृत करने, किसकी अनुमति है यह जाँचने के लिए कहे,…
official
session-report
anthropic
क्लाउड कोड सत्र उपयोग (टोकन, कैश, उप-एजेंट, कौशल, महंगे प्रॉम्प्ट) से ~/.claude/projects ट्रांसक्रिप्ट का एक अन्वेषणीय HTML रिपोर्ट तैयार करें।
official
build-mcp-server
anthropic
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता "MCP सर्वर बनाएं", "MCP बनाएं", "MCP इंटीग्रेशन करें", "Claude के लिए API रैप करें", "टूल्स को एक्सपोज़ करें..." जैसी बात कहे।
official
cookbook-audit
anthropic
एन्थ्रोपिक कुकबुक नोटबुक का एक रूब्रिक के आधार पर ऑडिट करें। जब भी नोटबुक समीक्षा या ऑडिट का अनुरोध किया जाए, इसका उपयोग करें।
official
handle-complaint
anthropic
ग्राहक की शिकायत को शुरू से अंत तक संभालता है — संदर्भ खींचता है, प्रतिक्रिया का मसौदा तैयार करता है, और एक परिचालन सुधार सुझाता है। वैकल्पिक ईमेल या टिकट आईडी स्वीकार करता है…
official
use-case-triage
anthropic
शीघ्रता से निर्धारित करें कि किसी प्रसंस्करण गतिविधि के लिए PIA, अनिवार्य GDPR DPIA की आवश्यकता है या इसे आगे बढ़ाया जा सकता है — गोपनीयता नीति विरोधों को उजागर करता है और सही मार्ग पर ले जाता है…
official
board-minutes
anthropic
बोर्ड या समिति की बैठक के कार्यवृत्त आपके घरेलू प्रारूप में तैयार करता है। आपके कैलेंडर से आगामी बोर्ड और समिति की बैठकों का स्वतः पता लगाता है, एजेंडा मांगता है और…
official
renewal-tracker
anthropic
नवीनीकरण रजिस्टर से काम करते हुए, आगामी रद्दीकरण-द्वारा समय सीमा वाले अनुबंध दिखाएँ और नोटिस विंडो बंद होने से पहले चेतावनी दें। उपयोग तब करें जब उपयोगकर्ता पूछे…
official