atomic

flowstate-epic-flowstate-community-epicdm-flowstate-agents-memory-client

Package-local agent skill for @epicdm/flowstate-agents-memory-client.

Tags

Publisher

Versions

1 version published — latest: 1.0.7

  • 1.0.7
    publishedInvalid Date

Skill

flowstate-agents-memory-client Package Skill

Package: @epicdm/flowstate-agents-memory-client Repository: epic-flowstate-community Path: packages/flowstate-agents-memory-client Version: 1.0.7

Use this published Dojo skill as the package-level entrypoint. For detailed workflows, use the package-local skills listed below.

Primary Package Workflow

Agents Memory Client Contract Reference

Status: Active Purpose: Provide dense lookup for AMS client contracts. Scope: src/index.ts, src/types.ts, src/constants.ts. Trigger: Public API review, docs repair, caller integration, Dojo rebuild. Input: Source files and intended caller behavior. Output: Accurate endpoint/type/return-contract understanding.


Authority

Use source as authority:

  • src/AgentMemoryClient.ts
  • src/types.ts
  • src/constants.ts

Return Semantics

Common fallbacks:

  • healthCheck() -> false
  • readWorkingMemory() -> null
  • addMessage() -> null
  • search methods -> empty result objects or arrays depending on method

Invalid empty sessionId throws in several methods.

Drift Notes

  • PACKAGE_INFO.version is stale.
  • README overclaims client-side summarization/truncation.
  • Generated Dojo labels constants as skills and marks package privacy incorrectly.

Done When

  • The caller knows whether a method throws, returns null, false, or an empty result.
  • Docs/skills use source behavior rather than generated Dojo text.

Package Skill Inventory

Package Skill Inventory: @epicdm/flowstate-agents-memory-client

Package Context

Package path: /Users/sthornock/code/epic/epic-flowstate-community/packages/flowstate-agents-memory-client

This package is a typed HTTP client for AMS. The skillset should teach safe integration with an external memory server, not pretend constants or enums are independent skills.

Skill Map

SkillTypeTriggerTeachesEvidenceDepends OnDojo
flowstate-agents-memory-clientorchestratorUse when touching or importing the AMS memory clientRoutes setup, working memory, memory prompt, search, contracts, troubleshooting, maintenancesrc/index.ts, AgentMemoryClient.tspackage docs, feature matrixready-after-review
flowstate-agents-memory-client-setupworkflowUse when configuring AMS base URLs, auth, health, retries, or timeoutsConstructor config, authToken, healthCheck, retry/timeout behaviorAgentMemoryClient.ts, constants.ts, app-framework hookAMS runtimeready-after-review
flowstate-agents-memory-client-working-memoryworkflowUse when adding, reading, replacing, clearing, or formatting conversation memoryaddMessage, working memory CRUD, summaries, buildContextPromptAgentMemoryClient.tssetupready-after-review
flowstate-agents-memory-client-memory-promptworkflowUse when preparing LLM messages with AMS context windowsgetMemoryPrompt, context window params, summarized responsesmemory prompt method/typesLLM client skillsready-after-review
flowstate-agents-memory-client-search-and-retentionworkflowUse when creating, searching, forgetting, deleting, or unified-searching memoryLong-term memory methods, unified search, delete warningAgentMemoryClient.tsMCP memory toolsready-after-review
flowstate-agents-memory-client-contract-referencereferenceUse when checking endpoints, types, constants, return semantics, or version driftEndpoint map, exported types, failure returns, PACKAGE_INFOconstants.ts, types.tsnonelocal-only
flowstate-agents-memory-client-troubleshootingtroubleshootingUse when AMS calls fail, return empty results, or downstream memory appears missingNull/empty semantics, retries, health, session pitfalls, false-success risksfetchWithRetry, tests, downstream refssetup/referenceready-after-review
flowstate-agents-memory-client-maintenancemaintenanceUse before release, docs, Dojo, or public contract changesTests, reverse refs, docs/matrix/Dojo drift, package version authoritypackage scripts, docs, downstream refspackage docs synclocal-only

Anti-Sprawl Decision

Eight skills are justified because setup, working memory, memory prompt, long-term search/retention, contracts, troubleshooting, and maintenance each have distinct triggers and failure modes. Constants and endpoint names stay in a reference skill.

Feature Coverage

Feature GroupSource EvidenceCovered ByNotes
Client construction/config/authAgentMemoryClient, DEFAULT_CONFIGsetup, contract-referencebaseUrl required
Health/retry/failure behaviorhealthCheck, fetchWithRetrysetup, troubleshootingBoolean/null/empty semantics matter
Working memoryread/replace/remove/addMessageworking-memoryInclude read-modify-write race risk
Summaries/context windowscontextWindowMax, summaryworking-memory, memory-promptAMS performs summarization
Memory Prompt APIgetMemoryPromptmemory-promptLLM-ready messages
SessionslistSessions, AmsSessioncontract-reference, troubleshootingSession id parsing risk
Long-term/unified memorycreate/search/forget/delete/searchAllsearch-and-retentionDelete is policy-based
Downstream integrationsMCP, workers, app-frameworkorchestrator, troubleshooting, maintenanceCritical for contract changes

Composition Model

Start with the orchestrator. New integrations use setup, then working-memory or memory-prompt, then search-and-retention if long-term memory is involved. Debugging starts with troubleshooting and contract-reference. Release/docs work starts with maintenance.

Deferred Skills

  • React hook skill belongs to flowstate-app-framework.
  • MCP memory tools skill belongs to flowstate-mcp.
  • AMS server operations skill is deferred until server source/API is reviewed.
  • Dojo publish skill is deferred until generated content is rebuilt from reviewed local skills.

Review Questions

  • Should PACKAGE_INFO.version be removed or synchronized?
  • Should deleteLongTermMemory be documented as unsafe/deferred?
  • Should downstream MCP tools inspect null/empty results before success responses?
  • Should the README be replaced with .flowstate/docs quick-start/API content?

Review Gate

Package Skills Review: @epicdm/flowstate-agents-memory-client

Verdict

Pass with fixes.

The local skillset teaches actual AMS client workflows and captures the key risk: null/empty best-effort return semantics can be hidden by downstream wrappers. Existing generated Dojo content must be rebuilt before publication.

Findings

SeveritySkillIssueEvidenceRequired Fix
ImportantallExisting Dojo content is generated and teaches constants as skills.flowstate/dojo/*Rebuild Dojo from reviewed skills
Importanttroubleshooting/searchDownstream wrappers may report success on null/empty resultsMCP reverse referencesTrack/repair downstream false-success behavior
MinorreferencePACKAGE_INFO.version drift remainsconstants.ts, package.jsonTrack maintenance issue
MinorallVerification passed after authoring; keep this evidence current before Dojo publishtest, typecheck, build passed in this passRe-run before final Dojo publish if source changes

Coverage

Feature GroupStatusSkillNotes
Setup/auth/health/retryCoveredsetupIncludes baseUrl and boolean health
Working memoryCoveredworking-memoryIncludes read-modify-write caveat
Memory Prompt APICoveredmemory-promptServer-side context preparation
Long-term/unified searchCoveredsearch-and-retentionIncludes delete warning
Types/endpoints/contractsCoveredcontract-referenceIncludes return semantics
Failures/downstream risksCoveredtroubleshootingIncludes false-success risk
Maintenance/docs/DojoCoveredmaintenanceRebuild before publish

Drift and Contract Risks

AreaRiskEvidenceDecision
SummarizationDocs imply client-owned summarizationREADME vs sourceTeach AMS-side summarization
VersionPACKAGE_INFO.version staleconstants.tsTrack maintenance
DojoGenerated skilllets for constants.flowstate/dojo/*Do not publish as-is
Downstream wrappersSuccess may hide null/empty returnsMCP referencesWarn and track repair

Dojo Publication Decision

Do not publish existing generated Dojo files. Reviewed local skills are eligible for Dojo conversion after verification passes and manifests are rebuilt.

Follow-Up Work

  • Package verification passed:
    • yarn workspace @epicdm/flowstate-agents-memory-client test
    • yarn workspace @epicdm/flowstate-agents-memory-client typecheck
    • yarn workspace @epicdm/flowstate-agents-memory-client build
  • Rebuild .flowstate/dojo files.
  • Fix or document downstream false-success behavior.
  • Synchronize package version metadata and README.

Usage

Start with this skill to understand the package purpose, then use the package-local focused skills for specific workflows. Keep this Dojo version aligned with packages/flowstate-agents-memory-client/package.json. Do not treat generated feature lists as lessons; use workflow evidence from CODE-REVIEW.md, SKILL-INVENTORY.md, and REVIEW.md.

Install

Run this in your project to install via CLI:

fscloud dojo skill install flowstate-epic-flowstate-community-epicdm-flowstate-agents-memory-client --target <target> --out ./skills

Replace <target> with your agent target identifier. See the CLI docs for details.