本文へ移動
cccskills
無料GitHub で公開

kortix-memory

How to read, write, and curate project memory in `memory/` — the project brain. Load this skill whenever you (or the harness-reflector agent) need to add, update, or reorganize what this project knows about itself. Defines the rubric for what belongs in memory, the file structure, and the change-request flow for landing memory edits on `main`.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md9.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

<skill name="kortix-memory"> <overview> Every Kortix project has a **project brain** at `memory/` — a folder of curated markdown files describing what this project is, which connections it uses, the conventions the team works by, and the decisions worth not re-litigating.

Projects created before 2026-09 keep the brain at .kortix/memory/ and agents at .kortix/opencode/agents/. Both layouts work. Use the folder your project has: if memory/ exists, use it; if only .kortix/memory/ exists, use that. The project's memory tool accepts paths under its own folder only, and its error message names that folder. This skill shows memory/; in a legacy project, read it as .kortix/memory/.

MEMORY.md is the index. Memory is not auto-injected into the prompt — the memory protocol is: at the start of a task, view memory with the memory tool to read the index and recover prior context, then view the sub-files (overview.md, connections.md, etc.) the index points at when they're relevant. Record anything durable as you go — your context window may reset at any time, so what isn't written to memory/ is lost. A project whose kortix.yaml tools: does not list memory has no memory tool: read and edit the files under memory/ with the file tools, and memory: kortix:memory under tools: brings the tool back.

Memory is continuously CRUD'd:

  • Regular sessions add or update memory whenever they discover something durable worth keeping.
  • The harness-reflector agent (agents/harness-reflector.md) runs on a cron, surveys recent activity, and curates the folder as the memory pass of the kortix-harness-refinement protocol.
  • Both consult this skill for the rubric.

Memory is team-shared: it lives in the repo, every session sees the same content. Edits land on main only via a Kortix change request — never by pushing directly. </overview>

<when-to-load> Load this skill when you:
  • Discover a project convention, connection detail, decision, or workaround that should outlast this session
  • Notice the project brain is out of date or contradicts current code
  • Are the harness-reflector agent running the memory pass of your scheduled reflection run
  • Want to know if something is worth writing down (use the rubric below)
  • Need to add, rename, split, or delete a memory file
  • Want to know how memory edits reach main

Skip this skill for one-off questions about operating code. Project memory is about durable knowledge, not session state. </when-to-load>

<file-layout> ``` memory/ ├── MEMORY.md Index. `view` this first. One line per sub-file. ├── overview.md What this project IS — purpose, shape, stakeholders. ├── connections.md Third parties, MCP servers, channels, and connectors. ├── conventions.md Coding patterns, naming, do / don't, style decisions. └── decisions.md Architectural and business decisions worth not re-debating. ```

Add new files freely when a topic deserves its own page (one topic per file, kebab-case filename). Always keep MEMORY.md in sync — one line per sub-file, format:

- [filename.md](filename.md) — one-line hook of what's inside

Don't move content out of MEMORY.md if it's a single line that already lives in the index — keep that one line. Sub-files exist when there's enough depth to warrant a click. </file-layout>

<rubric>

What to remember (KEEP)

  • The project's purpose — what we're building, for whom, and the one-sentence pitch.
  • Architecture-level decisions — why we use X over Y, which service owns what, the data flow.
  • Connection details — which third parties / MCP servers / channels are wired, what credentials they need, how they're scoped.
  • Conventions — naming, code style, branching, review norms — the stuff that's de facto across the codebase but not stated.
  • Workarounds and quirks — known env issues, ordering constraints, flaky dependencies, gotchas that bit us once.
  • Ops runbooks — how to deploy, how to roll back, how to debug the thing that breaks every quarter.
  • Glossary — domain terms specific to this project that an outsider wouldn't know.
  • People & ownership (optional) — who owns which surface, how to reach them, what they care about.

What NOT to remember (DROP)

  • One user's personal preferences — those are not project memory.
  • Facts derivable from the repo layout, file names, or git log.
  • One-off task state that won't matter next week.
  • Anything that's already in kortix.yaml, AGENTS.md, or a SKILL.md.
  • Secrets, tokens, API keys, PII — those live in the Kortix Secrets Manager, never in memory files.
  • Speculation about future plans. Memory describes what is, not what might be.

Style for entries

  • Plain prose with short sentences.
  • State facts, not narratives — "The web app talks to Supabase Postgres for auth" beats "We decided to use Supabase…".
  • Cite file paths when the fact maps to code: path/file.ts:120.
  • Date hard-to-verify facts in YYYY-MM-DD so readers can judge staleness.
  • Prefer editing existing entries over piling new ones on. A bloated file is worse than a tight one.
</rubric> <writing>

The memory tool

Use the dedicated memory tool for everything under memory/ — not the generic read / edit / write tools. It's a 1:1 port of Anthropic's memory tool, sandboxed to the memory folder, with the same six commands:

commandwhat it does
viewList the memory dir (2 levels) or read a file with line numbers (optional view_range). Run this first, every task.
createCreate a new file (path, file_text). Errors if it already exists.
str_replaceReplace a unique snippet (path, old_str, new_str).
insertInsert text at a line (path, insert_line, insert_text).
deleteRemove a file or directory (path).
renameMove/rename (old_path, new_path). Won't overwrite.

Paths are repo-relative and must start with memory (e.g. memory/overview.md). Writes go straight into the real memory/ folder, so they show up in the working tree and land on main through the normal change-request flow (below).

  1. view memory to see what's there.
  2. Identify the right file. Most additions fit overview.md, connections.md, conventions.md, or decisions.md. create a new file only when a topic deserves its own page.
  3. Edit with str_replace / insert. Keep entries short, factual, and consistent with the surrounding prose.
  4. If you added, renamed, or deleted a file, update MEMORY.md so the index matches the folder. The index is the table of contents every agent reads first — keep it accurate.
  5. If something turned out to be wrong, delete it. Don't leave stale facts to confuse future agents.

Landing memory on main

Session branches die when sessions end. Memory edits reach main only via a Kortix change request — same path as any code change:

git add -A -- $(ls -d memory .kortix/memory 2>/dev/null)
git commit -m "memory: <one-line summary of what changed>"
git push origin HEAD
kortix cr open \
  --title "memory: <one-line summary>" \
  --description "What changed and why."

The user reviews and merges. Don't merge your own CR.

</writing> <reflector>

Scheduled memory curation is the fourth pass of the harness-reflector agent (agents/harness-reflector.md) — the continual-harness loop. On that pass it:

  1. Loads this skill.
  2. Surveys recent project activity (git log since last run, recent merged CRs, session digests via kortix sessions digest).
  3. Decides what's worth keeping per the rubric above.
  4. CRUDs memory/ accordingly.
  5. Folds the memory edits into its single harness: … CR.
  6. Leaves memory untouched when nothing is worth changing.

To change what gets remembered, edit the rubric section of this skill's project copy. The reflector reads it fresh every run, so a merged CR to this file takes effect on the next reflection.

To change when the reflector runs, edit the triggers: entry named harness-reflector in kortix.yaml. The cron sweep picks up changes within a few seconds of the CR merging.

</reflector> <gotchas>
  • The index is read first; sub-files are on demand. Don't dump every fact into MEMORY.md — keep it a clean table of contents and push depth into sub-files the agent views only when relevant.
  • view your memory before you start. Nothing is auto-injected; if you skip the view, you work blind to what the project already knows. The memory tool's description and the agent rules say the same thing — this is the memory protocol.
  • Memory files are markdown, not databases. Avoid heavy formatting, tables of 50 rows, or auto-generated content. If you catch yourself writing a script to generate a memory file, that content probably belongs in code, not memory.
  • Memory edits must go through CR. Direct pushes to main bypass the user-review contract — the same rule as code. The reflector agent enforces this by always ending with kortix cr open.
  • Don't put secrets in memory. Memory is read into context and committed to the repo. Secrets, tokens, API keys, and PII belong in the Kortix Secrets Manager, surfaced as env vars at runtime — not in memory/.
</gotchas> </skill>

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Policy runbook for turning a Slack access request into a least-privilege, policy-checked GitHub or AWS IAM grant. Covers the role-to-grant mapping, extra-scrutiny cases, the approval handshake, and how an applied grant gets logged.

日本語の概要は準備中です。原文の説明を表示しています。

kortix-ai/suna2万2026年10月12日 更新

Get a complete picture of any company or person before outreach. This skill always works with web search, and gets significantly better with enrichment and CRM data.

日本語の概要は準備中です。原文の説明を表示しています。

kortix-ai/suna2万2026年10月12日 更新

Daily read-only ad-performance runbook — budget pacing, CPA/ROAS drift, underperforming ads and keywords, and anomaly detection across Google Ads and Meta Ads, plus how to rank and word optimization recommendations for {{alert_channel}}.

日本語の概要は準備中です。原文の説明を表示しています。

kortix-ai/suna2万2026年10月12日 更新

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

日本語の概要は準備中です。原文の説明を表示しています。

kortix-ai/suna2万2026年10月12日 更新

Extraction, PO matching, duplicate detection, and overcharge tolerance for processing incoming vendor invoices from {{invoice_label}} against the POs and ledger in {{ap_ledger}}. Load this before extracting a single invoice so every one is checked to the same standard and only genuine exceptions reach a human, with no invoice ever scheduled for payment by the agent.

日本語の概要は準備中です。原文の説明を表示しています。

kortix-ai/suna2万2026年10月12日 更新

Daily brand-mention monitoring loop for {{brand_terms}}. Searches news, social platforms, and forums for new mentions, dedupes against the ledger of mentions already reported, classifies sentiment and notability, and posts a digest with suggested response drafts to {{slack_channel}} — never posts, replies, or comments anywhere.

日本語の概要は準備中です。原文の説明を表示しています。

kortix-ai/suna2万2026年10月12日 更新

kortix-ai のスキルをすべて見る

このスキルの問題を報告する