Agent Skills
› NeverSight/learn-skills.dev
› personalization-memory
personalization-memory
GitHub自动从交互轨迹和日志中提取用户偏好,实现系统个性化记忆。适用于需持久化记录重复习惯、工作流或项目规则的场景,无需中断用户即可更新记忆。
Trigger Scenarios
用户希望工作流被自动记住或个性化
检测到重复的用户偏好或操作习惯
任务完成且存在可复用的经验教训
需要将轨迹日志转化为候选偏好
Install
npx skills add NeverSight/learn-skills.dev --skill personalization-memory -g -y
SKILL.md
Frontmatter
{
"name": "personalization-memory",
"description": "Maintain automatic personalization writeback from agent trajectories, logs, sidecar artifacts, and repeated user preferences. Use when a task produces reusable preferences, lessons, private user memory, project contracts, or candidate public skill rules without interrupting the user.",
"allowed-tools": "Read, Write, Edit, Bash, Glob",
"argument-hint": "[project-root] [--scan-trajectories] [--writeback] [--promote]"
}
Personalization Memory
Turn repeated interaction traces into durable preferences without making the main agent stop and ask the user for every memory update. This skill is the writeback layer for "the system gets more personal over time."
Skill Directory Layout
<installed-skill-dir>/
├── SKILL.md
├── references/
│ ├── trajectory-scanner.md
│ └── writeback-policy.md
└── templates/
└── preference-ledger.md
Core Contract
- Do not ask the user just to decide whether a routine preference should be remembered.
- Prefer low-cost sidecar scanning for synthesis from logs, trajectories, diffs, sidecar outputs, review bundles, and project memory.
- Never copy raw private conversations, raw logs, credentials, local-only paths, or collaborator messages into public repo memory.
- Store the smallest reusable lesson, not the whole episode.
- Treat personalization as a promotion ladder: observation -> candidate -> preference -> project contract -> reusable skill-rule candidate.
- Public skill changes require the same normal repo validation, commit, push, and reinstall flow as other skill changes.
When to Use
Use this skill when:
- the user says a workflow should become personalized, automatic, remembered, or learned from trajectories
- the agent notices repeated preferences such as "do not ask me", "commit/push first", "use Overleaf compile", "prefer screenshots/page bundles", "use sidecar for low-risk scans"
- another skill finishes meaningful work and there are reusable workflow, writing, figure, LaTeX, Git, review, or compute lessons
- Codex or Claude Code trajectory logs should be scanned into candidate preferences
- project memory needs to separate private user facts from shared project contracts and public skill rules
Pair with sidecar-task-runner for the low-cost scan and with research-project-memory when accepted project-level conclusions must update memory/.
Progressive Loading
- Read
references/writeback-policy.mdbefore deciding where a preference belongs. - Read
references/trajectory-scanner.mdbefore launching a sidecar scan over logs, trajectories, sidecar artifacts, or repo history. - Use
templates/preference-ledger.mdwhen a project lacks a preference ledger.
Workflow
- Collect artifact inputs. Prefer sanitized artifacts:
memory/, recentgit diff,.agent/sidecars/*/decision.md,.agent/code-reviews/*/fix-log.md,.agent/layout-issues/*/manifest.md, paper/code.agent/state, and explicit user-stated preferences in the current task summary. - Run a low-cost scan when useful. Use
sidecar-task-runnerwith thepersonalization-scannerpreset for nontrivial history or trajectory scans. The scanner outputs candidates; it must not directly edit memory. - Classify each candidate. Assign scope:
private-user,project,public-skill-candidate, ordiscard. Assign type:workflow,writing,layout,figure-style,code-review,git,compute,toolchain, orcollaboration. - Apply confidence gates. One observed episode can become a lesson. Repeated episodes or explicit user wording can become a preference. Project contracts need project-specific evidence. Public skill rules need maintainer intent or repeated cross-project evidence.
- Write to the right layer. Use
references/writeback-policy.mdrouting. Write short entries with date, source artifact, confidence, and target scope. - Report only the useful summary. Tell the user what was remembered or which candidates were deferred. Do not ask for confirmation unless the next step would publish private or public-facing policy.
Default Targets
- Private user preferences: the current agent's private memory area, such as
~/.codex/memories/, especially for workstation facts, tool aliases, local paths, preferred interaction style, and personal workflow defaults. - Project preferences:
memory/,paper/.agent/,code/.agent/, orslides/.agent/, especially for contracts shared by all agents in the project. - Local scan artifacts:
.agent/sidecars/<task-id>/or.agent/personalization/<run-id>/; keep them untracked unless sanitized and intentionally committed. - Public reusable skill rules:
skills/<skill-name>/SKILL.mdorskills/<skill-name>/references/only during an explicit skill-maintenance task.
Candidate Record
Use concise records:
- Preference: <one reusable behavior>
- Scope: private-user | project | public-skill-candidate | discard
- Type: workflow | writing | layout | figure-style | code-review | git | compute | toolchain | collaboration
- Evidence: <artifact path or summarized user statement>
- Confidence: observed | repeated | user-stated | inferred
- Target: <memory file or skill file>
- Action: write | defer | promote | reject
Safety Rules
- Do not store private raw trajectory text when a derived rule is enough.
- Do not promote collaborator-specific comments, voice transcriptions, screenshots, or local file paths into public skills.
- Do not let a sidecar write final public memory without main-agent review.
- If a candidate conflicts with existing memory, mark it as
candidateand leave a short note rather than overwriting the older rule. - If a preference would change external behavior such as pushing, tagging, releasing, submitting jobs, or publishing issues, record the preference but keep the existing human gate.
Version History
- e0220ca Current 2026-07-05 21:36


