[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C21RNDW6P4ENRJBHGD95CX":3,"skill-same:01M6C21RNDW6P4ENRJBHGD95CX":87},{"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":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":68,"ownerHtmlUrl":69,"ownerBlogUrl":70,"ownerDescription":71,"updatedAt":72,"install":73,"resources":86},"01M6C21RNDW6P4ENRJBHGD95CX","research-workflow","多阶段研究工作流执行","Execute multi-stage research workflows","执行多阶段研究工作流。","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\u002Fresearch-complete\u002Fskills\u002Fresearch-workflow\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRK8296DVQW3GCBXC89NVG","网页搜索与信息研究","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C82QA6RFSM572EJHQQYPMH","研究工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"workflow","research","research workflow","papers","with","multi","input","name","stage","Citation","me","build","execute","plan","start","help","workflows","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: research-workflow\nplatforms: [all]\ndescription: Execute multi-stage research workflows\ntriggers:\n  - \"help with research papers\"\n  - \"help me build a cited research corpus\"\n  - \"start a research workflow or citation plan\"\n  - \"research workflow\"\ncommandHint:\n  argumentHint: \"[workflow-name] [--input parameters] [--stage n]\"\n  category: research-workflows\n---\n\n# Research Workflow Command\n\nEvery acquisition, induction, and synthesis dispatch uses the shared [context engineering contract](..\u002F..\u002F..\u002F..\u002F..\u002F..\u002Fdocs\u002Fcontext-engineering-contract.md) and [verification contract](..\u002F..\u002F..\u002F..\u002F..\u002F..\u002Fdocs\u002Fverification-contracts.md). Synthesis completion requires citation resolution, GRADE-calibrated claims, and evidence\u002Finference\u002Frecommendation separation.\n\nExecute complete multi-stage research workflows from discovery through archival.\n\n## Instructions\n\nWhen invoked, orchestrate multi-agent research workflows:\n\n1. **Load Workflow Definition**\n   - Identify workflow by name or load custom workflow YAML\n   - Parse stages, agents, dependencies\n   - Validate workflow structure\n\n2. **Execute Stages Sequentially**\n   - Each stage invokes specific agents\n   - Pass outputs from one stage to next\n   - Handle stage failures and retries\n   - Track progress and status\n\n3. **Monitor Execution**\n   - Display progress indicators\n   - Log all agent invocations\n   - Capture intermediate outputs\n   - Track resource usage (tokens, time)\n\n4. **Handle Gates**\n   - Pause for human approval at designated gates\n   - Present artifacts for review\n   - Collect feedback and decisions\n   - Resume or abort based on input\n\n5. **Generate Report**\n   - Summarize workflow execution\n   - Report outcomes for each stage\n   - Calculate quality metrics\n   - Archive workflow state\n\n## Built-in Workflows\n\n| Workflow | Stages | Description |\n|----------|--------|-------------|\n| `discovery-to-corpus` | 5 | Full pipeline from search to documented findings |\n| `paper-acquisition` | 3 | Download, extract metadata, create finding document |\n| `quality-assessment` | 4 | GRADE assessment with citation validation |\n| `corpus-maintenance` | 6 | Periodic corpus health checks and updates |\n| `synthesis-report` | 4 | Generate synthesis report from topic cluster |\n| `citation-audit` | 3 | Validate all citations across corpus |\n\n## Arguments\n\n- `[workflow-name]` - Workflow to execute (required)\n- `--input [yaml-file]` - Input parameters for workflow\n- `--stage [n]` - Start from specific stage (default: 1)\n- `--pause-at [stage]` - Pause after specific stage\n- `--interactive` - Prompt for confirmation at each stage\n- `--dry-run` - Preview workflow without execution\n- `--resume [workflow-id]` - Resume previously interrupted workflow\n\n## Workflow Definitions\n\n### discovery-to-corpus\n\nComplete pipeline from literature search to documented findings:\n\n**Stages:**\n\n1. **Discovery** (agent: discovery-agent)\n   - Search academic databases for query\n   - Rank and filter results\n   - Present top candidates\n\n2. **Acquisition** (agent: research-acquisition-agent)\n   - Download selected papers\n   - Extract metadata\n   - Generate frontmatter\n   - Create finding documents\n\n3. **Documentation** (agent: documentation-agent)\n   - Parse PDFs\n   - Extract key findings\n   - Assess AIWG relevance\n   - Generate literature notes\n\n4. **Quality Assessment** (agent: quality-agent)\n   - Apply GRADE framework\n   - Calculate quality level\n   - Generate assessment reports\n   - Update frontmatter\n\n5. **Archival** (agent: archival-agent)\n   - Create BagIt packages\n   - Update fixity manifest\n   - Register in archival index\n\n**Human Gates:**\n- After Discovery: Select papers to acquire\n- After Quality Assessment: Approve quality levels\n\n### paper-acquisition\n\nStreamlined acquisition workflow:\n\n**Stages:**\n\n1. **Download** (agent: research-acquisition-agent)\n   - Fetch PDF from source\n   - Verify file integrity\n\n2. **Metadata Extraction** (agent: research-acquisition-agent)\n   - Parse PDF metadata\n   - Enrich via CrossRef\u002FSemantic Scholar\n   - Assign REF-XXX identifier\n\n3. **Document Creation** (agent: documentation-agent)\n   - Generate finding document from template\n   - Populate frontmatter\n   - Add placeholder sections\n\n### quality-assessment\n\nComprehensive quality assessment workflow:\n\n**Stages:**\n\n1. **GRADE Assessment** (agent: quality-agent)\n   - Determine baseline quality\n   - Apply downgrade\u002Fupgrade factors\n   - Calculate final GRADE level\n\n2. **Hedging Analysis** (agent: quality-agent)\n   - Generate appropriate hedging language\n   - Document forbidden phrases\n   - Create citation templates\n\n3. **Citation Validation** (agent: citation-agent)\n   - Scan corpus for citations of this source\n   - Check hedging compliance\n   - Generate remediation suggestions\n\n4. **Report Generation** (agent: quality-agent)\n   - Create assessment report\n   - Update frontmatter\n   - Save assessment YAML\n\n## Examples\n\n```bash\n# Execute full discovery-to-corpus workflow\n\u002Fresearch-workflow discovery-to-corpus --input discovery-params.yaml\n\n# Acquire specific paper\n\u002Fresearch-workflow paper-acquisition --input '{\"doi\": \"10.48550\u002FarXiv.2308.08155\"}'\n\n# Run quality assessment\n\u002Fresearch-workflow quality-assessment --input '{\"ref_id\": \"REF-022\"}'\n\n# Interactive mode with pauses\n\u002Fresearch-workflow discovery-to-corpus --interactive\n\n# Dry run to preview\n\u002Fresearch-workflow corpus-maintenance --dry-run\n\n# Resume interrupted workflow\n\u002Fresearch-workflow resume wf-20260203-123456\n```\n\n## Expected Output\n\n```\nExecuting Workflow: discovery-to-corpus\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nInput Parameters:\n  Query: \"agentic workflows for software development\"\n  Max results: 10\n  Year from: 2020\n\nWorkflow Progress: [████░░░░░░] Stage 1\u002F5\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nStage 1: Discovery (agent: discovery-agent)\n─────────────────────────────────────────────────────────────────────\n  Status: Running...\n  ✓ Queried arXiv (42 results)\n  ✓ Queried ACM DL (18 results)\n  ✓ Queried IEEE Xplore (25 results)\n  ✓ Queried Semantic Scholar (67 results)\n  ✓ Deduplicated and ranked\n  ✓ Top 10 results selected\n\n  Duration: 15s\n  Status: COMPLETE\n\nOutput:\n  10 papers identified\n  Saved to: .aiwg\u002Fresearch\u002Fsearch-cache\u002Fresults-20260203-143000.yaml\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nHUMAN GATE: Paper Selection\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nTop 10 Results:\n\n 1. [✓] AutoGen: Enabling Next-Gen LLM Applications (Wu et al., 2023)\n    Relevance: 0.95, Citations: 234, DOI: 10.48550\u002FarXiv.2308.08155\n\n 2. [✓] The Landscape of Emerging AI Agent Architectures (Wang et al., 2024)\n    Relevance: 0.89, Citations: 89, DOI: 10.48550\u002FarXiv.2404.11584\n\n 3. [ ] MetaGPT: Meta Programming for Multi-Agent Systems (Hong et al., 2023)\n    Relevance: 0.87, Citations: 156, DOI: 10.48550\u002FarXiv.2308.00352\n    Note: Already in corpus as REF-013\n\n 4. [✓] Agent Laboratory: Using LLM Agents as Research Assistants (Schmidgall et al., 2024)\n    Relevance: 0.85, Citations: 45, arXiv:2404.11587\n\n... (6 more)\n\nSelect papers to acquire [1,2,4 or 'all']: 1,2,4\n\nSelected: 3 papers\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nWorkflow Progress: [████████░░] Stage 2\u002F5\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nStage 2: Acquisition (agent: research-acquisition-agent)\n─────────────────────────────────────────────────────────────────────\n  Status: Running...\n\n  Paper 1\u002F3: AutoGen (10.48550\u002FarXiv.2308.08155)\n    ✓ Downloaded PDF (2.4 MB)\n    ✓ Metadata extracted\n    ✓ Assigned REF-022\n    ✓ Finding document created\n\n  Paper 2\u002F3: Emerging AI Agent Architectures (10.48550\u002FarXiv.2404.11584)\n    ✓ Downloaded PDF (3.1 MB)\n    ✓ Metadata extracted\n    ✓ Assigned REF-075\n    ✓ Finding document created\n\n  Paper 3\u002F3: Agent Laboratory (arXiv:2404.11587)\n    ✓ Downloaded PDF (1.8 MB)\n    ✓ Metadata extracted\n    ✓ Assigned REF-076\n    ✓ Finding document created\n\n  Duration: 42s\n  Status: COMPLETE\n\nOutput:\n  3 papers acquired\n  REF-022, REF-075, REF-076\n  Total size: 7.3 MB\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nWorkflow Progress: [████████████░░] Stage 3\u002F5\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nStage 3: Documentation (agent: documentation-agent)\n─────────────────────────────────────────────────────────────────────\n  Status: Running...\n\n  REF-022: AutoGen\n    ✓ PDF parsed (27 pages)\n    ✓ 4 key findings extracted\n    ✓ AIWG relevance assessed (HIGH)\n    ✓ Literature notes created\n    ✓ Finding document populated (1,847 words)\n\n  REF-075: Emerging AI Agent Architectures\n    ✓ PDF parsed (18 pages)\n    ✓ 5 key findings extracted\n    ✓ AIWG relevance assessed (HIGH)\n    ✓ Literature notes created\n    ✓ Finding document populated (2,103 words)\n\n  REF-076: Agent Laboratory\n    ✓ PDF parsed (12 pages)\n    ✓ 3 key findings extracted\n    ✓ AIWG relevance assessed (MEDIUM)\n    ✓ Literature notes created\n    ✓ Finding document populated (1,524 words)\n\n  Duration: 3m 15s\n  Status: COMPLETE\n\nOutput:\n  3 finding documents completed\n  3 literature notes created\n  Total: 5,474 words of documentation\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nWorkflow Progress: [█████████████░] Stage 4\u002F5\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nStage 4: Quality Assessment (agent: quality-agent)\n─────────────────────────────────────────────────────────────────────\n  Status: Running...\n\n  REF-022: AutoGen\n    ✓ Baseline: MODERATE (conference paper)\n    ✓ Downgrade: -1 (imprecision)\n    ✓ Final GRADE: LOW\n    ✓ Assessment saved\n\n  REF-075: Emerging AI Agent Architectures\n    ✓ Baseline: VERY LOW (preprint, not peer-reviewed)\n    ✓ No upgrades\u002Fdowngrades\n    ✓ Final GRADE: VERY LOW\n    ✓ Assessment saved\n\n  REF-076: Agent Laboratory\n    ✓ Baseline: MODERATE (preprint, high-quality)\n    ✓ Upgrade: +1 (large effect)\n    ✓ Final GRADE: MODERATE\n    ✓ Assessment saved\n\n  Duration: 45s\n  Status: COMPLETE\n\nOutput:\n  3 quality assessments completed\n  GRADE levels: LOW, VERY LOW, MODERATE\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nHUMAN GATE: Quality Approval\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nQuality assessments complete. Review GRADE levels:\n\n  REF-022: LOW (conference paper with limited evaluation)\n  REF-075: VERY LOW (preprint, not peer-reviewed)\n  REF-076: MODERATE (high-quality preprint with strong findings)\n\nApprove quality levels? [Y\u002Fn]: Y\n\nApproved. Proceeding to archival.\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nWorkflow Progress: [██████████████] Stage 5\u002F5\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nStage 5: Archival (agent: archival-agent)\n─────────────────────────────────────────────────────────────────────\n  Status: Running...\n\n  REF-022: AutoGen\n    ✓ BagIt package created (2.5 MB)\n    ✓ Checksums verified\n    ✓ Registered in archival index\n\n  REF-075: Emerging AI Agent Architectures\n    ✓ BagIt package created (3.2 MB)\n    ✓ Checksums verified\n    ✓ Registered in archival index\n\n  REF-076: Agent Laboratory\n    ✓ BagIt package created (1.9 MB)\n    ✓ Checksums verified\n    ✓ Registered in archival index\n\n  Duration: 28s\n  Status: COMPLETE\n\nOutput:\n  3 archival packages created\n  Total archived size: 7.6 MB\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nWorkflow Complete!\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nSummary:\n  Workflow: discovery-to-corpus\n  Duration: 5m 25s\n  Papers processed: 3\n  Success rate: 100%\n\nArtifacts Created:\n  - 3 PDFs (.aiwg\u002Fresearch\u002Fsources\u002F)\n  - 3 finding documents (.aiwg\u002Fresearch\u002Ffindings\u002F)\n  - 3 literature notes (.aiwg\u002Fresearch\u002Fliterature-notes\u002F)\n  - 3 quality assessments (.aiwg\u002Fresearch\u002Fquality-assessments\u002F)\n  - 3 archival packages (.aiwg\u002Fresearch\u002Farchives\u002F)\n\nResource Usage:\n  Tokens consumed: 45,230\n  API calls: 27\n  Storage used: 7.6 MB\n\nNext Steps:\n  - Review findings: \u002Fresearch-document REF-022 REF-075 REF-076\n  - Generate citations: \u002Fresearch-cite REF-022\n  - Check corpus health: \u002Fresearch-status\n\nWorkflow log: .aiwg\u002Fresearch\u002Fworkflows\u002Fwf-20260203-143000.log\n```\n\n## Workflow State\n\nAll workflows track state for resumption:\n\n```yaml\n# .aiwg\u002Fresearch\u002Fworkflows\u002Fwf-20260203-143000-state.yaml\nworkflow_id: wf-20260203-143000\nworkflow_name: discovery-to-corpus\nstatus: complete\nstarted_at: \"2026-02-03T14:30:00Z\"\ncompleted_at: \"2026-02-03T14:35:25Z\"\n\nstages:\n  - name: discovery\n    status: complete\n    started_at: \"2026-02-03T14:30:00Z\"\n    completed_at: \"2026-02-03T14:30:15Z\"\n    output:\n      papers: 10\n      selected: [1, 2, 4]\n\n  - name: acquisition\n    status: complete\n    started_at: \"2026-02-03T14:30:20Z\"\n    completed_at: \"2026-02-03T14:31:02Z\"\n    output:\n      acquired: [REF-022, REF-075, REF-076]\n\n  ... (stages 3-5)\n\nmetrics:\n  duration_seconds: 325\n  tokens_consumed: 45230\n  api_calls: 27\n  success_rate: 1.0\n```\n\n## Custom Workflows\n\nDefine custom workflows in YAML:\n\n```yaml\n# custom-workflow.yaml\nname: focused-acquisition\ndescription: Acquire and document specific papers\nstages:\n  - name: acquisition\n    agent: research-acquisition-agent\n    inputs:\n      - doi_list\n\n  - name: documentation\n    agent: documentation-agent\n    inputs:\n      - from: acquisition.acquired\n\n  - name: quality\n    agent: quality-agent\n    inputs:\n      - from: acquisition.acquired\n\ngates:\n  - stage: quality\n    type: approval\n    message: \"Review quality assessments\"\n```\n\nExecute:\n```bash\n\u002Fresearch-workflow custom-workflow.yaml --input '{\"doi_list\": [\"10.1234\u002Fexample\"]}'\n```\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fresearch-complete\u002Fagents\u002Fworkflow-agent.md - Workflow Agent\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fresearch-complete\u002Fworkflows\u002F - Workflow definitions\n- @$AIWG_ROOT\u002Fsrc\u002Fresearch\u002Fservices\u002Fworkflow-service.ts - Workflow orchestration\n- @.aiwg\u002Fresearch\u002Fworkflows\u002F - Workflow state and logs\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Frules\u002Fhitl-gates.md - Human gate patterns\n","# Research Workflow Command\n\nEvery acquisition, induction, and synthesis dispatch uses the shared [context engineering contract](..\u002F..\u002F..\u002F..\u002F..\u002F..\u002Fdocs\u002Fcontext-engineering-contract.md) and [verification contract](..\u002F..\u002F..\u002F..\u002F..\u002F..\u002Fdocs\u002Fverification-contracts.md). Synthesis completion requires citation resolution, GRADE-calibrated claims, and evidence\u002Finference\u002Frecommendation separation.\n\nExecute complete multi-stage research workflows from discovery through archival.\n\n## Instructions\n\nWhen invoked, orchestrate multi-agent research workflows:\n\n1. **Load Workflow Definition**\n   - Identify workflow by name or load custom workflow YAML\n   - Parse stages, agents, dependencies\n   - Validate workflow structure\n\n2. **Execute Stages Sequentially**\n   - Each stage invokes specific agents\n   - Pass outputs from one stage to next\n   - Handle stage failures and retries\n   - Track progress and status\n\n3. **Monitor Execution**\n   - Display progress indicators\n   - Log all agent invocations\n   - Capture intermediate outputs\n   - Track resource usage (tokens, time)\n\n4. **Handle Gates**\n   - Pause for human approval at designated gates\n   - Present artifacts for review\n   - Collect feedback and decisions\n   - Resume or abort based on input\n\n5. **Generate Report**\n   - Summarize workflow execution\n   - Report outcomes for each stage\n   - Calculate quality metrics\n   - Archive workflow state\n\n## Built-in Workflows\n\n| Workflow | Stages | Description |\n|----------|--------|-------------|\n| `discovery-to-corpus` | 5 | Full pipeline from search to documented findings |\n| `paper-acquisition` | 3 | Download, extract metadata, create finding document |\n| `quality-assessment` | 4 | GRADE assessment with citation validation |\n| `corpus-maintenance` | 6 | Periodic corpus health checks and updates |\n| `synthesis-report` | 4 | Generate synthesis report from topic cluster |\n| `citation-audit` | 3 | Validate all citations across corpus |\n\n## Arguments\n\n- `[workflow-name]` - Workflow to execute (required)\n- `--input [yaml-file]` - Input parameters for workflow\n- `--stage [n]` - Start from specific stage (default: 1)\n- `--pause-at [stage]` - Pause after specific stage\n- `--interactive` - Prompt for confirmation at each stage\n- `--dry-run` - Preview workflow without execution\n- `--resume [workflow-id]` - Resume previously interrupted workflow\n\n## Workflow Definitions\n\n### discovery-to-corpus\n\nComplete pipeline from literature search to documented findings:\n\n**Stages:**\n\n1. **Discovery** (agent: discovery-agent)\n   - Search academic databases for query\n   - Rank and filter results\n   - Present top candidates\n\n2. **Acquisition** (agent: research-acquisition-agent)\n   - Download selected papers\n   - Extract metadata\n   - Generate frontmatter\n   - Create finding documents\n\n3. **Documentation** (agent: documentation-agent)\n   - Parse PDFs\n   - Extract key findings\n   - Assess AIWG relevance\n   - Generate literature notes\n\n4. **Quality Assessment** (agent: quality-agent)\n   - Apply GRADE framework\n   - Calculate quality level\n   - Generate assessment reports\n   - Update frontmatter\n\n5. **Archival** (agent: archival-agent)\n   - Create BagIt packages\n   - Update fixity manifest\n   - Register in archival index\n\n**Human Gates:**\n- After Discovery: Select papers to acquire\n- After Quality Assessment: Approve quality levels\n\n### paper-acquisition\n\nStreamlined acquisition workflow:\n\n**Stages:**\n\n1. **Download** (agent: research-acquisition-agent)\n   - Fetch PDF from source\n   - Verify file integrity\n\n2. **Metadata Extraction** (agent: research-acquisition-agent)\n   - Parse PDF metadata\n   - Enrich via CrossRef\u002FSemantic Scholar\n   - Assign REF-XXX identifier\n\n3. **Document Creation** (agent: documentation-agent)\n   - Generate finding document from template\n   - Populate frontmatter\n   - Add placeholder sections\n\n### quality-assessment\n\nComprehensive quality assessment workflow:\n\n**Stages:**\n\n1. **GRADE Assessment** (agent: quality-agent)\n   - Determine baseline quality\n   - Apply downgrade\u002Fupgrade factors\n   - Calculate final GRADE level\n\n2. **Hedging Analysis** (agent: quality-agent)\n   - Generate appropriate hedging language\n   - Document forbidden phrases\n   - Create citation templates\n\n3. **Citation Validation** (agent: citation-agent)\n   - Scan corpus for citations of this source\n   - Check hedging compliance\n   - Generate remediation suggestions\n\n4. **Report Generation** (agent: quality-agent)\n   - Create assessment report\n   - Update frontmatter\n   - Save assessment YAML\n\n## Examples\n\n```bash\n# Execute full discovery-to-corpus workflow\n\u002Fresearch-workflow discovery-to-corpus --input discovery-params.yaml\n\n# Acquire specific paper\n\u002Fresearch-workflow paper-acquisition --input '{\"doi\": \"10.48550\u002FarXiv.2308.08155\"}'\n\n# Run quality assessment\n\u002Fresearch-workflow quality-assessment --input '{\"ref_id\": \"REF-022\"}'\n\n# Interactive mode with pauses\n\u002Fresearch-workflow discovery-to-corpus --interactive\n\n# Dry run to preview\n\u002Fresearch-workflow corpus-maintenance --dry-run\n\n# Resume interrupted workflow\n\u002Fresearch-workflow resume wf-20260203-123456\n```\n\n## Expected Output\n\n```\nExecuting Workflow: discovery-to-corpus\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nInput Parameters:\n  Query: \"agentic workflows for software development\"\n  Max results: 10\n  Year from: 2020\n\nWorkflow Progress: [████░░░░░░] Stage 1\u002F5\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nStage 1: Discovery (agent: discovery-agent)\n─────────────────────────────────────────────────────────────────────\n  Status: Running...\n  ✓ Queried arXiv (42 results)\n  ✓ Queried ACM DL (18 results)\n  ✓ Queried IEEE Xplore (25 results)\n  ✓ Queried Semantic Scholar (67 results)\n  ✓ Deduplicated and ranked\n  ✓ Top 10 results selected\n\n  Duration: 15s\n  Status: COMPLETE\n\nOutput:\n  10 papers identified\n  Saved to: .aiwg\u002Fresearch\u002Fsearch-cache\u002Fresults-20260203-143000.yaml\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nHUMAN GATE: Paper Selection\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nTop 10 Results:\n\n 1. [✓] AutoGen: Enabling Next-Gen LLM Applications (Wu et al., 2023)\n    Relevance: 0.95, Citations: 234, DOI: 10.48550\u002FarXiv.2308.08155\n\n 2. [✓] The Landscape of Emerging AI Agent Architectures (Wang et al., 2024)\n    Relevance: 0.89, Citations: 89, DOI: 10.48550\u002FarXiv.2404.11584\n\n 3. [ ] MetaGPT: Meta Programming for Multi-Agent Systems (Hong et al., 2023)\n    Relevance: 0.87, Citations: 156, DOI: 10.48550\u002FarXiv.2308.00352\n    Note: Already in corpus as REF-013\n\n 4. [✓] Agent Laboratory: Using LLM Agents as Research Assistants (Schmidgall et al., 2024)\n    Relevance: 0.85, Citations: 45, arXiv:2404.11587\n\n... (6 more)\n\nSelect papers to acquire [1,2,4 or 'all']: 1,2,4\n\nSelected: 3 papers\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nWorkflow Progress: [████████░░] Stage 2\u002F5\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nStage 2: Acquisition (agent: research-acquisition-agent)\n─────────────────────────────────────────────────────────────────────\n  Status: Running...\n\n  Paper 1\u002F3: AutoGen (10.48550\u002FarXiv.2308.08155)\n    ✓ Downloaded PDF (2.4 MB)\n    ✓ Metadata extracted\n    ✓ Assigned REF-022\n    ✓ Finding document created\n\n  Paper 2\u002F3: Emerging AI Agent Architectures (10.48550\u002FarXiv.2404.11584)\n    ✓ Downloaded PDF (3.1 MB)\n    ✓ Metadata extracted\n    ✓ Assigned REF-075\n    ✓ Finding document created\n\n  Paper 3\u002F3: Agent Laboratory (arXiv:2404.11587)\n    ✓ Downloaded PDF (1.8 MB)\n    ✓ Metadata extracted\n    ✓ Assigned REF-076\n    ✓ Finding document created\n\n  Duration: 42s\n  Status: COMPLETE\n\nOutput:\n  3 papers acquired\n  REF-022, REF-075, REF-076\n  Total size: 7.3 MB\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nWorkflow Progress: [████████████░░] Stage 3\u002F5\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nStage 3: Documentation (agent: documentation-agent)\n─────────────────────────────────────────────────────────────────────\n  Status: Running...\n\n  REF-022: AutoGen\n    ✓ PDF parsed (27 pages)\n    ✓ 4 key findings extracted\n    ✓ AIWG relevance assessed (HIGH)\n    ✓ Literature notes created\n    ✓ Finding document populated (1,847 words)\n\n  REF-075: Emerging AI Agent Architectures\n    ✓ PDF parsed (18 pages)\n    ✓ 5 key findings extracted\n    ✓ AIWG relevance assessed (HIGH)\n    ✓ Literature notes created\n    ✓ Finding document populated (2,103 words)\n\n  REF-076: Agent Laboratory\n    ✓ PDF parsed (12 pages)\n    ✓ 3 key findings extracted\n    ✓ AIWG relevance assessed (MEDIUM)\n    ✓ Literature notes created\n    ✓ Finding document populated (1,524 words)\n\n  Duration: 3m 15s\n  Status: COMPLETE\n\nOutput:\n  3 finding documents completed\n  3 literature notes created\n  Total: 5,474 words of documentation\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nWorkflow Progress: [█████████████░] Stage 4\u002F5\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nStage 4: Quality Assessment (agent: quality-agent)\n─────────────────────────────────────────────────────────────────────\n  Status: Running...\n\n  REF-022: AutoGen\n    ✓ Baseline: MODERATE (conference paper)\n    ✓ Downgrade: -1 (imprecision)\n    ✓ Final GRADE: LOW\n    ✓ Assessment saved\n\n  REF-075: Emerging AI Agent Architectures\n    ✓ Baseline: VERY LOW (preprint, not peer-reviewed)\n    ✓ No upgrades\u002Fdowngrades\n    ✓ Final GRADE: VERY LOW\n    ✓ Assessment saved\n\n  REF-076: Agent Laboratory\n    ✓ Baseline: MODERATE (preprint, high-quality)\n    ✓ Upgrade: +1 (large effect)\n    ✓ Final GRADE: MODERATE\n    ✓ Assessment saved\n\n  Duration: 45s\n  Status: COMPLETE\n\nOutput:\n  3 quality assessments completed\n  GRADE levels: LOW, VERY LOW, MODERATE\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nHUMAN GATE: Quality Approval\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nQuality assessments complete. Review GRADE levels:\n\n  REF-022: LOW (conference paper with limited evaluation)\n  REF-075: VERY LOW (preprint, not peer-reviewed)\n  REF-076: MODERATE (high-quality preprint with strong findings)\n\nApprove quality levels? [Y\u002Fn]: Y\n\nApproved. Proceeding to archival.\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nWorkflow Progress: [██████████████] Stage 5\u002F5\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nStage 5: Archival (agent: archival-agent)\n─────────────────────────────────────────────────────────────────────\n  Status: Running...\n\n  REF-022: AutoGen\n    ✓ BagIt package created (2.5 MB)\n    ✓ Checksums verified\n    ✓ Registered in archival index\n\n  REF-075: Emerging AI Agent Architectures\n    ✓ BagIt package created (3.2 MB)\n    ✓ Checksums verified\n    ✓ Registered in archival index\n\n  REF-076: Agent Laboratory\n    ✓ BagIt package created (1.9 MB)\n    ✓ Checksums verified\n    ✓ Registered in archival index\n\n  Duration: 28s\n  Status: COMPLETE\n\nOutput:\n  3 archival packages created\n  Total archived size: 7.6 MB\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nWorkflow Complete!\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nSummary:\n  Workflow: discovery-to-corpus\n  Duration: 5m 25s\n  Papers processed: 3\n  Success rate: 100%\n\nArtifacts Created:\n  - 3 PDFs (.aiwg\u002Fresearch\u002Fsources\u002F)\n  - 3 finding documents (.aiwg\u002Fresearch\u002Ffindings\u002F)\n  - 3 literature notes (.aiwg\u002Fresearch\u002Fliterature-notes\u002F)\n  - 3 quality assessments (.aiwg\u002Fresearch\u002Fquality-assessments\u002F)\n  - 3 archival packages (.aiwg\u002Fresearch\u002Farchives\u002F)\n\nResource Usage:\n  Tokens consumed: 45,230\n  API calls: 27\n  Storage used: 7.6 MB\n\nNext Steps:\n  - Review findings: \u002Fresearch-document REF-022 REF-075 REF-076\n  - Generate citations: \u002Fresearch-cite REF-022\n  - Check corpus health: \u002Fresearch-status\n\nWorkflow log: .aiwg\u002Fresearch\u002Fworkflows\u002Fwf-20260203-143000.log\n```\n\n## Workflow State\n\nAll workflows track state for resumption:\n\n```yaml\n# .aiwg\u002Fresearch\u002Fworkflows\u002Fwf-20260203-143000-state.yaml\nworkflow_id: wf-20260203-143000\nworkflow_name: discovery-to-corpus\nstatus: complete\nstarted_at: \"2026-02-03T14:30:00Z\"\ncompleted_at: \"2026-02-03T14:35:25Z\"\n\nstages:\n  - name: discovery\n    status: complete\n    started_at: \"2026-02-03T14:30:00Z\"\n    completed_at: \"2026-02-03T14:30:15Z\"\n    output:\n      papers: 10\n      selected: [1, 2, 4]\n\n  - name: acquisition\n    status: complete\n    started_at: \"2026-02-03T14:30:20Z\"\n    completed_at: \"2026-02-03T14:31:02Z\"\n    output:\n      acquired: [REF-022, REF-075, REF-076]\n\n  ... (stages 3-5)\n\nmetrics:\n  duration_seconds: 325\n  tokens_consumed: 45230\n  api_calls: 27\n  success_rate: 1.0\n```\n\n## Custom Workflows\n\nDefine custom workflows in YAML:\n\n```yaml\n# custom-workflow.yaml\nname: focused-acquisition\ndescription: Acquire and document specific papers\nstages:\n  - name: acquisition\n    agent: research-acquisition-agent\n    inputs:\n      - doi_list\n\n  - name: documentation\n    agent: documentation-agent\n    inputs:\n      - from: acquisition.acquired\n\n  - name: quality\n    agent: quality-agent\n    inputs:\n      - from: acquisition.acquired\n\ngates:\n  - stage: quality\n    type: approval\n    message: \"Review quality assessments\"\n```\n\nExecute:\n```bash\n\u002Fresearch-workflow custom-workflow.yaml --input '{\"doi_list\": [\"10.1234\u002Fexample\"]}'\n```\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fresearch-complete\u002Fagents\u002Fworkflow-agent.md - Workflow Agent\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fresearch-complete\u002Fworkflows\u002F - Workflow definitions\n- @$AIWG_ROOT\u002Fsrc\u002Fresearch\u002Fservices\u002Fworkflow-service.ts - Workflow orchestration\n- @.aiwg\u002Fresearch\u002Fworkflows\u002F - Workflow state and logs\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Frules\u002Fhitl-gates.md - Human gate patterns\n",{"name":5,"triggers":53,"namespace":57,"platforms":58,"commandHint":60,"description":7},[54,55,56,33],"help with research papers","help me build a cited research corpus","start a research workflow or citation plan","aiwg",[59],"all",{"category":61,"argumentHint":62},"research-workflows","[workflow-name] [--input parameters] [--stage n]","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fframeworks\u002Fresearch-complete\u002Fskills\u002Fresearch-workflow",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":74,"prompt":84,"zipAvailable":85},[75,78,81],{"tool":76,"command":77},"npx","npx skills add jmagly\u002Faiwg --skill research-workflow",{"tool":79,"command":80},"bunx","bunx skills add jmagly\u002Faiwg --skill research-workflow",{"tool":82,"command":83},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill research-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fresearch-complete\u002Fskills\u002Fresearch-workflow\u002FSKILL.md",true,[],[88,96,101,127,147,152],{"skillNo":89,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":95},"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":97,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":95},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":17,"description":104,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":48},"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",[],[108,109,110,111,112,113,114,115,116,117,44,118,119,120,121,122,123,124,125,126],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":128,"name":129,"nameZh":17,"description":130,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":48},"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",[],[134,135,136,137,138,139,113,140,118,125,120,141,109,142,122,143,144,126,145,146],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":148,"name":103,"nameZh":17,"description":104,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":48},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[108,109,110,124,125,126,119,123,116,112,113,114,115,117,44,118,111,120,121,122],{"skillNo":153,"name":129,"nameZh":17,"description":130,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":48},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[134,135,146,145,138,144,143,122,137,139,113,140,118,136,120,141,109,126,125,142]]