3.2 KiB
Repository Memory Skill
Purpose
Keep durable agent knowledge synchronized in this repository and reusable across projects.
Current default: synchronization is chat-driven. The repository link in a chat is enough to trigger reading context and later committing/pushing durable updates. Do not depend on realtime heartbeat daemons or scheduled knowledge uploads.
When To Use
Use this skill whenever an agent:
- solves a non-trivial problem;
- reaches a verified project restore point;
- tries a useful approach that fails and should not be repeated;
- discovers a machine-specific setup detail;
- changes project state;
- receives a user clarification that changes requirements or workflow;
- finds a reusable command or procedure;
- identifies a failed approach that should not be repeated.
Procedure
- Pull or fetch the latest GitHub state when possible.
- Identify the category: project, problem, skill, location, or dialogue summary.
- Decide whether the knowledge is global or project-specific.
- Store reusable knowledge globally in
skills/,problems/, orlocations/. - Store only project state and handoff context in
projects/<project>/. - Search existing files before creating a new one.
- Update the most specific existing file when possible.
- Create a new file only when the knowledge has a new durable topic.
- Include verification, not just the attempted fix.
- Update technical specifications and project status when the user changes requirements.
- Commit, pull/rebase if needed, and push to GitHub.
- Keep secrets out of the repository.
Global Versus Project-Specific
Global knowledge:
- solved problems;
- reusable commands;
- setup procedures;
- troubleshooting patterns;
- machine facts;
- tool behavior;
- agent workflows.
Project-specific knowledge:
- current project status;
- current technical specification;
- next project actions;
- project decisions;
- handoff messages;
- project-only requirements.
If in doubt, store the durable solution globally and add a short project reference.
Technical Specifications
Each project should keep a live technical specification at projects/<project>/technical-spec.md.
Agents must update this file when dialogue changes:
- product goals;
- target users;
- features;
- non-functional requirements;
- platform or technology choices;
- implementation assumptions;
- acceptance criteria;
- open questions.
When the user asks for "ТЗ" or a technical specification, return the current contents of this file after applying any new requirements from the conversation.
Minimum Problem Record
Every solved problem should include:
- date;
- project;
- whether the solution is reusable across projects;
- environment;
- symptoms;
- root cause;
- solution;
- verification;
- related files or commands.
Project Repository References
When project code is changed, the knowledge base must record the project repository outcome:
- verified solution: project repo path, branch, commit hash, pushed remote, tag if created, and verification;
- failed useful attempt: project repo path, failed branch name, commit hash if pushed, what was tried, why it failed, and what not to repeat;
- throwaway attempt: no project push, but a clear note in
problems/orprojects/<project>/agent-log.md.