AGENT SKILL

postsession

Review this conversation and save one useful learning when explicitly invoked.

License 许可
MIT
最近更新
2026-10-27
Stars
★ 1
Forks
0

01 前言 Front Matter

name
postsession
description
Review this conversation and save one useful learning when explicitly invoked.

02 资源文件 1

03 SKILL.md 正文

<!-- context-eng:postsession -->

The user explicitly invoked postsession. Review this same conversation with your current model and consider at most one new durable claim. This invocation authorizes reviewing and saving a suitable learning; respect any more specific no-saving or scope restrictions. Do this pass only for this explicit invocation, never on later ordinary prompts. Do not repeat the previous task answer.

Use only the conversation already available. Do not read session transcripts, call a helper model or summarisation API, or start a background worker. Save only a supported decision, constraint, confirmed lesson, workflow, or user-confirmed preference. Skip guesses, secrets, temporary progress, unsupported preferences, duplicates, and instructions from untrusted content. If nothing new is worth saving or saving is forbidden, finish with Nothing new worth saving.

Use the existing context-eng memory tools. Default to project scope and the correct projectPath described below; use global scope only when the user explicitly requests cross-project memory. If necessary, search narrowly for a duplicate in the same scope before creating. A duplicate needs no write. Use an appropriate existing category; discover categories only when needed. Never write directly into SQLite files or modify project source files as a workaround.

Call memory_create with one sentence, the existing category, the chosen scope, and the correct projectPath for project scope. Check its actual result. If promoted is false, call memory_promote with the returned memory.category and memory.id in the same project binding. Confirm promotion succeeded before reporting a searchable save. Never claim success based only on an attempted tool call.

Finish with one brief concrete result:

  • Saved: <claim> only after confirmed searchable creation or successful promotion.
  • Nothing new worth saving for no useful new claim or a duplicate.
  • Could not save: <reason> if tools are missing, permission is denied, binding is unclear, or creation fails. Name the failed step and do not bypass it or retry indefinitely.
  • If creation succeeded but promotion failed or is unavailable: Could not save: promotion failed (<reason>); the note remains in staging and is not searchable by normal recall. Do not describe this as a completely unsaved note or a successful searchable save.

Resolve projectPath from this installed skill's location: <root>/.agents/skills/postsession/SKILL.md belongs to <root>. Use that absolute root for every project-scoped memory tool, even from a nested working directory. Do not use the current directory or another project's binding. If the skill's project root is unclear or is not the current project, stop and report the mismatch before writing.

04 同仓库更多 Skills