Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c0bdccb
add hybrid search and tokenizer utils
wangxingjun778 Jan 27, 2026
aba0b23
add async_search
wangxingjun778 Jan 27, 2026
40cb6a0
add Auto Skills
wangxingjun778 Jan 27, 2026
dc56cf0
fix hybrid retriever SIGSEGV issue for the large corpus
wangxingjun778 Jan 27, 2026
3cc0318
fix hybrid retriever SIGSEGV issue for the large corpus
wangxingjun778 Jan 27, 2026
a1f52fe
add corpus adding lock
wangxingjun778 Jan 27, 2026
132d19f
add container module for skill execution
wangxingjun778 Jan 28, 2026
7555b83
ok Merge branch 'main' of github.com:modelscope/ms-agent into feat/sk…
wangxingjun778 Jan 29, 2026
8b3e908
refactor auto skills
wangxingjun778 Jan 29, 2026
801530c
temp
wangxingjun778 Jan 29, 2026
3cf80b5
add skills verify
wangxingjun778 Jan 29, 2026
6fe4f5b
add quick filter skills
wangxingjun778 Jan 29, 2026
e58e4ce
add skill filter
wangxingjun778 Jan 29, 2026
96bae53
update auto skills
wangxingjun778 Jan 29, 2026
1d0d696
improve plan prompt
wangxingjun778 Jan 29, 2026
f0d13b7
add tests for skills
wangxingjun778 Jan 30, 2026
2be6675
update test claude skills
wangxingjun778 Jan 30, 2026
80ad54a
fix tests for skills
wangxingjun778 Jan 30, 2026
cb30c8a
fix dag gen
wangxingjun778 Jan 30, 2026
7a43da7
update UT for skills
wangxingjun778 Jan 30, 2026
9f6c65f
update UT for skills
wangxingjun778 Jan 31, 2026
4aeec49
update usage for auto skills
wangxingjun778 Feb 1, 2026
aa9d7e7
fix retrieve args
wangxingjun778 Feb 1, 2026
1ce5e99
add docker utils
wangxingjun778 Feb 1, 2026
5633a3c
remove unused codes
wangxingjun778 Feb 1, 2026
9cdf36b
ok Merge branch 'main' of github.com:modelscope/ms-agent into feat/sk…
wangxingjun778 Feb 1, 2026
41f280b
add skill processing in LLMAgent
wangxingjun778 Feb 2, 2026
bc428f7
add examples for skills; add skills logic in LLMAgent
wangxingjun778 Feb 2, 2026
3478b5e
ok Merge branch 'main' of github.com:modelscope/ms-agent into feat/sk…
wangxingjun778 Feb 2, 2026
82a197d
add skill readme
wangxingjun778 Feb 2, 2026
65fa326
ok Merge branch 'main' of github.com:modelscope/ms-agent into feat/sk…
wangxingjun778 Feb 2, 2026
31fdc53
add do_skill in LLMAgent
wangxingjun778 Feb 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
41 changes: 12 additions & 29 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,57 +1,40 @@



repos:
- repo: https://github.com/pycqa/flake8.git
rev: 4.0.0
hooks:
- id: flake8
exclude: |
(?x)^(
thirdparty/|
examples/|
tests/run.py|
projects/fin_research/examples/|
ms_agent/utils/prompts.py
)$
exclude: ^(thirdparty/|examples/|tests/|projects/agent_skills/|projects/fin_research/examples/|ms_agent/utils/prompts\.py)
- repo: https://github.com/PyCQA/isort.git
rev: 4.3.21
hooks:
- id: isort
exclude: |
(?x)^(
examples/|
projects/fin_research/examples/|
tests/run.py|
)$
exclude: ^(examples/|projects/fin_research/examples/|projects/agent_skills/|tests/)
- repo: https://github.com/pre-commit/mirrors-yapf.git
rev: v0.30.0
hooks:
- id: yapf
exclude: |
(?x)^(
thirdparty/|
examples/|
projects/fin_research/examples/|
tests/run.py
)$
exclude: ^(thirdparty/|examples/|projects/fin_research/examples/|projects/agent_skills/|tests/)
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v3.1.0
hooks:
- id: trailing-whitespace
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
- id: check-yaml
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
- id: end-of-file-fixer
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
- id: requirements-txt-fixer
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
- id: double-quote-string-fixer
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
- id: check-merge-conflict
exclude: thirdparty/|tests/run.py
exclude: ^(thirdparty/|tests/|projects/agent_skills/)
- id: fix-encoding-pragma
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
args: ["--remove"]
- id: mixed-line-ending
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
args: ["--fix=lf"]
39 changes: 11 additions & 28 deletions .pre-commit-config_local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,35 @@ repos:
rev: 4.0.0
hooks:
- id: flake8
exclude: |
(?x)^(
thirdparty/|
examples/|
projects/fin_research/examples/|
tests/run.py
)$
exclude: ^(thirdparty/|examples/|projects/fin_research/examples/|projects/agent_skills/|tests/)
- repo: /home/admin/pre-commit/isort
rev: 4.3.21
hooks:
- id: isort
exclude: |
(?x)^(
examples/|
projects/fin_research/examples/|
tests/run.py|
)$
exclude: ^(examples/|projects/fin_research/examples/|projects/agent_skills/|tests/)
- repo: /home/admin/pre-commit/mirrors-yapf
rev: v0.30.0
hooks:
- id: yapf
exclude: |
(?x)^(
thirdparty/|
examples/|
projects/fin_research/examples/|
tests/run.py
)$
exclude: ^(thirdparty/|examples/|projects/fin_research/examples/|projects/agent_skills/|tests/)
- repo: /home/admin/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
- id: check-yaml
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
- id: end-of-file-fixer
exclude: thirdparty/|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
- id: requirements-txt-fixer
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
- id: double-quote-string-fixer
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
- id: check-merge-conflict
exclude: thirdparty/|tests/run.py
exclude: ^(thirdparty/|tests/|projects/agent_skills/)
- id: fix-encoding-pragma
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
args: ["--remove"]
- id: mixed-line-ending
exclude: thirdparty/|tests/run.py|projects/fin_research/examples/
exclude: ^(thirdparty/|tests/|projects/fin_research/examples/|projects/agent_skills/)
args: ["--fix=lf"]
52 changes: 0 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,58 +262,6 @@ asyncio.run(main())
</details>


### Agent Skills

**MS-Agent Skills** is an **Implementation** of the [**Anthropic-Agent-Skills**](https://docs.claude.com/en/docs/agents-and-tools/agent-skills) protocol, enabling agents to autonomously explore and execute complex tasks by leveraging predefined or custom "skills".


#### Key Features

- 📜 **Standard Skill Protocol**: Fully compatible with the [Anthropic Skills](https://github.com/anthropics/skills) protocol
- 🧠 **Heuristic Context Loading**: Loads only necessary context—such as `References`, `Resources`, and `Scripts` on demand
- 🤖 **Autonomous Execution**: Agents autonomously analyze, plan, and decide which scripts and resources to execute based on skill definitions
- 🔍 **Skill Management**: Supports batch loading of skills and can automatically retrieve and discover relevant skills based on user input
- 🛡️ **Code Execution Environment**: Optional local direct code execution or secure sandboxed execution via [**ms-enclave**](https://github.com/modelscope/ms-enclave), with automatic dependency installation and environment isolation
- 📁 **Multi-file Type Support**: Supports documentation, scripts, and resource files
- 🧩 **Extensible Design**: The skill data structure is modularized, with implementations such as `SkillSchema` and `SkillContext` provided for easy extension and customization


#### Quick Start

> 💡 Note:
> 1. Before running the following examples, ensure that you have set the `OPENAI_API_KEY` and `OPENAI_BASE_URL` environment variables to access the required model APIs.
> 2. Agent Skills requires ms-agent >= 1.4.0


**Installation**:

```shell
pip install ms-agent
```

**Usage**:

> This example demonstrates how to configure and run an Agent Skill that generates generative art code based on p5.js flow fields.


Refer to: [Run Skills](projects/agent_skills/run.py)


**Result**:

<div align="center">
<img src="https://github.com/user-attachments/assets/9d5d78bf-c2db-4280-b780-324eab74a41e" alt="FlowFieldParticles" width="750">
<p><em>Agent-Skills: Flow Field Particles</em></p>
</div>


#### References
- **README**: [MS-Agent Skills](projects/agent_skills/README.md)
- **Anthropic Agent Skills Official Docs**: [Anthropic-Agent-Skills](https://docs.claude.com/en/docs/agents-and-tools/agent-skills)
- **Anthropic Skills GitHub Repo**: [Skills](https://github.com/anthropics/skills)



### Agentic Insight

#### - Lightweight, Efficient, and Extensible Multi-modal Deep Research Framework
Expand Down
50 changes: 0 additions & 50 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,56 +262,6 @@ asyncio.run(main())
</details>


### Agent Skills

**MS-Agent Skills** 模块是对 [**Anthropic-Agent-Skills**](https://docs.claude.com/en/docs/agents-and-tools/agent-skills) 协议的实现,允许开发者轻松创建、管理和使用智能体技能,提升智能体在复杂任务上的表现。


#### 1) 核心特性

- 📜 **标准技能协议**:完全兼容 [Anthropic Skills](https://github.com/anthropics/skills) 协议
- 🧠 **启发式上下文加载**:仅在需要时加载必要的上下文,如`References`、`Resources`和`Scripts`等
- 🤖 **自主执行**:智能体根据技能定义,自主分析、规划和决策执行哪些脚本和资源
- 🔍 **技能管理**:支持技能批量加载,可根据用户输入自动检索和发现相关技能
- 🛡️ **代码执行环境**:可选代码本地直接执行,或使用沙箱环境([**ms-enclave**](https://github.com/modelscope/ms-enclave)),自动处理依赖项安装和环境隔离
- 📁 **多文件类型支持**:支持文档、脚本和资源文件
- 🧩 **可扩展设计**:对「技能」的数据结构进行了模块化设计,提供 `SkillSchema`、`SkillContext`等实现,便于扩展和定制

#### 2) 快速开始

> 💡 提示:
> 1. 在运行以下示例之前,请确保设置了 `OPENAI_API_KEY` 和 `OPENAI_BASE_URL` 环境变量,以便访问所需的模型 API
> 2. Agent Skills 要求 ms-agent 版本 >= 1.4.0


**安装依赖**:

```shell
pip install ms-agent
```

**使用示例**:
> 该示例展示了如何配置和运行一个Agent Skill,基于p5.js的流场生成艺术代码。


参考代码: [Run Skills](projects/agent_skills/run.py)


**运行结果**:

<div align="center">
<img src="https://github.com/user-attachments/assets/9d5d78bf-c2db-4280-b780-324eab74a41e" alt="FlowFieldParticles" width="750">
<p><em>Agent-Skills: Flow Field Particles</em></p>
</div>



#### 3) 参考文档
- **README**:请参考 [MS-Agent Skills](projects/agent_skills/README.md)
- **Anthropic Agent Skills官方文档**:请参考 [Anthropic-Agent-Skills](https://docs.claude.com/en/docs/agents-and-tools/agent-skills)
- **Anthropic预定义Skills GitHub仓库**:请参考 [Skills](https://github.com/anthropics/skills)


### Agentic Insight

#### - 轻量级、高效且可扩展的多模态深度研究框架
Expand Down
Loading
Loading