This repository has been archived on 2026-07-09. You can view files and clone it, but cannot push or open issues or pull requests.
agent-knowledge-base-archived/skills/repository-memory.md

3.2 KiB
Raw Permalink Blame History

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

  1. Pull or fetch the latest GitHub state when possible.
  2. Identify the category: project, problem, skill, location, or dialogue summary.
  3. Decide whether the knowledge is global or project-specific.
  4. Store reusable knowledge globally in skills/, problems/, or locations/.
  5. Store only project state and handoff context in projects/<project>/.
  6. Search existing files before creating a new one.
  7. Update the most specific existing file when possible.
  8. Create a new file only when the knowledge has a new durable topic.
  9. Include verification, not just the attempted fix.
  10. Update technical specifications and project status when the user changes requirements.
  11. Commit, pull/rebase if needed, and push to GitHub.
  12. 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/ or projects/<project>/agent-log.md.