Skip to main content
  1. Data Science Blog/

Where Does Knowledge Live? Rules, Skills, Tools, and AI Employees — From the Dev Desk to the Operations Floor

·5210 words·25 mins· loading · ·
Artificial Intelligence Developer Tools Business & Career Software Architecture AI Coding Assistants Knowledge Management AI Governance Digital Workforce Cursor IDE Quality Management Organizational Design Agentic AI

Where Does Knowledge Live?

Where Does Knowledge Live?
#

A Knowledge Architecture for AI Workers


The problem nobody talks about yet
#

You pair-program with an AI assistant for three hours. It finally understands your PST parsing quirks, your test conventions, and why Phase 1 must not touch Postgres yet. You close the laptop. Next morning, it has forgotten everything that lived only in chat.

Or worse: you did write instructions—in a README, a Cursor Rule, a personal note, and a Skill—and now the assistant follows one on Monday and contradicts another on Tuesday.

This is not a model intelligence problem. It is a knowledge architecture problem.

For decades, teams argued about where information should live: comments, wikis, Confluence, ADRs, runbooks, lint configs. AI coding assistants add a new layer—not because the knowledge is new, but because the retrieval model changed. The assistant does not browse your wiki. It receives a composed context window every session: system instructions, project rules, open files, tool outputs, and whatever you explicitly attach.

If you are a solo developer learning tools like Cursor, Claude Code, or Copilot Workspace, you feel this immediately. If you are a Knowledge Manager, Quality Manager, tech lead, or CISO preparing for org-wide adoption, the same confusion appears at enterprise scale—except now it affects compliance, consistency, and audit trails.

This article gives you a practical taxonomy from two angles:

  1. The development environment — how solo developers and engineering teams configure AI coding assistants (Cursor, Claude Code, Copilot, etc.)
  2. The operations environment — how organizations deploy AI for business efficiency using terms like AI employee, digital worker, agent registry, skills, rules, and tools

Same words. Related ideas. Different containers. Confusion starts when teams treat them as unrelated vocabularies instead of one knowledge architecture seen from two seats.


Who this is for
#

ReaderWhat you will take away
Solo developerA clear starter layout so your assistant improves session over session
Tech / engineering leadA vocabulary for code review of .cursor/ and agent config
Operations / process ownerHow deployed AI workers map to SOPs, policies, and system access
Knowledge ManagerHow AI context maps to taxonomy, single source of truth, and curation
Quality ManagerWhere procedures, verification gates, and standards should live
HR / workforce plannerWhy “AI employee” is a governance label—and what to register
Security / complianceWhat gets injected into prompts vs what stays in controlled docs
Executives evaluating AI toolsWhy licensing alone is not a knowledge strategy

I use Cursor as the teaching example for the dev angle because it exposes these layers explicitly—Rules, Skills, MCP Tools, subagents, hooks. For the operations angle, I use language already appearing in enterprise AI platforms, vendor literature, and workforce governance discussions. The principles transfer even when product vocabulary differs.


Two angles, one architecture
#

The same conceptual stack appears in both worlds:

flowchart LR subgraph Dev["Development environment"] DR[Project Rules] DS[Skills / SOPs] DT[Tools / MCP] DA[Subagents] DL[Learn notes] DD[docs/] end subgraph Ops["Operations environment"] OR[Policies / Guardrails] OS[Skills / Workflows] OT[Tool integrations] OA[AI Employees / Agents] OL[Knowledge base / lessons learned] OD[Procedures / specifications] end DR -.->|same role| OR DS -.->|same role| OS DT -.->|same role| OT DA -.->|same role| OA DL -.->|same role| OL DD -.->|same role| OD
Conceptual layerDev environment (Cursor et al.)Operations environment (deployed AI)
IdentityMain chat agent + named subagentsAI employee / agent definition in registry
Always-on constraintsProject Rules (.mdc)Policy guardrails, compliance rules, brand tone
On-demand procedureSkills (SKILL.md)Workflow skills, playbooks, orchestration steps
System accessTools, MCP, terminalCRM, ERP, email, database, API connectors
Delegated workerSubagent (explore, custom agent)Agent instance handling a case or queue item
Operational wisdom.cursor/learn/Curated KB articles, exception handling notes
Deep referencedocs/, ADRsSOP library, policy manuals, product specs
Lifecycle hooksSession / tool hooksEvent triggers (ticket opened, EOD batch)
Governance recordGit-reviewed .cursor/Agent registry, access matrix, audit log

The insight: when a vendor says “give your AI employee new skills,” they mean the same thing Cursor means by Skills—procedural capability loaded for a matching task—not HR competencies in the human sense. When they say “rules,” they mean non-negotiable constraints, not “rules engine” business logic (though that can overlap).

Organizations that connect these two columns early avoid the most common enterprise failure mode: developers build beautiful agent config in repos while operations deploy duplicate, ungoverned AI workers in SaaS platforms—with no shared taxonomy.


The core insight: layers, not one brain
#

An AI coding assistant is not a colleague with perfect recall. It is a stack of context layers with different lifetimes, scopes, and invocation models:

LayerLoaded whenChanges how oftenBest for
User preferencesEvery session, all projectsRarelyCommunication style, personal workflow taste
Project rulesEvery session in that repoOccasionallyStable conventions: tooling, layout, standards
SkillsWhen the task matches the skill descriptionAs workflows evolveMulti-step procedures: “how to do X”
Tools / MCPAlways available; invoked on demandWhen integrations changeActions: run tests, query DB, fetch docs
Agents / subagentsSpawned for a subtaskPer delegationIsolated exploration, specialized workers
HooksOn lifecycle eventsRarelyDeterministic reminders at session start/end
Learn / domain notesRead when relevantOften (discoveries)Facts you learned by operating the system
Project docsRead when relevantPer feature / planSpecs, architecture, human narrative

The debate is not “which layer is best.” It is which layer owns which kind of information.

Think of it the way KM teams already think about content types:

  • Policy → always applies → Rules
  • Procedure (SOP) → apply when doing a named activity → Skills
  • Capability → something the system can execute → Tools
  • Delegated task → assign to a specialist → Agents
  • Lessons learned → accumulated operational knowledge → Learn / wiki distillates
  • Reference / specification → deep narrative → Docs

Once you see the mapping, governance becomes familiar instead of exotic.


Define the primitives
#

1. Rules — “Always true here”
#

What they are: Persistent instructions injected into the assistant’s context—often on every message, or whenever certain files are open.

Cursor example: .cursor/rules/*.mdc files with YAML frontmatter (alwaysApply: true or globs: **/*.py).

Analogues elsewhere:

Product / conceptRough equivalent
CursorProject Rules (.mdc)
Claude CodeCLAUDE.md, project instructions
GitHub Copilot.github/copilot-instructions.md
GenericLint config + “team handbook” excerpts

Good fit for Rules:

  • Folder layout and tooling (“use UV, not pip”)
  • Coding standards for matching file types
  • Scope boundaries (“Phase 1 does classification only; Postgres is Phase 3”)
  • Pointers to where other knowledge lives (“record discoveries in .cursor/learn/”)

Poor fit for Rules:

  • Long multi-step workflows (“when debugging, do steps 1–12…”)
  • Volatile facts discovered last week (“99% of PST bodies are empty”)
  • Personal writing preferences (belongs in user-level preferences)

Example (from a real project):

# AutoTradeBooking Project Conventions

## Tooling

- Use **UV** for dependency and virtualenv management.
- Run commands: `uv run <command>`.

## Folder Layout

| Path | Purpose |
| docs/ | Design, plans, notes |
| .cursor/rules/ | Cursor agent rules |
| .cursor/learn/ | Domain learnings and operational notes |

That is textbook Rule material: short, stable, universally relevant in that repository.

Design principle: If removing it would cause the assistant to violate project norms on most tasks, it is a Rule. Keep rules thin. They compete for the same context window as your code, chat history, and tool output.

For Quality Managers: Rules are your standards layer—the equivalent of ISO/clinical SOP “always applicable” clauses, but scoped to how work is performed in this codebase.

For Knowledge Managers: Rules should reference, not duplicate, canonical docs. One fact, one home.


2. Skills — “When you are doing X, follow this procedure”
#

What they are: Markdown playbooks loaded when the user’s task matches the skill’s description. They encode process, often with checklists, gates, and explicit “stop until approved” steps.

Cursor example: SKILL.md files in ~/.cursor/skills/ (personal) or .cursor/skills/ (project-shared).

Analogues:

ConceptEquivalent
Enterprise KMStandard Operating Procedure (SOP)
Quality systemsWork instruction with verification steps
Software deliveryRunbook triggered by incident type

Good fit for Skills:

  • “Brainstorm before building anything creative”
  • “Debug systematically before proposing a fix”
  • “Create a PR: gather diff, draft summary, run test plan checklist”
  • “Summarize uncommitted work, commit with proper message, push”
  • Team ceremonies with steps and stop conditions

Poor fit for Skills:

  • Static facts about the codebase (use Learn or docs)
  • Universal conventions (use Rules)
  • One-line preferences

Rules vs Skills — the distinction that matters:

RulesSkills
TriggerAutomatic (always or file glob)Intent-based (“user wants a PR”)
ContentConstraints and conventionsProcedures and decision trees
Typical sizeSmall (dozens to low hundreds of words)Can be longer (loaded only when needed)
Example“Use UV”“Before claiming done, run verification checklist”

Design principle: Skills are lazy-loaded expertise. They save context and encode how work flows, not what the system is.

For Quality Managers: Skills are where verification gates belong: “do not mark complete until tests pass,” “require human approval before deploy,” “run regression checklist for payment modules.” This is directly analogous to QMS work instructions with mandatory checkpoints.

For Knowledge Managers: Skills are procedural assets. They need owners, version history, and periodic review—same as any SOP library.


3. Tools — “I can perform this action”
#

What they are: Callable capabilities—the assistant’s hands. Shell commands, file read/write, browser automation, MCP servers (database query, live API docs, issue trackers).

Analogues:

LayerEnterprise parallel
Built-in tools (read file, run terminal)Employee access to systems
MCP integrationsApproved API connectors
Tool schemasAPI contracts

Good fit for Tools:

  • Query live database schema
  • Fetch current library documentation
  • Run tests, open pull requests
  • Search indexed codebase

Poor fit for Tools:

  • “Our API returns 404 when…” (that is Learn/docs)
  • “Always run tests before commit” (Rule or Skill)

Common mistake: stuffing procedural knowledge into tool descriptions. Tool schemas should describe what the tool does and its parameters. Workflows belong in Skills.

For Security / compliance: Tools define what the agent can touch. Tool allowlists are the new access-control matrix. If an agent can run shell commands and reach production credentials, your tool policy is your security policy.


4. Agents / subagents — “Delegate this subproblem”
#

What they are: Separate context windows with specialized system prompts—spawned to explore, review, run shell tasks, or perform other focused work without polluting the main conversation.

Cursor example: Built-in subagent types (explore, shell, code-reviewer, docs-researcher) and custom agents in .cursor/agents/.

Analogues:

ConceptParallel
SubagentContractor with a narrow brief
Main agentProject lead who integrates results
Custom agent fileJob description + authority limits

Good fit for Agents:

  • Broad codebase search without flooding main chat
  • Parallel independent tasks (explore module A while main thread implements B)
  • Read-only exploration vs write-capable main thread
  • Code review with a fresh, focused lens

Poor fit for Agents:

  • Storing team conventions (Rules)
  • Repeatable user-facing workflows the main agent should follow (Skills)

Design principle: Agents trade context isolation for coordination overhead. Use them when the main thread would drown in exploration output.

For Knowledge Managers: Subagents are temporary workers, not knowledge stores. What they learn must be written back to Learn, docs, or Rules—or it evaporates when the subagent session ends.


5. Hooks — “On event E, do F”
#

What they are: Lifecycle automation—session start, before/after tool use, commit events, etc.

Good fit:

  • Inject lightweight reminders at session start
  • Enforce deterministic checks at known points

Poor fit:

  • Replacing Skills or Rules
  • Complex semantic decisions (“figure out if this needs a PR”)

Design principle: Hooks are syntactic triggers, not semantic understanding. Use them for reliable nudges, not workflow logic.


6. Learn / domain notes — “We discovered this the hard way”
#

What they are: Curated operational facts from running the system—often in .cursor/learn/ or equivalent.

Example (from a real email-classification project):

## PST File quirks

- ~3.2 GB archive, ~3,333 messages.
- `plain_text_body` is often empty; most classification relies on
  subject + headers + attachments.
- Many attachments use TNEF (`winmail.dat`); filenames often only in
  transport headers.

No linter would tell you that. No README reader needs it on day one. But every classification bug eventually points here.

Good fit for Learn:

  • Data source quirks and edge cases
  • Integration oddities not visible in code
  • “We tried X; it failed because Y” distillates
  • Classification strategy rationale after experiments

Poor fit for Learn:

  • Step-by-step deploy procedure (Skill or docs)
  • Universal coding standard (Rule)

For Knowledge Managers: Learn is your lessons-learned register—short, actionable, linked from Rules (“when working on PST parsing, read .cursor/learn/project-context.md”). Promote stable lessons into docs; demote outdated ones.

For Quality Managers: Learn captures non-conformance insights and root-cause knowledge that prevents repeat defects.


7. Project docs — “Read the spec when building the feature”
#

What they are: Architecture documents, implementation plans, ADRs, API specs—typically in docs/.

Good fit:

  • Multi-phase roadmaps (e.g., “v3 unified pipeline with Postgres”)
  • Feature design with trade-offs
  • Narrative a new engineer (human or AI) needs for big-picture understanding

Poor fit:

  • “Use 2-space indent in Python” (Rule)

The tension: Docs are often too long to inject always. The pattern:

  1. Rules say where docs live and when they matter
  2. Skills say which doc to read for which task
  3. Learn holds distilled operational facts extracted from docs and production

For Knowledge Managers: Docs remain the system of record for specifications. Agent config is the routing layer that tells assistants when and how to consume them.


The operations angle: AI employees in production
#

Everything above describes the developer’s workbench—configuring an assistant that helps you write code. But organizations deploying AI for operational efficiency use strikingly similar vocabulary:

  • “Hire an AI employee to handle invoice intake.”
  • “Add a new skill for contract review.”
  • “Update the rules so it never sends external email without approval.”
  • “Connect tools to Salesforce and SharePoint.”

These are not metaphors floating free from the dev stack. They are the same architectural layers, deployed as production workers instead of pair-programming partners.

What “AI employee” actually means
#

AI employee (also: digital worker, AI agent, virtual analyst) is an organizational label for a deployed agent with a defined role—not a legal employment status, and not magic autonomy.

In governance terms, distinguish two things most vendors blur together:

TermWhat it isDev parallel
Agent definitionThe job blueprint: role, skills, rules, tools, knowledge sources, KPIsCustom agent file + repo Rules/Skills
Agent instanceA running worker handling a specific case, batch, or queueA spawned subagent session or CI job run

A human analyst is one person. An Invoice Processing Agent definition may spawn one instance per invoice at month-end, or a thousand during peak load. You improve the definition once; every future instance inherits the update. That scaling model is why operations teams reach for HR language—and why HR, IT, and KM must collaborate on the registry, not leave it to whichever team bought the SaaS tool.

If you want the executive framing of agent definitions, instances, and registries, see AI Agents as First-Class Citizens on this blog. This post is the knowledge-layer companion to that workforce governance story.

Operations mapping: term by term
#

Rules in operations = guardrails, not business rules engines
#

In production AI, Rules are always-on constraints the worker must not violate:

  • Never disclose customer PII in external channels
  • Escalate transactions above ₹10 lakh to a human approver
  • Use formal tone for regulator-facing drafts; casual tone internal only
  • Do not execute payments; only prepare payment files
Dev RulesOps Rules
Stored as.cursor/rules/*.mdcGuardrail config, policy packs, system prompt constraints
Owned byEngineering / tech leadCompliance, Legal, Quality, Risk
Review cyclePR reviewPolicy review board, change control
Failure modeBad code, wrong patternsRegulatory breach, brand damage, unauthorized action

For Quality Managers: Ops Rules are your non-negotiables—the AI equivalent of “must” clauses in a QMS. They should be short, testable, and auditable. Put multi-step verification in Skills, not Rules.

Skills in operations = workflows and competencies (loaded on demand)
#

Vendor marketing uses skills for everything from “can summarize PDFs” to “runs month-end close.” Architecturally, a Skill is still: when task type X, follow procedure Y.

Examples in operations:

Skill nameTriggerProcedure outline
Invoice intakeNew PDF in AP inboxOCR → validate vendor → match PO → route exceptions
Contract clause reviewLegal uploadExtract clauses → compare to playbook → flag deviations
Customer complaint triageTicket openedClassify severity → search KB → draft response or escalate
Capital call preparationFund event scheduledPull positions → validate LP list → generate notices → queue human sign-off
Dev SkillsOps Skills
Stored asSKILL.md playbooksWorkflow templates, orchestration graphs, prompt chains
Owned byTeam leads, senior devsProcess owners, KM, Quality
TriggerIntent match in chatEvent, schedule, queue, API webhook
IncludesChecklists, stop gatesApproval steps, SLAs, escalation paths

For Knowledge Managers: Ops Skills are SOPs with execution semantics. They need version numbers, owners, and obsolescence dates—exactly like human-facing procedures. The difference is an AI Skill is invoked, not merely read.

Tools in operations = system integrations (the access matrix)
#

An AI employee without tools is an intern without login credentials—full of intent, unable to act.

Tool categoryExamplesGovernance question
Read-onlySearch SharePoint, query reporting DBWhat data can it see?
Write-limitedCreate draft email, open ticketWhat can it prepare but not send?
ExecutePost journal entry, send customer SMSWho approves? What is logged?
ExternalWeb search, third-party APIsData residency, vendor risk
Dev ToolsOps Tools
ExamplesShell, file read, MCP PostgresSalesforce, SAP, ServiceNow, Outlook
RiskProduction credentials in terminalOver-broad CRM access, mass email
ControlTool allowlist in IDEIAM roles, service accounts, approval gates

For Security / CISO: The tool matrix for AI employees is IAM for non-human workers. If you would not give a junior hire full admin on the ERP, do not attach that tool to a production agent.

Knowledge in operations = what the worker is allowed to “know”
#

Operations teams bundle knowledge under many names—knowledge base, RAG corpus, grounding data, playbooks, policies ingested. Architecturally, split it the same way as in dev:

Knowledge typeOps equivalentDev equivalent
Stable referenceProduct catalog, policy manual, SOP librarydocs/
Discovered exceptions“Vendor X invoices always missing PO line”.cursor/learn/
Session contextThis customer’s open tickets, today’s batchOpen files, @-mentions
Retrieved at runtimeSemantic search over ConfluenceCodebase index, @docs

For Knowledge Managers: Your taxonomy work does not disappear—it intensifies. You are now maintaining knowledge for human retrieval and machine retrieval simultaneously. Single source of truth matters more, not less, because the agent will not “ask a colleague” when the wiki is ambiguous.

Agents / AI employees = the worker, not the storage
#

An AI employee is the runtime identity that combines Rules + Skills + Tools + Knowledge for a purpose. It is not where you store procedures—that remains Skills and docs.

Think of the relationship:

Agent Definition (the "role")
├── Rules        → guardrails always active
├── Skills       → procedures invoked by task type
├── Tools        → systems it may touch
├── Knowledge    → corpora it may retrieve
├── Owner        → accountable human
└── KPIs         → accuracy, latency, cost per task, escalation rate

Instances are that definition applied to real work: one invoice, one fund, one support ticket.

DevOps
Definition.cursor/agents/reviewer.md + repo rulesRegistry entry: “AP Invoice Agent v2.3”
InstanceSubagent exploring one moduleWorker processing invoice #88421
SupervisorYou, in chatProcess owner, human-in-the-loop approver
Audit trailGit history, terminal logsAgent registry logs, tool call audit, output archive

An operations example: accounts payable AI employee
#

Compare the same logical layers in dev vs ops:

LayerDeveloper building AP automation codeOperations deploying AP AI employee
Rule“Never commit credentials; use .envvar“Never pay vendors; only create draft payment batches”
Skill“Debug failing parser” skill“Invoice intake” workflow with OCR → validate → route
ToolRead PDF, write CSV, query PostgresRead Outlook, write to ERP staging table, open ServiceNow ticket
Learn“TNEF attachments hide filenames”“Vendor Acme sends credit notes without PO reference”
Docsdocs/ap-loader-design.mdAP SOP v4.2, vendor master data dictionary
AgentCoding assistant helping you build the loader“AP Intake Agent” processing live invoices

Same architecture. Different runtime. The KM and Quality teams governing the right column should recognize the left column when engineering ships it.

Who owns what in operations
#

FunctionDev environmentOperations environment
Engineering.cursor/rules, repo Skills, MCP setupAgent implementation, tool wiring, monitoring
Knowledge ManagementLearn curation, docs taxonomyKB/RAG corpus, SOP library, promotion workflow
QualityVerification Skills, test gatesOutput sampling, accuracy KPIs, non-conformance handling
Compliance / LegalSecurity Rules in repoGuardrails, retention, regulator-facing constraints
Process ownerProduct/tech lead scopeDefines Skills, approves agent behavior, owns KPIs
HR / workforce(usually minimal)Agent registry, ownership model, “digital workforce” policy
IT / SecurityDev tool allowlistsProduction IAM, service accounts, audit logging

The org chart argument: if you already have roles for policy (Legal), procedure (Quality/KM), and access (IT), AI employees extend those roles—they do not replace them with “the AI team.”

When dev config and ops deployment should meet
#

The healthiest organizations deliberately link the two environments:

  1. Skills authored once — A procedure validated in operations becomes a Skill in the repo that engineers use when maintaining the agent code.
  2. Learn ↔ incident loop — Production exceptions feed .cursor/learn/ or ops KB; fixes propagate to both.
  3. Rules aligned — Compliance guardrails in production match what engineers see when modifying agent behavior.
  4. Registry ↔ repo — Agent definition in the enterprise registry points to the Git repo version that implements it.

Without these links, you get shadow AI: operations runs an AI employee built in a no-code platform while engineering maintains a different version in code—and neither team shares vocabulary.


Decision flowchart: one question at a time
#

Use this when adding new information:

flowchart TD Q1{Must every session
in this project know this?} Q2{Is it a multi-step
workflow with gates?} Q3{Is it an action on
systems or files?} Q4{Is it isolated exploration
that would flood main chat?} Q5{Was it discovered by
operating the system?} Q6{Is it a large spec or
architecture narrative?} Q1 -->|Yes| R[Rule or user preference] Q1 -->|No| Q2 Q2 -->|Yes| S[Skill] Q2 -->|No| Q3 Q3 -->|Yes| T[Tool / MCP integration] Q3 -->|No| Q4 Q4 -->|Yes| A[Agent / subagent] Q4 -->|No| Q5 Q5 -->|Yes| L[Learn / domain notes] Q5 -->|No| Q6 Q6 -->|Yes| D[docs/] Q6 -->|No| C[Probably belongs in code or tests]

Quick heuristics:

If you find yourself saying…Put it in…
“We always…”Rule
“When doing X, first… then… finally…”Skill
“Call the API to…”Tool
“Go investigate without cluttering this chat”Agent
“We learned yesterday that…”Learn
“Here is the 20-page design”docs/

Priority and conflicts: who wins?
#

Real systems stack layers with explicit precedence:

  1. User’s explicit instruction in chat — highest
  2. User-level preferences — personal, cross-project
  3. Project rules — repository-specific
  4. Skills — procedural overrides for matched tasks
  5. Default model behavior — lowest

Anti-pattern: the same instruction copied into Rules, Skills, README, and user preferences. When they drift, the assistant “follows” inconsistently—and users blame the model.

Single source of truth rule: Each fact or procedure has one canonical home. Other layers reference it:

  • Rule: “Follow the brainstorming skill before creative work.”
  • Skill: “Read docs/atb-v3-plan.md before database schema changes.”
  • Learn: “PST bodies are usually empty—see classifier docs for scoring implications.”

For Knowledge Managers: This is classic content governance—avoid duplicate authoritative sources, maintain clear ownership, define promotion path (Learn → docs → training material).


A concrete layering example
#

Consider a project that processes email archives for trade-booking data:

InformationWhere it livesWhy
Use UV, folder layoutProject RuleAlways relevant
Phase 1 scope (Y/N classification)Project RulePrevents scope creep
PST body usually emptyLearnDiscovered operational fact
v3 Postgres migration plandocs/Large spec, read on demand
“Brainstorm before building”SkillProcedure, intent-triggered
Run pytestTool (shell)Action
Search codebase broadlyexplore subagentIsolated context
Commit message formatUser preference or SkillPersonal vs team choice

That is a working architecture—not perfection, but intelligible boundaries. A new team member—or a new assistant session—can navigate it.


From solo developer to organization
#

Phase 1: Solo — learn by doing (where you are now)
#

Start minimal:

your-repo/
├── .cursor/
│   ├── rules/
│   │   └── project-conventions.mdc    # thin, always apply
│   └── learn/
│       └── project-context.md         # append as you discover quirks
├── docs/
│   └── feature-plans.md               # specs you actually reference
└── README.md                          # human onboarding only

Habits that compound:

  1. When the assistant makes a repeatable mistake, ask: Rule, Learn, or Skill?
  2. After a long debugging session, spend five minutes updating Learn—not chat.
  3. Before a multi-day feature, write a short plan in docs/; add a Rule line pointing to it.
  4. When you formalize a workflow you use weekly, promote it to a Skill.

You do not need a committee. You need one canonical place per fact.

Phase 2: Small team — shared repo config
#

Add:

.cursor/
├── rules/           # reviewed in PR like code
├── skills/          # team SOPs for agent-assisted work
└── learn/           # curated, not a dump

PR checklist additions:

  • New instruction not duplicated elsewhere?
  • Rule still under ~100 lines?
  • Skill has clear description for when it triggers?
  • Learn entry dated and sourced?

Phase 3: Organization — governance without killing speed
#

At this stage, most companies have both a dev environment (engineers configuring assistants in repos) and an operations environment (business units deploying AI employees in production). Governance must cover both.

FunctionDev environmentOperations environment
EngineeringOwn Rules and Skills in repos; MCP allowlistsAgent implementation, monitoring, registry linkage
Knowledge ManagementTaxonomy, deduplication, Learn → docsKB/RAG corpora, SOP library, single source of truth
QualityVerification Skills, test gatesOutput sampling, KPIs, non-conformance loops
SecurityDev tool/MCP approvalProduction IAM, service accounts, audit trails
Process ownersScope and acceptance criteriaSkill/workflow ownership, human approval gates
HR / workforceAgent registry, ownership, digital workforce policy
L&D / enablementTraining on where to put knowledgeTraining on human–AI handoffs, escalation

Enterprise patterns that already exist:

AI layerTraditional equivalentDev exampleOps example
RulesPolicy snippets, standards“Use UV, not pip”“Never send external email without approval”
SkillsSOPs, work instructions“Create PR” checklist“Invoice intake” workflow
ToolsSystem access matrixShell, MCP PostgresSalesforce, ERP, Outlook
AgentsDelegated work packagesexplore subagentAP Intake Agent instance
LearnKnown-error databasePST body usually emptyVendor Acme omits PO line
docsSpecifications repositoryv3 Postgres planAP SOP v4.2

You are not inventing governance from scratch. You are extending it to a hybrid workforce—and aligning the dev bench with the operations floor.


Mapping products to the wider market
#

Cursor is useful pedagogically for the dev angle because the layers are visible. Operations platforms (enterprise agent builders, iPaaS orchestrators, vertical SaaS with “AI employees”) expose the same layers under different names:

ConceptDev (Cursor)Ops (typical enterprise)General idea
Always-on constraintsRules (.mdc)Guardrails, policy packsNon-negotiable boundaries
On-demand procedureSkills (SKILL.md)Workflow skills, playbooksSOP invoked by task type
ActionsTools, MCPCRM/ERP/email connectorsSystem access
Worker identitySubagents, custom agentsAI employee / agent definitionRole with scoped authority
Runtime workerSubagent sessionAgent instanceOne unit of work
Operational facts.cursor/learn/KB exceptions, curated notesLessons from production
Specificationsdocs/SOP library, policy manualsSystem of record
GovernanceGit-reviewed configAgent registry, audit logWho owns what

If your organization’s tool lacks “Skills” today, you can approximate them with named prompt templates and checklists in docs—but you will feel the pain of no lazy loading. That is worth mentioning in tool evaluations.


Failure modes (and what to do)
#

SymptomLikely causeFix
Assistant ignores conventionsBuried in docs, not RulesPromote to Rule or add Rule pointer
Slow, forgetful sessions50-page Rule or always-on SkillSplit; move procedure to Skill
Wrong workflow appliedVague Skill descriptionRewrite description with trigger phrases
Same mistake every weekFact only in old chatAdd to Learn; link from Rule
Main chat unusable after explorationShould have used subagentDelegate search to explore agent
Contradictory behaviorDuplicated instructionsDelete duplicates; one source of truth
Compliance anxietySecrets in RulesMove secrets to vault; tools use env vars
Dev and ops use different terms for same layerNo shared taxonomyAdopt unified mapping; link registry to repo
Production agent behaves unlike dev assistantConfig drift between environmentsVersion agent definition; align Rules and Skills
“AI employee” deployed without ownerAccountability gapRegister in agent registry with named steward

For Quality Managers: Treat “assistant ignored the checklist” as a process failure, not a people failure—in both environments. Was the checklist in a Skill? Was the Skill description matchable? Was verification tool-gated or honor-system? Did operations deploy a different version than engineering tested?


What not to do
#

  1. Do not put everything in Rules. Context bloat degrades every task.
  2. Do not treat chat as memory. Transcripts are ephemeral; repos are durable.
  3. Do not duplicate README content in Rules. README is for humans onboarding; Rules are for agent constraints. Cross-link.
  4. Do not skip Learn because “we will fix the code.” Code does not capture why the workaround exists.
  5. Do not deploy org-wide Skills without owners. Unowned SOPs rot—human or AI-facing.
  6. Do not assume the model " figured it out once." If it mattered, write it down in the right layer.

A starter template you can copy
#

---
description: [One line: what this rule enforces]
alwaysApply: true
---

# [Project] Conventions

## Tooling

- [Package manager, test runner, deploy tool]

## Layout

| Path | Purpose |
| docs/ | Specifications and plans |
| .cursor/rules/ | Always-on agent constraints |
| .cursor/learn/ | Operational discoveries |

## Scope

- [What this project phase includes and excludes]

## Pointers

- Before creative features: use `[skill-name]` skill
- Domain quirks: read `.cursor/learn/project-context.md`
- Architecture: read `docs/[main-plan].md`

Create matching empty files on day one. Grow them deliberately.


Closing: the goal is not more instructions
#

The goal is the right instruction at the right time—whether the worker is a coding assistant at your desk or an AI employee processing invoices overnight.

Solo developers feel this as fewer “why did it forget?” moments. Organizations feel it as auditability, onboarding speed, and consistent quality when dozens of people—and dozens of agent sessions, and dozens of production instances—touch the same knowledge.

AI did not create the need for knowledge architecture. It surfaced it in two places at once: the repo where engineers configure assistants, and the operations floor where business units deploy AI workers. The vocabulary overlaps—Rules, Skills, Tools, Agents, AI employees—and that overlap is a feature, not a coincidence. It is one architecture viewed from two seats.

Rules are policy. Skills are procedures. Tools are capabilities. Agents and AI employees are workers with scoped authority. Learn and knowledge bases are wisdom from operations. Docs are the record.

Get the boundaries right—and align dev with ops—and the system stops being a brilliant amnesiac. It starts behaving like infrastructure your hybrid workforce can actually rely on.


Further reading on dasarpai.com
#

If this topic connects to your broader AI practice, these posts from the same blog series may help:


Related

Beyond AI Coding: How AI is Becoming a Knowledge Compiler for Software Engineering
·1192 words·6 mins· loading
Artificial Intelligence Software Architecture Business & Career Industry Applications AI for Software Development Software Engineering Enterprise AI Artificial Intelligence Knowledge Management Business Analytics AI Governance Future of Software Development
Beyond AI Coding: How AI is Becoming a Knowledge Compiler for Software Engineering # For the last …
From Eigenvalues to Singular Value Decomposition — How a Matrix Reveals Its Natural Directions, Strengths, and Hidden Simplicity
·4131 words·20 mins· loading
Mathematics Machine Learning Research & Academia Mathematics Mathematics for Machine Learning Mathematics for AI Applied Mathematics Machine Learning Fundamentals Dimensionality Reduction Machine Learning
From Eigenvalues to Singular Value Decomposition # How a matrix reveals its natural directions, …
One Word, Many Meanings: Understanding Every Kind of Product in Linear Algebra and Quantum Computing
·3877 words·19 mins· loading
Mathematics Machine Learning Research & Academia Mathematics Mathematics for Machine Learning Mathematics for AI Quantum Computing Machine Learning Fundamentals Applied Mathematics Machine Learning
One Word, Many Meanings: Understanding Every Kind of Product in Linear Algebra and Quantum …
Quantum Measurement, Randomness, and Everyday Technology
·777 words·4 mins· loading
Interdisciplinary Topics Research & Academia Quantum Physics Quantum Mechanics Quantum Computing Interdisciplinary Topics
Quantum Measurement, Randomness, and Everyday Technology # This is Part 2 of Learning Quantum …