Skip to content

dongshuyan/compass-skills / skills/assess-interview-candidate

assess-interview-candidate

Verified

根据候选人简历与岗位要求生成可审计的后台评估、简明的候选人介绍、按岗位重要性排列的简历疑点、12–18 道可直接照读的面试题,以及支持重点标记和本机保存的离线 HTML。用于招聘方准备结构化面试、核验岗位能力和记录回答。不要用于求职者模拟面试、私人背景调查、心理或人格诊断、从敏感属性推断表现,或自动录用、淘汰、排序候选人。

FileKindSize
SKILL.mdskill md17.9 KB
agents/openai.yamlconfig329 B
assets/candidate-assessment-template.htmlother35.5 KB
evals/evals.jsonconfig11.1 KB
references/agent-portability.mdmarkdown3.5 KB
references/evidence-and-inference-policy.mdmarkdown7.8 KB
references/job-modeling.mdmarkdown3.8 KB
references/privacy-and-fairness-cn.mdmarkdown7.1 KB
references/research-and-identity-policy.mdmarkdown4.0 KB
references/role-adapter-ai-llm-engineering.mdmarkdown5.7 KB
references/schema-evidence-ledger.jsonconfig6.2 KB
references/schema-interview-blueprint.jsonconfig5.6 KB
references/schema-interviewer-report.jsonconfig13.7 KB
references/schema-job-model.jsonconfig4.5 KB
references/schema-source-record.jsonconfig9.5 KB
references/scoring-and-coverage.mdmarkdown9.5 KB
references/structured-interview-methods.mdmarkdown4.8 KB
references/workflow-contract.mdmarkdown14.7 KB
scripts/calculate_interview_score.pyscript15.5 KB
scripts/create_candidate_case.pyscript3.6 KB
scripts/derive_timeline_age.pyscript9.9 KB
scripts/normalize_inputs.pyscript9.0 KB
scripts/prepare_candidate_photo.pyscript12.4 KB
scripts/render_candidate_report.pyscript5.3 KB
scripts/validate_candidate_report.pyscript10.1 KB
scripts/validate_case_contract.pyscript28.3 KB
scripts/validate_evidence_ledger.pyscript15.2 KB
scripts/validate_interviewer_report_data.pyscript35.4 KB
scripts/validate_source_log.pyscript21.4 KB
tests/test_candidate_profile_enrichment.pyscript40.3 KB
tests/test_interviewer_report.pyscript34.1 KB
tests/test_public_package.pyscript7.0 KB

scripts/create_candidate_case.py

View on GitHub
#!/usr/bin/env python3
"""Create a new, pseudonymous candidate-assessment workspace."""

from __future__ import annotations

import argparse
import json
import re
import secrets
import sys
from datetime import datetime, timezone
from pathlib import Path


DIRECTORIES = (
    "input",
    "normalized",
    "research",
    "research/role-current",
    "research/candidate-professional",
    "research/methods",
    "models",
    "interview",
    "output",
    "audit",
)


def fail(message: str, code: int = 2) -> int:
    print(json.dumps({"ok": False, "error": message}, ensure_ascii=False), file=sys.stderr)
    return code


def slugify(value: str) -> str:
    slug = re.sub(r"[^a-z0-9]+", "-", value.strip().lower()).strip("-")
    if not slug:
        raise ValueError("--role-slug must contain at least one ASCII letter or digit")
    return slug[:40].rstrip("-")


def parse_args() -> argparse.Namespace:
    parser = argparse.ArgumentParser(
        description=(
            "Create a unique pseudonymous candidate case below a user-selected root. "
            "The command never reuses or overwrites an existing case directory."
        )
    )
    parser.add_argument("--root", required=True, type=Path, help="Approved parent directory for candidate cases")
    parser.add_argument(
        "--role-slug",
        required=True,
        help="Non-identifying role label, for example ai-engineer (candidate names are forbidden)",
    )
    return parser.parse_args()


def main() -> int:
    args = parse_args()
    try:
        role_slug = slugify(args.role_slug)
        root = args.root.expanduser()
        if root.exists() and root.is_symlink():
            return fail("--root must not be a symbolic link")
        root.mkdir(parents=True, exist_ok=True)
        if not root.is_dir():
            return fail("--root is not a directory")
        root = root.resolve(strict=True)

        local_now = datetime.now().astimezone()
        timestamp = local_now.strftime("%Y%m%d-%H%M%S")
        case_dir: Path | None = None
        case_id = ""
        for _ in range(20):
            case_id = f"{timestamp}-{role_slug}-{secrets.token_hex(4)}"
            candidate = root / case_id
            try:
                candidate.mkdir(mode=0o700, exist_ok=False)
            except FileExistsError:
                continue
            case_dir = candidate
            break
        if case_dir is None:
            return fail("could not allocate a unique case directory", 1)

        for relative in DIRECTORIES:
            (case_dir / relative).mkdir(mode=0o700, parents=True, exist_ok=False)

        created_at = datetime.now(timezone.utc).isoformat().replace("+00:00", "Z")
        manifest = {
            "schema_version": "1.0",
            "case_id": case_id,
            "role_slug": role_slug,
            "created_at": created_at,
            "case_id_local_timezone": local_now.tzname(),
            "case_id_local_utc_offset": local_now.strftime("%z"),
            "pseudonymous": True,
            "candidate_name_in_path": False,
            "case_directory": str(case_dir),
            "directories": list(DIRECTORIES),
        }
        manifest_path = case_dir / "audit" / "run-manifest.json"
        with manifest_path.open("x", encoding="utf-8") as handle:
            json.dump(manifest, handle, ensure_ascii=False, indent=2)
            handle.write("\n")
        manifest_path.chmod(0o600)

        print(json.dumps({"ok": True, "case_dir": str(case_dir), "case_id": case_id}, ensure_ascii=False))
        return 0
    except (OSError, ValueError) as exc:
        return fail(str(exc), 1)


if __name__ == "__main__":
    raise SystemExit(main())
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall