본문으로 건너뛰기
cccskills
무료GitHub에 공개

nano-memory

Guidelines and workflows for the agent to maintain persistent memory using native file tools (read_file, write_file, edit_file) and standard OS commands for searching.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

🧠 Memory Architecture

Each session is stateless. Your memory lives entirely within the local file system. You must rely on file operations to remember context, technical decisions, and history.

Core Memory Files

  • memory/YYYY-MM-DD.md (Daily Logs): Raw, chronological logs of what happened. Use this for daily tasks, scratchpad thinking, and immediate context.
  • MEMORY.md (Long-Term Memory): Your curated, distilled knowledge base. Contains high-level project context, architecture decisions, technical setups, and important user preferences.

🛠️ Core Memory Operations

You have access to native file tools and standard OS commands. Use them strictly in these patterns to avoid data loss or hallucinations:

1. 🔍 Search (OS-Specific Commands)

  • When to use: ALWAYS use this before answering questions about past work, decisions, or dates to find where information is stored.
  • Action: Detect your current Operating System and use the appropriate shell commands to search:
    • Linux / macOS:
      • Find files: ls -la memory/
      • Search content: grep -rnI "your_keyword" memory/ MEMORY.md
    • Windows (CMD / PowerShell):
      • Find files: dir memory\ (CMD) or Get-ChildItem memory\ (PowerShell)
      • Search content (CMD): findstr /S /I /N "your_keyword" memory\* MEMORY.md
      • Search content (PowerShell): Select-String -Pattern "your_keyword" -Path "memory\*", "MEMORY.md"

2. 📖 Read (Native read_file)

  • When to use: After a successful search to get full context, OR crucially, before using the edit_file tool.
  • Action: Use your native read_file tool to load the exact state of a file. You must do this to understand its current structure and prevent accidental overwrites.

3. ✍️ Write (Native write_file)

  • When to use: When creating new daily logs or saving entirely new files.
  • Action: Use your native write_file tool to save content. If your native tool supports an append mode, use that for memory/YYYY-MM-DD.md. Otherwise, make sure to read_file first, append the new text to the content in your context, and then write_file the whole chunk.

4. 📝 Edit (Native edit_file)

  • When to use: When updating specific sections of MEMORY.md.
  • CRITICAL RULE: NEVER guess the content. You MUST execute read_file first to see the exact text or line numbers you are modifying. Then use your native edit_file tool to accurately replace or insert the updated information without destroying the surrounding context.

🎯 Proactive Recording - No "Mental Notes"!

  • Memory is limited: "Mental notes" do not survive session restarts. If it is not written to a file, it does not exist.
  • Record First, Answer Second: When you discover valuable information during a conversation, record it to the file system immediately, then answer the user.
  • What to record proactively:
    • Important conclusions, milestones, or raw thoughts reached today ➡️ append to memory/YYYY-MM-DD.md.
    • Workflow preferences or long-term lessons learned ➡️ update the relevant section in MEMORY.md using edit_file.
  • Security & Privacy: Unless explicitly requested by the user, NEVER record sensitive information (passwords, tokens, personal medical/financial data).

🔄 Memory Workflows (SOP)

Workflow A: Retrieving Memory

  1. Trigger: User asks about past context.
  2. Search: Run the appropriate search command for your OS (e.g., grep or findstr) to locate the keyword in memory/ or MEMORY.md.
  3. Read: Run the native read_file tool on the specific file found in step 2.
  4. Respond: Answer the user accurately based only on the retrieved file contents.

Workflow B: Updating Long-Term Knowledge

  1. Trigger: You establish a new technical standard or learn a persistent user preference.
  2. Read: Run the native read_file tool on MEMORY.md to review its current structure and locate the target section.
  3. Edit: Run the native edit_file tool to seamlessly update or insert the new information into MEMORY.md.
  4. Respond: Continue the conversation, confirming the memory has been updated.

🧹 Memory Maintenance (During Heartbeats / Idle)

Periodically act like a human reviewing their journal:

  1. Check available logs using ls or dir and read recent ones using read_file.
  2. Identify significant events, finalized decisions, or insights worth keeping long-term.
  3. Update MEMORY.md with these distilled learnings using edit_file.
  4. (Optional) Clear outdated info from MEMORY.md to keep your context clean.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Build and debug Python applications using AgentScope 2.x. Consult this skill for AgentScope APIs, agent tools, multi-agent orchestration, and agent service deployment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agentscope-ai/skills1302026년 9월 10일 업데이트

当用户明确希望连接到已运行的 Chrome 浏览器、扫描本地 CDP 端口、显式指定 `cdp_port`,或让多个 agent / 工具共享同一个浏览器时,使用本 skill。当前 browser_use 默认已使用 managed CDP 启动浏览器;如果用户不希望暴露浏览器历史、Cookies 等敏感信息,推荐改用 `private_mode=true` 的隐私模式。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agentscope-ai/skills1302026년 9월 10일 업데이트

Use this skill when the user explicitly wants to connect to a running Chrome browser, scan local CDP ports, specify a `cdp_port`, or share a single browser across multiple agents/tools. By default, browser_use already launches the browser using managed CDP; if the user does not want to expose browser history, cookies, or other sensitive data, recommend using `private_mode=true` instead.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agentscope-ai/skills1302026년 9월 10일 업데이트

当用户需要控制 browser_use 的浏览器启动方式时,使用本 skill。当前 browser_use 默认使用 managed CDP 启动本地 Chrome/Chromium;`headed` 控制是否显示窗口,`private_mode` 控制是否禁用 CDP、改走 Playwright,`browser_args` 传入额外的 Chromium 启动参数,`executable_path` 指定自定义浏览器可执行文件路径。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agentscope-ai/skills1302026년 9월 10일 업데이트

Use this skill when the user needs to control the browser launch mode for browser_use. By default, browser_use launches the local Chrome/Chromium using managed CDP; `headed` controls whether the window is visible, and `private_mode` controls whether CDP is disabled in favor of Playwright.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agentscope-ai/skills1302026년 9월 10일 업데이트

Use this skill to proactively send a one-way message to a user/session/channel, usually only when the user explicitly asks to send to a channel/session or when proactive notification is needed. First query sessions with qwenpaw chats list, then push with qwenpaw channels send.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agentscope-ai/skills1302026년 9월 10일 업데이트

agentscope-ai의 스킬 모두 보기

이 스킬의 문제 신고