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_report.py
View on GitHub#!/usr/bin/env python3
"""Validate v4 report structure and evidence references."""
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_report.py <report.json> <evidence-pack.json>")
report = json.loads(Path(sys.argv[1]).read_text(encoding="utf-8"))
pack = json.loads(Path(sys.argv[2]).read_text(encoding="utf-8"))
schema_path = Path(__file__).resolve().parent.parent / "schemas" / "report.schema.json"
schema = json.loads(schema_path.read_text(encoding="utf-8"))
try:
validate_schema(report, schema)
except SchemaValidationError as error:
fail(f"schema validation failed: {error}")
quote_ids = {
quote["quote_id"]
for question in pack.get("questions", [])
for quote in question.get("quotes", [])
}
if report.get("schema_version") != "v4":
fail("schema_version must be v4")
verdict = report.get("advance_verdict", {})
if verdict.get("level") not in {"推进", "待定", "当前不建议推进"}:
fail("invalid advance verdict")
dimensions = report.get("dimension_diagnoses")
if not isinstance(dimensions, list) or not 4 <= len(dimensions) <= 6:
fail("dimension_diagnoses must contain 4-6 items")
reference_groups = [verdict.get("evidence_refs", [])]
for key in ("dimension_diagnoses", "strengths", "primary_risks"):
for item in report.get(key, []):
reference_groups.append(item.get("evidence_refs", []))
if key == "dimension_diagnoses":
sufficiency = item.get("evidence_sufficiency")
score = item.get("score")
if sufficiency == "insufficient" and score is not None:
fail(f"insufficient evidence must use null score for {item.get('dimension_id')}")
if sufficiency != "insufficient" and not isinstance(score, int):
fail(f"non-insufficient evidence requires integer score for {item.get('dimension_id')}")
for card in report.get("evidence_cards", []):
reference_groups.append([card.get("quote_id")])
for refs in reference_groups:
for ref in refs:
if ref not in quote_ids:
fail(f"unknown evidence reference: {ref}")
if len(report.get("retry_tasks", [])) != 3:
fail("retry_tasks must contain exactly 3 items")
if not report.get("disclaimer", "").strip():
fail("disclaimer is required")
print("report 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 |