agentleFS
mattpollakmattpollak/relay/skills/save/SKILL.md

save

Skill2 starsChanged 9 months agoMITView on GitHub

Saves the current workstream's state to disk. Trigger phrases: "save context", "save state", "save session", "persist context", "update context".

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ingest, lint and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • raven-souravSkill

    ingest

    Also in 6 projects that use this

  • Microsoft AzureSkill

    lint

    Run all linting and spell checking for TypeScript and Rust code. Run this before committing to catch style issues, clippy warnings, and misspellings.

    Also in 4 projects that use this

  • ArtemXTechSkill

    query

    Query data from this vault. USE WHEN user asks about projects, clients, tasks, daily notes. Use grep to extract frontmatter - do NOT read full files.

    Also in 3 projects that use this

  • termdockSkill

    recall

    Retrieves cross-session memories about past decisions, lessons, and patterns. Use when user asks about prior work, past decisions, or mentions a feature. Triggers include check memory, what did we decide, how did we solve.

    Also in 3 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Find active workstream: Read the workstream name from the session context (injected by session-start or switch).

    line 14
  2. Very specific:

    Save: Call save_workstream with the state content and session hint:

    line 16
  3. Distinctive:

    If the session spanned multiple workstreams, write one hint per workstream segment

    line 60
  4. Distinctive:

    Keep each bullet to one line, no sub-bullets

    line 61

“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Save Workstream State

Save the current session's context to the active workstream's state file.

Steps

  1. Find active workstream. Read the workstream name from the session context (injected by session-start or switch). Do NOT call list_workstreams — the name is already in context. If no workstream is attached, tell the user and suggest /relay:new or /relay:switch.
  2. Save. Call save_workstream with the state content and session hint:
    save_workstream(
      name="<active workstream>",
      state_content="<80-line state markdown>",
      session_id="<from relay-session-id context>",
      hint_summary=["<3-6 bullets>"],
      hint_decisions=["<decisions if any>"]
    )
  3. Confirm. Tell the user the state was saved. Mention backup at state.md.bak.

State File Content

The state file MUST stay under 80 lines. Include these sections:

# <Workstream Name>

## Metadata
- **Description:** ...
- **Created:** YYYY-MM-DD
- **Project dir:** /path (if applicable)

## Current Status
2-3 sentences on what's happening right now.

## Key Decisions
- Bullet list of important choices made (accumulated across sessions)

## Next Steps
1. Numbered list of what to do next

## Recent Sessions (optional, if space permits)
- YYYY-MM-DD: One-line summary

Priority if space is tight: Current Status > Next Steps > Key Decisions > Recent Sessions.

Hint Writing Guidelines

  • Summary bullets should be what changed, not how much work happened
  • Include specific outcomes: features, capabilities, fixes, design decisions
  • If the session spanned multiple workstreams, write one hint per workstream segment
  • Keep each bullet to one line, no sub-bullets
  • Omit the hint_decisions parameter if no notable decisions were made

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.