OpenCode SmartPi Memory Guardian
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_a5827f21/opencode-lingxin-memory.
About this skill
Problem
When a new OpenCode session starts, earlier configuration notes, debugging conclusions, and work plans are easy to lose. On low-resource ARM64 devices such as SmartPi, with only around 2GB of usable space, running a heavier memory stack is often impractical. OpenCode SmartPi Memory Guardian targets this specific setup: instead of acting as a general knowledge base, it preserves recoverable context through a minimal file set and syncs local state to Gitee or GitHub using Git, reducing the risk of losing progress after an unexpected reboot.
How It Works
The skill organizes memory into directly editable Markdown files:
- MEMORY.md: stores core SmartPi memory, system configuration, and resolved issues
- INDEX.md: provides a quick navigation index
- 2026-04-30.md: serves as a daily work log template
At the start of a session, OpenCode can read these files to reconstruct device state, existing configuration, and outstanding tasks. Before a session ends, important changes can be written back into the memory files and synchronized through git. The design stays lightweight: it expects at least 100MB of free space, Debian 10 or a compatible system, Git, and a Gitee or GitHub account.
Boundaries
It fits embedded development machines that need a small amount of cross-session engineering context, but it is not a replacement for full RAG, vector search, or enterprise audit systems. If memory content includes secrets, personal identity data, or sensitive configuration, it should be sanitized before syncing. Git synchronization provides traceable backup, but it does not automatically handle permission isolation or offline access constraints.
Use Cases
- Start a new OpenCode session on a 2GB SmartPi, then read MEMORY.md and INDEX.md to restore device settings and resolved issues.
- Before ending a session, log a new ARM64 service issue into the template and push a Git backup to Gitee.
- On a low-memory Debian 10 dev box, use INDEX.md to find yesterday’s recorded config items before continuing script edits.
- After rebooting SmartPi, restore the previous work context from memory files instead of re-explaining environment, accounts, and goals.
Best For
- Embedded engineers maintaining SmartPi or ARM64 dev machines who need cross-session notes on configs and fixes.
- Engineers debugging local scripts with OpenCode who want quick context recovery after interruptions or reboots.
- Ops engineers running AI assistants on low-resource Debian 10 servers who need lightweight Git backup, not heavy memory stacks.
- Independent developers connecting OpenCode to self-hosted Gitee repos who want auditable, hand-editable memory files.
Related Skills
Provides Claw with character-library selection, switching, saving, and global SOUL.md style sync for role-based conversation.
An AIONE Agentic AI Infrastructure SDK wrapper for building production AI agents with memory, skills, workflows, and hooks.
A Python/TypeScript SDK wrapper for the DeepSeek-Reasonix native AI coding agent, with prefix-cache support.
A browser automation tool for analysts, operators, and developers that locates elements, fills forms, extracts structured content, and supports no-code scheduling and export.