[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C2DT0YKBATVJCT4KR5H025":3,"skill-same:01M6C2DT0YKBATVJCT4KR5H025":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6C2DT0YKBATVJCT4KR5H025","verify-citations","文档引用核验","Verify all citations in a document against the research corpus","根据研究语料库验证文档中的所有引用。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fverify-citations\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C9D282HS6PBNFFH2AD1RSX","学术研究员","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CCS61JC5D66GMYQRBSF6ED","研究证据质量评估","SCENARIO","使用场景",[31,32,33,34,35,36],"Citations","verify","verify citations","research","quality","document","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: verify-citations\nplatforms: [all]\ndescription: Verify all citations in a document against the research corpus\ncommandHint:\n  category: research-quality\n---\n\n# Verify Citations Command\n\nValidate that all citations, references, and factual claims are backed by actual sources in the research corpus.\n\n## Instructions\n\nWhen invoked, perform systematic citation verification:\n\n1. **Parse Target File**\n   - Load the specified file (or all markdown files if no path given)\n   - Extract all citation patterns:\n     - `@.aiwg\u002Fresearch\u002Fsources\u002F*` references\n     - `@.aiwg\u002Fresearch\u002Ffindings\u002F*` references\n     - `REF-XXX` inline references\n     - DOI patterns (`10.XXXX\u002F...`)\n     - Author-year patterns (`Author et al., YYYY`)\n     - **RLM citation patterns** (#1225): `[\u003Cartifact_id>@\u003Ccontent_hash>, L\u003Cn>-\u003Cn>]` and path-only fallback `[\u003Cartifact_id>, L\u003Cn>-\u003Cn>]`\n\n2. **Verify Each Citation**\n   - Check file existence for @-mention references\n   - Validate REF-XXX against frontmatter in corpus\n   - Verify DOI format validity\n   - Check page number ranges\n   - Validate quoted text against source\n   - **For RLM citations**: verify cited file exists; if `content_hash` present, recompute current hash and compare (see [RLM Citation Verification](#rlm-citation-verification) below)\n\n3. **Detect Hallucinations**\n   - Flag citations to non-existent files\n   - Flag fabricated DOIs\n   - Flag statistics without sources\n   - Flag author names not in corpus\n\n4. **Check GRADE Compliance**\n   - Load quality assessment for each cited source\n   - Compare hedging language to evidence quality\n   - Flag overclaiming (HIGH-confidence language for LOW evidence)\n\n5. **Generate Report**\n   - Display summary table (total, valid, issues)\n   - List each issue with severity and fix suggestion\n   - Include RLM Citations section when present (Fresh \u002F Stale \u002F Un-versioned counts)\n   - Provide overall PASS\u002FFAIL verdict\n\n6. **Auto-Fix Mode (--fix)**\n   - Downgrade hedging language for GRADE violations\n   - Remove citations to non-existent sources (with comment)\n   - Add TODO markers for sources needing verification\n   - For STALE RLM citations: leave them in place but annotate with `[STALE: hash mismatch]`; do not auto-rewrite (the agent that emitted them must decide whether the new content still supports the claim)\n\n## RLM Citation Verification\n\nWhen the target file contains RLM-format citations (#1205, #1223), `verify-citations` validates them against the current state of the cited artifacts.\n\n### Citation patterns\n\nThe skill recognizes two inline forms (matching the schema at `agentic\u002Fcode\u002Faddons\u002Frlm\u002Fschemas\u002Fcitation-tuple.json`):\n\n- **Versioned**: `[\u003Cartifact_id>@\u003Ccontent_hash>, \u003Clines>]` — full provenance with content hash\n  - Example: `[src\u002Fauth\u002Flogin.ts@a8f9c2d4e5f60718, L42-58]`\n- **Path-only fallback**: `[\u003Cartifact_id>, \u003Clines>]` — citation without content hash (artifact wasn't in the index when emitted)\n  - Example: `[src\u002Flegacy\u002Fauth.py, L88]`\n\nThe `lines` field is optional in both forms.\n\n### Verdict logic\n\nFor **versioned** RLM citations:\n\n1. Resolve `\u003Cartifact_id>` to a project-relative file path\n2. If file does not exist → verdict: **MISSING** (error)\n3. If file exists, compute its current content hash using the same routine as the artifact index: sha256, truncated to first 16 hex chars (matches `src\u002Fartifacts\u002Findex-builder.ts:243`)\n4. Compare to the citation's `content_hash`:\n   - **Match** → verdict: **FRESH** (pass)\n   - **Mismatch** → verdict: **STALE** (warning by default; error in `--strict`)\n\nFor **path-only fallback** RLM citations:\n\n1. Resolve `\u003Cartifact_id>` to a project-relative file path\n2. If file does not exist → verdict: **MISSING** (error)\n3. If file exists → verdict: **UN-VERSIONED** (warning by default; error in `--strict`)\n\nStale verdict means the file content has changed since the citation was emitted — the claim may no longer be supported by the cited region. The simple hash-mismatch heuristic doesn't distinguish whitespace edits from semantic changes; richer semantic-drift detection is the responsibility of `aiwg index doctor --rlm-audit` (#1208).\n\n### Hash computation\n\nThe hash routine MUST match the index implementation exactly so citations emitted by `rlm-batch` round-trip cleanly:\n\n```\nsha256(file_contents).hexdigest()[0:16]\n```\n\nSee `src\u002Fartifacts\u002Findex-builder.ts:243` for the canonical implementation. Any verification logic that diverges from this convention will produce false stale verdicts.\n\n### Report format\n\nWhen RLM citations are present, the report adds a new section:\n\n```\nRLM Citations: 12 total\n  ✓ Fresh: 9\n  ⚠ Stale: 2\n  ⚠ Un-versioned: 1\n  ✗ Missing: 0\n\nSTALE citations:\n  - [src\u002Fauth\u002Flogin.ts@a8f9c2d4e5f60718, L42-58]\n    Current hash: f3b2c1d4e5a60718\n    File modified since citation emitted\n\nUN-VERSIONED citations:\n  - [src\u002Flegacy\u002Fauth.py, L88]\n    File exists but no content hash; consider running through aiwg index\n```\n\n### Mode flags\n\n- **Default mode**: auto-detects both research-corpus citations (existing behavior) and RLM citations (new). No flag required.\n- **`--rlm`**: opt-in to RLM-only mode — skip @-mention research-corpus checks. Useful when verifying RLM-aggregated outputs in CI without research-corpus context.\n- **`--strict`**: existing flag — STALE and UN-VERSIONED RLM citations escalate from warnings to errors and produce non-zero exit.\n\n## Arguments\n\n- `[file-path]` - File to verify (default: all `.md` files in current directory)\n- `--strict` - Treat warnings as errors (including STALE and UN-VERSIONED RLM citations)\n- `--fix` - Automatically fix GRADE violations and remove hallucinated citations (does not rewrite RLM citations — see #6 above)\n- `--report` - Save report to `.aiwg\u002Freports\u002Fcitation-verification.md`\n- `--corpus-only` - Only check @-mention references, skip author-year patterns\n- `--rlm` (#1225) - Verify RLM citations only; skip research-corpus checks\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Frules\u002Fcitation-policy.md - Citation enforcement rules\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Fcitation-verifier.md - Citation Verifier agent\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fschemas\u002Fresearch\u002Fcitation-audit.yaml - Audit schema\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fschemas\u002Fresearch\u002Fhallucination-detection.yaml - Detection patterns\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Frlm\u002Fschemas\u002Fcitation-tuple.json - RLM citation tuple schema (#1223)\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Frlm\u002Fskills\u002Frlm-batch\u002FSKILL.md - RLM citation emission contract\n","# Verify Citations Command\n\nValidate that all citations, references, and factual claims are backed by actual sources in the research corpus.\n\n## Instructions\n\nWhen invoked, perform systematic citation verification:\n\n1. **Parse Target File**\n   - Load the specified file (or all markdown files if no path given)\n   - Extract all citation patterns:\n     - `@.aiwg\u002Fresearch\u002Fsources\u002F*` references\n     - `@.aiwg\u002Fresearch\u002Ffindings\u002F*` references\n     - `REF-XXX` inline references\n     - DOI patterns (`10.XXXX\u002F...`)\n     - Author-year patterns (`Author et al., YYYY`)\n     - **RLM citation patterns** (#1225): `[\u003Cartifact_id>@\u003Ccontent_hash>, L\u003Cn>-\u003Cn>]` and path-only fallback `[\u003Cartifact_id>, L\u003Cn>-\u003Cn>]`\n\n2. **Verify Each Citation**\n   - Check file existence for @-mention references\n   - Validate REF-XXX against frontmatter in corpus\n   - Verify DOI format validity\n   - Check page number ranges\n   - Validate quoted text against source\n   - **For RLM citations**: verify cited file exists; if `content_hash` present, recompute current hash and compare (see [RLM Citation Verification](#rlm-citation-verification) below)\n\n3. **Detect Hallucinations**\n   - Flag citations to non-existent files\n   - Flag fabricated DOIs\n   - Flag statistics without sources\n   - Flag author names not in corpus\n\n4. **Check GRADE Compliance**\n   - Load quality assessment for each cited source\n   - Compare hedging language to evidence quality\n   - Flag overclaiming (HIGH-confidence language for LOW evidence)\n\n5. **Generate Report**\n   - Display summary table (total, valid, issues)\n   - List each issue with severity and fix suggestion\n   - Include RLM Citations section when present (Fresh \u002F Stale \u002F Un-versioned counts)\n   - Provide overall PASS\u002FFAIL verdict\n\n6. **Auto-Fix Mode (--fix)**\n   - Downgrade hedging language for GRADE violations\n   - Remove citations to non-existent sources (with comment)\n   - Add TODO markers for sources needing verification\n   - For STALE RLM citations: leave them in place but annotate with `[STALE: hash mismatch]`; do not auto-rewrite (the agent that emitted them must decide whether the new content still supports the claim)\n\n## RLM Citation Verification\n\nWhen the target file contains RLM-format citations (#1205, #1223), `verify-citations` validates them against the current state of the cited artifacts.\n\n### Citation patterns\n\nThe skill recognizes two inline forms (matching the schema at `agentic\u002Fcode\u002Faddons\u002Frlm\u002Fschemas\u002Fcitation-tuple.json`):\n\n- **Versioned**: `[\u003Cartifact_id>@\u003Ccontent_hash>, \u003Clines>]` — full provenance with content hash\n  - Example: `[src\u002Fauth\u002Flogin.ts@a8f9c2d4e5f60718, L42-58]`\n- **Path-only fallback**: `[\u003Cartifact_id>, \u003Clines>]` — citation without content hash (artifact wasn't in the index when emitted)\n  - Example: `[src\u002Flegacy\u002Fauth.py, L88]`\n\nThe `lines` field is optional in both forms.\n\n### Verdict logic\n\nFor **versioned** RLM citations:\n\n1. Resolve `\u003Cartifact_id>` to a project-relative file path\n2. If file does not exist → verdict: **MISSING** (error)\n3. If file exists, compute its current content hash using the same routine as the artifact index: sha256, truncated to first 16 hex chars (matches `src\u002Fartifacts\u002Findex-builder.ts:243`)\n4. Compare to the citation's `content_hash`:\n   - **Match** → verdict: **FRESH** (pass)\n   - **Mismatch** → verdict: **STALE** (warning by default; error in `--strict`)\n\nFor **path-only fallback** RLM citations:\n\n1. Resolve `\u003Cartifact_id>` to a project-relative file path\n2. If file does not exist → verdict: **MISSING** (error)\n3. If file exists → verdict: **UN-VERSIONED** (warning by default; error in `--strict`)\n\nStale verdict means the file content has changed since the citation was emitted — the claim may no longer be supported by the cited region. The simple hash-mismatch heuristic doesn't distinguish whitespace edits from semantic changes; richer semantic-drift detection is the responsibility of `aiwg index doctor --rlm-audit` (#1208).\n\n### Hash computation\n\nThe hash routine MUST match the index implementation exactly so citations emitted by `rlm-batch` round-trip cleanly:\n\n```\nsha256(file_contents).hexdigest()[0:16]\n```\n\nSee `src\u002Fartifacts\u002Findex-builder.ts:243` for the canonical implementation. Any verification logic that diverges from this convention will produce false stale verdicts.\n\n### Report format\n\nWhen RLM citations are present, the report adds a new section:\n\n```\nRLM Citations: 12 total\n  ✓ Fresh: 9\n  ⚠ Stale: 2\n  ⚠ Un-versioned: 1\n  ✗ Missing: 0\n\nSTALE citations:\n  - [src\u002Fauth\u002Flogin.ts@a8f9c2d4e5f60718, L42-58]\n    Current hash: f3b2c1d4e5a60718\n    File modified since citation emitted\n\nUN-VERSIONED citations:\n  - [src\u002Flegacy\u002Fauth.py, L88]\n    File exists but no content hash; consider running through aiwg index\n```\n\n### Mode flags\n\n- **Default mode**: auto-detects both research-corpus citations (existing behavior) and RLM citations (new). No flag required.\n- **`--rlm`**: opt-in to RLM-only mode — skip @-mention research-corpus checks. Useful when verifying RLM-aggregated outputs in CI without research-corpus context.\n- **`--strict`**: existing flag — STALE and UN-VERSIONED RLM citations escalate from warnings to errors and produce non-zero exit.\n\n## Arguments\n\n- `[file-path]` - File to verify (default: all `.md` files in current directory)\n- `--strict` - Treat warnings as errors (including STALE and UN-VERSIONED RLM citations)\n- `--fix` - Automatically fix GRADE violations and remove hallucinated citations (does not rewrite RLM citations — see #6 above)\n- `--report` - Save report to `.aiwg\u002Freports\u002Fcitation-verification.md`\n- `--corpus-only` - Only check @-mention references, skip author-year patterns\n- `--rlm` (#1225) - Verify RLM citations only; skip research-corpus checks\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Frules\u002Fcitation-policy.md - Citation enforcement rules\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Fcitation-verifier.md - Citation Verifier agent\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fschemas\u002Fresearch\u002Fcitation-audit.yaml - Audit schema\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fschemas\u002Fresearch\u002Fhallucination-detection.yaml - Detection patterns\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Frlm\u002Fschemas\u002Fcitation-tuple.json - RLM citation tuple schema (#1223)\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Frlm\u002Fskills\u002Frlm-batch\u002FSKILL.md - RLM citation emission contract\n",{"name":5,"namespace":42,"platforms":43,"commandHint":45,"description":7},"aiwg",[44],"all",{"category":46},"research-quality","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fverify-citations",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add jmagly\u002Faiwg --skill verify-citations",{"tool":63,"command":64},"bunx","bunx skills add jmagly\u002Faiwg --skill verify-citations",{"tool":66,"command":67},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill verify-citations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fverify-citations\u002FSKILL.md",true,[],[72,80,85,112,132,137],{"skillNo":73,"name":74,"nameZh":17,"description":75,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":79},"01M78KW7PZJ9YQZQMW84SN2YD4","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","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":81,"name":74,"nameZh":17,"description":75,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":79},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":17,"description":88,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":37},"01M70QA0BSYJ49EES9V4RE8QH1","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.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":113,"name":114,"nameZh":17,"description":115,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":37},"01M70PNT2Z4HMZPRBTAF6073NN","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.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[119,120,121,122,123,124,97,125,103,110,105,126,93,127,107,128,129,111,130,131],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":133,"name":87,"nameZh":17,"description":88,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":37},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[92,93,94,109,110,111,104,108,100,96,97,98,99,101,102,103,95,105,106,107],{"skillNo":138,"name":114,"nameZh":17,"description":115,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":37},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[119,120,131,130,123,129,128,107,122,124,97,125,103,121,105,126,93,111,110,127]]