AGENT SKILL

memory

Session state backend for WDS. Called by wrap, start, and handoff tools — never directly by users. Writes to progress/ in the project repo.

License 许可
MIT
最近更新
2026-11-10
Stars
★ 0
Forks
0

01 前言 Front Matter

name
memory
agents
[ "saga", "freya", "mimir" ]
version
1.0.0
description
Session state backend for WDS. Called by wrap, start, and handoff tools — never directly by users. Writes to progress/ in the project repo.

03 SKILL.md 正文

WDS Memory — File Backend

Handles all persistent state for WDS sessions. Two operations: save and load.

State lives in progress/ at the project root. This folder is project-scoped — not global, not per-machine.


save

Called by: wrap (step 3), handoff (step 3)

Input:

  • agent_id — the agent whose state is being saved (saga, freya, mimir)
  • data — the compiled state block (Wrapped, Context, Plan, Next, Learned, Spec Sync fields)

Steps:

  1. Ensure progress/ exists at the project root. Create it if not.
  2. Write progress/[agent_id].md with the data block exactly as provided.
  3. Return: saved progress/[agent_id].md

load

Called by: start (step 2)

Input:

  • agent_id — the agent whose state is being loaded

Steps:

  1. Check if progress/[agent_id].md exists.
  2. If found: return the full file content.
  3. If not found: return nothing. The calling tool handles the fresh-start case.

Notes

  • progress/ should be in .gitignore. It is machine-local session context, not project content.
  • Both save and load are synchronous file operations — no tokens, no async, no IDs.
  • This is the canonical storage backend. State is local to the machine and project — not synced, not shared.

04 同仓库更多 Skills

thkennedy
thkennedy/tk-studio

tk-studio-track

Tracking verbs on the bound Jira project — `block` moves a story the loop cannot progress, and each dependent story, to "Blocked - Awaiting User" with a comment that @mentions the owner (or, with `--engagement`, one engagement's questions issue, which `close` later moves to "Done"); `reply` posts the owner's answer (or "Done.") with the owner's host-only token and moves the issue to "Block Resolved"; `validate` checks that resolution and passes the issue back to work or re-blocks it with a follow-up. Use when the user says "block this story", "tk track block", "put it in the owner's inbox", "reply to the blocked issue", "validate the resolution", or a supervisor or engagement payload names this skill.

★ 0
thkennedy
thkennedy/tk-studio

tk-studio-session

Session discipline as a surface — land a boundary handoff (optionally carrying knowledge deltas) and end the session, or resume a fresh session from a run workspace alone. Use when the user says "hand off this run", "tk session", "resume the run", or a boundary/budget trigger says the session must split.

★ 0
thkennedy
thkennedy/tk-studio

tk-studio-research

Run a chartered research pass — survey the topics a charter scopes, grade every finding by evidence, land the findings in the run workspace, and emit observation events for recommendation-worthy ones. Use when the user says "run the ecosystem watch", "tk research", or a research job's invoke-skill directive names this skill.

★ 0
thkennedy
thkennedy/tk-studio

tk-studio-report

One-verb human defect report — "the skill did the wrong thing" — recorded as a report event in the local measurement ledger. Use when the user says "tk report", "report a defect", "that skill misbehaved", or "log a studio issue".

★ 0
thkennedy
thkennedy/tk-studio

tk-studio-playable-judge

The playable-verify leg's screenshot judge (Story 34.3) — reads only a playable run's report.json and its frames, answers the fixed rubric (scene loaded, player visible and framed, no magenta or error overlay, HUD reads, the named moments shown) with pass or fail and findings each naming a frame and a rubric line. Driven headless by the supervisor's host leg on the project's sandbox tier; use when the payload names a playable `media` folder, or the user says "judge the playable frames".

★ 0
thkennedy
thkennedy/tk-studio

tk-studio-plan-sync

Planning adapter — canonicalize BMad-native planning artifacts (normalize pass, sole id authority) and sync them with the bound planning backend. Use when the user says "sync the plan", "normalize planning artifacts", "tk plan sync", or after stock BMad planning flows produce or change epics/stories.

★ 0