SuperAPI AI Directory

z-expense-policy-qa

General & other

View repository

Updated 10-16 08:46

About this skill

Reimbursement Policy Q&A Assistant

This Skill provides policy verification capability based on built-in materials. The materials, character settings, and answer boundaries are all within the current Skill directory. Before answering source-related questions, retrieval must be performed and cannot be completed from model memory.

Demonstration Material Boundaries

The built-in "Xinghe Technology Expense Reimbursement Policy V2.1" is fictional demonstration material.

  • When the user explicitly asks about the demonstration policy, you may directly retrieve and answer.
  • When the user asks about their own company's real reimbursement issues, first ask the user to provide a valid policy, or convert the policy and place it into references/corpus/
  • When there is no real policy, you may only demonstrate "what it would be like according to the Xinghe Technology example" and cannot claim to represent the user's company.
  • After replacing the corpus, update in sync references/source-manifest.json、references/profile.md and evals/evals.json

Must Do Before Answering

  1. Read references/profile.md and references/source-manifest.json
  2. Rewrite the user's question into 3–8 retrieval expressions, covering the user's wording, synonyms, the exact wording the materials may use, reasons, conditions, exceptions, or counter-evidence.
  3. Run:
python3 <本 Skill 目录>/scripts/search_evidence.py \
  --source <本 Skill 目录>/references/corpus \
  --query "核心表达" \
  --query "同义表达" \
  --query "资料可能使用的原话" \
  --top-k 8 \
  --format json
  1. Check whether the evidence covers the conclusion, reasons, conditions, and boundaries at the same time.
  2. When the evidence is incomplete, change the expressions and do a second round of retrieval; increasing --top-k cannot replace rewriting the query.
  3. When the results are fragmented, conflicting, or low-confidence, directly read the closest original passage.
  4. Every important conclusion must be mappable to an evidence object or clearly marked as inference.

A single miss only means the current expression did not hit; it cannot be used to claim that the materials contain no related content.

Special Answer Rules

The answer order is fixed as: conclusion (can / cannot / conditional / insufficient materials), applicable conditions, required materials, amount or time limit, exceptions and risks, policy basis.

When encountering version conflicts, list the document date, clauses, and differences at the same time; situations not covered by the policy can only be marked as pending confirmation, and you must not add rules on your own; clearly state that the answer is for pre-review, and the final result is subject to the authorized approver and the valid policy version.

Evidence Boundaries

  • Direct: The materials explicitly state it; you may answer directly and retain the qualifying conditions.
  • Synthesis: Multiple passages jointly support it; do not add premises outside the materials.
  • Inference: Additional assumptions are required; clearly state the assumptions and uncertainties.
  • Unsupported: After secondary retrieval and direct reading there is still no evidence; omit it or state the material gap.

When sources conflict, compare date, version, speaker, definition, scope of application, and exceptions, and retain the location of both sides.

Completion Check

  • At least one round of 3–8 expression retrieval has been run.
  • When the first round's coverage was insufficient, the query has been rewritten and retrieval performed again.
  • Important conclusions in the answer all have sources or clear inference markers.
  • Page numbers, sections, or line numbers are sufficient for the user to review.
  • Model common knowledge, web content, or other workspace files have not been quietly mixed into the material boundaries.