<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/from-static-to-dynamic-skills-a-different-model-for-agent-knowledge-rdobti9x0" -->

---
title: From Static to Dynamic Skills: A Different Model for...
description: An architecture is proposed for AI agent 'skills' that treats them as compiled queries rather than static markdown files. Instead of freezing facts and...
canonical: https://daily.dev/posts/from-static-to-dynamic-skills-a-different-model-for-agent-knowledge-rdobti9x0
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: From Static to Dynamic Skills: A Different Model for Agent Knowledge | daily.dev
og:description: An architecture is proposed for AI agent 'skills' that treats them as compiled queries rather than static markdown files. Instead of freezing facts and...
og:url: https://daily.dev/posts/from-static-to-dynamic-skills-a-different-model-for-agent-knowledge-rdobti9x0
og:image: https://api.daily.dev/og/posts/RDoBti9X0.png
og:image:alt: From Static to Dynamic Skills: A Different Model for Agent Knowledge
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# From Static to Dynamic Skills: A Different Model for Agent Knowledge

**[Towards Data Science](https://daily.dev/sources/tds)** · 16 min read · 1 upvotes · 0 comments

## Summary

An architecture is proposed for AI agent 'skills' that treats them as compiled queries rather than static markdown files. Instead of freezing facts and procedures together in a file that goes stale, authors write only intent, procedure, and a scope over company knowledge, while facts get resolved dynamically at call time from a live context layer. The piece contrasts this with RAG-with-metadata-filters and MCP resources, details a graph-based composition engine, a token budget model with section-level ranking, a deterministic rendering contract with template versioning, and an eval harness measuring recall at fixed token budgets. It closes with a practical migration path for teams already running RAG and a caveat that this complexity is only worth it once skill libraries genuinely can't stay consistent by hand.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://towardsdatascience.com/from-static-to-dynamic-skills-a-different-model-for-agent-knowledge>

## Questions this post answers

### Why do AI agent skill files written as markdown documents go stale over time?

Static skill files act as caches with no invalidation protocol: they freeze facts and procedures together at authoring time, keyed by a natural-language task description, with no dependency tracking or TTL. When a source table, dashboard, or channel changes, nothing tells the file, so it silently drifts out of date and gets copied into near-duplicate skills to serve slightly different tasks.

_Anyone maintaining agent knowledge bases can follow architecture patterns like this on daily.dev to avoid stale context._

### How should token budgets be allocated when composing context for an LLM agent from many retrieved documents?

Rank relevance at the section level rather than per individual item, grouping candidates by natural hierarchy (integration, selection, object, detail), then take whatever prefix of the ranked sections fits the budget. Sections over 5,000 tokens get split into children first so large blobs don't crowd out small relevant notes. A default budget of 15,000 tokens with a 50,000 hard ceiling worked well in one production system, with detail rendered at up to eight prompt levels.

_Teams tuning retrieval budgets for agent context can compare approaches like this via daily.dev._

### How do you measure whether a retrieval or reranking change actually improved an AI agent's context quality?

Measure recall against labeled ground truth at multiple fixed token-budget checkpoints (e.g. 2,500 / 5,000 / 10,000 / 15,000), not just end-to-end recall, because a ranker can improve recall at a small budget while losing significant recall at a larger one. In one evaluation, a reranker candidate gained 13 points of recall at a 5,000-token budget but lost 13 points at 15,000, a divergence invisible in the single end-to-end number.

_Developers building eval harnesses for retrieval systems can track methods like this on daily.dev._

## Similar posts on daily.dev

- [EP202: MCP vs RAG vs AI Agents](https://daily.dev/posts/ep202-mcp-vs-rag-vs-ai-agents-jowyr3vcd) · ByteByteGo · 5 upvotes · 0 comments
- [The case for running AI agents on Markdown files instead of MCP servers](https://daily.dev/posts/the-case-for-running-ai-agents-on-markdown-files-instead-of-mcp-servers-ljqa1dmns) · The New Stack · 2 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#productivity](https://daily.dev/tags/productivity), [#mcp](https://daily.dev/tags/mcp), [#rag](https://daily.dev/tags/rag), [#agentic-ai](https://daily.dev/tags/agentic-ai)

[View this post on daily.dev](https://daily.dev/posts/from-static-to-dynamic-skills-a-different-model-for-agent-knowledge-rdobti9x0)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"From Static to Dynamic Skills: A Different Model for Agent Knowledge","url":"https://daily.dev/posts/from-static-to-dynamic-skills-a-different-model-for-agent-knowledge-rdobti9x0","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/from-static-to-dynamic-skills-a-different-model-for-agent-knowledge-rdobti9x0"},"datePublished":"2026-09-14T11:20:06.453Z","dateModified":"2026-09-14T11:20:31.364Z","description":"An architecture is proposed for AI agent 'skills' that treats them as compiled queries rather than static markdown files. Instead of freezing facts and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a35486f5f59aa9e98c1510c721417cf8?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a35486f5f59aa9e98c1510c721417cf8?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Towards Data Science","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Towards Data Science","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/tds","url":"https://daily.dev/sources/tds"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/from-static-to-dynamic-skills-a-different-model-for-agent-knowledge-rdobti9x0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"llm,productivity,mcp,rag,agentic-ai","timeRequired":"PT16M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Towards Data Science","item":"https://daily.dev/sources/tds"},{"@type":"ListItem","position":3,"name":"From Static to Dynamic Skills: A Different Model for Agent Knowledge"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/from-static-to-dynamic-skills-a-different-model-for-agent-knowledge-rdobti9x0#faq","mainEntity":[{"@type":"Question","name":"Why do AI agent skill files written as markdown documents go stale over time?","acceptedAnswer":{"@type":"Answer","text":"Static skill files act as caches with no invalidation protocol: they freeze facts and procedures together at authoring time, keyed by a natural-language task description, with no dependency tracking or TTL. When a source table, dashboard, or channel changes, nothing tells the file, so it silently drifts out of date and gets copied into near-duplicate skills to serve slightly different tasks. Anyone maintaining agent knowledge bases can follow architecture patterns like this on daily.dev to avoid stale context."}},{"@type":"Question","name":"How should token budgets be allocated when composing context for an LLM agent from many retrieved documents?","acceptedAnswer":{"@type":"Answer","text":"Rank relevance at the section level rather than per individual item, grouping candidates by natural hierarchy (integration, selection, object, detail), then take whatever prefix of the ranked sections fits the budget. Sections over 5,000 tokens get split into children first so large blobs don't crowd out small relevant notes. A default budget of 15,000 tokens with a 50,000 hard ceiling worked well in one production system, with detail rendered at up to eight prompt levels. Teams tuning retrieval budgets for agent context can compare approaches like this via daily.dev."}},{"@type":"Question","name":"How do you measure whether a retrieval or reranking change actually improved an AI agent's context quality?","acceptedAnswer":{"@type":"Answer","text":"Measure recall against labeled ground truth at multiple fixed token-budget checkpoints (e.g. 2,500 / 5,000 / 10,000 / 15,000), not just end-to-end recall, because a ranker can improve recall at a small budget while losing significant recall at a larger one. In one evaluation, a reranker candidate gained 13 points of recall at a 5,000-token budget but lost 13 points at 15,000, a divergence invisible in the single end-to-end number. Developers building eval harnesses for retrieval systems can track methods like this on daily.dev."}}]}
```

