[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6N1V69XER39137QNFVWSXGV":3,"skill-same:01M6N1V69XER39137QNFVWSXGV":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6N1V69XER39137QNFVWSXGV","prompt-assemble",null,"Token-safe prompt assembly with memory orchestration. Use for any agent that needs to construct LLM prompts with memory retrieval. Guarantees no API failure due to token overflow. Implements two-phase context construction, memory safety valve, and hard limits on memory injection.","Kernel8901\u002Fai-agent-skills-classification","Kernel8901","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72647553?v=4","01M6KV388J2H5PNC8D8P940BJD","01M6KV38CS5B3AY63RKZB410YM",7,"MIT","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fprompt-assemble\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"prompt","prompt assemble","assemble","Memory retrieval","safe","for","memory orchestration","with","retrieval","token","prompts","assembly","use","context","api","Safety","injection","orchestration","memory safety","memory","2026-11-10 10:12:30",false,"---\nname: prompt-assemble\ndescription: Token-safe prompt assembly with memory orchestration. Use for any agent that needs to construct LLM prompts with memory retrieval. Guarantees no API failure due to token overflow. Implements two-phase context construction, memory safety valve, and hard limits on memory injection.\n---\n\n# Prompt Assemble\n\n## Overview\n\nA standardized, token-safe prompt assembly framework that guarantees API stability. Implements **Two-Phase Context Construction** and **Memory Safety Valve** to prevent token overflow while maximizing relevant context.\n\n**Design Goals:**\n- ✅ Never fail due to memory-related token overflow\n- ✅ Memory is always discardable enhancement, never rigid dependency\n- ✅ Token budget decisions centralized at prompt assemble layer\n\n## When to Use\n\nUse this skill when:\n1. Building or modifying any agent that constructs prompts\n2. Implementing memory retrieval systems\n3. Adding new prompt-related logic to existing agents\n4. Any scenario where token budget safety is required\n\n## Core Workflow\n\n```\nUser Input\n    ↓\nNeed-Memory Decision\n    ↓\nMinimal Context Build\n    ↓\nMemory Retrieval (Optional)\n    ↓\nMemory Summarization\n    ↓\nToken Estimation\n    ↓\nSafety Valve Decision\n    ↓\nFinal Prompt → LLM Call\n```\n\n## Phase Details\n\n### Phase 0: Base Configuration\n```python\n# Model Context Windows (2026-02-04)\n# - MiniMax-M2.1: 204,000 tokens (default)\n# - Claude 3.5 Sonnet: 200,000 tokens\n# - GPT-4o: 128,000 tokens\n\nMAX_TOKENS = 204000  # Set to your model's context limit\nSAFETY_MARGIN = 0.75 * MAX_TOKENS  # Conservative: 75% threshold = 153,000 tokens\nMEMORY_TOP_K = 3                     # Max 3 memories\nMEMORY_SUMMARY_MAX = 3 lines        # Max 3 lines per memory\n```\n\n**Design Philosophy**:\n- Leave 25% buffer for safety (model overhead, estimation errors, spikes)\n- Better to underutilize capacity than to overflow\n\n### Phase 1: Minimal Context\n- System prompt\n- Recent N messages (N=3, trimmed)\n- Current user input\n- **No memory by default**\n\n### Phase 2: Memory Need Decision\n```python\ndef need_memory(user_input):\n    triggers = [\n        \"previously\",\n        \"earlier we discussed\",\n        \"do you remember\",\n        \"as I mentioned before\",\n        \"continuing from\",\n        \"before we\",\n        \"last time\",\n        \"previously mentioned\"\n    ]\n    for trigger in triggers:\n        if trigger.lower() in user_input.lower():\n            return True\n    return False\n```\n\n### Phase 3: Memory Retrieval (Optional)\n```python\nmemories = memory_search(query=user_input, top_k=MEMORY_TOP_K)\nfor mem in memories:\n    summarized_memories.append(summarize(mem, max_lines=MEMORY_SUMMARY_MAX))\n```\n\n### Phase 4: Token Estimation\nCalculate estimated tokens for base_context + summarized_memories.\n\n### Phase 5: Safety Valve (Critical)\n```python\nif estimated_tokens > SAFETY_MARGIN:\n    base_context.append(\"[System Notice] Relevant memory skipped due to token budget.\")\n    return assemble(base_context)\n```\n\n**Hard Rules:**\n- ❌ Never downgrade system prompt\n- ❌ Never truncate user input\n- ❌ No \"lucky splicing\"\n- ✅ Only memory layer is expendable\n\n### Phase 6: Final Assembly\n```python\nfinal_prompt = assemble(base_context + summarized_memories)\nreturn final_prompt\n```\n\n## Memory Data Standards\n\n### Allowed in Long-Term Memory\n- ✅ User preferences \u002F identity \u002F long-term goals\n- ✅ Confirmed important conclusions\n- ✅ System-level settings and rules\n\n### Forbidden in Long-Term Memory\n- ❌ Raw conversation logs\n- ❌ Reasoning traces\n- ❌ Temporary discussions\n- ❌ Information recoverable from chat history\n\n## Quick Start\n\nCopy `scripts\u002Fprompt_assemble.py` to your agent and use:\n\n```python\nfrom prompt_assemble import build_prompt\n\n# In your agent's prompt construction:\nfinal_prompt = build_prompt(user_input, memory_search_fn, get_recent_dialog_fn)\n```\n\n## Resources\n\n### scripts\u002F\n- `prompt_assemble.py` - Complete implementation with all phases (PromptAssembler class)\n\n### references\u002F\n- `memory_standards.md` - Detailed memory content guidelines\n- `token_estimation.md` - Token counting strategies\n","# Prompt Assemble\n\n## Overview\n\nA standardized, token-safe prompt assembly framework that guarantees API stability. Implements **Two-Phase Context Construction** and **Memory Safety Valve** to prevent token overflow while maximizing relevant context.\n\n**Design Goals:**\n- ✅ Never fail due to memory-related token overflow\n- ✅ Memory is always discardable enhancement, never rigid dependency\n- ✅ Token budget decisions centralized at prompt assemble layer\n\n## When to Use\n\nUse this skill when:\n1. Building or modifying any agent that constructs prompts\n2. Implementing memory retrieval systems\n3. Adding new prompt-related logic to existing agents\n4. Any scenario where token budget safety is required\n\n## Core Workflow\n\n```\nUser Input\n    ↓\nNeed-Memory Decision\n    ↓\nMinimal Context Build\n    ↓\nMemory Retrieval (Optional)\n    ↓\nMemory Summarization\n    ↓\nToken Estimation\n    ↓\nSafety Valve Decision\n    ↓\nFinal Prompt → LLM Call\n```\n\n## Phase Details\n\n### Phase 0: Base Configuration\n```python\n# Model Context Windows (2026-02-04)\n# - MiniMax-M2.1: 204,000 tokens (default)\n# - Claude 3.5 Sonnet: 200,000 tokens\n# - GPT-4o: 128,000 tokens\n\nMAX_TOKENS = 204000  # Set to your model's context limit\nSAFETY_MARGIN = 0.75 * MAX_TOKENS  # Conservative: 75% threshold = 153,000 tokens\nMEMORY_TOP_K = 3                     # Max 3 memories\nMEMORY_SUMMARY_MAX = 3 lines        # Max 3 lines per memory\n```\n\n**Design Philosophy**:\n- Leave 25% buffer for safety (model overhead, estimation errors, spikes)\n- Better to underutilize capacity than to overflow\n\n### Phase 1: Minimal Context\n- System prompt\n- Recent N messages (N=3, trimmed)\n- Current user input\n- **No memory by default**\n\n### Phase 2: Memory Need Decision\n```python\ndef need_memory(user_input):\n    triggers = [\n        \"previously\",\n        \"earlier we discussed\",\n        \"do you remember\",\n        \"as I mentioned before\",\n        \"continuing from\",\n        \"before we\",\n        \"last time\",\n        \"previously mentioned\"\n    ]\n    for trigger in triggers:\n        if trigger.lower() in user_input.lower():\n            return True\n    return False\n```\n\n### Phase 3: Memory Retrieval (Optional)\n```python\nmemories = memory_search(query=user_input, top_k=MEMORY_TOP_K)\nfor mem in memories:\n    summarized_memories.append(summarize(mem, max_lines=MEMORY_SUMMARY_MAX))\n```\n\n### Phase 4: Token Estimation\nCalculate estimated tokens for base_context + summarized_memories.\n\n### Phase 5: Safety Valve (Critical)\n```python\nif estimated_tokens > SAFETY_MARGIN:\n    base_context.append(\"[System Notice] Relevant memory skipped due to token budget.\")\n    return assemble(base_context)\n```\n\n**Hard Rules:**\n- ❌ Never downgrade system prompt\n- ❌ Never truncate user input\n- ❌ No \"lucky splicing\"\n- ✅ Only memory layer is expendable\n\n### Phase 6: Final Assembly\n```python\nfinal_prompt = assemble(base_context + summarized_memories)\nreturn final_prompt\n```\n\n## Memory Data Standards\n\n### Allowed in Long-Term Memory\n- ✅ User preferences \u002F identity \u002F long-term goals\n- ✅ Confirmed important conclusions\n- ✅ System-level settings and rules\n\n### Forbidden in Long-Term Memory\n- ❌ Raw conversation logs\n- ❌ Reasoning traces\n- ❌ Temporary discussions\n- ❌ Information recoverable from chat history\n\n## Quick Start\n\nCopy `scripts\u002Fprompt_assemble.py` to your agent and use:\n\n```python\nfrom prompt_assemble import build_prompt\n\n# In your agent's prompt construction:\nfinal_prompt = build_prompt(user_input, memory_search_fn, get_recent_dialog_fn)\n```\n\n## Resources\n\n### scripts\u002F\n- `prompt_assemble.py` - Complete implementation with all phases (PromptAssembler class)\n\n### references\u002F\n- `memory_standards.md` - Detailed memory content guidelines\n- `token_estimation.md` - Token counting strategies\n",{"name":5,"description":7},"main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","人工智能与大型语言模型\u002Fprompt-assemble",1,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification","https:\u002F\u002Fgithub.com\u002FKernel8901","a little little little dobe in life but science geek","2026-04-05 16:43:56",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill prompt-assemble",{"tool":57,"command":58},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill prompt-assemble",{"tool":60,"command":61},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill prompt-assemble","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fprompt-assemble\u002FSKILL.md",true,[65,71,75,79],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"_meta.json","REFERENCE","参考文档",291,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fprompt-assemble\u002F_meta.json",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fmemory_standards.md",2307,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fprompt-assemble\u002Freferences\u002Fmemory_standards.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Ftoken_estimation.md",1794,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fprompt-assemble\u002Freferences\u002Ftoken_estimation.md",{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fprompt_assemble.py","SCRIPT","脚本",15504,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fprompt-assemble\u002Fscripts\u002Fprompt_assemble.py",[86,108,129,137,144,170],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":38},"01M6Q5R6WZ06RRB9RQTW54B34B","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzyfai-sdk\u002FSKILL.md",[],[88,22,93,94,95,96,30,97,98,99,100,101,102,103,104,105,106,107],"ethereum","defi","Optimization","user","Wallet","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":109,"name":110,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":38},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[],[32,114,115,116,117,118,119,94,120,97,121,122,123,124,125,126,127,27,128],"zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","evm","solana","query","across","positions","prices",{"skillNo":130,"name":131,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":38},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[],[32,135,136,114,115,116,117,118,119,94,120,97,122,123,124,125,126,127,27,128],"api skill","zerion api skill",{"skillNo":138,"name":139,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":38},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[],[116,32,143,114,115,117,118,94,120,97,121,122,123,124,125,126,127,27,128],"zerion api mcp",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":38},"01M6Q5QQYZB7A501BDEQWKGSJT","yahoo-finance-forex","Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR\u002FUSD, GBP\u002FUSD, USD\u002FJPY, etc.). Analyzes sentiment and provides trading context.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-forex\u002FSKILL.md",[],[151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,23],"finance","yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","real-time","python3","install","Market","usd","news","time","currency","gbp","pip","market data",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":38},"01M6Q5QM6VS84WZVM7BKXXPF32","yahoo-finance","This skill should be used when the user asks to \"get stock prices\", \"check stock quotes\", \"look up earnings\", \"get financial data\", \"find trending stocks\", or needs stock market data from Yahoo Finance.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-cli\u002FSKILL.md",[],[151,152,154,177,178,179,180,181,182,162,183,184,185,186,187,188,189,190,128,169],"cli","homebrew","find","check","brew","up","local","get","stock","link","trending","sf","quotes","ln"]