research-workflow
Execute multi-stage research workflows
What this skill does
# Research Workflow Command
Execute complete multi-stage research workflows from discovery through archival.
## Instructions
When invoked, orchestrate multi-agent research workflows:
1. **Load Workflow Definition**
- Identify workflow by name or load custom workflow YAML
- Parse stages, agents, dependencies
- Validate workflow structure
2. **Execute Stages Sequentially**
- Each stage invokes specific agents
- Pass outputs from one stage to next
- Handle stage failures and retries
- Track progress and status
3. **Monitor Execution**
- Display progress indicators
- Log all agent invocations
- Capture intermediate outputs
- Track resource usage (tokens, time)
4. **Handle Gates**
- Pause for human approval at designated gates
- Present artifacts for review
- Collect feedback and decisions
- Resume or abort based on input
5. **Generate Report**
- Summarize workflow execution
- Report outcomes for each stage
- Calculate quality metrics
- Archive workflow state
## Built-in Workflows
| Workflow | Stages | Description |
|----------|--------|-------------|
| `discovery-to-corpus` | 5 | Full pipeline from search to documented findings |
| `paper-acquisition` | 3 | Download, extract metadata, create finding document |
| `quality-assessment` | 4 | GRADE assessment with citation validation |
| `corpus-maintenance` | 6 | Periodic corpus health checks and updates |
| `synthesis-report` | 4 | Generate synthesis report from topic cluster |
| `citation-audit` | 3 | Validate all citations across corpus |
## Arguments
- `[workflow-name]` - Workflow to execute (required)
- `--input [yaml-file]` - Input parameters for workflow
- `--stage [n]` - Start from specific stage (default: 1)
- `--pause-at [stage]` - Pause after specific stage
- `--interactive` - Prompt for confirmation at each stage
- `--dry-run` - Preview workflow without execution
- `--resume [workflow-id]` - Resume previously interrupted workflow
## Workflow Definitions
### discovery-to-corpus
Complete pipeline from literature search to documented findings:
**Stages:**
1. **Discovery** (agent: discovery-agent)
- Search academic databases for query
- Rank and filter results
- Present top candidates
2. **Acquisition** (agent: research-acquisition-agent)
- Download selected papers
- Extract metadata
- Generate frontmatter
- Create finding documents
3. **Documentation** (agent: documentation-agent)
- Parse PDFs
- Extract key findings
- Assess AIWG relevance
- Generate literature notes
4. **Quality Assessment** (agent: quality-agent)
- Apply GRADE framework
- Calculate quality level
- Generate assessment reports
- Update frontmatter
5. **Archival** (agent: archival-agent)
- Create BagIt packages
- Update fixity manifest
- Register in archival index
**Human Gates:**
- After Discovery: Select papers to acquire
- After Quality Assessment: Approve quality levels
### paper-acquisition
Streamlined acquisition workflow:
**Stages:**
1. **Download** (agent: research-acquisition-agent)
- Fetch PDF from source
- Verify file integrity
2. **Metadata Extraction** (agent: research-acquisition-agent)
- Parse PDF metadata
- Enrich via CrossRef/Semantic Scholar
- Assign REF-XXX identifier
3. **Document Creation** (agent: documentation-agent)
- Generate finding document from template
- Populate frontmatter
- Add placeholder sections
### quality-assessment
Comprehensive quality assessment workflow:
**Stages:**
1. **GRADE Assessment** (agent: quality-agent)
- Determine baseline quality
- Apply downgrade/upgrade factors
- Calculate final GRADE level
2. **Hedging Analysis** (agent: quality-agent)
- Generate appropriate hedging language
- Document forbidden phrases
- Create citation templates
3. **Citation Validation** (agent: citation-agent)
- Scan corpus for citations of this source
- Check hedging compliance
- Generate remediation suggestions
4. **Report Generation** (agent: quality-agent)
- Create assessment report
- Update frontmatter
- Save assessment YAML
## Examples
```bash
# Execute full discovery-to-corpus workflow
/research-workflow discovery-to-corpus --input discovery-params.yaml
# Acquire specific paper
/research-workflow paper-acquisition --input '{"doi": "10.48550/arXiv.2308.08155"}'
# Run quality assessment
/research-workflow quality-assessment --input '{"ref_id": "REF-022"}'
# Interactive mode with pauses
/research-workflow discovery-to-corpus --interactive
# Dry run to preview
/research-workflow corpus-maintenance --dry-run
# Resume interrupted workflow
/research-workflow resume wf-20260203-123456
```
## Expected Output
```
Executing Workflow: discovery-to-corpus
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Input Parameters:
Query: "agentic workflows for software development"
Max results: 10
Year from: 2020
Workflow Progress: [████░░░░░░] Stage 1/5
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Stage 1: Discovery (agent: discovery-agent)
─────────────────────────────────────────────────────────────────────
Status: Running...
✓ Queried arXiv (42 results)
✓ Queried ACM DL (18 results)
✓ Queried IEEE Xplore (25 results)
✓ Queried Semantic Scholar (67 results)
✓ Deduplicated and ranked
✓ Top 10 results selected
Duration: 15s
Status: COMPLETE
Output:
10 papers identified
Saved to: .aiwg/research/search-cache/results-20260203-143000.yaml
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HUMAN GATE: Paper Selection
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Top 10 Results:
1. [✓] AutoGen: Enabling Next-Gen LLM Applications (Wu et al., 2023)
Relevance: 0.95, Citations: 234, DOI: 10.48550/arXiv.2308.08155
2. [✓] The Landscape of Emerging AI Agent Architectures (Wang et al., 2024)
Relevance: 0.89, Citations: 89, DOI: 10.48550/arXiv.2404.11584
3. [ ] MetaGPT: Meta Programming for Multi-Agent Systems (Hong et al., 2023)
Relevance: 0.87, Citations: 156, DOI: 10.48550/arXiv.2308.00352
Note: Already in corpus as REF-013
4. [✓] Agent Laboratory: Using LLM Agents as Research Assistants (Schmidgall et al., 2024)
Relevance: 0.85, Citations: 45, arXiv:2404.11587
... (6 more)
Select papers to acquire [1,2,4 or 'all']: 1,2,4
Selected: 3 papers
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Workflow Progress: [████████░░] Stage 2/5
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Stage 2: Acquisition (agent: research-acquisition-agent)
─────────────────────────────────────────────────────────────────────
Status: Running...
Paper 1/3: AutoGen (10.48550/arXiv.2308.08155)
✓ Downloaded PDF (2.4 MB)
✓ Metadata extracted
✓ Assigned REF-022
✓ Finding document created
Paper 2/3: Emerging AI Agent Architectures (10.48550/arXiv.2404.11584)
✓ Downloaded PDF (3.1 MB)
✓ Metadata extracted
✓ Assigned REF-075
✓ Finding document created
Paper 3/3: Agent Laboratory (arXiv:2404.11587)
✓ Downloaded PDF (1.8 MB)
✓ Metadata extracted
✓ Assigned REF-076
✓ Finding document created
Duration: 42s
Status: COMPLETE
Output:
3 papers acquired
REF-022, REF-075, REF-076
Total size: 7.3 MB
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Workflow Progress: [████████████░░] Stage 3/5
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Stage 3: Documentation (agent: documentation-agent)
─────────────────────────────────────────────────────────────────────
Status: Running...
REF-022: AutoGen
✓ PDF parsed (27 pages)
✓ 4 key findings extracted
✓ AIWG relevance assessed (HIGH)
✓ Literature notes created
✓ Finding document populated (1,847 words)
REF-075: Emerging AI Agent Architectures
✓ PDF parsed (18 pages)
✓ 5 key findings extracted
✓ 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.