AgileFlow

/context:export

PreviousNext

Export a concise context excerpt for pasting into web AI tools

/context:export

Export a concise context excerpt for pasting into web AI tools.

Quick Start

/context:export

Purpose

Reads docs/context.md and outputs a condensed excerpt (≤300 lines) ready to paste into ChatGPT, Perplexity, Gemini, or Claude web.

This is a read-only command - no files are written.

Output Format

The command outputs a markdown code block for easy copying:

# Project Context Brief
Last updated: 2025-12-24
 
## What We're Building
AgileFlow is a comprehensive project management system...
 
## Current Focus
- EP-0010: Documentation System (in_progress)
- US-0042: Add Loop Mode docs (in_progress)
 
## Tech Stack
- Framework: Next.js 16, TypeScript
- UI: React, Tailwind CSS, shadcn/ui
- Testing: Jest, Playwright
 
## Key Decisions
- ADR-001: Use TypeScript for type safety (Accepted)
- ADR-002: Use React component library (Accepted)
 
## Feature Map
| Epic | Status | Stories |
|------|--------|---------|
| EP-0010 | in_progress | 5 total, 3 done |
| EP-0009 | complete | 7 total, 7 done |
 
## Next Steps
- US-0043: Visual Mode documentation (ready)
- US-0044: Session commands docs (ready)
 
---
**Paste this into**: ChatGPT, Perplexity, Gemini, or Claude web
**Purpose**: Load full project context for AI assistance
**Limit**: This excerpt is ≤300 lines for easy pasting

Sections Included

The export includes only these sections (to stay under 300 lines):

SectionMax LinesPurpose
Header2Title and timestamp
What We're Building5Project overview
Current Focus5Active work
Tech Stack8Technologies
Key Decisions10ADR titles only
Feature Map15One line per epic
Next Steps15Ready stories
Footer3Paste instructions

Sections Excluded

To stay within the 300-line limit, these are skipped:

  • Recent Progress - Too verbose
  • Notes section - Too long
  • Detailed story descriptions - Not needed for context
  • Full ADR content - Only titles included

Content Condensing

When extracting, content is condensed:

ElementFull SizeCondensed
ADRsFull descriptionTitle + status only
StoriesTitle + descriptionTitle + status
TechFull list + versionsFramework + key deps
EpicsTitle + stories listTitle + count + status
DecisionsFull contextOne-liner

Requirements

docs/context.md must exist before exporting.

If missing, you'll see:

Error: docs/context.md not found.

To create it, run: /context:full

Then you can export with: /context:export

Usage Workflow

# 1. Generate context (if needed)
/context:full
 
# 2. Export concise version
/context:export
 
# 3. Copy the output
# 4. Paste into ChatGPT, Perplexity, Gemini, or Claude web
# 5. Ask questions with full project context

Why 300 Lines?

Web AI tools have context window limits. A 300-line excerpt:

  • Fits comfortably in most AI tool context windows
  • Provides enough detail for informed assistance
  • Leaves room for your actual questions
  • Is quick to paste and process

When to Use

  • Before web AI sessions - Load project context
  • When switching AI tools - Transfer context between tools
  • After context updates - Get fresh concise version
  • For team sharing - Quick project overview

No Confirmation Needed

This is a read-only command:

  • ✓ Read docs/context.md
  • ✓ Extract and format
  • ✓ Output to code block
  • ✗ NO file writes
  • ✗ NO confirmation needed
  • ✗ NO state changes