Ctx kb note

From ActiveMemory/ctx · View interactive version

Ctx kb note is an AI agent skill from the GitHub repository ActiveMemory/ctx. Lightweight capture into .context/ingest/findings.md. Single argument is the note text. Never writes to a topic page or to evidence-index.md. The pipeline's ad-hoc escape hatch for "park this for the next ingest".

How to use this skill

Skill file

Park a Finding for the Next Ingest

Append a short note to .context/ingest/findings.md so a later

/ctx-kb-ingest pass can pick it up. This is the pipeline's

escape hatch for *"I want to remember this, but I'm not running

a full ingest right now."* No closeout, no ledger update, no

topic-page edit, no EV-### minting. Just typed memory landing

in one well-known file.

Authoritative background reading:

.context/ingest/KB-RULES.md §Authority boundary;

specs/kb-editorial-pipeline.md §Interface.

When to Use

ingest", "park this finding", or invokes the explicit slash

form with note text.

should land in the kb later but does not justify running

/ctx-kb-ingest right now.

surfaces something kb-shaped and the user wants it parked

cheaply.

When NOT to Use

/ctx-kb-ingest).

for the code-dev side (use /ctx-task-add /

/ctx-decision-add / /ctx-learning-add /

/ctx-convention-add; those write to canonical files, this

one does not).

Authority Boundary (vs Other Skills)

.context/ingest/findings.md only. Never writes anywhere

else. No closeout. No ledger update.

when scoping its source set; the user controls when notes get

promoted into evidence.

/ctx-decision-add, /ctx-learning-add,

/ctx-convention-add) write to the five canonical

.context/ files. Strict authority boundary: this skill

never touches them.

Usage Examples

/ctx-kb-note "cursor.com/changelog mentions hook lifecycle bump in v1.2"
/ctx-kb-note "check whether your-domain RTO claim still cites the 2024 audit"
/ctx-kb-note "Volkan said in chat: the 50-source cap was lifted from the upstream design"

Input Contract

A single argument: the note text. Free-form prose. No flags.

Refuse-on-Empty

If the invocation supplied no note text (empty slash arg, empty

inline body, whitespace-only), return exactly:

no note text provided; pass the note inline.

Stop. Do not prompt interactively. The CLI enforces this

independently via cmd/note.

Pre-Write Gates

Two distinct refusals, each leaves zero residue:

> kb not initialized; run ctx init first

Stop.

Kb scope declaration is not required for this skill. Notes

land in .context/ingest/findings.md, which is pre-kb-scope

territory; the user may be parking notes precisely because they

have not yet decided the kb's scope.

Process

  1. Verify pre-write gates. Refuse cleanly if any gate fails.

Zero residue on refusal.

  1. Append the note to .context/ingest/findings.md as a

single bulleted line. Prefix with the current UTC timestamp

(RFC-3339, date-time precision) and a short SHA + branch

from gitmeta.ResolveHead so the note carries minimal

provenance:

```

| <note text>

```

If findings.md does not yet exist, create it with a brief

header explaining its purpose (one paragraph; the embedded

template ships at internal/assets/kb/templates/ingest/

handles this for fresh inits, so this fallback applies only

when the file was deleted by hand).

  1. No closeout. Notes are intentionally lightweight; the

audit trail is the file itself. The next /ctx-kb-ingest

pass reads findings.md opportunistically.

Edge Cases

| Case | Expected behavior |

|------|-------------------|

| Empty note text | Refuse with the standard no-note text. No residue. |

| .context/ missing | Refuse; suggest ctx init. No residue. |

| .context/ingest/ missing | Refuse with the not-initialized message. No residue. |

| findings.md missing but .context/ingest/ exists | Create the file with a brief header; append the note. |

| Multi-line note text | Append as a single bullet with embedded line breaks; preserve the user's formatting. |

| Note text contains a URL | Preserve verbatim; do not auto-fetch (this skill does not web-jump). |

| Note text is structurally a claim that should be evidence | Append as a note anyway; mention in the response that /ctx-kb-ingest is the next step if the user wants it minted as EV-###. |

| User invokes twice in a row with similar text | Append both; deduplication is the user's call, not this skill's. |

Output Contract

For refusals, return only the specified refusal text and stop.

For successful appends, return:

new entry in findings.md.

note into evidence when the user is ready.

Example:

appended to .context/ingest/findings.md line 42.
run /ctx-kb-ingest with the source materials when ready to mint EV.

Quality Checklist

Before reporting completion, verify:

returned with zero residue).

nowhere else.

ledger row was advanced, no closeout was written.

provenance prefix.

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.