Skip to content
Back to skills

Line Memory

ASecurity

Retain and retrieve small durable project facts through a bounded, recency-ordered plain-text memory

  • 233 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 3, 2026
ai-agentsgobashgit

Works with

  • cli

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add jmagly/aiwg --skill line-memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Line Memory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Line Memory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jmagly-line-memory/badge)](https://www.skillsdirectory.com/skills/jmagly-line-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
namespace: aiwg
name: line-memory
platforms: [all]
description: Retain and retrieve small durable project facts through a bounded, recency-ordered plain-text memory
requires:
  - addon: line-memory deployed with `aiwg use line-memory`
ensures:
  - bounded-retrieval: memory queries return only the requested slice
  - recency-retention: referenced memories move to the newest position
invariants:
  - never store secrets, credentials, tokens, or sensitive personal data
  - never inject the complete memory file into provider startup context
  - use line-memory CLI commands instead of directly reading the complete backing file
commandHint:
  argumentHint: add|list|search|touch|prune|config
  allowedTools: Bash
  category: memory
  orchestration: false
---

# Line Memory

Use line memory for a small set of durable project facts that benefit from
least-recently-used retention but do not need wiki pages, semantic search,
citations, or a knowledge graph.

## Retrieval

Always retrieve a bounded slice:

```bash
aiwg line-memory search "canonical tracker" --limit 5
aiwg line-memory list --limit 20
```

`list` and `search` refresh the returned entries by moving them to the newest
position. Pass `--no-touch` only for inspection that must not change recency.
Never read the complete backing file into startup context.

## Mutation

```bash
aiwg line-memory add "Project uses Gitea as the canonical tracker."
aiwg line-memory touch "Project uses Gitea as the canonical tracker."
aiwg line-memory prune
aiwg line-memory list --limit 20 --json
aiwg line-memory import "Reviewed fact" --source-ref wiki:path --reviewer operator --confirm
```

Store one concise, non-sensitive fact per entry. Do not store secrets,
credentials, access tokens, private keys, or sensitive personal data.

Use stable handles from `--json` for governed archive/remove/supersede
operations. These mutations require `--confirm`; reviewed imports additionally
require `--source-ref` and `--reviewer` so provenance is not lost.

## Configuration

```bash
aiwg line-memory config get maxLines
aiwg line-memory config set maxLines 100
```

The default memory file is `.aiwg/memory/line-memory.txt`; configuration is
stored in `.aiwg/memory/line-memory.config.json`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.