agentsclimarketplace

Ski memory manager

Skill luisdomarco/AiAgentArchitect/.codex/layers/memory/skills/ski-memory-manager

AI Agent Architect: A comprehensive framework for designing, building, and exporting agentic workflows. Seamlessly transition from initial concept to production-ready agents equipped with custom commands, specialized skills, knowledge bases and rules.

Install
npx -y skills add luisdomarco/AiAgentArchitect --skill ski-memory-manager

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Manages lightweight persistent memory files for cross-session project context. Use when a workflow needs to save or retrieve a condensed summary of previous work on a project to enable fast startup without re-reading full context ledgers.

SKILL.md

6.9 KB, as published. Nobody here has run it

Description

Reusable skill that provides operations to manage the memory/ directory of a project. Memory files are condensed summaries (~1-2KB) that allow a workflow orchestrator to quickly orient itself when resuming work on an existing project, without consuming the tokens required by a full context ledger.

The memory file is a quick-start summary; the context ledger is the full record.

Input / Output

Input (common): memory_dir, project_name — varies by operation (see below).

Output: Created or updated memory file (for save) or a memory content block ready for injection (for load-last).

Operations

save — Write or update a session memory file

Creates or updates a condensed memory file for the current session. If a file with the same session timestamp already exists, it overwrites it. Otherwise, creates a new file.

Input:

FieldDescription
memory_dirPath to the memory directory (default: memory/)
project_nameName of the project (e.g. agsy-product-manager-aramis)
session_timestampTimestamp of the current session in YYYY-MM-DD-HH-MM format
modearchitect or express
statusin-progress / completed / paused (see status semantics below)
last_checkpointID of the last approved checkpoint (e.g. CP-S2, CP-CLOSE)
checkpoints_approvedList of all approved checkpoints so far
checkpoint_decisions(v3 — 4.2.2) Object: which option (A/B/C/D) the user picked at each checkpoint + optional note. See structure below.
target_dirPath to the export directory for this project
session_summary2-3 line description of what was designed/generated in this session
steps_completedObject with step summaries: { "S0": "...", "S1": "...", ... }
active_stateWhat is pending, open questions, next steps
key_decisionsList of key design decisions made
last_session_at(v3 — 4.2.4) ISO 8601 timestamp of when this session started. Computed automatically.

Output: File {memory_dir}/{session_timestamp}-{project_name}.md created with structure:

---
schema_version: 1.1
project-name: {project_name}
session: {session_timestamp}
mode: {mode}
status: {status}
last-checkpoint: {last_checkpoint}
checkpoints-approved: [{checkpoints_approved}]
checkpoint_decisions:
  CP-S0: { option: A, note: "Approved as-is" }
  CP-S1: { option: B, note: "Adjusted: added 2 triggers" }
  CP-S2: { option: C, regenerated_count: 1 }
target-dir: {target_dir}
last_session_at: 2026-04-25T10:00:00Z
---

## Session summary
{session_summary}

## Steps completed
- S0: {steps_completed.S0}
- S1: {steps_completed.S1}
...

## Active state
{active_state}

## Key decisions
- {key_decisions[0]}
- {key_decisions[1]}
...

Schema version note (v3 — 4.2.1): The schema_version field distinguishes v3 Memory snapshots (1.1) from v2 baseline (absent or 1.0). When load-last reads a file without schema_version, treat it as v1.0 and silently migrate fields on the next save (back-compat).

Status semantics:

StatusMeaningVisible in load-last?
in-progressActive session, mid-workflowYes
pausedTemporarily stopped, plans to resume soonYes
completedWorkflow reached CP-CLOSE, no pending workYes

When: After each checkpoint approval and at session close.


load-last — Load the most recent memory for a project

Scans the memory directory for files matching the project name and returns the most recent one.

Input:

FieldDescription
memory_dirPath to the memory directory (default: memory/)
project_nameName of the project to search for

Logic:

  1. List all files in {memory_dir}/.
  2. Filter files whose name ends with -{project_name}.md.
  3. Sort by timestamp prefix (descending) — the filename format YYYY-MM-DD-HH-MM- guarantees lexicographic = chronological order.
  4. Read the content of the first (most recent) match.
  5. Compute time-since-last-session: read last_session_at from the loaded Memory; compute time_since_last_session_hours = now - last_session_at. Surface as part of the load output:
    • "Resuming foo-system (last touched 3 days ago, status: in-progress at CP-S2)".
  6. Return the content of the most recent memory file.

Output: Full content of the most recent memory file, or empty with message "No previous memory found for project '{project_name}'". When v3 verification triggers, also include a one-line summary of the resolution.

When: At workflow startup, before initializing a new session, to check for existing project context.

Procedure

Use operations in this order per workflow run:

  1. load-last — at workflow start, check for existing context
  2. save — after each checkpoint approval (update in-progress state)
  3. save — at workflow close (final state with status=completed)

Usage notes

  • The workflow is responsible for composing the memory content. This skill only handles the file mechanics.
  • Memory files are designed to be small (~1-2KB). Do NOT dump the full context ledger into memory — use concise summaries.
  • If memory_dir does not exist, emit an error and notify the workflow.
  • Memory files are never deleted — they accumulate as a historical record of sessions.
  • Multiple sessions for the same project are expected (different timestamps).

Error Handling

  • save called with missing memory_dir: Emit error "memory directory not found at {memory_dir}" and halt.
  • load-last finds no matching files: Return empty with informational message (not an error — new projects won't have memory).
  • Corrupted or unreadable file: Skip it and try the next most recent. If all fail, return empty with warning.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.