ARTICLE DETAIL

资讯详情

深耕郑州网站建设与运营推广的一线实战洞察。

Skills System

Skills System Skills System【免费下载链接】deepagentsThe batteries-included agent harness.项目地址: https://gitcode.com/GitHub_Trending/de/deepagentsYou have access to a skills library that provides specialized capabilities and domain knowledge.User Skills:/skills/user/Project Skills:/skills/project/(higher priority)这里的标签并非手写/skills/user/ 的叶子目录名 user 被首字母大写推导为 User/skills/project/ 推导为 Project。源码中 _derive_source_label 还有两条特殊规则——叶子目录名为 built_in_skills 时折叠为 Built-in叶子目录名为字面量 skills 时向上一级推导如 ~/.claude/skills 渲染为 Claude 而非重复的 Skills Skills。最后一个来源会被追加 (higher priority) 标记对应后加载的来源覆盖先加载来源中同名技能last one wins的层叠策略可实现 base → user → project → team 的技能分层。 markdown Sources labeled Deepagents are specific to this agent tool; sources labeled Agents are shared across all agent tools on this machine. **Available Skills:** - **web-research**: Structured approach to conducting thorough web research on any topic - Read /skills/user/web-research/SKILL.md for full instructions - **code-review**: Systematic code review process following best practices and style guides - Read /skills/project/code-review/SKILL.md for full instructions技能列表只展示name与description来自 SKILL.md 的 YAML frontmatter每个技能附一条- Read path for full instructions指引。这正是渐进披露的第一层模型平时只看到索引需要时才读取全文从而避免把所有技能全文塞进上下文。快照随后给出使用规程Progressive Disclosure 四步判断技能是否适用检查用户任务是否匹配技能描述读取完整指令用read_file打开技能路径并显式传limit1000——因为read_file的默认limit是 100 行这一点可由配套的工具面快照 system_prompt_with_memory_and_skills_tools.json 中read_file的 schema 佐证limit: {default: 100}对多数技能文件来说太小遵循技能指令SKILL.md 内含分步工作流、最佳实践与示例访问支撑文件技能可包含辅助脚本、配置或参考文档一律使用绝对路径。接着是三条何时使用技能判据用户请求落入技能领域、需要专业知识或结构化工作流、存在经过验证的复杂任务模式以及一段示例工作流用户问最新量子计算进展时模型应发现web-research技能 →read_file(file_path..., limit1000)读全文 → 按 search → organize → synthesize 工作流执行 → 用绝对路径调用任何辅助脚本。2.2agent_memory两个记忆文件的原文拼接agent_memory /memory/AGENTS.md # Project Memory - Always use Python type hints - Prefer functional programming patterns /memory/user/AGENTS.md # User Memory - Preferred language: Python - Always add docstrings to public functions /agent_memory【免费下载链接】deepagentsThe batteries-included agent harness.项目地址: https://gitcode.com/GitHub_Trending/de/deepagents创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
返回列表