Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
A comprehensive collection of Agent Skills for context engineering, multi-agent architectures, and production agent systems.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
examples/digital-brain-skill/SKILLS-MAPPING.md
1# Skills Mapping: Digital Brain23This document maps how [Agent Skills for Context Engineering](https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering) principles are applied in the Digital Brain implementation.45---67## Context Engineering Principles Applied89### 1. Context Fundamentals1011| Concept | Source Skill | Digital Brain Application |12|---------|--------------|---------------------------|13| **Attention Budget** | context-fundamentals | Module separation ensures only relevant content loads. Voice file (~200 lines) loads for content tasks; contacts file loads for network tasks. Never load everything. |14| **Progressive Disclosure** | context-fundamentals | Three-level architecture: L1 (SKILL.md metadata), L2 (module instructions), L3 (data files). Each level loads only when needed. |15| **High-Signal Tokens** | context-fundamentals | JSONL schemas include only essential fields. Voice profiles focus on patterns, not exhaustive rules. |1617**Design Decision**:18> "Find the smallest possible set of high-signal tokens that maximize the likelihood of some desired outcome."1920Applied by keeping `voice.md` focused on distinctive patterns (signature phrases, anti-patterns) rather than generic writing advice Claude already knows.2122---2324### 2. Memory Systems2526| Concept | Source Skill | Digital Brain Application |27|---------|--------------|---------------------------|28| **Append-Only Logs** | memory-systems | All `.jsonl` files are append-only. Status changes via `"status": "archived"`, never deletion. Preserves full history. |29| **Structured Recall** | memory-systems | Consistent schemas across files enable pattern matching. `contact_id` links `contacts.jsonl` to `interactions.jsonl`. |30| **Episodic Memory** | memory-systems | `interactions.jsonl` captures discrete events. `posts.jsonl` logs content with performance metrics for retrospective analysis. |31| **Semantic Memory** | memory-systems | `knowledge/bookmarks.jsonl` with categories and tags enables topic-based retrieval. |3233**Design Decision**:34> "Agents maintain persistent memory files to track progress across complex sequences."3536Applied in `operations/metrics.jsonl` where weekly snapshots accumulate, enabling trend analysis without recomputing from raw data.3738---3940### 3. Tool Design4142| Concept | Source Skill | Digital Brain Application |43|---------|--------------|---------------------------|44| **Self-Contained Tools** | tool-design | Scripts in `agents/scripts/` are standalone Python files. Each does one thing: `weekly_review.py` generates reviews, `stale_contacts.py` finds neglected relationships. |45| **Clear Input/Output** | tool-design | Scripts read from known paths, output structured text to stdout. No side effects unless explicitly documented. |46| **Token Efficiency** | tool-design | Scripts process data and return summaries. Agent receives results, not raw data processing logic. |4748**Design Decision**:49> "Tools should be self-contained, unambiguous, and promote token efficiency."5051Applied by having `content_ideas.py` analyze bookmarks and past posts internally, returning only actionable suggestions rather than raw analysis.5253---5455### 4. Context Optimization5657| Concept | Source Skill | Digital Brain Application |58|---------|--------------|---------------------------|59| **Module Separation** | context-optimization | Six distinct modules (`identity/`, `content/`, `knowledge/`, `network/`, `operations/`, `agents/`) prevent cross-contamination. Content creation never needs to load network data. |60| **Just-In-Time Loading** | context-optimization | Module instruction files (`IDENTITY.md`, `CONTENT.md`, etc.) load only when that module is relevant. |61| **Reference Depth** | context-optimization | Main SKILL.md links to module docs which link to data files. Maximum two hops to any information. |6263**Design Decision**:64> "Rather than pre-loading all data, maintain lightweight identifiers and dynamically load data at runtime."6566Applied in network module: agent first scans `contacts.jsonl` for matching name, then loads specific `interactions.jsonl` entries only for that contact.6768---6970### 5. Context Degradation (Mitigation)7172| Risk | Source Skill | Digital Brain Mitigation |73|------|--------------|--------------------------|74| **Context Rot** | context-degradation | Module separation caps any single load. Voice file stays under 300 lines. Data files stream via JSONL (read line by line). |75| **Stale Context** | context-degradation | `last_contact` timestamps in contacts. `stale_contacts.py` proactively surfaces relationships needing attention. |76| **Conflicting Instructions** | context-degradation | Single source of truth per domain. Voice only in `voice.md`. Goals only in `goals.yaml`. No duplication. |7778**Design Decision**:79> "As context length increases, models experience diminishing returns in accuracy and recall."8081Applied by keeping SKILL.md under 200 lines, each module instruction file under 100 lines, and using external files for data rather than inline content.8283---8485## Architecture Decisions8687### Why JSONL for Logs?8889```90✓ Append-only by design91✓ Stream-friendly (no full file parse)92✓ Schema per line (first line documents structure)93✓ Agent-friendly (standard JSON parsing)94✓ Grep-compatible for quick searches9596✗ Not human-editable (use YAML/MD for configs)97✗ No transactions (acceptable for personal data)98```99100### Why Markdown for Narrative?101102```103✓ Human-readable and editable104✓ Rich formatting (tables, lists, code)105✓ Git-friendly diffs106✓ Universal rendering107108Use for: voice, brand, calendar, todos, templates109```110111### Why YAML for Config?112113```114✓ Hierarchical structure115✓ Human-readable116✓ Comments supported117✓ Clean syntax for nested data118119Use for: goals, values, circles, learning120```121122### Why XML for Prompts?123124```125✓ Clear structure for agents126✓ Named sections (instructions, context, output)127✓ Variable placeholders128✓ Validation-friendly129130Use for: content-generation templates, complex prompts131```132133---134135## Workflow Mappings136137### Content Creation → Skills Applied138139```140User: "Write a post about building in public"141142Skills Chain:1431. context-fundamentals → Load only identity module1442. memory-systems → Retrieve voice patterns from voice.md1453. context-optimization → Don't load network/operations1464. tool-design → Use content templates as structured scaffolds147148Files Loaded:149- SKILL.md (50 tokens) - Routing150- identity/IDENTITY.md (80 tokens) - Module instructions151- identity/voice.md (200 tokens) - Voice patterns152- identity/brand.md (scan for pillars) - Topic validation153154Total: ~400 tokens vs loading entire brain (~5000 tokens)155```156157### Relationship Management → Skills Applied158159```160User: "Prepare me for my call with Alex"161162Skills Chain:1631. context-fundamentals → Load only network module1642. memory-systems → Query contacts, then interactions1653. context-optimization → Just-in-time loading of specific contact1664. tool-design → Structured output (brief format)167168Files Loaded:169- SKILL.md (50 tokens) - Routing170- network/NETWORK.md (60 tokens) - Module instructions171- network/contacts.jsonl (scan for Alex) - Contact data172- network/interactions.jsonl (filter by contact_id) - History173174Total: ~300 tokens for relevant context only175```176177---178179## Trade-offs and Rationale180181| Decision | Trade-off | Rationale |182|----------|-----------|-----------|183| Separate modules | More files to navigate | Prevents context bloat; enables targeted loading |184| JSONL for data | Less human-friendly | Optimized for agent parsing and append operations |185| No database | No query language | Simplicity; works offline; no dependencies |186| Python scripts | Requires Python runtime | Universal; readable; easy to extend |187| Placeholders not examples | User must fill in | Avoids "AI slop"; forces personalization |188189---190191## Verification Checklist192193When extending Digital Brain, verify:194195- [ ] New files follow format conventions (JSONL/YAML/MD/XML)196- [ ] Module instruction files stay under 100 lines197- [ ] JSONL files include schema line as first entry198- [ ] Cross-module references are minimal199- [ ] Scripts are self-contained with clear I/O200- [ ] No duplicate sources of truth201202---203204## Related Skills205206This implementation draws from these skills in the collection:207208| Skill | Primary Application |209|-------|---------------------|210| `context-fundamentals` | Overall architecture, progressive disclosure |211| `context-degradation` | Mitigation strategies, file size limits |212| `context-optimization` | Module separation, just-in-time loading |213| `memory-systems` | JSONL design, append-only patterns |214| `tool-design` | Agent scripts, I/O patterns |215| `multi-agent-patterns` | Future: delegation to specialized sub-agents |216217---218219*This mapping demonstrates how theoretical context engineering principles translate to practical system design.*220