Guide for creating DAAF agent definition files. Covers 12-section template, hook registration, skills-in-frontmatter, integration checklist. Use when adding or revising agents. For SKILL.md files, use skill-authoring instead.
中文简介正在准备中。当前显示原文说明。
CSS — annual Clery Act crime/fire safety for Title IV institutions. Portal: hate crimes only (2005-2021); primary offenses, VAWA, arrests, fire safety need ope.ed.gov directly. Use for campus crime analysis. Identified by IPEDS unitid.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Campus Safety and Security (CSS) — annual Clery Act crime and fire safety reporting for all Title IV postsecondary institutions. Full dataset covers primary offenses, VAWA offenses, hate crimes, arrests/referrals, and fire safety. Portal mirror provides only hate crimes data (2005-2021); primary offenses, VAWA, arrests, and fire safety require direct access to ope.ed.gov/campussafety. Use when analyzing campus hate crimes via Portal or understanding Clery Act reporting structure. Identified by IPEDS unitid.
Guide to understanding and using campus crime and fire safety data collected under the Clery Act.
CRITICAL: Value Encoding
The Education Data Portal mirrors use integer codes for categorical variables, not string labels:
Variable Example Code Meaning bias1Race-based bias crime_type14Intimidation fips6California See
./references/variable-definitions.mdfor complete code mappings.
Truth Hierarchy: When interpreting variable values, apply this priority:
- Actual data file (what you observe in the parquet/CSV) -- this IS the truth
- Live codebook (.xls in mirror) -- authoritative documentation, may lag
- This skill documentation -- convenient summary, may drift from codebook
If this documentation contradicts the codebook, trust the codebook. If the codebook contradicts observed data, trust the data and investigate. Use
get_codebook_url()fromfetch-patterns.mdto download codebooks.Codebook coverage gap (verified 2026-08-07): the mirrored csafety
.xlscodebook documents only 7 of the 13 data columns — thebiascategory and the 6 geographic offense counts — and omitscrime_type,year,unitid,inst_name,opeid, andfips. For those 6 omitted columns the codebook is silent, so this skill's own data-verified variable documentation (see./references/variable-definitions.md) is the better authority; the "trust the codebook" step above applies only to columns the codebook actually covers.
The Campus Safety and Security (CSS) data comes from the annual survey required by the Jeanne Clery Disclosure of Campus Security Policy and Campus Crime Statistics Act:
unitid (IPEDS institution ID, 6-digit integer)| File | Purpose | When to Read |
|---|---|---|
clery-act.md | Legal framework, history, reporting requirements | Understanding compliance context |
crime-categories.md | Criminal offenses, definitions, classification rules | Interpreting crime statistics |
vawa-offenses.md | Dating violence, domestic violence, stalking | Analyzing gender-based violence data |
hate-crimes.md | Bias categories, additional offenses, classification | Working with hate crime statistics |
campus-geography.md | On-campus, residence halls, public property, noncampus | Understanding location categories |
fire-safety.md | Fire statistics, safety systems, HEOA requirements | Analyzing residential fire data |
arrests-referrals.md | Drug, alcohol, weapons violations | Working with disciplinary data |
variable-definitions.md | Key variables, data structure, identifiers | Building queries |
limitations.md | Underreporting, comparability issues, interpretation | Critical data analysis |
Crime data type?
├─ Violent crimes (murder, assault, robbery, sex offenses)
│ └─ See ./references/crime-categories.md
├─ Property crimes (burglary, motor vehicle theft, arson)
│ └─ See ./references/crime-categories.md
├─ Sex offenses (rape, fondling, incest, statutory rape)
│ └─ See ./references/crime-categories.md
├─ Dating/domestic violence, stalking
│ └─ See ./references/vawa-offenses.md
├─ Hate crimes (bias-motivated)
│ └─ See ./references/hate-crimes.md
├─ Drug/alcohol/weapons violations
│ └─ See ./references/arrests-referrals.md
└─ Fire incidents in residence halls
└─ See ./references/fire-safety.md
Understanding crime location?
├─ On-campus (main campus buildings/grounds)
│ └─ See ./references/campus-geography.md
├─ On-campus student housing (subset of on-campus)
│ └─ See ./references/campus-geography.md
├─ Public property (streets, sidewalks adjacent to campus)
│ └─ See ./references/campus-geography.md
├─ Noncampus (off-site but institution-controlled)
│ └─ See ./references/campus-geography.md
└─ Not sure which category
└─ See ./references/campus-geography.md (definitions section)
Planning institutional comparisons?
├─ Want to rank schools by safety
│ └─ See ./references/limitations.md (CRITICAL: comparability issues)
├─ Comparing similar institution types
│ └─ See ./references/limitations.md (controlling for factors)
├─ Analyzing trends over time
│ └─ See ./references/limitations.md (reporting changes)
└─ Understanding what statistics mean
└─ See ./references/limitations.md (interpretation guidance)
| Code | Crime Type | Category |
|---|---|---|
1 | Murder/Non-negligent Manslaughter | Primary Offense |
2 | Manslaughter by Negligence | Primary Offense |
3 | Rape | Sex Offense |
4 | Fondling | Sex Offense |
5 | Incest | Sex Offense |
6 | Statutory Rape | Sex Offense |
7 | Robbery | Primary Offense |
8 | Aggravated Assault | Primary Offense |
9 | Burglary | Property Crime |
10 | Motor Vehicle Theft | Property Crime |
11 | Arson | Property Crime |
12 | Larceny-Theft | Hate Crime Only |
13 | Simple Assault | Hate Crime Only |
14 | Intimidation | Hate Crime Only |
15 | Destruction/Damage/Vandalism | Hate Crime Only |
16 | Domestic Violence | VAWA (2014+) |
17 | Dating Violence | VAWA (2014+) |
18 | Stalking | VAWA (2014+) |
Note: Crime type code
99(Total) is documented in some references but does NOT appear in the actual Portal mirror data. The data contains individual crime types 1-18 only.
| Code | Bias Category | Notes |
|---|---|---|
1 | Race | Most common category |
2 | Religion | Anti-Jewish, Anti-Islamic, etc. |
3 | Sexual Orientation | Anti-Gay, Anti-Lesbian, etc. |
4 | Gender | Based on perceived gender |
5 | Gender Identity | Added 2014 |
6 | Ethnicity | Separated from National Origin in 2014 |
7 | National Origin | Based on country of birth |
8 | Disability | Physical or mental |
9 | Unknown/Other | |
99 | Total | All bias categories combined |
| Code | Offense | Definition |
|---|---|---|
16 | Domestic Violence | Violence by current/former spouse, cohabitant, or similar |
17 | Dating Violence | Violence by person in romantic/intimate relationship |
18 | Stalking | Course of conduct causing fear for safety |
Codes 12-15 are only reported as hate crimes. They are not standalone Clery crimes unless bias-motivated.
| Category | What's Counted |
|---|---|
| Liquor Law Violations | Arrests + Disciplinary referrals |
| Drug Law Violations | Arrests + Disciplinary referrals |
| Weapons Violations | Arrests + Disciplinary referrals |
| ID | Format | Level | Example | Notes |
|---|---|---|---|---|
unitid | 6-digit integer | Institution | 100654 | IPEDS institution ID |
opeid | 8-character String | Institution | 00100200 | OPE institution ID (126 nulls in data) |
inst_name | String | Institution | University of Alabama | Institution name |
fips | Integer | State | 6 | State FIPS code |
Note: The hate crimes dataset uses
inst_name(notinstnm). Columns likebranch,address,city,zip,state,sector,enrollmentare NOT present in the Portal mirror data. Join with IPEDS directory onunitidto obtain institutional characteristics.
| Location | Definition | Reported Separately? |
|---|---|---|
| On-Campus | Buildings/property owned/controlled by institution, reasonably contiguous | Yes |
| On-Campus Student Housing | Residence halls (subset of on-campus) | Yes (as subset) |
| Noncampus | Institution-owned/controlled property not contiguous; student org properties | Yes |
| Public Property | Streets, sidewalks, parking within or immediately adjacent to campus | Yes |
Fire data is reported only for on-campus student housing facilities:
| Data Element | Description |
|---|---|
| Number of fires | Total fires per building per year |
| Cause of fire | Intentional, unintentional, undetermined |
| Injuries | Fire-related injuries requiring treatment |
| Deaths | Fire-related fatalities |
| Property damage | Estimated dollar value |
| Fire safety systems | Sprinklers, alarms, smoke detectors, etc. |
| Code | Meaning | When Used |
|---|---|---|
null | Missing/not reported | Data not submitted or not applicable (e.g., 352k null values in bias column) |
0 | Zero incidents | Explicitly reported as zero (distinct from missing) |
Empirically verified: The hate crimes dataset in the Portal mirror does NOT use
-1,-2, or-3coded values. All missing data appears asnull. This differs from some other Portal datasets (e.g., CCD) that use negative integer codes. Always verify against the actual data.
Datasets for Campus Safety are available via the mirror system. See datasets-reference.md for canonical paths, mirrors.yaml for mirror configuration, and fetch-patterns.md for fetch code patterns.
| Dataset | Type | Years | Path | Codebook |
|---|---|---|---|---|
| Hate Crimes | Single | 2005-2021 | csafety/colleges_csafety_hate_crimes | csafety/codebook_colleges_csafety_hate_crimes |
CRITICAL: Limited Data in Portal Mirrors -- Only hate crimes data is available in the Portal mirrors (1 dataset). For other campus safety data (primary offenses, VAWA, arrests/referrals, fire safety), access the Department of Education directly at https://ope.ed.gov/campussafety/. Consult
datasets-reference.mdfor the authoritative list of available mirror datasets.
Codebooks are .xls files co-located with data in all mirrors. Use get_codebook_url() from fetch-patterns.md to construct download URLs:
url = get_codebook_url("csafety/codebook_colleges_csafety_hate_crimes")
# get_codebook_url() is a Python helper; in R, build the URL from the mirror root.
# Mirror failover: see `education-data-query/references/fetch-patterns.md` (R pattern)
mirror <- yaml::read_yaml("mirrors.yaml")$mirrors[[1]]
url <- paste0(mirror$root_url, "/", "csafety/codebook_colleges_csafety_hate_crimes", ".xls")
Use the fetch_from_mirrors() pattern from fetch-patterns.md:
import polars as pl
# Fetch hate crimes data (all years, single-file dataset)
df = fetch_from_mirrors("csafety/colleges_csafety_hate_crimes")
# Filter by year
df_2021 = df.filter(pl.col("year") == 2021)
# Filter by bias category (1 = Race)
race_crimes = df.filter(pl.col("bias") == 1)
# Filter by crime type (14 = Intimidation)
intimidation = df.filter(pl.col("crime_type") == 14)
# Filter by institution
institution = df.filter(pl.col("unitid") == 100654)
# Filter by state FIPS code (6 = California)
california = df.filter(pl.col("fips") == 6)
# R equivalent
library(arrow)
library(dplyr)
# fetch_from_mirrors() is a Python helper; in R, build the URL from the mirror
# root — the canonical path is NOT a local file. Mirror failover: see
# `education-data-query/references/fetch-patterns.md` (R pattern)
mirror <- yaml::read_yaml("mirrors.yaml")$mirrors[[1]]
# NOTE: illustrative only — mirror parquet files are Polars-written and may
# declare string_view columns, so a plain read can fail under R arrow
# ("cannot handle Array of type <utf8_view>"). Real fetch scripts must use the
# view-safe parquet read from `education-data-query/references/fetch-patterns.md`.
df <- read_parquet(paste0(mirror$root_url, "/",
"csafety/colleges_csafety_hate_crimes", ".", mirror$format))
# Filter by year
df_2021 <- df |> filter(year == 2021)
# Filter by bias category (1 = Race)
race_crimes <- df |> filter(bias == 1)
# Filter by crime type (14 = Intimidation)
intimidation <- df |> filter(crime_type == 14)
# Filter by institution
institution <- df |> filter(unitid == 100654)
# Filter by state FIPS code (6 = California)
california <- df |> filter(fips == 6)
For data NOT available in Portal mirrors (primary offenses, VAWA, arrests, fire safety):
| Pitfall | Issue | Solution |
|---|---|---|
| Using string codes | Portal uses integer codes for bias, crime_type, etc. | Always map integers via ./references/variable-definitions.md |
| Ranking schools by crime counts | Higher numbers may indicate better reporting, not worse safety | Normalize by enrollment; note reporting culture differences in ./references/limitations.md |
| Comparing across years naively | Crime definitions changed over time (especially sex offenses in 2014, VAWA added 2013) | Restrict comparisons to consistent-definition periods; document breaks |
| Treating zero as missing | Zero means explicitly reported zero incidents; missing means not reported | Check for null (missing) vs 0 (zero incidents) before analysis |
| Comparing CSS to FBI UCR data | Different definitions, scope, and reporting requirements | Never equate CSS and FBI statistics; see ./references/limitations.md |
| Assuming all crime data in mirror | Mirror only has hate crimes | Use Department of Education portal for primary offenses, VAWA, arrests, fire safety |
Using instnm as column name | Hate crimes data uses inst_name, not instnm (which is the IPEDS convention) | Check actual column names with df.columns |
Expecting -1/-2 missing codes | Hate crimes data uses null for missing, not negative integer codes | Check for nulls with pl.col("bias").is_null(), not pl.col("bias") == -1 |
| Ignoring multi-campus institutions | Branch campuses report separately; aggregating incorrectly inflates/deflates | Use branch field to distinguish campuses; see ./references/campus-geography.md |
| Ignoring underreporting | Many crimes go unreported; CSS captures only reported incidents | Acknowledge underreporting as a limitation in all analyses |
| Date | Action |
|---|---|
| Calendar year | Data collection period |
| October 1 | Annual Security Report (ASR) due |
| October 15 | CSS survey submission deadline |
| Following spring | Data available publicly |
| Source | Relationship | When to Use |
|---|---|---|
education-data-source-ipeds | Institutional characteristics | Joining with IPEDS directory for enrollment, sector, control |
education-data-explorer | Parent discovery skill | Routing questions to mirror dataset files |
education-data-query | Data fetching | Downloading parquet/CSV files |
| Topic | Reference File |
|---|---|
| Clery Act history and requirements | ./references/clery-act.md |
| Criminal offense definitions | ./references/crime-categories.md |
| Sex offense classification | ./references/crime-categories.md |
| VAWA amendments | ./references/vawa-offenses.md |
| Dating violence definition | ./references/vawa-offenses.md |
| Domestic violence definition | ./references/vawa-offenses.md |
| Stalking definition | ./references/vawa-offenses.md |
| Hate crime bias categories | ./references/hate-crimes.md |
| Hate crime offenses | ./references/hate-crimes.md |
| On-campus definition | ./references/campus-geography.md |
| Residence hall reporting | ./references/campus-geography.md |
| Public property definition | ./references/campus-geography.md |
| Noncampus property | ./references/campus-geography.md |
| Fire statistics | ./references/fire-safety.md |
| Fire safety systems | ./references/fire-safety.md |
| Arrests vs referrals | ./references/arrests-referrals.md |
| Drug/alcohol violations | ./references/arrests-referrals.md |
| Weapons violations | ./references/arrests-referrals.md |
| Variable names and codes | ./references/variable-definitions.md |
| Underreporting issues | ./references/limitations.md |
| Institutional comparisons | ./references/limitations.md |
| Trend analysis caveats | ./references/limitations.md |
| Data interpretation | ./references/limitations.md |
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Guide for creating DAAF agent definition files. Covers 12-section template, hook registration, skills-in-frontmatter, integration checklist. Use when adding or revising agents. For SKILL.md files, use skill-authoring instead.
中文简介正在准备中。当前显示原文说明。
Researcher-facing analytic triangulation ("creative verification") for stress-testing provisional findings and designing pre-specified challenges before an analysis runs. Turns a researcher's concern or focal claim into competing explanations, bounded discriminating tests, audited diagnostic artifacts, and evidence-calibrated interpretations in a hypothesis/evidence ledger — behavioral, output-level verification replacing line-by-line code review. Covers 12 challenge families organized by Shadish-Cook-Campbell validity type, named sensitivity statistics, pre-committed interpretation rules, anti-fishing guardrails, and interactive diagnostic-artifact QA. Use in Ad Hoc Collaboration to verify, challenge, or stress-test a result, or to design discriminating tests before an analysis runs. Not code-change verification (verify skill / code review) and not final adjudication or re-execution (data-verifier, Reproducibility Verification) — prospective, hypothesis-driven challenge design of analytic claims.
中文简介正在准备中。当前显示原文说明。
In-situ smoke testing that verifies a LIVE DAAF deployment functions end-to-end in whatever provider route it is configured for. Auto-detects the active install route (anthropic-subscription, openrouter, chatgpt-subscription shim, openai-api shim) and runs tiered probes: Tier 0 free preflight (route/env coherence, hooks, statuslines, shim health); Tier 1 one live round-trip (~cents); Tier 2 a six-probe functional battery (dispatch, coding, web, skill loading, isolation-strip, nested-dispatch deny); Tier D a zero-cost deterministic battery (bats, Pester, lint, safety-hook tests). Use after install, after a rebuild or update, after any provider/config change (new API key, model remap, shim change), for pre-release validation, or when asked "is my install working" or to "smoke test the deployment/config." Requires the DAAF_DEV=1 dev image; a contributor tool, not end-user-facing. NOT DAAFBench (model behavioral-adherence evaluation under benchmarks/) and NOT scripts/smoke_tests/ (R/Python library-package smoke tests).
中文简介正在准备中。当前显示原文说明。
Operational framework for the DAAF orchestrator. Defines engagement modes, confirmation protocol, subagent dispatch, context budget, and reference-loading. Loaded exclusively by the orchestrator — not for subagents or user questions.
中文简介正在准备中。当前显示原文说明。
Data science methodology and method-selection routing for quantitative research. Covers EDA, data validation, descriptive analysis, causal inference (IV, DiD, RD, synthetic control), clustering/PCA/UMAP, supervised ML, geospatial analysis, network analysis, and visualization design. Contains the canonical method-to-library routing tree, routed by execution language — Python: statsmodels (OLS/GLM/time series), pyfixest (FE/DiD), linearmodels (RE/GMM/SUR), svy (complex surveys), scikit-learn (clustering/prediction ML), geopandas (spatial), igraph (network analysis); R: r-stats (OLS/GLM/time series), fixest (FE/DiD), plm (panel/RE/IV), survey-r (complex surveys), tidymodels (ML), sf-terra (spatial), igraph-r (network analysis). Load the routed tool-specific skill before giving tool-specific advice or writing code — library skills encode environment constraints and curated caveats absent from general knowledge.
中文简介正在准备中。当前显示原文说明。
Interpretation guidance for Urban Institute Education Data Portal datasets. The Portal is a curation layer over federal data: lowercase variable names, integer-encoded categoricals, standardized missing codes (-1 missing, -2 not applicable, -3 suppressed). Covers year definitions, grade encoding (grade=-1 is Pre-K, not missing), suppression rates, ODC-By licensing, and cross-source join identifiers. Load before analyzing any Portal data. Routes to source-specific deep-dive skills for individual datasets.
中文简介正在准备中。当前显示原文说明。