workspace-knowledge-sync
Skill18 starsChanged 3 months agoMITView on GitHub
Syncs knowledge to the agentic-harness knowledge base and AGENTS.md learned facts.
In this repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- reviewSkill
- mcp-auditSkill
- owasp-agentic-reviewSkill
- supply-chain-auditSkill
- threat-modelingSkill
- architecture-diagramSkill
- c4-modelSkill
- aws-well-architected-reviewSkill
- cloud-design-patternsSkill
- assistantSkill
- dev-companionSkill
- onboardingSkill
- output-handshakeSkill
- pr-fallbackSkill
- projectSkill
- workspaceSkill
- dbt-validationSkill
- snowflake-validationSkill
- adrSkill
- agreementSkill
- bugSkill
- decision-logSkill
- development-workflowSkill
- epicSkill
- incidentSkill
- management-unit-assessmentSkill
- meeting-minutesSkill
- planningSkill
- prdSkill
- project-assessment-evidenceSkill
- project-assessmentSkill
- spikeSkill
- taskSkill
- technical-unit-assessmentSkill
- trdSkill
- user-storySkill
- workflow-client-bootstrapSkill
- workflow-generic-projectSkill
- work-itemSkill
- bragSkill
- brag-slimSkill
- design-assessmentSkill
- design-improvementSkill
- figma-code-connect-componentsSkill
- figma-create-design-system-rulesSkill
- figma-create-new-fileSkill
- figma-implement-designSkill
- figmaSkill
- frontend-design-reviewSkill
- frontend-designSkill
- web-design-guidelinesSkill
- fix-merge-conflictsSkill
- gh-address-commentsSkill
- gh-contribution-plannerSkill
- gh-fix-ciSkill
- github-cli-workflowSkill
- gitlab-cli-workflowSkill
- worktreeSkill
- clickup-cliSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 72
Read existing AGENTS.md first.
- Distinctive: line 79
update matching bullets in place
- Distinctive: line 80
add only net-new bullets
- Distinctive: line 82
keep each learned section to at most 12 bullets
- Distinctive: line 83
If the merge produces no AGENTS.md changes, leave AGENTS.md unchanged.
- Very specific: line 85
No hooks, no transcript index, no followup_message — the sync is explicit (manual or via platform-engineer trigger), not hook-driven.
- Very specific: line 126
Keep only these sections: ## Learned User Preferences, ## Learned Workspace Facts
- Distinctive: line 127
No tables, no tags, no frontmatter in these sections
- Distinctive: line 131
Update in place when a bullet already exists with similar meaning
- Distinctive: line 165
Be selective: - Only sync valuable, reusable information
- Distinctive: line 168
Be current: - Update outdated information when found
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Workspace Knowledge Sync
Automatically syncs valuable discoveries, patterns, and decisions to the agentic-harness knowledge base and durable AGENTS.md learned facts.
Purpose
The orchestrator session accumulates knowledge through work. This skill ensures that valuable discoveries don't get lost and are available for future sessions — both in the workspace knowledge base (knowledge/) and as durable learned facts in AGENTS.md.
Inspired by cursor/plugins continual-learning (without hooks — no transcript mining or stop hook).
Trigger Points (Automatic)
The platform-engineer (archived tech-assistant — now inline references/WORKSTATION_OPS.md) will invoke this skill automatically when:
| Situation | What to Sync | Target |
| Discovery of new skill/tool | Skill name, purpose, usage pattern | knowledge/skills/discovered.md |
| New process pattern | Process steps, roles, tools | knowledge/processes/general.md |
| Key decision made | Decision, rationale, outcome | knowledge/learnings/general.md |
| Pending follow-up | Task description, context | knowledge/todos/pending.md |
| User teaches something | Information, preference | Relevant knowledge file |
| Recurring user preference / correction | Plain bullet, durable preference | AGENTS.md → ## Learned User Preferences |
| Stable workspace fact | Plain bullet, durable fact | AGENTS.md → ## Learned Workspace Facts |
How It Works
Knowledge base (agent-toolkit memory)
The skill uses the stable agent-toolkit memory API with --from-skill for origin tracking (harness alias: assistant-memory / bin/assistant-memory):
# Search before adding
agent-toolkit memory search "<query>"
# Add a learning (with origin tracking)
agent-toolkit memory add --type learning --from-skill knowledge-sync "Pattern: <description>"
# Add a skill (with tags)
agent-toolkit memory add --type skill --from-skill knowledge-sync --tags jira,workflow "New skill: <name>"
# Add a pending todo
agent-toolkit memory add --type todo --from-skill knowledge-sync "<description>"Learned facts (AGENTS.md)
For durable, reusable facts that should survive across sessions, update AGENTS.md directly:
- Read existing
AGENTS.mdfirst. If it does not exist, create it with only:## Learned User Preferences## Learned Workspace Facts
- Pull out only durable, reusable items:
- recurring user preferences or corrections
- stable workspace facts
- Update
AGENTS.mdcarefully:- update matching bullets in place
- add only net-new bullets
- deduplicate semantically similar bullets
- keep each learned section to at most 12 bullets
- If the merge produces no
AGENTS.mdchanges, leaveAGENTS.mdunchanged.
No hooks, no transcript index, no followup_message — the sync is explicit (manual or via platform-engineer trigger), not hook-driven.
Knowledge Structure
knowledge/
├── skills/
│ └── discovered.md # New skills found during work
├── processes/
│ ├── jira.md
│ ├── confluence.md
│ └── general.md # Generic process patterns
├── learnings/
│ └── general.md # Key decisions and insights
└── todos/
└── pending.md # Follow-up items
AGENTS.md (workspace root)
├── ## Learned User Preferences # max 12 plain bullets
└── ## Learned Workspace Facts # max 12 plain bulletsLearned Facts — Criteria and Guardrails
Inspired by continual-learning agents-memory-updater (adapted without transcript mining):
Include only:
- Recurring user preferences or corrections (e.g., "Always use feature branches", "Prefer pnpm over npm")
- Stable workspace facts (e.g., "Primary DB is Postgres 16 on host X", "Deploy via Vercel")
Exclude:
- Secrets, private data, tokens, credentials
- One-off instructions or transient details
- Evidence/confidence tags, process instructions, rationale blocks, or metadata
Format:
- Plain bullet points only (
- ...) - Keep only these sections:
## Learned User Preferences,## Learned Workspace Facts - No tables, no tags, no frontmatter in these sections
Limits:
- At most 12 bullets per section; deduplicate semantically similar bullets
- Update in place when a bullet already exists with similar meaning
Manual Usage
You can also trigger this skill manually:
User: "Save that pattern for later"
Assistant: → Use knowledge-sync to preserve the pattern
User: "Remember I prefer pnpm and conventional commits"
Assistant: → Append to knowledge/learnings/general.md and AGENTS.md ## Learned User PreferencesIntegration with platform-engineer (formerly tech-assistant)
The platform-engineer (archived tech-assistant → references/WORKSTATION_OPS.md) checks for these automatic sync opportunities:
- After task creation/update → Sync initiative info
- After discovering space/list IDs → Sync to knowledge base (per
knowledge-sync). - After learning user preferences → Sync to learnings +
AGENTS.mdlearned facts (if durable) - When user mentions follow-up → Add to pending
- After stable workspace facts emerge → Sync to
AGENTS.md## Learned Workspace Facts
Best Practices
- Be selective - Only sync valuable, reusable information
- Be specific - Include context and usage examples
- Be concise - One idea per entry, link to details
- Be current - Update outdated information when found
- Be durable - AGENTS.md facts must be reusable across sessions, not transient
Examples
Auto-sync discovery
Assistant discovers Initiative list IDs for all Technology spaces
→ Syncs to knowledge/processes/clickup/spaces/Auto-sync key decision
Assistant and user decide on naming convention
→ Syncs to knowledge/learnings/general.mdLearned fact — user preference
User repeatedly corrects: "use pnpm, not npm"
→ Assistant adds to AGENTS.md:
## Learned User Preferences
- Use pnpm for JS package managementLearned fact — workspace fact
Workspace uses Postgres 16 with vector extension on host db.internal
→ Assistant adds to AGENTS.md:
## Learned Workspace Facts
- Postgres 16 with pgvector on db.internalManual sync request
User: "Remember that we always use feature branches"
→ Assistant syncs to knowledge/processes/general.md and AGENTS.md ## Learned User PreferencesConfiguration
The skill uses these environment variables:
| Variable | Default | Purpose |
KNOWLEDGE_BASE_PATH | ~/.ai-workspace/knowledge | Knowledge base root |
Base directory: ~/.local/share/knowledge-sync (installer path; ~/.local/share/agent-toolkit/ when using toolkit install)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

