agentleFS
fivetakufivetaku/tikeytaka/skills/verify/SKILL.md

verify

Skill40 starsChanged 32 days agoMITView on GitHub

API 키의 생사를 등록 전·후에 실호출로 검증한다. 트리거 — "/tikeytaka:verify", "이 키 되는거냐", "키 검증해줘", "볼트 키 전부 확인", "등록된 키 작동하냐", 그리고 add/scan에서 키를 볼트에 넣기 직전(필수 선행). 죽은 키는 볼트에 등록하지 않는 것이 원칙이다.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use instinct-export, instinct-import and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • TheKREATORSSkill

    instinct-export

    Export instincts from project/global scope to a file

    Also in 3 projects that use this

  • TheKREATORSSkill

    instinct-import

    Import instincts from file or URL into project/global scope

    Also in 3 projects that use this

  • AviadPSkill

    risk-assess

    Assess the risk and blast radius of a proposed code change before implementing it. Evaluates CI impact, framework-wide vs localized scope, rollback path, and identifies blindspots. Use when user says "what's the risk", "is this safe", "assess the impact", "risk assess", "blast radius", or before applying framework-wide or CI-affecting changes. Do NOT use for code quality review (use code-quality) or plan validation (use design-validator).

    Also in 3 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 6 projects that use this

  • AaravChadhaSkill

    secure

    Security review with a confidence gate - a finding exists only with a concrete exploit scenario and a high/medium/low confidence rating; everything else goes to a worth-hardening list, never inflated. Sweeps five surfaces: auth gates, secrets hygiene, injection and unsafe sinks, unsafe deserialization/crypto/transport, and LLM tool-use trust boundaries. Reports only, never fixes. Use when the user asks for a security review or to check vulnerabilities, secrets, or auth.

    Also in 3 projects that use this

  • ArvorCoSkill

    specify

    Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.

    Also in 10 projects that use this

  • +1 more from TheKREATORS

The file

Files
SKILL.md

tikeytaka:verify — 키 생사 실측 검증

코어 CLI: bash "${CLAUDE_PLUGIN_ROOT}/bin/tkt" (이하 tkt)

원칙

  1. 등록 전 검증 필수: 죽은 키는 볼트에 들어가면 안 된다. add/scan은 이 절차를 통과한 값만 set-stdin 한다.
  2. 무과금 엔드포인트만: 모델 목록 조회, getMe, auth/key 조회 등. 과금 호출이 불가피하면 max_tokens=1 또는 빈 바디로 인증 단계만 확인.
  3. 값 미출력: 키는 셸 변수로만 다루고, 비교·보고는 sha256 앞 8자리 지문으로만.
  4. argv 미노출: curl은 --config -(stdin)로 URL·헤더를 전달한다. curl -H "Bearer $KEY" 직접 사용 금지.

HTTP 코드 해석 (오판 방지)

코드판정
200생존
400키 유효 — 요청 형식 문제일 뿐 (빈 바디 프로브의 정상 응답)
401키 사망/무효
403키 유효, 권한·플랜 문제 (예: 플랜 미구매) — 사망으로 오판하지 말 것
000네트워크/프록시 차단 — 프록시 우회(env -u HTTP_PROXY -u HTTPS_PROXY) 후 재시도하고 나서 판정

⚠️ 흔한 오판 2종: ① 로컬 프록시(teamclaude 등)가 api.anthropic.com을 차단해 000 → 우회 재시도 필수. ② rc 파일에서 값을 추출할 때 $(command …) 참조형이면 리터럴 문자열을 키로 보내게 됨 — 값이 $(로 시작하면 해당 명령을 실행해 실제 값을 얻어 검증한다.

알려진 프로바이더 레시피 (2026-08 실측 검증됨)

np() { env -u HTTP_PROXY -u HTTPS_PROXY curl -s -m 10 --config - "$@"; } 전제. 키는 printf(셸 내장 — 새 프로세스가 아님)로 stdin 설정에만 넣는다. 그래야 ps·셸 히스토리에 안 남는다.

K="$(bash "$TKT" get openai-api-key)"     # 변수로만, 출력 금지
printf 'url = "https://api.openai.com/v1/models"\nheader = "Authorization: Bearer %s"\n' "$K" \
  | np -o /dev/null -w '%{http_code}\n'
unset K
  • 헤더로 보낼 수 있는 서비스는 반드시 헤더로 보낸다 — URL 쿼리(?key=)는 프록시·서버 접근 로그에 남는다.
  • URL 경로·쿼리에만 받는 서비스(Telegram bot<K>, data.go.kr serviceKey)는 url = "…" 줄을 같은 stdin 설정에 넣어 argv 노출만 막는다. 상대 서버 로그에는 남는다는 점을 감수한다.
  • 응답 본문은 출력하지 않는다(-o /dev/null -w '%{http_code}'). 본문이 필요한 Telegram은 jq '.ok, .result.username'처럼 판정 필드만 뽑는다.
서비스프로브생존 판정
Gemini/Google AIGET generativelanguage.googleapis.com/v1beta/models + 헤더 x-goog-api-key (쿼리 ?key= 금지)200
OpenAIGET api.openai.com/v1/models + Bearer200
AnthropicGET api.anthropic.com/v1/models + x-api-key + anthropic-version: 2023-06-01 (프록시 우회 필수)200
OpenRouterGET openrouter.ai/api/v1/auth/key + Bearer200
PerplexityPOST api.perplexity.ai/chat/completions + Bearer, 빈 바디 {}400 (401=사망)
Telegram 봇GET api.telegram.org/bot<K>/getMe (키가 URL 경로 — url = 줄을 stdin 설정으로)"ok":true + 봇 이름
data.go.kr (KMA/TOUR 등)KMA getUltraSrtNcst에 serviceKey — 원본과 URL인코딩 양쪽 시도resultCode 00/10 (SERVICE_KEY_IS_NOT_REGISTERED=인코딩 재시도 후 판정)
DashScope/QwenCloud계약된 엔드포인트로 max_tokens=1 (예: token-plan.*.maas.aliyuncs.com/apps/anthropic/v1/messages)200/400; 403 Unpurchased=키 유효·플랜 없음
로컬/자체 프록시/health 200 + 인증 필요한 경로 1개 200둘 다

미지의 프로바이더 — 공식문서로 레시피 만들기

레시피 표에 없는 서비스는 추측으로 프로브를 만들지 말고:

  1. docs-guide 스킬(/docs-guide:docs-guide)로 해당 서비스 공식 API 문서에서 무과금 인증 확인 엔드포인트(모델 목록·계정 조회류)를 확인한다.
  2. docs-guide 불가 시 WebSearch → 공식 문서 WebFetch 폴백.
  3. 확인된 엔드포인트로 위 원칙(2·3·4)에 맞는 프로브를 구성해 검증한다.
  4. 검증에 성공한 레시피는 이 표에 추가할 가치가 있음을 사용자에게 알린다 (플러그인 개선 제안).

전량 검증 모드 ("볼트 키 전부 확인")

tkt list 순회 → 서비스명에서 프로바이더 추정 → 각 레시피 실행 → 표로 보고: 서비스명 / 판정(생존·사망·권한문제·판정불가) / 근거 코드. 사망 키는 재발급 안내 + tkt del 제안. 프록시 URL 항목(*-proxy-url, *-base-url)은 /health + 인증 경로로 검증한다.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.