skills-tree 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. skills_tree-1.0.0/LICENSE +21 -0
  2. skills_tree-1.0.0/PKG-INFO +472 -0
  3. skills_tree-1.0.0/README.md +414 -0
  4. skills_tree-1.0.0/api/__init__.py +1 -0
  5. skills_tree-1.0.0/api/dependencies.py +80 -0
  6. skills_tree-1.0.0/api/main.py +135 -0
  7. skills_tree-1.0.0/api/models.py +148 -0
  8. skills_tree-1.0.0/api/routes/__init__.py +1 -0
  9. skills_tree-1.0.0/api/routes/blueprint.py +33 -0
  10. skills_tree-1.0.0/api/routes/goals.py +33 -0
  11. skills_tree-1.0.0/api/routes/health.py +17 -0
  12. skills_tree-1.0.0/api/routes/recommend.py +103 -0
  13. skills_tree-1.0.0/api/routes/skills.py +35 -0
  14. skills_tree-1.0.0/cli/__init__.py +1 -0
  15. skills_tree-1.0.0/cli/main.py +274 -0
  16. skills_tree-1.0.0/mcp/__init__.py +1 -0
  17. skills_tree-1.0.0/mcp/server.py +133 -0
  18. skills_tree-1.0.0/mcp/tools.py +147 -0
  19. skills_tree-1.0.0/pyproject.toml +64 -0
  20. skills_tree-1.0.0/setup.cfg +4 -0
  21. skills_tree-1.0.0/skills_tree.egg-info/PKG-INFO +472 -0
  22. skills_tree-1.0.0/skills_tree.egg-info/SOURCES.txt +62 -0
  23. skills_tree-1.0.0/skills_tree.egg-info/dependency_links.txt +1 -0
  24. skills_tree-1.0.0/skills_tree.egg-info/entry_points.txt +2 -0
  25. skills_tree-1.0.0/skills_tree.egg-info/requires.txt +17 -0
  26. skills_tree-1.0.0/skills_tree.egg-info/top_level.txt +4 -0
  27. skills_tree-1.0.0/tests/test_api.py +232 -0
  28. skills_tree-1.0.0/tests/test_blueprints.py +239 -0
  29. skills_tree-1.0.0/tests/test_changelog.py +101 -0
  30. skills_tree-1.0.0/tests/test_check_broken_links.py +124 -0
  31. skills_tree-1.0.0/tests/test_cli.py +264 -0
  32. skills_tree-1.0.0/tests/test_consistency.py +502 -0
  33. skills_tree-1.0.0/tests/test_evaluator.py +144 -0
  34. skills_tree-1.0.0/tests/test_graph.py +186 -0
  35. skills_tree-1.0.0/tests/test_mcp.py +210 -0
  36. skills_tree-1.0.0/tests/test_osv_check.py +139 -0
  37. skills_tree-1.0.0/tests/test_osv_watch.py +120 -0
  38. skills_tree-1.0.0/tests/test_ranking_calibrator.py +200 -0
  39. skills_tree-1.0.0/tests/test_recommendations.py +213 -0
  40. skills_tree-1.0.0/tests/test_sync_badges.py +79 -0
  41. skills_tree-1.0.0/tools/architect.py +954 -0
  42. skills_tree-1.0.0/tools/ast_sweep.py +456 -0
  43. skills_tree-1.0.0/tools/bootstrap_badges.py +94 -0
  44. skills_tree-1.0.0/tools/build_graph.py +226 -0
  45. skills_tree-1.0.0/tools/build_search_index.py +190 -0
  46. skills_tree-1.0.0/tools/check_broken_links.py +73 -0
  47. skills_tree-1.0.0/tools/check_skill_quality.py +465 -0
  48. skills_tree-1.0.0/tools/common.py +136 -0
  49. skills_tree-1.0.0/tools/dependency_auditor.py +570 -0
  50. skills_tree-1.0.0/tools/export_skills.py +436 -0
  51. skills_tree-1.0.0/tools/generate_changelog.py +126 -0
  52. skills_tree-1.0.0/tools/inject_badge_links.py +99 -0
  53. skills_tree-1.0.0/tools/osv_check.py +265 -0
  54. skills_tree-1.0.0/tools/osv_watch_scan.py +183 -0
  55. skills_tree-1.0.0/tools/osv_watch_summary.py +26 -0
  56. skills_tree-1.0.0/tools/package_release.py +216 -0
  57. skills_tree-1.0.0/tools/ranking_calibrator.py +222 -0
  58. skills_tree-1.0.0/tools/sync_badges.py +99 -0
  59. skills_tree-1.0.0/tools/update_readme_counts.py +154 -0
  60. skills_tree-1.0.0/tools/used_in_tracker.py +98 -0
  61. skills_tree-1.0.0/tools/verify_taxonomy.py +180 -0
  62. skills_tree-1.0.0/tools/version_stats.py +79 -0
  63. skills_tree-1.0.0/tools/weekly_highlights.py +148 -0
  64. skills_tree-1.0.0/tools/write_badge.py +109 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ossama Hashim (https://github.com/SamoTech)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,472 @@
1
+ Metadata-Version: 2.4
2
+ Name: skills-tree
3
+ Version: 1.0.0
4
+ Summary: Architect — taxonomy-driven skill recommendation engine for AI agent builders
5
+ License: MIT License
6
+
7
+ Copyright (c) 2026 Ossama Hashim (https://github.com/SamoTech)
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ Project-URL: Homepage, https://github.com/SamoTech/skills-tree
28
+ Project-URL: Documentation, https://github.com/SamoTech/skills-tree#readme
29
+ Project-URL: Repository, https://github.com/SamoTech/skills-tree
30
+ Project-URL: Bug Tracker, https://github.com/SamoTech/skills-tree/issues
31
+ Keywords: ai,agents,skills,recommendation,llm,taxonomy
32
+ Classifier: Development Status :: 4 - Beta
33
+ Classifier: Intended Audience :: Developers
34
+ Classifier: License :: OSI Approved :: MIT License
35
+ Classifier: Programming Language :: Python :: 3
36
+ Classifier: Programming Language :: Python :: 3.11
37
+ Classifier: Programming Language :: Python :: 3.12
38
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
39
+ Requires-Python: >=3.11
40
+ Description-Content-Type: text/markdown
41
+ License-File: LICENSE
42
+ Requires-Dist: fastapi>=0.111.0
43
+ Requires-Dist: uvicorn[standard]>=0.29.0
44
+ Requires-Dist: pydantic>=2.7.0
45
+ Requires-Dist: httpx>=0.27.0
46
+ Requires-Dist: typer>=0.12.0
47
+ Requires-Dist: rich>=13.7.0
48
+ Requires-Dist: networkx>=3.0
49
+ Requires-Dist: markdown>=3.5
50
+ Requires-Dist: requests>=2.31
51
+ Provides-Extra: dev
52
+ Requires-Dist: pytest>=8.2; extra == "dev"
53
+ Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
54
+ Requires-Dist: httpx>=0.27.0; extra == "dev"
55
+ Provides-Extra: server
56
+ Requires-Dist: uvicorn[standard]>=0.29.0; extra == "server"
57
+ Dynamic: license-file
58
+
59
+ <div align="center">
60
+
61
+ <picture>
62
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SamoTech/skills-tree/main/docs/assets/logo-dark.svg">
63
+ <img src="https://raw.githubusercontent.com/SamoTech/skills-tree/main/docs/assets/logo-light.svg" alt="Skills Tree" width="200" height="52">
64
+ </picture>
65
+
66
+ # Skills Tree
67
+
68
+ ![Banner](docs/assets/banner.svg)
69
+
70
+ <!-- HIGHLIGHTS_START -->
71
+ ## 📆 This Week's Highlights — June 15, 2026
72
+
73
+ ### 🔥 Most Active Skills
74
+ - **Readme** — 1 PR
75
+ - **Xquik Api** — 1 PR
76
+
77
+ <!-- HIGHLIGHTS_END -->
78
+
79
+
80
+ ### The AI Agent Skill OS — Build Smarter Agents, Faster
81
+
82
+ > **360 skills across 17 categories. Versioned, benchmarked, and openly evolving.**
83
+ > **Stop rediscovering. Start building on what the community has already proven.**
84
+ >
85
+ > **50 skills are battle-tested today.** **308 are stubs** waiting for a real example, real I/O, and real failure modes — see [`meta/QUALITY-REPORT.md`](meta/QUALITY-REPORT.md) for the full list. PRs that turn a stub into a production-ready entry are the highest-impact contribution you can make.
86
+
87
+ [![Stars](https://img.shields.io/github/stars/SamoTech/skills-tree?style=for-the-badge&color=22c55e&logo=github)](https://github.com/SamoTech/skills-tree/stargazers)
88
+ [![Forks](https://img.shields.io/github/forks/SamoTech/skills-tree?style=for-the-badge&color=3b82f6&logo=github)](https://github.com/SamoTech/skills-tree/network)
89
+ [![Watchers](https://img.shields.io/github/watchers/SamoTech/skills-tree?style=for-the-badge&color=a855f7&logo=github)](https://github.com/SamoTech/skills-tree/watchers)
90
+ [![Views](https://visitor-badge.laobi.icu/badge?page_id=SamoTech.skills-tree&style=for-the-badge&color=0e75b6&label=Views)](https://github.com/SamoTech/skills-tree)
91
+ [![Issues](https://img.shields.io/github/issues/SamoTech/skills-tree?style=for-the-badge&color=ef4444&logo=github)](https://github.com/SamoTech/skills-tree/issues)
92
+ [![PRs Welcome](https://img.shields.io/badge/PRs-Welcome-brightgreen?style=for-the-badge)](CONTRIBUTING.md)
93
+ [![Contributors](https://img.shields.io/github/contributors/SamoTech/skills-tree?style=for-the-badge&color=f59e0b&logo=github)](https://github.com/SamoTech/skills-tree/graphs/contributors)
94
+ [![Last Commit](https://img.shields.io/github/last-commit/SamoTech/skills-tree?style=for-the-badge&color=06b6d4&logo=github)](https://github.com/SamoTech/skills-tree/commits/main)
95
+ [![Repo Size](https://img.shields.io/github/repo-size/SamoTech/skills-tree?style=for-the-badge&color=8b5cf6&logo=github)](https://github.com/SamoTech/skills-tree)
96
+ [![CI](https://img.shields.io/github/actions/workflow/status/SamoTech/skills-tree/validate-skills.yml?branch=main&style=for-the-badge&label=CI&logo=github-actions&logoColor=white)](https://github.com/SamoTech/skills-tree/actions/workflows/validate-skills.yml)
97
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow?style=for-the-badge)](LICENSE)
98
+ [![Skills](https://img.shields.io/badge/Skills-360%2B-8b5cf6?style=for-the-badge)](skills/)
99
+ [![Version](https://img.shields.io/badge/Version-2.0-orange?style=for-the-badge)](meta/CHANGELOG.md)
100
+ [![GitHub Pages](https://img.shields.io/badge/Docs-Live-22c55e?style=for-the-badge&logo=github)](https://samotech.github.io/skills-tree)
101
+
102
+ **[🌐 Browse Live UI](https://samotech.github.io/skills-tree) · [🗺️ Systems](systems/) · [🏗️ Blueprints](blueprints/) · [📊 Benchmarks](benchmarks/) · [🔬 Labs](labs/) · [🤝 Contribute](CONTRIBUTING.md) · [🗺 Roadmap](meta/ROADMAP.md)**
103
+
104
+ [🐦 **Share Skills Tree on X / Twitter →**](https://twitter.com/intent/tweet?text=Skills%20Tree%20%E2%80%94%20the%20shared%20operating%20system%20for%20AI%20agent%20capabilities.%20Working%20code,%20real%20benchmarks,%20failure%20modes,%20and%20evolution%20history.&url=https%3A%2F%2Fgithub.com%2FSamoTech%2Fskills-tree&hashtags=AI,Agents,LLM,OpenSource)
105
+
106
+ 🌐 **Read in your language:**
107
+ 🇬🇧 English
108
+ · [🇸🇦 العربية](i18n/README.ar.md)
109
+ · [🇨🇳 中文](i18n/README.zh.md)
110
+ · [🇪🇸 Español](i18n/README.es.md)
111
+ · [🇩🇪 Deutsch](i18n/README.de.md)
112
+ · [🇫🇷 Français](i18n/README.fr.md)
113
+ · [🇮🇳 हिन्दी](i18n/README.hi.md)
114
+ · [🇯🇵 日本語](i18n/README.ja.md)
115
+ · [🇰🇷 한국어](i18n/README.ko.md)
116
+ · [🇧🇷 Português](i18n/README.pt.md)
117
+ · [🇷🇺 Русский](i18n/README.ru.md)
118
+
119
+ </div>
120
+
121
+ ---
122
+
123
+ ## The Problem
124
+
125
+ Every AI agent builder rediscovers the same skills from scratch.
126
+
127
+ Someone learns RAG the hard way. Someone else figures out memory injection at 2am. A third person spends a week benchmarking ReAct vs LATS — and never shares the results. A fourth discovers the same failure modes you already hit last month.
128
+
129
+ **That collective knowledge is disappearing into Slack threads, private repos, and Twitter bookmarks.**
130
+
131
+ Skills Tree fixes that.
132
+
133
+ ---
134
+
135
+ ## What This Is
136
+
137
+ **Skills Tree is the shared operating system for AI agent capabilities.**
138
+
139
+ A living, versioned, community-powered index of everything an agent can do — at its best, documented with working code, real benchmarks, failure modes, and evolution history.
140
+
141
+ We don't pretend every entry is finished. **Battle-tested skills (badged 🟢 verified) are production-ready and copy-paste safe.** Yellow / unscanned skills are the community's TODO list — open files, real problem space, and the clearest signal of where contributions are most useful.
142
+
143
+ It's not a list. It's infrastructure being built in public.
144
+
145
+ ---
146
+
147
+ ## 🚀 Start Here — Battle-Tested Skills
148
+
149
+ If you're new, **read these first**. Each one ships with runnable code, typed I/O, failure modes, and a model-comparison table.
150
+
151
+ ### Agent reasoning loops
152
+ - [**ReAct**](skills/09-agentic-patterns/react.md) — Thought → Action → Observation, the foundation of tool-using agents
153
+ - [**Chain of Thought**](skills/09-agentic-patterns/cot.md) — explicit step-by-step reasoning + self-consistency
154
+ - [**Tree of Thought**](skills/09-agentic-patterns/tot.md) — branched reasoning with scoring + beam search
155
+ - [**Reflection / Reflexion**](skills/09-agentic-patterns/reflection.md) — critique → revise loop on top of any output
156
+ - [**Self-Consistency**](skills/02-reasoning/self-consistency.md) — sample N chains, majority-vote
157
+ - [**Planning**](skills/02-reasoning/planning.md) — typed, DAG-validated plans your executor can run
158
+ - [**Task Decomposition**](skills/02-reasoning/task-decomposition.md) — break a goal into atomic, runnable subtasks
159
+
160
+ ### Retrieval & memory
161
+ - [**RAG**](skills/03-memory/rag.md) — chunk → embed → retrieve → cite, end-to-end with confidence + threshold
162
+ - [**Vector Store Retrieval**](skills/03-memory/vector-store-retrieval.md) — typed top-k cosine search with metadata filtering
163
+ - [**Embedding Generation**](skills/12-data/embedding-generation.md) — batched, content-hash-cached, Matryoshka-truncatable
164
+ - [**Memory Injection**](skills/03-memory/memory-injection.md) — top-K user memories per turn
165
+ - [**Short-Term Memory**](skills/03-memory/short-term-memory.md) — token-budgeted rolling window (the foundation for everything else)
166
+
167
+ ### Calling LLMs in production
168
+ - [**Function / Tool Calling**](skills/07-tool-use/function-calling.md) — the primitive that turns an LLM into an agent
169
+ - [**OpenAI API**](skills/07-tool-use/openai-api.md) — chat, structured outputs, tools, embeddings, streaming, retry
170
+ - [**Anthropic API**](skills/07-tool-use/anthropic-api.md) — Claude with tool loop, prompt caching, streaming
171
+
172
+ ### Working with text
173
+ - [**Translation**](skills/06-communication/translation.md) — placeholder-safe MT with glossary + tone
174
+ - [**Paraphrasing**](skills/06-communication/paraphrasing.md) — simplify / formalize / diversify
175
+ - [**OCR**](skills/01-perception/ocr.md) — VLM + classical OCR with confidence-based human-review routing
176
+
177
+ ### Code
178
+ - [**Code Generation**](skills/05-code/code-generation.md) — spec → AST-validated source with self-repair on failure
179
+ - [**Bug Fixing**](skills/05-code/bug-fixing.md) — agentic loop: read → patch → test → repeat until green
180
+ - [**Code Review**](skills/05-code/code-review.md) — automated critique with severity tiers
181
+
182
+ ### Web
183
+ - [**Web Search**](skills/11-web/web-search.md) — Tavily/Serper/Brave with recency + host allowlist + TTL cache
184
+ - [**Web Scraping**](skills/11-web/web-scraping.md) — trafilatura + BS4 fallback, metadata, redirect-safe
185
+
186
+ ### Security
187
+ - [**Input Sanitization**](skills/14-security/input-sanitization.md) — 4-layer defense: structural + boundary + content + isolation
188
+
189
+ ### Action execution
190
+ - [**File Write**](skills/04-action-execution/file-write.md) — atomic, crash-safe file writes for agents
191
+ - [**HTTP Request**](skills/04-action-execution/http-request.md) — production HTTP with idempotency, retry-on-idempotent-only, header redaction
192
+ - [**Dependency Auditor**](skills/17-infrastructure/dependency-auditor.md) — vulnerability + license + freshness audit
193
+
194
+ > **The full battle-tested set is auto-listed in [`meta/QUALITY-REPORT.md`](meta/QUALITY-REPORT.md). The same report names every stub that needs upgrading — those are the highest-impact PRs you can submit.**
195
+
196
+ ---
197
+
198
+ ## What's Inside
199
+
200
+ ```
201
+ skills-tree/
202
+
203
+ ├── skills/ → 360 atomic skill files (50 battle-tested, 308 stubs awaiting upgrade)
204
+ │ run `python3 tools/check_skill_quality.py` for the live count
205
+ ├── systems/ → Multi-skill workflows (research agent, code reviewer...)
206
+ ├── blueprints/ → Copy-paste production architectures
207
+ ├── benchmarks/ → Head-to-head, reproducible skill comparisons
208
+ ├── labs/ → Experimental & bleeding-edge capabilities
209
+
210
+ ├── docs/ → Interactive web UI (GitHub Pages)
211
+ ├── i18n/ → Localized READMEs (Arabic, Chinese, Spanish, German, French, Hindi, Japanese, Korean, Portuguese, Russian)
212
+ ├── meta/ → Schema, glossary, frameworks, roadmap, changelog
213
+ └── requirements.txt → Pinned Python deps for CI workflows
214
+ ```
215
+
216
+ ---
217
+
218
+ ## 🗂️ The 17 Skill Categories
219
+
220
+ | # | Category | Skills | What It Covers |
221
+ |---|---|---|---|
222
+ | 01 | 👁️ **Perception** | 36 | Text, images, PDFs, code, sensors, databases, screens |
223
+ | 02 | 🧠 **Reasoning** | 39 | Planning, deduction, abduction, causal chains, commonsense |
224
+ | 03 | 🗄️ **Memory** | 19 | Working, episodic, semantic, vector, injection, forgetting |
225
+ | 04 | ⚡ **Action Execution** | 21 | File I/O, HTTP, email, shell, database writes |
226
+ | 05 | 💻 **Code** | 28 | Write, run, debug, review, refactor, test, deploy |
227
+ | 06 | 💬 **Communication** | 15 | Summarize, translate, draft, argue, adapt tone |
228
+ | 07 | 🔧 **Tool Use** | 32 | APIs — GitHub, Slack, Stripe, OpenAI, MCP, A2A |
229
+ | 08 | 🎭 **Multimodal** | 14 | Images, audio, video, VQA, 3D, charts |
230
+ | 09 | 🤖 **Agentic Patterns** | 23 | ReAct, CoT, ToT, MCTS, LATS, RAG, Debate |
231
+ | 10 | 🖥️ **Computer Use** | 20 | Click, type, scroll, OCR, terminal, VM, a11y tree |
232
+ | 11 | 🌐 **Web** | 17 | Search, scrape, crawl, login, fill forms, parse RSS |
233
+ | 12 | 📊 **Data** | 18 | ETL, SQL, embeddings, time series, anomaly detection |
234
+ | 13 | 🎨 **Creative** | 14 | Copywriting, image prompts, SVG, music, scripts |
235
+ | 14 | 🔒 **Security** | 13 | Sandboxing, secret scanning, audit logs, rollback |
236
+ | 15 | 🎼 **Orchestration** | 22 | Multi-agent, state machines, retry, consensus |
237
+ | 16 | 🏺 **Domain-Specific** | 28 | Medical, legal, finance, DevOps, education, science |
238
+ | 17 | 🛠️ **Infrastructure** | 1 | Dependency auditing & supply-chain tooling (early) |
239
+
240
+ > Counts above reflect skill files on disk and are auto-synced by `tools/update_readme_counts.py` (run nightly via [`update-skill-count.yml`](.github/workflows/update-skill-count.yml)). If you spot a drift, open an issue.
241
+
242
+ ---
243
+
244
+ ## A Skill in 60 Seconds
245
+
246
+ Every skill file is self-contained and production-ready:
247
+
248
+ ````markdown
249
+ # Memory Injection
250
+ Category: memory | Level: intermediate | Stability: stable | Version: v2
251
+
252
+ ## Description
253
+ Dynamically inject relevant past memories into an agent's system prompt
254
+ before each turn — giving the model user context without filling the window.
255
+
256
+ ## Example
257
+ ```python
258
+ client.messages.create(
259
+ system=f"{base_system}\n\n## Memory\n{top_k_memories}",
260
+ messages=[{"role": "user", "content": user_message}]
261
+ )
262
+ ```
263
+
264
+ ## Benchmarks → benchmarks/memory/injection-strategies.md
265
+ ## Related → working-memory.md · rag.md · vector-store-retrieval.md
266
+ ## Changelog → v1 (2025-03) · v2 (2026-04, added retrieval scoring)
267
+ ````
268
+
269
+ Every skill includes:
270
+ - ✅ What it does and why it matters
271
+ - ✅ Typed inputs/outputs
272
+ - ✅ Runnable Python code (`claude-opus-4-5` / `gpt-4o`)
273
+ - ✅ Frameworks table (LangChain, LangGraph, CrewAI, mem0...)
274
+ - ✅ Failure modes and edge cases
275
+ - ✅ Related skills cross-links
276
+ - ✅ Version history
277
+
278
+ ---
279
+
280
+ ## Skill Versioning — How Evolution Works
281
+
282
+ Skills are not static files. They evolve as the community learns:
283
+
284
+ ```
285
+ v1 — Initial entry: description + minimal example
286
+ v2 — Enriched: better example + failure modes + related skills
287
+ v3 — Battle-tested: benchmarks + model comparison + production notes
288
+ ```
289
+
290
+ **To upgrade a skill:**
291
+ 1. Bump the version in frontmatter
292
+ 2. Add a changelog entry explaining what improved
293
+ 3. Open a PR titled `improve: skill-name — v1 → v2`
294
+
295
+ The best versions surface naturally — through PR merge frequency and inclusion in Systems + Blueprints.
296
+
297
+ ---
298
+
299
+ ## 🗺️ Systems — Multi-Skill Workflows
300
+
301
+ See how skills combine into real, working agent pipelines:
302
+
303
+ | System | Skills Used | Use Case |
304
+ |---|---|---|
305
+ | [Research Agent](systems/research-agent.md) | Web search + RAG + Summarize + Cite | Deep research automation |
306
+ | [Coding Agent](systems/coding-agent.md) | Code reading + Write + Debug + Test | End-to-end code generation |
307
+ | [Code Reviewer](systems/code-reviewer.md) | Code reading + Reasoning + Comment gen | Automated PR reviews |
308
+ | [Data Pipeline Agent](systems/data-pipeline-agent.md) | DB reading + ETL + Anomaly detection | Automated data ops |
309
+ | [Customer Support Bot](systems/customer-support-bot.md) | Memory injection + Intent + Response gen | Personalized support |
310
+ | [Computer Use Agent](systems/computer-use-agent.md) | Screen reading + OCR + Click + Type | Full GUI automation |
311
+ | [Data Analyst](systems/data-analyst.md) | SQL + Charts + Summarize + Insight gen | Automated data analysis |
312
+ | [Voice Agent](systems/voice-agent.md) | Audio transcription + NLU + TTS | Real-time voice interaction |
313
+
314
+ ---
315
+
316
+ ## 🏗️ Blueprints — Production Architectures
317
+
318
+ Copy-paste architectures for the most common agent patterns:
319
+
320
+ | Blueprint | Description |
321
+ |---|---|
322
+ | [RAG Stack](blueprints/rag-stack.md) | Embed → store → retrieve → generate, fully wired |
323
+ | [Multi-Agent Workflow](blueprints/multi-agent-workflow.md) | Sequential orchestration with handoffs |
324
+ | [Multi-Agent Mesh](blueprints/multi-agent-mesh.md) | N specialists + orchestrator, parallel execution |
325
+ | [Computer Use Browser](blueprints/computer-use-browser.md) | Browser automation via Playwright + vision |
326
+ | [Human-in-the-Loop](blueprints/human-in-the-loop.md) | Approval gates, escalation, audit trails |
327
+ | [Self-Healing Agent](blueprints/self-healing-agent.md) | Error detection, retry logic, rollback |
328
+ | [Memory-First Agent](blueprints/memory-first-agent.md) | Profile + episodic + vector memory combined |
329
+
330
+ ---
331
+
332
+ ## 📊 Benchmarks — Real Numbers, Reproducible
333
+
334
+ We test so you don't have to:
335
+
336
+ | Benchmark | Winner | Margin | Link |
337
+ |---|---|---|---|
338
+ | ReAct vs LATS (HotpotQA) | LATS | +8.3% accuracy | [→](benchmarks/reasoning/react-vs-lats.md) |
339
+ | RAG retrieval strategies | HyDE | +12% recall | [→](benchmarks/memory/rag-retrieval-strategies.md) |
340
+ | Memory injection methods | Top-K semantic | Best cost/quality ratio | [→](benchmarks/memory/injection-strategies.md) |
341
+ | Function calling comparison | Claude 3.7 | +6% on tool accuracy | [→](benchmarks/tool-use/function-calling-comparison.md) |
342
+
343
+ > Every benchmark includes methodology, dataset, and reproducible test scripts.
344
+
345
+ ---
346
+
347
+ ## 🏆 This Week's Highlights
348
+
349
+ > Auto-updated weekly · [Full leaderboard →](meta/LEADERBOARD.md)
350
+
351
+ **🔥 Most Active Skills**
352
+ - `skills/09-agentic-patterns/react.md` — 12 community improvements this month
353
+ - `skills/03-memory/memory-injection.md` — v2 with retrieval scoring
354
+ - `skills/02-reasoning/causal.md` — new benchmark comparison added
355
+
356
+ **⚡ Battle-Tested** *(used in 10+ public projects)*
357
+ `ReAct` · `Chain of Thought` · `RAG Pipeline` · `Memory Injection` · `Tool Use`
358
+
359
+ **🔬 Hot in Labs**
360
+ - `labs/reasoning/tree-of-agents.md` — multi-agent tree search
361
+ - `labs/memory/episodic-compression.md` — lossy-but-useful memory compression
362
+ - `labs/tool-use/adaptive-tool-selection.md` — dynamic tool filtering for large registries
363
+
364
+ ---
365
+
366
+ ## 🤝 How to Contribute
367
+
368
+ Four types of contributions — all valued:
369
+
370
+ | Type | What It Is | PR Title Format |
371
+ |---|---|---|
372
+ | **New Skill** | A capability not yet indexed | `feat: add [skill] to [category]` |
373
+ | **Skill Upgrade** | Bump v1→v2 with better content | `improve: [skill] — v1→v2` |
374
+ | **Benchmark** | Head-to-head with real numbers | `benchmark: [skill-a] vs [skill-b]` |
375
+ | **System / Blueprint** | Multi-skill workflow or architecture | `system: add [name]` |
376
+
377
+ ```bash
378
+ git clone https://github.com/SamoTech/skills-tree.git
379
+ cp meta/skill-template.md skills/05-code/my-new-skill.md
380
+ # Fill in every section → open a PR
381
+ ```
382
+
383
+ ### Quality Rules
384
+
385
+ - ❌ No generic prompts or vague descriptions
386
+ - ❌ No skills without a working code example
387
+ - ✅ Must solve a real, specific problem
388
+ - ✅ Must be structured and reusable
389
+ - ✅ Must include inputs, outputs, and at least one runnable example
390
+
391
+ Full guide: **[CONTRIBUTING.md](CONTRIBUTING.md)**
392
+
393
+ ---
394
+
395
+ ## Quick Start
396
+
397
+ ```bash
398
+ # Clone
399
+ git clone https://github.com/SamoTech/skills-tree.git
400
+
401
+ # Find a skill by keyword
402
+ grep -r "memory injection" skills/ --include="*.md" -l
403
+
404
+ # Read a full system end-to-end
405
+ cat systems/research-agent.md
406
+
407
+ # See benchmark results
408
+ cat benchmarks/tool-use/function-calling-comparison.md
409
+ ```
410
+
411
+ Or **[browse the live UI →](https://samotech.github.io/skills-tree)**
412
+
413
+ ---
414
+
415
+ ## Who This Is For
416
+
417
+ ```
418
+ 🏗️ Agent Builders → Production skill patterns, ready to use today
419
+ 🔬 AI Researchers → Benchmarks, taxonomy, and full capability coverage
420
+ 📐 System Architects → Blueprints for multi-agent production systems
421
+ 🎓 Learners → Structured path from basic skills → advanced systems
422
+ 🤝 Contributors → A community that improves everything together
423
+ ```
424
+
425
+ ---
426
+
427
+ ## 🗺️ Roadmap
428
+
429
+ See the full plan: **[meta/ROADMAP.md](meta/ROADMAP.md)**
430
+
431
+ **Near-term (v2.x):**
432
+ - Skill dependency graph — visual map of how skills relate
433
+ - Skill Paths — curated learning tracks (e.g., "Build a Research Agent in 5 skills")
434
+ - JSON/YAML export of all skill metadata for programmatic use
435
+ - Community skill ratings and upvotes
436
+ - Auto-leaderboard: Top Skills This Week, Most Improved, Battle-Tested
437
+
438
+ **Medium-term (v3.0):**
439
+ - CLI: `skills-tree search "memory injection"` → returns ranked results
440
+ - LangChain Hub / MCP registry integration
441
+ - ✅ ~~Localization: Arabic, Chinese, Spanish READMEs~~ — **shipped in v2.1**
442
+ - Automated changelog generation on PR merge
443
+
444
+ **Long-term vision:**
445
+ - Skills Tree becomes the canonical reference for AI agent capabilities
446
+ - Every major agent framework links here as the skill index
447
+ - 1000+ skills, all battle-tested, all benchmarked
448
+
449
+ ---
450
+
451
+ ## Vision
452
+
453
+ > AI agents are becoming teammates, not tools.
454
+ >
455
+ > Skills Tree is the shared foundation they run on — a living OS of capabilities
456
+ > that the community builds, tests, and evolves together.
457
+ >
458
+ > Every skill added here saves every agent builder who comes after you.
459
+ > Every benchmark run here prevents someone else from wasting a week.
460
+ > Every system documented here becomes a launchpad for the next builder.
461
+ >
462
+ > This is not a repo. It's infrastructure for the AI-native era.
463
+
464
+ ---
465
+
466
+ <div align="center">
467
+
468
+ **[⭐ Star this repo](https://github.com/SamoTech/skills-tree) · [🌐 Browse Skills](https://samotech.github.io/skills-tree) · [🤝 Contribute](CONTRIBUTING.md) · [🗺 Roadmap](meta/ROADMAP.md) · [💖 Sponsor](https://github.com/sponsors/SamoTech)**
469
+
470
+ *The AI Agent Skill OS — built by the community, for the community.*
471
+
472
+ </div>