[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-721660-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-721660-en":130,"doc-similar-721660":160},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","design-principles-and-practical-tips-for-skills-and-agents-in-opencode-article","Design Principles and Practical Tips for Skills and Agents in OpenCode - Article","","Extensible LLM programming environments increasingly combine reusable capabilities, agent orchestration, and external tools in one loop, making boundaries between Skills, Agents, Subagents, Tools, MCP servers, and Commands easy to misunderstand. The paper converts OpenCode practice into engineering conventions: it defines key concepts, separates responsibilities, specifies file-layout rules, presents a threat model, and evaluates Skill and Agent examples through a shared template. The contribution is a set of design rules aimed at extensibility, inspectability, and maintainability, while clarifying safety limits in open execution settings.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/design-principles-and-practical-tips-for-skills-and-agents-in-opencode-article/721660/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/design-principles-and-practical-tips-for-skills-and-agents-in-opencode-article/721660.png","ImageObject",300,407,{"name":42,"@type":43},"Connor ","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-11-19",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What problem does the paper address about OpenCode documentation and community examples?","Question",{"text":62,"@type":63},"It notes that boundaries among Skills, Agents, Subagents, Tools, MCP servers, and Commands are sometimes unclear, leading to engineering issues such as brittle configuration, overly broad permissions, and hard-to-reuse notes.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does the paper define a Skill and an Agent in OpenCode-style systems?",{"text":67,"@type":63},"A Skill is a reusable capability package with documented usage conditions, workflow, and required resources, while an Agent is a task execution subject responsible for orchestration, context management, and scheduling.",{"name":69,"@type":60,"acceptedAnswer":70},"What engineering conventions does the paper propose to improve maintainability and reuse?",{"text":71,"@type":63},"It provides design rules including explicit terminology, responsibility boundaries, file-layout rules, YAML frontmatter templates, and a consistent checklist for reviewing Skill and Agent examples.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},721660,1795064287,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":117,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":79,"read_time":103,"preview_page_count":33,"preview_urls":143},687207022233,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Design Principles and Practical Tips for Skills and Agents in OpenCode  \nSong Congwei ∗  \nBeijing Institute of Mathematical Sciences and Applications (BIMSA)  \nHuairou District, Beijing  \nAbstract Extensible LLM programming environments now mix reusable capabilities, agent orchestration, and external tools in a single working loop. OpenCode is a typical example, but its documentation and community examples sometimes leave the boundaries among Skills, Agents, Subagents, Tools, MCP servers, and Commands unclear. The result is usually not a single catastrophic error, but smaller engineering problems: brittle configuration, permissions that grow too broad, and notes that are hard to reuse outside the author’s own setup. This paper turns OpenCode practice into a set of engineering conventions. It defines the main concepts, separates responsibilities, records file-layout rules, describes a threat model, and reviews Skill and Agent examples with the same template. This paper is an experience report: its contribution is a practical set of design rules, distilled from hands-on use of OpenCode, for building extensions that are easier to reuse, inspect, and maintain, while still acknowledging the limits of any safety claim in an open tool environment.  \nKeywords: OpenCode, Skill, Agent, Design Principles, Reusability, Security  \n1 Introduction  \nOpenCode is a programmable collaboration platform for large language models (LLMs) [1, 2] . As generative AI is reshaping software engineering practice [3, 4], its core philosophy is to achieve “human-machine collaboration, tasks as services” through skills (specialized functional modules) [5–11] and agents (executors responsible for scheduling, memory, and context management) [12, 13] . In practice, developers often face the following challenges:  \n(1) How to establish unified naming and file structures to facilitate team collaboration;  \n(2) How to maintain good maintainability and reusability of skills and agents while preserving functional completeness;  \n∗ Corresponding author: [william@bimsa.cn](william@bimsa.cn)  \n(3) How to enable self-evolution and self-improvement of skills, allowing agents to iteratively refine their own capabilities based on feedback, usage patterns, and performance metrics, while maintaining stability and avoiding unintended behavioral drift;  \n(4) How to ensure security in an open execution environment, preventing malicious instructions or resource leaks.  \nThis paper addresses these issues as an experience report, drawing on hands-on use of OpenCode alongside a close reading of its oﬀicial documentation. It then extracts a set of design rules and implementation techniques, with examples where the rules are easy to misapply.  \nThe contributions of this paper are summarized as follows:  \n(1) It clarifies the terminology and responsibility boundaries among Skills, Agents, Subagents, Tools, MCP servers, and Commands in OpenCodestyle systems.  \n(2) It provides practical file conventions and reusable YAML frontmatter templates for creating maintainable Skills and Agents.  \n(3) It reframes security guidance around an explicit threat model, covering attack surfaces, risks, mitigations, and residual risks.  \n(4) It analyzes representative case studies with the same engineering checklist: usage scenario, trigger condition, dependencies, permissions, failure modes, and safety considerations.  \n2 Core Concepts and Terminology  \nOpenCode combines prompt-level instructions with executable tools and configuration files. To avoid conflating these layers, this paper uses the following terms consistently.  \nTable 1: Core concepts in OpenCode-style agent systems  \nConcept  \nDefinition  \nTypical Boundary  \nSkill  \nA reusable capability package, usually documented in  \n[SKILL.md](SKILL.md), that describes when it should be used, what workflow it follows, and what resources or scripts it may rely on.  \nEncapsulates a repeatable method; should not silently broaden permissions or redefine","cbCaiupZvlCWvrOJ","https://ap.wps.com/l/cbCaiupZvlCWvrOJ","pdf",915049,"English","# Introduction\n# Core Concepts and Terminology","[{\"question\":\"What problem does the paper address about OpenCode documentation and community examples?\",\"answer\":\"It notes that boundaries among Skills, Agents, Subagents, Tools, MCP servers, and Commands are sometimes unclear, leading to engineering issues such as brittle configuration, overly broad permissions, and hard-to-reuse notes.\"},{\"question\":\"How does the paper define a Skill and an Agent in OpenCode-style systems?\",\"answer\":\"A Skill is a reusable capability package with documented usage conditions, workflow, and required resources, while an Agent is a task execution subject responsible for orchestration, context management, and scheduling.\"},{\"question\":\"What engineering conventions does the paper propose to improve maintainability and reuse?\",\"answer\":\"It provides design rules including explicit terminology, responsibility boundaries, file-layout rules, YAML frontmatter templates, and a consistent checklist for reviewing Skill and Agent examples.\"}]","Design Principles and Practical Tips for Skills and Agents in OpenCode - Article | PDF",[144,148,152,156],{"page_no":22,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/8f19a99ba00779d48bf76aba5a0de1e2.webp",983,1272,{"page_no":26,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/9dafc80a9d69bd0f60be404cabf2a07c.webp",982,1270,{"page_no":30,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/63202c00107dc6cef2b436e7c928659d.webp",981,1269,{"page_no":33,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/7c570f709af7f41e78e8ce79ddae02c7.webp",980,1268,{"list":161,"token":11},[162,169,176,183,189,195,201,207,214,220],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":167,"category_name":29,"create_tm":168},86130,"Rethinking MCP Security: A Large-Scale Study of Runtime MCP Servers and Security Scanner Reliability","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809505592/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=y68sXt9y94erNLxXZgqdO1NbjsI%3D","rethinking-mcp-security-a-large-scale-study-of-runtime-mcp-servers-and-security-scanner-reliability",27,1784208733,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":174,"category_name":29,"create_tm":175},83246,"Mitigating Taint-Style Vulnerabilities in MCP Servers via Security-Aware Tool Descriptions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808953797/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=cJnWoD2AIYMXYc0ZgyMUjhVp5bQ%3D","mitigating-taint-style-vulnerabilities-in-mcp-servers-via-security-aware-tool-descriptions",24,1784186225,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":29,"create_tm":182},86134,"AgentCheck: A Reproduce–Intervene–Mitigate Workbench for LLM Agents over MCP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809506774/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=wIe%2B710LB22mgzIAkq2l51gtSs4%3D","agentcheck-a-reproduceintervenemitigate-workbench-for-llm-agents-over-mcp",32,1784208817,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":22,"category_name":29,"create_tm":188},760815,"Trojan’s Whisper - Stealthy Manipulation of OpenClaw through - Injected Bootstrapped Guidance","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044530720/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=ueA47Wu6mQGtOSGrUYbasQpsB1g%3D","trojans-whisper-stealthy-manipulation-of-openclaw-through-injected-bootstrapped-guidance",1795910027,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":98,"category_name":29,"create_tm":194},15482,"Mitigating the OWASP Top 10 for Large Language Models Applications Using Intelligent Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229699007497/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=Su1ru4IqgXLPsBKlMgo9sSGCbBM%3D","mitigating-the-owasp-top-10-for-large-language-models-applications-using-intelligent-agents",1776562359,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":167,"category_name":29,"create_tm":200},83357,"Multi-Agent Firewall Architecture for Privacy Protection of Sensitive Data in Interactions with Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808838128/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=xoskYFiIe%2FGFoW1NOSIXcMmGBdQ%3D","multi-agent-firewall-architecture-for-privacy-protection-of-sensitive-data-in-interactions-with-language-models",1784186975,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":167,"category_name":29,"create_tm":206},85478,"MCPZoo: 大规模可运行模型上下文协议服务器数据集（面向AI代理）","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809317659/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=9e4Z%2BRph1fyUEMi3c6ZnX43b7aI%3D","mcpzoo-a-large-scale-dataset-of-runnable-model-context-protocol-servers-for-ai-agent",1784203895,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":29,"create_tm":213},85552,"Open, Reliable, and Collective: A Community-Driven Framework for Tool-Using AI Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809325966/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=g6whlzNas1JsDU0Di%2FIQZClvl4Y%3D","open-reliable-and-collective-a-community-driven-framework-for-tool-using-ai-agents",25,1784204488,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":96,"category_name":29,"create_tm":219},682063,"Bridging Protocol and Production - Design Patterns for Deploying AI Agents with Model Context Protocol","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999346839/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=BTcl3h%2B2EBm9OD18GZBobotiBe8%3D","bridging-protocol-and-production-design-patterns-for-deploying-ai-agents-with-model-context-protocol",1793959113,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":167,"category_name":29,"create_tm":225},85525,"A General Equilibrium Theory of Orchestrated AI Agent Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809321170/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=9xdZfZylsJYPK2jJz%2FLTX%2BOl%2B%2Fk%3D","a-general-equilibrium-theory-of-orchestrated-ai-agent-systems",1784204177]