87 lines
2.0 KiB
YAML
87 lines
2.0 KiB
YAML
# discussion-summarizer - Generate a summary of the discussion
|
|
# Usage: cat discussion.md | discussion-summarizer > discussion.sum.md
|
|
|
|
name: discussion-summarizer
|
|
description: Generate a summary of the discussion
|
|
category: Discussion
|
|
|
|
arguments:
|
|
- flag: --format
|
|
variable: format
|
|
default: "markdown"
|
|
description: Output format (markdown, json)
|
|
|
|
steps:
|
|
# First, parse the discussion
|
|
- type: code
|
|
code: |
|
|
import subprocess
|
|
import json
|
|
|
|
# Call discussion-parser
|
|
result = subprocess.run(
|
|
['discussion-parser'],
|
|
input=input,
|
|
capture_output=True,
|
|
text=True
|
|
)
|
|
|
|
if result.returncode != 0:
|
|
# Fallback: basic parsing
|
|
parsed = json.dumps({
|
|
"metadata": {},
|
|
"comments": [],
|
|
"vote_summary": {"READY": 0, "CHANGES": 0, "REJECT": 0, "total": 0},
|
|
"questions": [],
|
|
"concerns": [],
|
|
"decisions": []
|
|
})
|
|
else:
|
|
parsed = result.stdout
|
|
output_var: parsed
|
|
|
|
# Then, generate summary with AI
|
|
- type: prompt
|
|
prompt: |
|
|
Summarize this discussion concisely for quick reference.
|
|
|
|
## Parsed State
|
|
{parsed}
|
|
|
|
## Full Discussion
|
|
{input}
|
|
|
|
Generate a summary with these sections:
|
|
|
|
# Discussion Summary
|
|
|
|
## Status
|
|
- Current phase and status
|
|
- Consensus state (reached/not reached, vote counts)
|
|
|
|
## Key Points
|
|
- Main arguments and positions (bullet points)
|
|
- Areas of agreement
|
|
- Areas of disagreement
|
|
|
|
## Open Questions
|
|
- Unresolved questions that need answers
|
|
|
|
## Concerns
|
|
- Security, architecture, or other concerns raised
|
|
|
|
## Decisions Made
|
|
- Any decisions recorded in the discussion
|
|
|
|
## Blockers
|
|
- What's preventing progress
|
|
|
|
## Next Steps
|
|
- What needs to happen next
|
|
|
|
Keep it brief and actionable. Use bullet points.
|
|
provider: claude-haiku
|
|
output_var: summary
|
|
|
|
output: "{summary}"
|