Read the brief of the category (topic) a chat is filed under, change it when the person asks, and pin documents to it (a tab in each of its chats). Use when a document should be shared by all the chats of a category, when the user asks what the category's brief says, or when they ask to edit or rewrite it. Not for keeping a subject's memory — that is a dossier's memory.md.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Topic?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/julienr2-topic)
---
name: topic
description: Read the brief of the category (topic) a chat is filed under, change it when the person asks, and pin documents to it (a tab in each of its chats). Use when a document should be shared by all the chats of a category, when the user asks what the category's brief says, or when they ask to edit or rewrite it. Not for keeping a subject's memory — that is a dossier's memory.md.
allowed-tools: Bash, Read
---
# Topic Skill
A **category** (called a topic in the API) groups chats in the sidebar. It may
carry a **brief**, written by the person: what the category is about and how to
work in it. Every chat filed under it starts with the brief in its prompt,
inside `<article data-jarvis="topic-context">`, and every routine posting into
one of its chats runs with it.
The brief is **the person's text**. Change it only when they ask. Jarvis does
not keep it current on its own any more: a subject that needs a memory kept for
it is a **dossier**, whose `memory.md` you edit as you work (see *Dossiers* in
CLAUDE.md).
All requests use:
```
Host: ${BACKEND_URL}
Header: X-Internal-Secret: ${INTERNAL_SECRET}
```
---
## Which topic am I in?
```bash
curl -s -H "X-Internal-Secret: $INTERNAL_SECRET" \
"$BACKEND_URL/internal/conversations/$JARVIS_CONVERSATION_ID"
```
Returns the conversation with `topic: { id, name, context, context_updated_at }`,
or `topic: null` when the chat is not filed under one. Use `topic.id` below.
## Read a topic's brief and its chats
```bash
curl -s -H "X-Internal-Secret: $INTERNAL_SECRET" "$BACKEND_URL/internal/topics/<topic-id>"
```
Returns the topic with `context` (the brief, markdown) and `conversations`
(id, title, last activity). List every topic with `GET /internal/topics`.
## Update the brief
The whole text, not a diff — re-read, rewrite, save:
```bash
cat > /tmp/brief.md <<'MD'
**What this is** — …
**Decided**
- …
**Open**
- …
**Facts**
- …
**How to work here**
- …
MD
curl -s -X PATCH "$BACKEND_URL/internal/topics/<topic-id>/context" \
-H "X-Internal-Secret: $INTERNAL_SECRET" -H "Content-Type: application/json" \
-d "$(python3 -c 'import json,sys;print(json.dumps({"context": open(sys.argv[1]).read()}))' /tmp/brief.md)"
```
The other chats of the topic get the new text on their next turn.
## Documents pinned to the topic
A document (or a link) can be **pinned to the topic**: it shows as a tab beside
every chat of the topic, is listed on the topic page, and is named in the
topic context each chat gets — so every chat knows the file exists and where.
Use it for the document the topic works *from*: the dossier's state, the
project spec, the list of open questions. Keep the file somewhere durable
(`$WORKSPACE_DIR/memory/<topic>/…`, the repo's `docs/`), not a chat's uploads.
```bash
curl -s -X POST "$BACKEND_URL/internal/topics/<topic-id>/docs" \
-H "X-Internal-Secret: $INTERNAL_SECRET" -H "Content-Type: application/json" \
-d '{"path": "/jarvis/agent/workspace/memory/house-sale/state.md", "title": "State of the dossier"}'
# {"url": "https://…"} for a link. The list: GET /internal/topics/<topic-id> → docs
# Unpin: DELETE /internal/topics/<topic-id>/docs/<doc-id> (the file stays)
```
To change one, edit the file: every chat's tab re-renders. The brief stays
short and points at the document rather than copying it.
---
## When to update
- The person asks to edit, rewrite or tidy the brief. If they ask to rewrite it
from the category's chats, read the recent ones
(`/internal/conversations/<id>/messages?limit=40` on each), then rewrite it whole.
- Something in it is now plainly wrong: say so, and propose the fix rather than
making it.
## How to write it
- Markdown, **under 2000 characters**. Sections only when they have content:
*What this is* (2–3 lines) · *Decided* · *Open* · *Facts* · *How to work here*
(skills, connectors, files, conventions).
- Terse. Dates and amounts over adjectives. No chatter, no "as of today".
- Keep what a new chat would otherwise have to be told; drop the rest.
- After saving, say in one line what changed in the brief.