研究语料 GRADE 质量评估
grade-on-ingest
当新的研究来源或研究发现进入语料库时,自动触发 GRADE 质量评估。
- License 许可
- MIT
- 所属仓库
- jmagly/aiwg
- 最近更新
- 2026-11-14
- Stars
- ★ 229
- Forks
- 36
01 前言 Front Matter
- name
- grade-on-ingest
- namespace
- aiwg
- platforms
- [ "all" ]
- description
- Trigger GRADE quality assessment automatically when new research sources or findings enter the corpus
02 资源文件 2
- 许可证LICENSE.txt1.4 KB
- 脚本recalc.py6.3 KB
03 SKILL.md 正文
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:
- New file created in
.aiwg/research/sources/or.aiwg/research/findings/ - File pattern matches:
REF-*.md,*.pdfadded to research directories - Agent activity: Any agent writes to research corpus directories
- Manual trigger: User requests source assessment
Skip Conditions
- File is in
.aiwg/research/quality-assessments/(already an assessment) - File is
INDEX.mdorREADME.md - File is a schema or template (
*.yamlin schemas/) - Assessment already exists for this REF-ID
Behavior
When a new research source is detected:
-
Extract metadata
- Parse YAML frontmatter from source document
- Extract
ref_id,title,authors,year,source_type - If frontmatter missing, prompt agent to add it
-
Determine baseline quality
- Map source type to GRADE baseline:
peer_reviewed_journal-> HIGHpeer_reviewed_conference-> HIGHpreprint-> MODERATEtechnical_report-> MODERATEindustry_whitepaper-> LOWblog_post-> VERY LOWforum_discussion-> VERY LOW
- Map source type to GRADE baseline:
-
Invoke Quality Assessor
- Delegate to Quality Assessor agent for full GRADE assessment
- Pass source metadata and content
- Request assessment in YAML format
-
Store assessment
- Save to
.aiwg/research/quality-assessments/{ref-id}-assessment.yaml - Update source frontmatter with
grade_levelfield (if--update-frontmatter)
- Save to
-
Update corpus index
- Add entry to quality assessment index
- Update GRADE distribution statistics
- Flag if corpus has > 30% unassessed sources
-
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:
integration:
citation_guard:
action: update_grade_cache
data: new_assessment
With Research Metadata
Assessment populates fields required by research metadata rules:
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:
integration:
provenance:
activity_type: quality_assessment
agent: quality-assessor
Configuration
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
04 同仓库更多 Skills
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.