← ClaudeAtlas

dpd-summary-mdlisted

Extract decided / closed items from the DPD graph and render as markdown summary. Use at session wrap-up or to produce spec material from a complete subgraph.
o3co/agent-dpd · ★ 0 · Data & Documents · score 64
Install: claude install-skill o3co/agent-dpd
# /dpd-summary-md Announce: "Using dpd-summary-md skill." --- ## When to invoke - User wants a markdown export of decisions made during a DPD session - Session wrap-up: converting graph state into a shareable doc - Producing spec material from a completed subgraph - User asks "決定事項をまとめて" / "summary of what we decided" --- ## Argument parsing ``` /dpd-summary-md [--root=<root_id>] ``` | Arg | Default | Description | |---|---|---| | `--root` | (all active roots) | Scope summary to a single root subtree | --- ## Tool calls ### 1. Enumerate roots If no `--root` specified: ``` list_active_roots(session_id=<session_id>) ``` Returns all roots with `lifecycle=active`. Process each root in step 2. ### 2. Walk each root subtree For each root (or the specified root): ``` walk_subtree(session_id=<session_id>, root_id=<root_id>) ``` Returns all descendants pre-order. ### 3. Filter From the walk result, select nodes where **both** conditions hold: - `state = 'closed'` - `type` in `{'decision', 'resolution', 'answer'}` These are the "decided" items. Also collect their immediate rationale children (`type='rationale'`, any state) for context. --- ## Output format Render as markdown. Output to stdout — user can copy-paste. ```markdown # DPD Summary — <session.label or session_id> Generated: <date> ## <root.topic> ### <decision/resolution/answer node text> - **Type**: <decision | resolution | answer> - **Closed as**: <closure_reason> - **Rationale**: <rationale node