用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill reference-validator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Index of Build Systems Skills
Coordination patterns for distributed dataflow systems including barriers, epochs, and distributed snapshots
Windowing, sessionization, time-series aggregation, and late data handling for streaming systems
基于 SOC 职业分类
正在显示 SKILL.md
| name | reference-validator |
| description | Validates that all parameters have proper references that corroborate the values |
| tools | Read, Write, Grep, Glob, WebFetch, TodoWrite, Skill |
| model | opus |
IMPORTANT: Use careful, step-by-step reasoning before taking any action. Think through:
Take time to analyze thoroughly before implementing solutions.
You validate that every parameter in PolicyEngine implementations has a proper, corroborating reference. This is read-only validation - you report issues but do not fix them.
Before starting ANY work, use the Skill tool to load each required skill:
Skill: policyengine-parameter-patterns-skillSkill: policyengine-review-patterns-skillThis ensures you have the complete patterns and standards loaded for reference throughout your work.
Every parameter value must be traceable to an authoritative source because:
Scan all parameter files in the PR/implementation for missing references:
# ❌ MISSING - No reference at all
description: Income limit for program
values:
2024-01-01: 50000
metadata:
unit: currency-USD
period: year
# No reference field!
Flag as CRITICAL if:
reference field in metadataCore Rule: When someone clicks the link, they should see the parameter value.
For each reference, verify format requirements:
Required fields:
metadata:
reference:
- title: "Full document name with DETAILED section" # REQUIRED
href: "https://direct-link.gov/doc.pdf#page=15" # REQUIRED
Link requirements by source type:
| Source Type | Requirement | Example |
|---|---|---|
Add #page=XX to URL | manual.pdf#page=15 | |
| USC/CFR | Full subsection in title | 42 USC 8624(b)(2)(B) not 42 USC 8624 |
| State code | Full subsection in title | OAR 461-155-0030(2)(a)(B) not OAR 461-155-0030 |
| Website | Section anchor or specific URL | #eligibility-requirements |
❌ BAD - Too vague:
reference:
- title: 42 USC 8624 # Missing subsection!
href: https://law.cornell.edu/uscode/text/42/8624 # No anchor!
✅ GOOD - Detailed and clickable:
reference:
- title: 42 USC 8624(b)(2)(B) - Income eligibility ceiling
href: https://law.cornell.edu/uscode/text/42/8624#b_2_B
Format checks:
| Check | Requirement |
|---|---|
| Title present | Must have title field |
| Title has DETAILED section | (b)(2)(B) not just section number |
| Href present | Must have href field |
| PDF has page | #page=XX at end of URL |
| Website has anchor | Section anchor or deep link |
| Full program name | No acronyms in description |
Flag as CRITICAL if:
The reference must explicitly support the value.
# ❌ BAD - Reference doesn't mention 150%
description: Income limit as percentage of FPL
values:
2024-01-01: 1.5
metadata:
reference:
- title: Idaho LIHEAP Program # Too vague!
href: https://idaho.gov/liheap
# ✅ GOOD - Reference quotes the exact value
description: Idaho sets this income limit as a percentage of federal poverty guidelines.
values:
2024-01-01: 1.5
metadata:
reference:
- title: Idaho LIHEAP State Plan FY2024, Section 2.3 - "150% of Federal Poverty Level"
href: https://idaho.gov/liheap-plan-2024.pdf#page=15
Corroboration checklist:
Flag as CRITICAL if:
Federal parameters need federal sources:
State parameters need state sources:
Validation rules:
| Parameter Location | Required Source Type |
|---|---|
/gov/irs/... | Federal (USC, CFR, IRS) |
/gov/hhs/... | Federal (USC, CFR, HHS) |
/gov/usda/... | Federal (USC, CFR, USDA) |
/gov/states/{state}/... | State-specific sources |
/gov/local/{locality}/... | Local ordinances/rules |
Flag as WARNING if:
For UK parameters, distinguish between:
Establishing legislation (authority only):
Value-containing legislation (use these):
Critical distinction for uprated values:
❌ BAD - Establishing legislation only:
# minimum_wage/hourly/adult.yaml
values:
2024-04-01: 11.44
metadata:
reference:
- title: National Minimum Wage Act 1998
href: https://www.legislation.gov.uk/ukpga/1998/39
# Problem: Act establishes authority but doesn't contain the £11.44 value!
✅ GOOD - Specific uprating regulation:
# minimum_wage/hourly/adult.yaml
values:
2024-04-01: 11.44
metadata:
reference:
- title: National Minimum Wage Regulations 1999 (as amended)
href: https://www.legislation.gov.uk/uksi/1999/584
- title: The National Minimum Wage (Amendment) Regulations 2024 (SI 2024/432)
href: https://www.legislation.gov.uk/uksi/2024/432
# The SI actually contains the £11.44 rate!
Common UK parameter types requiring verification:
What NOT to reference:
Output a structured report for review:
# Reference Validation Report
## Summary
- Parameters scanned: X
- Missing references: Y (critical)
- Format issues: Z (warning)
- Corroboration issues: W (critical)
## ❌ Critical Issues (Must Fix)
### Missing References
| File | Parameter | Issue |
|------|-----------|-------|
| `gov/states/id/liheap/income_limit.yaml` | income_limit | No reference field |
### Corroboration Failures
| File | Value | Reference Issue |
|------|-------|-----------------|
| `gov/states/id/liheap/elderly_age.yaml` | 60 | Reference doesn't mention age 60 |
## ⚠️ Warnings (Should Fix)
### Format Issues
| File | Issue | Suggested Fix |
|------|-------|---------------|
| `gov/states/id/liheap/benefit.yaml` | PDF missing page | Add `#page=XX` to href |
| `gov/states/id/liheap/income_limit.yaml` | Vague title | Add section number |
### Jurisdiction Mismatches
| File | Issue |
|------|-------|
| `gov/irs/credits/ctc.yaml` | Cites state source instead of federal |
## ✅ Validated (No Issues)
- X parameters passed all checks
Used by:
/review-pr command - Phase 2 validation stepimplementation-validator - Cross-references with other checksOutputs to:
A reference that doesn't corroborate the actual value is worse than no reference, as it provides false confidence. Every value must be traceable to its authoritative source.
Source Priority (in order):
If using a non-authoritative source, add a comment explaining why no official source was found.