Oma recap

From first-fluke/fullstack-starter · View interactive version

Oma recap is an AI agent skill from the GitHub repository first-fluke/fullstack-starter. Summarize AI conversation histories for a specified date or period. Use for daily work recaps and cross-tool activity summaries.

How to use this skill

Skill file

AI Tool Conversation History Summary

Analyze AI tool conversation histories for a given period and generate themed work summaries.

Scheduling

Goal

Collect AI tool conversation history for a date or window and synthesize it into a themed, project-oriented recap with saved Markdown output.

Intent signature

When to use

When NOT to use

Expected inputs

Expected outputs

Dependencies

Control-flow features

Structural Flow

Entry

  1. Resolve requested date or window.
  2. Collect normalized conversation history.
  3. Decide daily versus multi-day output structure.

Scenes

  1. PREPARE: Resolve time range and tool filters.
  2. ACQUIRE: Collect history through CLI or fallback; retain completion evidence where available.
  3. REASON: Group by content and classify each item as requested, in progress, or completed from its evidence.
  4. ACT: Write recap Markdown in the required format.
  5. VERIFY: Check that every completion claim has direct evidence, then check grouping, language, and output path.
  6. FINALIZE: Save and display summary.

Transitions

Failure and recovery

Exit

Logical Operations

Actions

| Action | SSL primitive | Evidence |

|--------|---------------|----------|

| Resolve date/window | INFER | Natural-language date rules |

| Collect history | CALL_TOOL | oma recap --json or jq fallback |

| Read extracted records | READ | Conversation history |

| Group and classify themes/projects | INFER | Time/content rules plus prompt, progress, completion, receipt, or artifact evidence |

| Validate output shape | VALIDATE | Daily or multi-day template |

| Write recap | WRITE | .agents/results/recap/ |

| Report summary | NOTIFY | Displayed recap |

Tools and instruments

Canonical command path

oma recap --date YYYY-MM-DD --json
oma recap --window 7d --json
oma recap --json  # rolling last 24h, not "today"

Resource scope

| Scope | Resource target |

|-------|-----------------|

| LOCAL_FS | Conversation history and recap output files |

| PROCESS | oma recap, jq, date commands |

| USER_DATA | Conversation prompts and project activity |

| MEMORY | Theme grouping and summary notes |

Preconditions

Effects and side effects

Guardrails

  1. Evidence status: A prompt alone proves a request, not a result. Mark work completed only with an explicit completion/result message, a receipt, or an artifact that supports the stated outcome. Mark it in progress with progress evidence; otherwise call it requested. Do not infer completion from a tool invocation or elapsed time.
  2. TL;DR required: Top 3 supported outcomes. Use "completed" only when the evidence-status rule permits it; otherwise summarize requested or in-progress work plainly. Project name + status/outcome. No tool names or unnecessary detail.
  3. Overview: After TL;DR, describe the flow. Start with "I" as subject and preserve evidence status.
  4. Daily: themes by time block (15+ min). Rest goes to "Miscellaneous".
  5. Multi-day (3d+): sections by project, ordered by activity. Read like a sprint report, not a daily log.
  6. 2-4 bullets per theme/project: Concise essentials only. Don't enumerate every step.
  7. Themes by content: Group by actual work, not by tool.
  8. Time range (daily only): (AM/PM/Evening HH:MM~HH:MM). AM: ~12:00, PM: 12:00~18:00, Evening: 18:00~.
  9. Save results: Write markdown to .agents/results/recap/.
  10. Response language: Follows language setting in .agents/oma-config.yaml if configured.
  11. No em dashes: Use commas, periods, or parentheses instead of — (em dash).

Process

1. Resolve Date

Determine the target date or window from the user's natural language input. Default is today.

Resolution rules:

2. Collect Data

Extract normalized conversation history via CLI.

# Today (calendar day, all tools)
oma recap --date $(date +%F) --json

# Last 24 hours (rolling window ending now)
oma recap --json

# Time window (rolling, ends now; capped at 30d)
oma recap --window 7d --json

# Specific date
oma recap --date 2026-04-10 --json

# Tool filter (supported: grok, claude, codex, gemini, qwen, cursor, antigravity)
oma recap --tool claude,codex --json

Fallback when CLI is not installed: process Claude history only via inline jq:

# Uses the system timezone; export TZ=<zone> first to override, and state the
# timezone assumption in the recap (per the Failure and recovery rules).
TARGET_DATE=$(date +%Y-%m-%d)
# macOS/BSD date: advance the calendar date, then parse both local midnights.
next_date=$(date -j -v+1d -f "%Y-%m-%d %H:%M:%S" "${TARGET_DATE} 12:00:00" +%Y-%m-%d)
start_ts=$(date -j -f "%Y-%m-%d %H:%M:%S" "${TARGET_DATE} 00:00:00" +%s)000
end_ts=$(date -j -f "%Y-%m-%d %H:%M:%S" "${next_date} 00:00:00" +%s)000
# Linux/GNU date alternatives (replace all three lines above):
# next_date=$(date -d "${TARGET_DATE} 12:00:00 tomorrow" +%Y-%m-%d)
# start_ts=$(date -d "${TARGET_DATE} 00:00:00" +%s)000
# end_ts=$(date -d "${next_date} 00:00:00" +%s)000
# Do not add a fixed 24 hours: DST calendar days can have 23 or 25 hours.

jq -r --argjson start "$start_ts" --argjson end "$end_ts" '
  select(.timestamp >= $start and .timestamp < $end and .display != null and .display != "") |
  {
    time: (.timestamp / 1000 | localtime | strftime("%H:%M")),
    project: (.project | split("/") | .[-1]),
    prompt: (.display | gsub("\n"; " ") | if length > 150 then .[0:150] + "..." else . end)
  }
' ~/.claude/history.jsonl

3. Theme Analysis and Grouping

Read all extracted data and analyze with the following criteria:

Grouping rules:

Cross-tool analysis:

Extract from each theme:

4. Output Format

Save results to .agents/results/recap/{date}.md and display simultaneously.

Use the markdown templates in resources/output-formats.md:

Response language follows language setting in .agents/oma-config.yaml.

5. Save Results

Save to .agents/results/recap/{date}.md.

For window ranges, use {start-date}~{end-date}.md format.

# Example paths
.agents/results/recap/2026-04-12.md
.agents/results/recap/2026-04-06~2026-04-12.md

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.