Journal

From indigoai-us/hq-core · View interactive version

Journal is an AI agent skill from the GitHub repository indigoai-us/hq-core. Write structured session journal entries for durable working memory.

How to use this skill

Skill file

/journal

Write a structured working-memory entry for the current Claude session. Entries land at workspace/threads/journal/<YYYY-MM-DD>/<NNN>-<slug>.md and the day's INDEX.md is auto-updated.

Spec: core/knowledge/public/hq-core/journal-spec.md.

Usage

| Form | Effect |

|---|---|

| /journal "<title>" | Write a new entry inferring body from recent context |

| /journal --list | Print today's INDEX |

| /journal --read <NNN> | Print a specific entry |

Behavior

Writing an entry

  1. Synthesize the body from the current conversation context. The entry captures what's useful to recover if the prefix gets compacted away — not everything that happened.
  2. Use this template (50–200 lines, ≤5KB hard):
## Goal
<one sentence: what this slice of work is about>

## Findings
<bullets — non-obvious things learned, file paths discovered, behaviors observed>

## Decisions
<numbered — what was chosen, including rejected alternatives if instructive>

## Next
<what the next entry will pick up: story id, file, or open question>
  1. Pass the synthesized body via --body-file to core/scripts/session-journal.sh write:
mktemp_body=$(mktemp -t journal-body.XXXXXX)
cat > "$mktemp_body" <<'EOF'
## Goal
...

## Findings
...

## Decisions
...

## Next
...
EOF

hq core session-journal write "<title>" \
  --files "<comma-separated relative paths touched, optional>" \
  --body-file "$mktemp_body"

rm -f "$mktemp_body"
  1. Confirm the path returned by the helper. Print the entry's relative path back to the user — that's the receipt.

`--list`

hq core session-journal list

Prints today's INDEX.md. If the user wants a different day, pass --date YYYY-MM-DD through.

`--read <NNN>`

hq core session-journal read <NNN>

Prints a specific entry. Useful after /handoff continuation when the SessionStart hook surfaced the INDEX and you need a specific entry's detail.

When to write an entry

You don't need to wait for the auto-trigger hook. Write proactively after:

Constraints

Related

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.