# Manage Context Like Code (GitHub for Context)
<!--
ref: @knowledge/frameworks/manage-context-like-code
type: framework
tags: [context management, AI governance, skills repository, version control]
triggers: [multiple teams contributing to context, agents evolving independently, skills drifting and going stale, ownership ambiguity in skill quality]
trigger_prompt: When an organization is scaling its AI capabilities and needs a structured approach to manage shared context across multiple teams and agents.
version: 2
updated_at: 2026-07-18T22:56:20.206Z
-->

As an organization's agent context (skills, playbooks, semantics) scales, it develops the same problems as a codebase and needs the same disciplines — versioning, dependency management, ownership, quality control, and security posture.

*Synthesized from Prukalpa Sankar, WTF Is the Context Layer? (AI Engineer World's Fair 2026).*

**The model.** Treat units of context (skills, semantic definitions, playbooks) as code artifacts in a shared repository rather than as ad-hoc prompt material. At scale (one team reported ~300 skills and 40 agents built in 6 months) context acquires software failure modes and therefore needs software governance: lifecycle management, versioning, dependency management, clear ownership (approver / maintainer / contributors), quality management, and security-posture management — a "GitHub for context."

**When to apply.** Any organization moving past a handful of hand-tuned agents into a shared context layer that multiple teams contribute to and multiple agents consume.

**The failure modes it addresses.** Dependency breakage — a competitive-intel skill feeds category-positioning which feeds sales-battle-cards; each evolves independently and silently breaks downstream consumers, and skills drift and go stale. Ownership ambiguity — no one clearly owns skill quality. Security/governance — secrets hardcoded in .env files and indiscriminate downloading of public skill repos. Sprawl — agents each keep their own memory and learn separately, so there is no single source of truth.

**Complementary mechanism.** Pair the repository with a self-improving loop: a specialized harness reads agent traces and reverse-constructs proposed improvements back to a human maintainer for approve/reject/improve, turning every interaction into compounding, governed context rather than trapped, divergent memory.

---

*Related: `@content/youtube/yifan-bth/how-to-prompt-cursor-windsurf-copilot-to-get-reliable-output` · `@content/youtube/yifan-bth/unlocking-cursor-ai-top-8-hidden-features` · `@content/youtube/yifan-bth/how-i-use-ai-git-to-code-3x-faster-real-dev-workflow-with-cursor` · `@content/youtube/yifan-bth/windsurf-vs-cursor-in-depth-ai-code-editor-comparison` · `@content/youtube/yifan-bth/the-complete-claude-code-workflow-90-skip-this`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*