본문으로 건너뛰기
cccskills
무료GitHub에 공개

testing-cli

How to test the peoplereadme CLI end-to-end, including the fidelity harness (eval/calibrate) with a synthetic persona fixture and live LLM calls.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구OpenAI
설치 방법 보기

포함된 파일(1)

  • SKILL.md2.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Testing the peoplereadme CLI

All testing is shell-only (no GUI). Use a clean clone + uv sync, then uv run peoplereadme ....

Basic checks

  • uv run ruff check src tests and uv run pytest -q (all tests offline, no API keys needed).
  • uv run peoplereadme validate must exit 0 (riley-walz must stay schema-valid).

Synthetic persona fixture (for ingest/trace/eval testing)

  1. uv run peoplereadme init me --class self
  2. Build a synthetic X export zip: data/account.js + data/tweets.js with window.YTD.account.part0 = [...] / window.YTD.tweets.part0 = [...] prefixes; tweets are {"tweet": {"id_str", "full_text", "created_at": "%a %b %d %H:%M:%S +0000 %Y", ...}}. Self-threads (replies to own tweets via in_reply_to_status_id_str) produce traces with reconstruction_quality 0.8; standalone posts get 0.2 (both pairwise-eligible; the harness excludes < 0.2). Use ~40 tweets so the 15% test split has ≥5 eligible traces.
  3. uv run peoplereadme ingest me --source x-archive=archive.zip then uv run peoplereadme trace me.

Harness (M2) live testing

  • Requires OPENAI_API_KEY (available as a saved Devin secret). Use --model openai/gpt-4o-mini and small --n-pairs (e.g. 6) to keep cost < $1; a 6-pair run with baseline takes ~70s.
  • uv run peoplereadme eval me --model openai/gpt-4o-mini --n-pairs 6 --seed 7 writes personas/me/evals/fidelity/<date>.json, auto-creates evals/rubrics/v1.json, and exports a blind calibration batch to evals/fidelity/calibration/<date>.jsonl (+ private <date>.answers.json key).
  • Judge calls are disk-cached in ~/.peoplereadme/cache/llm (override root with PEOPLEREADME_CACHE); delete to force fresh judging.
  • Calibration roundtrip: fill human_pick ("A"/"B") in the blind JSONL, then uv run peoplereadme calibrate me --batch <date> --ratings rated.jsonl. Expect exit 1 with "INVALID report card" whenever kappa < 0.4 or fewer than 50 rated pairs — that hard floor firing is correct behavior, not a bug.
  • Expected diagnostics gotcha: with a skeleton persona package (no real context files) the judge often scores below chance and generated outputs are far longer than real tweets — check diagnostics in fidelity.json (position_bias, mean_real_len, mean_generated_len).

Failure modes (should all be clean errors, exit 1, no tracebacks)

  • eval on a persona without traces/traces.jsonl
  • calibrate with a missing batch/answers key
  • eval with an invalid API key (LMError path)

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Set up and end-to-end test the peoplereadme CLI (init, validate, schema changes). Use when verifying changes to src/peoplereadme/, schemas/persona.schema.json, or persona package scaffolding.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

muratcankoylan/peoplereadmes132026년 7월 16일 업데이트

muratcankoylan의 스킬 모두 보기

이 스킬의 문제 신고