session-pattern-archiver

session-pattern-archiver is a skill for Claude Code, Codex from humanerd-drew/opencode-drewgent. It costs 0 tokens per session (1,879 once invoked), scanned A, original, MIT.

A session note tool that records Discord conversations in Obsidian, a Markdown-based note-taking app, when threads end or become inactive. It captures intentions, reasoning, decisions, blind spots, and follow-up tasks.

In plain words
What is it for?
Archiving closed, deleted, inactive, or manually selected Discord threads as dated Obsidian session notes.
Why use it?
It preserves useful decisions and working patterns after a conversation is over, so they can be reviewed later instead of being lost in Discord.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Archiving closed, deleted, inactive, or manually selected Discord threads as dated Obsidian session notes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/humanerd-drew/opencode-drewgent/session-pattern-archiver
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add humanerd-drew/opencode-drewgent --skill session-pattern-archiver
Clone the repo
git clone --depth 1 https://github.com/humanerd-drew/opencode-drewgent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-pattern-archiver

README.md
[![agentmods](https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/session-pattern-archiver/github.svg)](https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/session-pattern-archiver)
Your own site
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/session-pattern-archiver"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/session-pattern-archiver/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for session-pattern-archiver

Your own site · 80×15
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/session-pattern-archiver"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/session-pattern-archiver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,879 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01879
Opus 5.5 $0.00000 $0.00752
Sonnet 5.5 $0.00000 $0.00376
Haiku 4.5 $0.00000 $0.00188

Measured 1mo ago against content hash 7452a4b46305, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-pattern-archiver scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (references/archiver.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

@action/skills/session-pattern-archiver/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Session Pattern Archiver

Discord thread/대화가 종료되면 → Obsidian 판단 패턴 세션 노트로 자동 기록.

트리거

|| 유형 | 조건 | 우선순위 | ||------|------|----------| || Auto (thread_close) | Discord thread archived/locked → gateway event hook | highest | || Auto (thread_delete) | Discord thread deleted → gateway event hook | highest | || Auto (inactivity) | thread 2시간 미활동 → cron (c7041bc0a7b9) | 높음 | || Manual | /sync-obsidian 명령 | 항상 가능 |

출력 노트 형식

생성 위치: MEMORY/sessions/YYYY-MM/YYYY-MM-DD_project-title.md

# Session: [Thread Title]
**Date**: YYYY-MM-DD
**Trigger**: thread_close | thread_delete | inactivity | manual
**Participants**: @user1, @user2

## 🎯 의도 (Humanerd's Intent)
[이 작업을 왜 시작했는가 — Humanerd의 목적]

## 🧠 사고방식 (Reasoning Pattern)
[문제를 어떻게 풀어가려 했는가]
[왜 이 방법을 선택했는가]

## ⚖️ 가치 판단 (Value Judgments)
[이 상황에서 무엇을 우선시했는가]
[이것은重要하고 저것은 덜 중요하다 — 왜?]

## 👁️ 맹점 (Blind Spots)
[Humanerd가 자주 놓치는 것]
[에이전트가 대신 확인해줘야 할 것]
[과거 이 종류의 실수 기록]

## ✅ 결정 & 액션 (Decisions)
- **결정/액션 A** → 이유: ..., 다음: ...

## 🔗 관련 노트
`[[projects/X]]`, `[[skills/Y]]`, `[[sessions/prior-session]]`

## 📋 Follow-ups
- [ ] [todo by when - who]

## Meta
**Archived**: YYYY-MM-DD HH:MM
**Pattern completeness**: full | partial | inferred

Clarify 질문 (비동기, Discord DM)

inactivity / manual 트리거 → Clarify 전송 (이전 버전) 2026-04-13 이후: 모든 트리거에서 Clarify DM 비활성화 — "세션패턴 정리는 나에게 묻지 말고 알아서 하기" 지시 반영. 모든 archive는 즉시 Obsidian 노트 생성만 수행.

📝 세션 패턴 정리해드릴게요 — 30초만 답변주세요:

🎯 **의도**: 이 작업의目的是?
⚖️ **가치**: 무엇을優先했나요?
👁️ **맹점**: 놓치기 쉬운 것은?

24시간 무응답 → 부분 정보로 노트 생성 (completeness=inferred)

thread_close / thread_delete 이벤트에서는 Clarify 생략 — 즉시 아카이브 (사용자 지시: "세션패턴 정리는 나에게 묻지 말고 알아서 하기")

생성 후 projects/ 노트 업데이트:

  • thread topic과 관련된 [[projects/X]] 검색
  • 해당 프로젝트 노트 하단에 ## Sessions\n- [[sessions/YYYY-MM-DD_title]] 추가
  • 없으면 [[projects/uncategorized]]에 추가

사용법

/sync-obsidian                    # 현재 thread 수동 동기화
/sync-obsidian [thread_id]        # 특정 thread 동기화
/sync-obsidian --project=X        # 프로젝트별 세션 모두 동기화

Read the full file on GitHub · 188 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 188 lines · 0 tokens per session scan A 7452a4b46305

Subscribe to this mod's changes

session-pattern-archiver is a skill published in the GitHub repository humanerd-drew/opencode-drewgent (3 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,879 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

forget

Remove a personal fact, preference, relationship detail, topic, or prior event from Muse's active memory and stop existing copies or automations from bringing it back. Use for explicit requests such as 'forget that', 'don't remember this about me', or 'remove that from your memory'. Do not use when 'forget it' merely…

asgeirtj/system_prompts_leaks · 74 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens