File Memory Copilot

v0.1.1

文件化记忆与任务归档工作流。用户提到“不要依赖上下文/建立md档案/会话接力/清理上下文/长期任务持续交接”时使用:先建任务档案,再把关键信息写入ops与memory文件,按文件而非聊天历史继续工作。

0· 354·1 current·1 all-time
byfusu@shr860910
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
!
Purpose & Capability
The described purpose is file-based memory and task archiving. The skill includes an integrated billing step (charge before each invocation) that is not mentioned in the registry description or required-env list — charging logic can legitimately exist, but requiring an API key and skill ID to call an external billing API is a capability beyond pure 'file memory' and should be explicitly declared in metadata.
!
Instruction Scope
SKILL.md instructs the agent to run the included node script to POST billing requests to an external endpoint before continuing. The workflow also directs creation and updating of files in workspace/repo paths (ops/, memory/), which is coherent with the skill purpose. The main concern: the instructions rely on an undeclared required env (SKILL_ID) and an external billing URL (skillpay.me) that will receive data and the API key; that network call is outside the core file-memory domain and should be clearly justified to users.
Install Mechanism
No install spec; this is instruction-only with one small included Node script. There's no download from external hosts or archive extraction. Risk is low from installation mechanics.
!
Credentials
Registry metadata lists no required env vars but declares SKILL_BILLING_API_KEY as primaryEnv. The runtime script requires SKILL_BILLING_API_KEY and SKILL_ID (and optionally SKILL_BILLING_URL/TOKENS). The undeclared SKILL_ID and the fact that an API key will be transmitted to an external endpoint are disproportionate relative to the basic file-memory purpose and are inconsistent across metadata and SKILL.md.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and does not assert system-wide persistence. It writes files into workspace/repo per its stated workflow, which is within expected scope.
What to consider before installing
This skill will attempt to charge users by POSTing to an external billing endpoint before each invocation. Before installing: (1) Confirm you trust the billing provider (default SKILL_BILLING_URL = https://skillpay.me) and the skill author; (2) be aware you must supply SKILL_BILLING_API_KEY and SKILL_ID (SKILL_ID is required by the script but not declared in registry metadata) and that the API key will be sent as X-API-Key to the billing endpoint; (3) consider testing in a sandbox with a throwaway API key and verifying the script's behavior locally (the included scripts/skillpay-charge.mjs is short and readable); (4) if you expect this skill to be free, ask the author why billing is enforced and request metadata corrections (declare SKILL_ID, list required env vars, and document the billing endpoint); (5) avoid putting sensitive secrets into the files the skill writes. If the author can explain/rectify the metadata mismatch and prove the billing endpoint is legitimate, this becomes more coherent.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

Binsnode
Primary envSKILL_BILLING_API_KEY
billingvk97871ygdr22rv948hjhekhph182acpkfile-memoryvk97871ygdr22rv948hjhekhph182acpklatestvk97871ygdr22rv948hjhekhph182acpk
354downloads
0stars
2versions
Updated 1mo ago
v0.1.1
MIT-0

File Memory Workflow

目标:不依赖长聊天上下文,靠文件稳定接力。

Billing(SkillPay)

每次调用先尝试扣费(默认 10 tokens = 0.01 USDT)。

  • 脚本:{baseDir}/scripts/skillpay-charge.mjs
  • 必需环境变量:
    • SKILL_BILLING_API_KEY
    • SKILL_ID
  • 可选环境变量:
    • SKILL_BILLING_URL(默认 https://skillpay.me/api/v1/billing
    • SKILL_BILLING_TOKENS(默认 10

示例:

node {baseDir}/scripts/skillpay-charge.mjs --user-id "<user-id>" --amount 10

返回:

  • charged: true → 继续执行 skill
  • charged: false 且有 payment_url → 把充值链接返回给用户

必做规则

  1. 先建任务档案,再开始执行。
  2. 每次阶段完成都更新档案,不留“只在聊天里”的关键信息。
  3. 代码类任务完成后,记录 commit 与验证步骤。
  4. 需要长期记忆时,写入 MEMORY.mdmemory/YYYY-MM-DD.md

标准目录

  • 项目任务:<repo>/ops/tasks/TASK-YYYYMMDD-HHMM.md
  • 项目交接:<repo>/ops/HANDOFF.md
  • 过程日志:<repo>/ops/WORKLOG.md
  • 后续计划:<repo>/ops/NEXT_STEPS.md
  • 决策记录:<repo>/ops/DECISIONS.md
  • 全局日记:<workspace>/memory/YYYY-MM-DD.md
  • 长期记忆:<workspace>/MEMORY.md(仅主会话加载)

新任务流程

  1. 创建任务档案 TASK-*.md,写:目标、验收标准、风险、执行记录。
  2. 执行任务。
  3. 完成后更新:
    • ops/WORKLOG.md(做了什么)
    • ops/NEXT_STEPS.md(下一步)
    • ops/DECISIONS.md(为什么这么做)
  4. 若有代码改动:提交 commit,并在任务档案写明 commit hash。

回复用户格式

  • 任务ID:TASK-...
  • 状态:进行中/已完成
  • 产出:文件/commit
  • 下一步:一句话

注意

  • 不把敏感信息写入仓库。
  • 当用户要求“清上下文”时,不删历史事实,改为确保关键内容已文件化并从文件继续。

Comments

Loading comments...