From 8cb393472f24dc4e61d94b22d5fc2d241086913d Mon Sep 17 00:00:00 2001 From: krustophski Date: Sun, 24 May 2026 10:41:33 +0300 Subject: [PATCH] Make reusable knowledge global across projects --- AGENTS.md | 31 ++++++++++++--- README.md | 9 +++-- projects/garage/agent-log.md | 8 ++++ skills/global-knowledge-first.md | 46 +++++++++++++++++++++++ skills/index.md | 1 + skills/multi-agent-github-coordination.md | 13 ++++--- skills/repository-memory.md | 39 +++++++++++++++---- 7 files changed, 125 insertions(+), 22 deletions(-) create mode 100644 skills/global-knowledge-first.md diff --git a/AGENTS.md b/AGENTS.md index 96089fe..2768b68 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,8 +10,8 @@ At the beginning of work: 2. Read `projects/index.md`. 3. Read `locations/index.md`. 4. Identify the active project from the user request or `projects/index.md`. -5. Read that project's `status.md`, `decisions.md`, `notes.md`, and `agent-log.md` when they exist. -6. Search `problems/` and `skills/` for anything related to the current task. +5. Search global knowledge first: `skills/`, `problems/`, and `locations/`. +6. Read the active project's `status.md`, `decisions.md`, `notes.md`, and `agent-log.md` when they exist. 7. Update project status when a meaningful change happens. ## Access Requirement @@ -37,6 +37,27 @@ Record only durable knowledge: - paths, commands, ports, dependencies, and integration notes; - reusable agent procedures. +## Global Knowledge First + +Knowledge that can help more than one project must be stored globally, not only inside a project folder. + +Use project folders only for project-specific state: + +- current status; +- next actions; +- project decisions; +- project handoffs; +- project-specific notes. + +Use global folders for reusable knowledge: + +- `skills/` for repeatable procedures, workflows, and agent habits; +- `problems/` for solved issues, root causes, failed approaches, and fixes; +- `locations/` for machine, environment, and access facts; +- `templates/` for reusable document structures. + +If a solution is discovered while working on one project but could help another project, record it in `problems/` or `skills/` and link to it from the project file if needed. Do not leave reusable knowledge only in `projects//`. + Do not record: - secrets or credentials; @@ -52,7 +73,7 @@ When a problem is solved: 1. Add a file under `problems/`. 2. Include symptoms, environment, root cause, solution, verification, and related files. 3. If the solution is reusable, also update or create a skill under `skills/`. -4. If it affects a project, update that project's `status.md`. +4. If it affects a project, update that project's `status.md` with a short link or reference to the global knowledge entry. When a project changes: @@ -70,8 +91,8 @@ Agents should communicate asynchronously through: - `projects//agent-log.md` for handoffs and status messages; - `projects//status.md` for current state and next actions; - `projects//decisions.md` for durable decisions; -- `problems/` for solved issues and reusable fixes; -- `skills/` for repeatable procedures. +- `problems/` for solved issues and reusable fixes that may apply across projects; +- `skills/` for repeatable procedures that may apply across projects. Before starting work, pull or fetch the latest repository state when possible. After meaningful work, commit and push updates promptly. If two agents edit the same file, preserve both useful entries and resolve conflicts by date and topic. diff --git a/README.md b/README.md index 7e4ea28..167fcfa 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ Private text-only repository for agent skills, project memory, locations, machin 1. Start every session by reading `AGENTS.md`. 2. Check the current machine and location in `locations/`. 3. Check active projects in `projects/`. -4. Before solving a repeated issue, search `problems/` and `skills/`. -5. After finding a useful solution, add or update a text entry in the matching folder. +4. Before solving a repeated issue, search global knowledge in `problems/`, `skills/`, and `locations/`. +5. After finding a useful solution, add or update a global text entry first, then link it from a project if needed. 6. Keep files small, factual, and easy to search. Private repository access is required. A link lets an agent locate the repository, but a private repository still needs GitHub permissions and authentication before an agent can read or push updates. @@ -17,9 +17,9 @@ Private repository access is required. A link lets an agent locate the repositor - `AGENTS.md` - operating rules for all agents. - `skills/` - reusable agent skills and procedures. -- `projects/` - current projects, status, next actions, and decisions. +- `projects/` - project-specific state, status, next actions, and decisions. - `projects//agent-log.md` - cross-agent handoff log for a specific project. -- `problems/` - solved problems, symptoms, root causes, and fixes. +- `problems/` - solved problems, symptoms, root causes, and fixes that can be reused across projects. - `locations/` - physical locations, computers, access notes, and environment facts. - `templates/` - copyable text templates for new entries. @@ -30,6 +30,7 @@ Private repository access is required. A link lets an agent locate the repositor - Store commands, paths, decisions, and troubleshooting steps, but redact credentials. - Prefer one topic per file. - Use ISO dates: `YYYY-MM-DD`. +- Store reusable knowledge globally, even when it was discovered inside a specific project. ## Naming diff --git a/projects/garage/agent-log.md b/projects/garage/agent-log.md index 3350f02..199f11a 100644 --- a/projects/garage/agent-log.md +++ b/projects/garage/agent-log.md @@ -8,3 +8,11 @@ - Current state: No engine, implementation repository, or prototype architecture selected yet. - Next handoff: Ask the user to choose the first target platform, or default to a browser-based Three.js prototype if fast visual iteration is preferred. +## 2026-05-24 - Global Knowledge Clarification + +- Machine: current Codex desktop machine. +- Agent: Codex. +- Summary: User clarified that knowledge must be shared across all projects, not locked inside one project folder. +- Files changed: Updated repository rules and skills so reusable solutions go to global `skills/`, `problems/`, and `locations/`. +- Verified: Changes committed locally before push. +- Next handoff: Future `garage` work should store simulator-specific status in `projects/garage/`, but reusable engine, physics, GitHub, or agent coordination knowledge must be recorded globally. diff --git a/skills/global-knowledge-first.md b/skills/global-knowledge-first.md new file mode 100644 index 0000000..1aad208 --- /dev/null +++ b/skills/global-knowledge-first.md @@ -0,0 +1,46 @@ +# Global Knowledge First + +## Purpose + +Make knowledge discovered in one project usable by every future project. + +## Rule + +Reusable knowledge belongs in global folders, even when it was discovered during a specific project. + +## Store Globally + +Use `skills/`, `problems/`, and `locations/` for: + +- solved technical problems; +- root causes and fixes; +- failed approaches worth remembering; +- reusable commands; +- setup procedures; +- machine and environment facts; +- workflows agents should repeat. + +## Store In Projects + +Use `projects//` only for: + +- current project state; +- project-specific next actions; +- project-specific decisions; +- handoffs between agents; +- requirements and notes that do not generalize. + +## Linking Pattern + +When a global entry was discovered during a project: + +1. Write the full reusable solution in `problems/` or `skills/`. +2. Add a short reference from the project file. +3. Keep the project file focused on what changed for that project. + +Example project note: + +```markdown +Reusable solution recorded in `problems/2026-05-24-example.md`. +``` + diff --git a/skills/index.md b/skills/index.md index 71575c1..8ef47d1 100644 --- a/skills/index.md +++ b/skills/index.md @@ -4,3 +4,4 @@ - `repository-memory.md` - how agents should update this repository after work. - `multi-agent-github-coordination.md` - how agents on different computers coordinate through GitHub. +- `global-knowledge-first.md` - how to keep reusable knowledge shared across all projects. diff --git a/skills/multi-agent-github-coordination.md b/skills/multi-agent-github-coordination.md index 083f02e..b993109 100644 --- a/skills/multi-agent-github-coordination.md +++ b/skills/multi-agent-github-coordination.md @@ -25,8 +25,8 @@ Use this skill when: 2. Read `AGENTS.md`. 3. Read `projects/index.md`. 4. Identify the active project. -5. Read that project's `status.md`, `decisions.md`, `notes.md`, and `agent-log.md`. -6. Search `problems/` and `skills/` for related prior work. +5. Search global knowledge in `skills/`, `problems/`, and `locations/`. +6. Read that project's `status.md`, `decisions.md`, `notes.md`, and `agent-log.md`. ## Handoff Procedure @@ -34,11 +34,13 @@ After meaningful work: 1. Update `projects//status.md`. 2. Append a dated entry to `projects//agent-log.md`. -3. Add any durable decisions to `projects//decisions.md`. -4. Add solved issues to `problems/`. -5. Add reusable procedures to `skills/`. +3. Add project-only decisions to `projects//decisions.md`. +4. Add solved issues and reusable fixes to global `problems/`. +5. Add reusable procedures to global `skills/`. 6. Commit and push the changes. +Do not bury reusable solutions inside a project log. Project logs should point to global entries when a solution may help other projects. + ## Agent Log Entry Format ```markdown @@ -60,4 +62,3 @@ If another agent updated the same file: 2. Order log entries by date and topic. 3. Keep `status.md` focused on current truth, not full history. 4. Move old details to `notes.md` if they are still useful. - diff --git a/skills/repository-memory.md b/skills/repository-memory.md index 6dd11bf..2daa0c3 100644 --- a/skills/repository-memory.md +++ b/skills/repository-memory.md @@ -2,7 +2,7 @@ ## Purpose -Keep durable agent knowledge synchronized in this repository. +Keep durable agent knowledge synchronized in this repository and reusable across projects. ## When To Use @@ -17,11 +17,36 @@ Use this skill whenever an agent: ## Procedure 1. Identify the category: project, problem, skill, or location. -2. Search existing files before creating a new one. -3. Update the most specific existing file when possible. -4. Create a new file only when the knowledge has a new durable topic. -5. Include verification, not just the attempted fix. -6. Keep secrets out of the repository. +2. Decide whether the knowledge is global or project-specific. +3. Store reusable knowledge globally in `skills/`, `problems/`, or `locations/`. +4. Store only project state and handoff context in `projects//`. +5. Search existing files before creating a new one. +6. Update the most specific existing file when possible. +7. Create a new file only when the knowledge has a new durable topic. +8. Include verification, not just the attempted fix. +9. 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; +- next project actions; +- project decisions; +- handoff messages; +- project-only requirements. + +If in doubt, store the durable solution globally and add a short project reference. ## Minimum Problem Record @@ -29,10 +54,10 @@ Every solved problem should include: - date; - project; +- whether the solution is reusable across projects; - environment; - symptoms; - root cause; - solution; - verification; - related files or commands. -