Cy workflow memory

From compozy/agh · View interactive version

Cy workflow memory is an AI agent skill from the GitHub repository compozy/agh. Maintains workflow-scoped task memory for Compozy runs using .compozy/tasks/<name>/memory/ files. Use when a task prompt provides workflow memory paths and requires the agent to read, update, compact, and promote durable context across PRD task executions. Do not use for PR review remediation, globa

How to use this skill

Skill file

Workflow Memory

Maintain the workflow memory files provided by the caller.

Required Inputs

Workflow

  1. Load the memory state before editing code.
  1. Keep memory current while the task runs.
  1. Close out the run cleanly.

Critical Rules

Promotion Decision Test

Before promoting an item from task memory to shared workflow memory, ask:

  1. Will another task need this information to avoid a mistake or rediscovery?
  2. Is this fact durable across multiple runs, not just the current execution?
  3. Is this information NOT already obvious from the PRD, techspec, task files, or the repository itself?

All three must be "yes" to promote. If any is "no," the item stays in task memory.

Examples that belong in shared workflow memory:

Examples that stay in task memory:

Compaction Rules

When the caller flags a memory file for compaction, apply these rules inline. Read references/memory-guidelines.md for full detail, but these rules are sufficient for most compaction passes:

  1. If both files need compaction, compact the shared workflow memory first, then compact the task memory. The shared file sets the cross-task context that the task file should not duplicate.
  2. Preserve: current state, durable decisions, reusable learnings, open risks, and handoff notes.
  3. Remove: repetition, stale notes, long command transcripts, and facts already derivable from the repository, PRD, or task files.
  4. Rewrite retained items as short factual bullets. Do not preserve narrative logs or chronological play-by-play.
  5. Keep the default section headings from the template intact. Remove empty sections only if they are truly unused.

When To Read the Reference

Read references/memory-guidelines.md when any of these apply:

Error Handling

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.