Skip to content
Development
Agent

citation-agent-spec

| Attribute | Value | |-----------|-------| | **Name** | Citation Agent | | **ID** | research-citation-agent | | **Purpose** | Format citations in any of 9,000+ styles, build citation networks, back claims with references, and manage bibliographies | | **Lifecycle Stage** |

From plugin
aiwg
229199 skills199 agents26 commands

Claude Code

$ npx -y skills add jmagly/aiwg --agent claude-code

Agent definition

citation-agent-spec.md

Agent Specification: Citation Agent

1. Agent Overview

| Attribute | Value | |-----------|-------| | **Name** | Citation Agent | | **ID** | research-citation-agent | | **Purpose** | Format citations in any of 9,000+ styles, build citation networks, back claims with references, and manage bibliographies | | **Lifecycle Stage** | Integration (Stage 4 of Research Framework) | | **Model** | sonnet | | **Version** | 1.0.0 | | **Status** | Draft |

Description

The Citation Agent bridges research sources and documentation artifacts by formatting citations, inserting references into SDLC documents, tracking claim coverage, and building citation networks. It supports 9,000+ citation styles via CSL (Citation Style Language), generates BibTeX/RIS exports for external tools, and maintains a claims index showing which assertions are backed by research and which need additional sources.

2. Capabilities

Primary Capabilities

| Capability | Description | NFR Reference | |------------|-------------|---------------| | Citation Formatting | Format citations in Chicago, APA, IEEE, and 9,000+ styles | NFR-RF-C-07 | | Claims Backing | Match claims to sources and insert inline citations | NFR-RF-C-05 | | Bibliography Generation | Create and maintain bibliography with deduplication | BR-RF-C-004 | | Citation Network | Build graph showing paper relationships | UC-RF-004 Alt-3 | | Claims Index | Track backed vs. unbacked claims across documents | NFR-RF-C-08 | | BibTeX/RIS Export | Export bibliography for LaTeX, Zotero, EndNote | UC-RF-004 Alt-2 |

Secondary Capabilities

| Capability | Description | |------------|-------------| | Auto-Back Claims | Semantic matching to automatically suggest citations | | DOI Validation | Verify DOI links resolve correctly | | Style Switching | Convert existing citations between styles | | Network Visualization | Generate citation graphs in DOT/JSON format |

3. Tools

Required Tools

| Tool | Purpose | Permission | |------|---------|------------| | Bash | File operations, DOI validation | Execute | | Read | Access sources, SDLC documents | Read | | Write | Update documents, bibliography | Write | | Glob | Find documents containing claims | Read | | Grep | Search for claims in documents | Read |

External Resources

| Resource | Purpose | Source | |----------|---------|--------| | CSL Styles | Citation formatting templates | [Zotero Style Repository](https://www.zotero.org/styles) | | CSL Locale | Language-specific formatting | CSL Project | | Citation.js | JavaScript citation processor | npm package |

4. Triggers

Automatic Triggers

| Trigger | Condition | Action | |---------|-----------|--------| | Documentation Complete | Paper documented (UC-RF-003) | Add to citation pool | | Workflow Stage | UC-RF-008 initiates Stage 4 | Process integration tasks |

Manual Triggers

| Trigger | Command | Description | |---------|---------|-------------| | Single Citation | `aiwg research cite "claim" --source REF-XXX` | Insert one citation | | Auto-Back | `aiwg research cite --auto-back-claims` | Auto-match claims | | Export BibTeX | `aiwg research export-bib --format bibtex` | Export bibliography | | Visualize Network | `aiwg research visualize-network` | Generate citation graph | | Style Switch | `aiwg research cite --switch-style apa` | Convert citation style |

5. Inputs/Outputs

Inputs

| Input | Format | Source | Validation | |-------|--------|--------|------------| | Claim Text | String (10-500 chars) | User command | Non-empty | | Source Identifier | REF-XXX | User command | Valid REF-XXX exists | | Citation Style | String or CSL file | Optional flag | Valid CSL style | | Target Document | File path | Optional flag | File exists in `.aiwg/` |

Outputs

| Output | Format | Location | Retention | |--------|--------|----------|-----------| | Inline Citations | Markdown text | SDLC documents | Permanent | | Bibliography | Markdown | `.aiwg/research/bibliography.md` | Permanent | | BibTeX Export | BibTeX format | `.aiwg/research/bibliography.bib` | Permanent | | RIS Export | RIS format | `.aiwg/research/bibliography.ris` | Permanent | | Claims Index | Markdown table | `.aiwg/research/knowledge/claims-index.md` | Updated continuously | | Citation Network | JSON graph | `.aiwg/research/networks/citation-network.json` | Permanent |

Output Schema: Claims Index

# Claims Index

**Coverage:** 151/200 claims backed (75.5%)
**Last Updated:** 2026-01-25T16:30:00Z

| Claim | Status | Source | Document | Last Updated |
|-------|--------|--------|----------|--------------|
| Token rotation reduces CSRF risk by 80% | Backed | REF-025 | `.aiwg/architecture/software-architecture-doc.md:142` | 2026-01-25 |
| OAuth PKCE prevents authorization code interception | Backed | REF-025 | `.aiwg/requirements/nfr-modules/security.md:78` | 2026-01-25 |
| LLM caching reduces latency by 40% | Unbacked | - | `.aiwg/architecture/adr-008-llm-caching.md:23` | 2026-01-20 |

Output Schema: Citation Network JSON

{
  "nodes": [
    {
      "id": "REF-025",
      "title": "OAuth 2.0 Security Best Practices",
      "authors": ["Smith, J.", "Doe, J."],
      "year": 2023,
      "citation_count": 5,
      "grade_score": 90
    }
  ],
  "edges": [
    {
      "source": ".aiwg/architecture/software-architecture-doc.md",
      "target": "REF-025",
      "claim": "Token rotation reduces CSRF risk by 80%",
      "context": "supported",
      "timestamp": "2026-01-25T16:30:00Z"
    }
  ]
}

6. Dependencies

Agent Dependencies

| Agent | Relationship | Interaction | |-------|--------------|-------------| | Documentation Agent | Upstream | Receives extractions with claims | | Archival Agent | Downstream | Provides bibliography for packaging | | Workflow Agent | Orchestrator | Receives task assignments | | Provenance Agent | Observer | Logs citation operations |

Service Dependencies

| Service | Purpose | Fallback | |---------|---

Read more
@jmagly
Ships withaiwg

Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.

229200 skills199 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
229
Star history of jmagly/aiwg on GitHub, a chart by star-history.com

Other agents on aiwg.

mc-conductor

mc-conductor

Agent

Mission Control conductor persona/identity — orchestrates parallel background missions, handles completions and failures, reports…

@jmagly@jmaglyInstall Agent
ralph-loop

ralph-loop

Agent

Orchestrates iterative AI task execution loops with automatic recovery until completion criteria are met

@jmagly@jmaglyInstall Agent
ralph-verifier

ralph-verifier

Agent

Validates agent loop completion criteria by executing verification commands and parsing results

@jmagly@jmaglyInstall Agent
installer-agent

installer-agent

Agent

Agentic installer specialist. Generates, validates, and executes setup.aiwg.io/v1 SetupManifest files. Assembles script…

@jmagly@jmaglyInstall Agent
fleet-business-bot

fleet-business-bot

Agent

Fleet business chat adapter with mention-only participation and strict domain limits.

@jmagly@jmaglyInstall Agent
fleet-quiet-bot

fleet-quiet-bot

Agent

Mention-only fleet chat adapter for addressed messages and bounded tasks.

@jmagly@jmaglyInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about citation-agent-spec.

Which coding agents can use citation-agent-spec?
citation-agent-spec installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.