Skip to content
Back to skills

Wrap

BSecurity

Session wrap — summarise session, publish to cc-share and NATS, then dream

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 3, 2026
ai-agentsgobashapi

Works with

  • api

Security analysis

B88/100
  • criticalSends environment variables or credentials to an external URL

Pro shows the line behind each finding and how to fix it

Scanned October 3, 2026

npx -y skills add fjwood69/mori --skill wrap --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Wrap?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Wrap
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/fjwood69-wrap/badge)](https://www.skillsdirectory.com/skills/fjwood69-wrap)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wrap
description: Session wrap — summarise session, publish to cc-share and NATS, then dream
---

## 1. Identify

Read `~/.config/mori/identity.yaml` for the `name` field. Note current hostname.

## 2. Summarise

Write a concise session summary covering:
- What was done (key changes, decisions, fixes)
- What's pending / next steps
- Any gotchas or notes for the next session

Keep it brief — bullet points, not prose.

## 3. Publish to cc-share

Read the URL and key from secrets. Skip this step silently if either is absent.

```bash
CC_SHARE_URL=$(~/bin/get-secret.sh CC_SHARE_URL 2>/dev/null)
KEY=$(~/bin/get-secret.sh CC_SHARE_API_KEY 2>/dev/null)
DATE=$(date +%Y-%m-%d)
if [ -n "$CC_SHARE_URL" ] && [ -n "$KEY" ]; then
  curl -s -X POST "${CC_SHARE_URL}/cc-share/session-${DATE}" \
    -H "X-Api-Key: $KEY" \
    -H "Content-Type: application/json" \
    -d "{\"key\":\"session-${DATE}\",\"value\":\"<summary from step 2>\",\"ttl_seconds\":604800}"
fi
```

Set TTL to 604800 (7 days) so it persists across the week.

## 4. Publish to NATS

Publish a one-line wrap message: `mori_nats_pub` with message `"<name> on <hostname>: <one-line summary of session>"`.

## 4b. Broadcast to mori-msg

`mori-msg_send(to="broadcast", type="broadcast", body="<same one-line summary as step 4>")`

This makes the summary replayable via `mori-msg_recv` alongside the existing `cc.>` NATS stream.
Skip silently if the tool is unavailable.

## 5. Dream

Call `mori_dream_run` to flush any undreamed events.

## 6. Sign off

Report what was written and where. No autonomous actions after.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.