grade-on-ingest
Trigger GRADE quality assessment automatically when new research sources or findings enter the corpus
What this skill does
# GRADE-on-Ingest
Automatically triggers GRADE quality assessment when new research sources or findings are added to the corpus.
## Triggers
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
- "GRADE" → evidence quality rating framework
- "quality of evidence" → GRADE assessment
- "evidence level" → source quality grading
## Purpose
Ensures every research source entering the corpus receives a GRADE quality assessment at ingestion time, preventing unassessed sources from being cited without quality context. Implements the "assess at entry" pattern to maintain corpus-wide quality visibility.
## Activation Conditions
This skill activates when:
1. **New file created** in `.aiwg/research/sources/` or `.aiwg/research/findings/`
2. **File pattern matches**: `REF-*.md`, `*.pdf` added to research directories
3. **Agent activity**: Any agent writes to research corpus directories
4. **Manual trigger**: User requests source assessment
### Skip Conditions
- File is in `.aiwg/research/quality-assessments/` (already an assessment)
- File is `INDEX.md` or `README.md`
- File is a schema or template (`*.yaml` in schemas/)
- Assessment already exists for this REF-ID
## Behavior
When a new research source is detected:
1. **Extract metadata**
- Parse YAML frontmatter from source document
- Extract `ref_id`, `title`, `authors`, `year`, `source_type`
- If frontmatter missing, prompt agent to add it
2. **Determine baseline quality**
- Map source type to GRADE baseline:
- `peer_reviewed_journal` -> HIGH
- `peer_reviewed_conference` -> HIGH
- `preprint` -> MODERATE
- `technical_report` -> MODERATE
- `industry_whitepaper` -> LOW
- `blog_post` -> VERY LOW
- `forum_discussion` -> VERY LOW
3. **Invoke Quality Assessor**
- Delegate to Quality Assessor agent for full GRADE assessment
- Pass source metadata and content
- Request assessment in YAML format
4. **Store assessment**
- Save to `.aiwg/research/quality-assessments/{ref-id}-assessment.yaml`
- Update source frontmatter with `grade_level` field (if `--update-frontmatter`)
5. **Update corpus index**
- Add entry to quality assessment index
- Update GRADE distribution statistics
- Flag if corpus has > 30% unassessed sources
6. **Report**
- Display assessment summary to user
- Include hedging language recommendations
- Warn if source quality is LOW or VERY LOW
## Agent Orchestration
- **Primary**: Quality Assessor (performs the assessment)
- **Supporting**: Citation Verifier (validates existing citations of this source after assessment)
- **Notification**: Technical Writer, Documentation Synthesizer (if source is cited in existing docs, notify of GRADE level)
## Integration
### With Citation Guard
After assessment completes, Citation Guard uses the GRADE level to enforce hedging:
```yaml
integration:
citation_guard:
action: update_grade_cache
data: new_assessment
```
### With Research Metadata
Assessment populates fields required by research metadata rules:
```yaml
integration:
research_metadata:
fields_populated:
- quality_assessment.grade_level
- quality_assessment.baseline
- quality_assessment.downgrade_factors
- quality_assessment.upgrade_factors
```
### With Provenance Tracking
Assessment activity recorded in provenance chain:
```yaml
integration:
provenance:
activity_type: quality_assessment
agent: quality-assessor
```
## Configuration
```yaml
skill:
name: grade-on-ingest
type: passive
always_active_for:
- quality-assessor
- technical-researcher
- citation-verifier
file_triggers:
- pattern: ".aiwg/research/sources/REF-*.md"
- pattern: ".aiwg/research/findings/REF-*.md"
auto_assess: true
update_frontmatter: false # Requires --update-frontmatter flag
notify_on_low_quality: true
block_on_missing_frontmatter: false
```
## Output Locations
- Assessment: `.aiwg/research/quality-assessments/{ref-id}-assessment.yaml`
- Updated frontmatter: Source document (if `--update-frontmatter`)
- Index update: `.aiwg/research/quality-assessments/INDEX.md`
## References
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/agents/quality-assessor.md - Assessment agent
- @.aiwg/research/docs/grade-assessment-guide.md - GRADE methodology
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/research/quality-dimensions.yaml - Quality schema
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/research-metadata.md - Metadata requirements
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/citation-policy.md - Citation policy
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/skills/citation-guard/SKILL.md - Citation guard
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.