chengzicv/chengzicv-career-skills / chengzicv-interview-mock
chengzicv-interview-mock
Verified通过五题模拟面试生成企业初筛诊断;在用户需要 HR 面或综合面训练时使用。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.8 KB |
| agents/openai.yaml | config | 271 B |
| assets/mock-report-template.html | other | 12.0 KB |
| onboarding/core-introduction.md | markdown | 3.8 KB |
| onboarding/full-methodology.md | markdown | 1.8 KB |
| prompts/diagnostician.md | markdown | 1.9 KB |
| prompts/evidence-extractor.md | markdown | 972 B |
| prompts/interviewer.md | markdown | 3.1 KB |
| references/report-template.md | markdown | 851 B |
| references/runtime-contract.md | markdown | 1.8 KB |
| references/safety-and-claims.md | markdown | 683 B |
| runtime/input-contract.schema.json | config | 1.7 KB |
| schemas/evidence-pack.schema.json | config | 2.1 KB |
| schemas/interview-turn.schema.json | config | 525 B |
| schemas/report.schema.json | config | 4.3 KB |
| scorecards/dimensions.json | config | 1.5 KB |
| scorecards/scene-priorities.json | config | 1.0 KB |
| scripts/schema_subset.py | script | 4.1 KB |
| scripts/validate_evidence_pack.py | script | 2.6 KB |
| scripts/validate_report.py | script | 2.7 KB |
| strategy.json | config | 337 B |
scripts/validate_evidence_pack.py
View on GitHub#!/usr/bin/env python3
"""Validate v4 Evidence Pack structure and exact quote provenance."""
import json
import sys
from pathlib import Path
from schema_subset import SchemaValidationError, validate_schema
def fail(message: str) -> None:
print(f"ERROR: {message}", file=sys.stderr)
raise SystemExit(1)
def main() -> None:
if len(sys.argv) != 3:
fail("usage: validate_evidence_pack.py <evidence-pack.json> <messages.json>")
pack = json.loads(Path(sys.argv[1]).read_text(encoding="utf-8"))
messages_data = json.loads(Path(sys.argv[2]).read_text(encoding="utf-8"))
schema_path = Path(__file__).resolve().parent.parent / "schemas" / "evidence-pack.schema.json"
schema = json.loads(schema_path.read_text(encoding="utf-8"))
try:
validate_schema(pack, schema)
except SchemaValidationError as error:
fail(f"schema validation failed: {error}")
messages = messages_data["messages"] if isinstance(messages_data, dict) else messages_data
by_id = {item["message_id"]: item for item in messages}
if pack.get("schema_version") != "v4":
fail("schema_version must be v4")
questions = pack.get("questions")
if not isinstance(questions, list) or not 5 <= len(questions) <= 6:
fail("questions must contain 5-6 items")
quote_ids = set()
for question in questions:
for quote in question.get("quotes", []):
quote_id = quote.get("quote_id")
if not quote_id or quote_id in quote_ids:
fail(f"invalid or duplicate quote_id: {quote_id}")
quote_ids.add(quote_id)
message_id = quote.get("source_message_id")
if message_id not in by_id:
fail(f"unknown source_message_id for {quote_id}: {message_id}")
message = by_id[message_id]
if message.get("role") != "user":
fail(f"quote {quote_id} does not reference a user message")
content = message.get("content", "")
start, end = quote.get("start_char"), quote.get("end_char")
if not isinstance(start, int) or not isinstance(end, int) or not 0 <= start < end <= len(content):
fail(f"invalid character range for {quote_id}")
if content[start:end] != quote.get("text"):
fail(f"quote text mismatch for {quote_id}")
for question in questions:
for contradiction in question.get("contradictions", []):
for ref in contradiction.get("evidence_refs", []):
if ref not in quote_ids:
fail(f"unknown contradiction evidence_ref: {ref}")
print("evidence pack ok")
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |