Linear memory maintenance

From lightspeedwp/.github · View interactive version

Linear memory maintenance is an AI agent skill from the GitHub repository lightspeedwp/.github. Use when the current Linear-focused task may require reading, updating, or skipping durable Memory so future runs benefit from stable preferences, decisions, routing logic, taxonomy mappings, or ongoing work.

How to use this skill

Skill file

Linear Memory Maintenance

Use this skill when a Linear-focused request depends on durable continuity across future runs, or when the current task reveals reusable information that should be saved into {{label:Memory,id:file_persistence,type:file_persistence}}.

Do not use this skill for ordinary one-off analysis, temporary reasoning, disposable notes, or output polish.

What This Skill Is For

Use this skill to help the agent:

Request Shapes

This skill is especially useful for requests like:

Workflow

  1. Decide whether the current task is a Memory-read task, a Memory-write task, both, or neither.
  2. If Memory is relevant, read only the file or files that materially affect the current task.
  3. Extract candidate durable facts from the current task or user instruction.
  4. Classify each candidate as one of: user preference, ongoing todo, workspace default, operating decision, skill-routing rule, source-of-truth rule, unresolved assumption, or canonical taxonomy mapping.
  5. Drop anything that is one-off, stale, speculative, redundant, or better left in the current response only.
  6. Route each retained item to the correct Memory file using the routing guide in references/memory-routing-guide.md.
  7. When updating a Memory file, preserve the existing file structure and keep entries compact, reviewable, and dated when the structure supports it.
  8. After writing, use the updated Memory only as a standing input for future relevant runs; do not over-apply a saved rule to unrelated requests.

Read Rules

Before reading Memory, decide what kind of continuity is actually needed:

Do not read all Memory files by default. Read the smallest set that materially sharpens the current task.

Write Rules

Save only information that should improve future Linear-focused runs.

Good candidates for Memory:

Do not save:

When unsure whether something is durable enough to save, prefer not saving it unless the user asked to remember it or the task clearly depends on future reuse.

Update Discipline

When updating a file:

If the current task changes a standing rule, update the existing rule rather than appending a conflicting new version.

Conflict Handling

If two Memory files appear relevant, choose the one that best matches the item's long-term purpose:

If a saved rule conflicts with live evidence or the user's latest instruction, prefer the newer grounded source and update Memory to reflect that change.

Output Contract

When this skill materially changes Memory, the final response should:

  1. say which durable items were read or updated
  2. briefly note what was intentionally not saved when that distinction matters
  3. keep the explanation short and practical

When no Memory update is warranted, say so briefly and continue with the main task without forcing a save.

Supporting Files

Quality Bar

A good use of this skill leaves Memory:

_This page brought to you by the 🦄 Magic Automation Unicorns of LightSpeedWP._

Automation Docs

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.