Skip to content

Commit ebcc847

Browse files
committed
add AI section
1 parent c390b5e commit ebcc847

4 files changed

Lines changed: 76 additions & 0 deletions

File tree

_articles/ai/agent-skills.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
layout: default-layout
3+
needAutoGenerateSidebar: true
4+
title: Agent Skills | Dynamic Web TWAIN Documentation
5+
keywords: Dynamic Web TWAIN, Documentation, Agent Skills
6+
breadcrumbText: Agent Skills
7+
description: This post teaches you how to use Dynamic Web TWAIN's offical agent skills.
8+
---
9+
10+
# Agent Skills
11+
12+
Agent Skills are structured instruction files that teach AI agents how to use Dynamic Web TWAIN in your web apps accurately and efficiently. They work with Claude Code, Cursor, Codex, and other AI agents.
13+
14+
You can run the following command to install the skills:
15+
16+
```bash
17+
npx skills add https://github.com/Dynamsoft/web-twain-samples/
18+
```
19+
20+
## Example prompts
21+
22+
Try the following prompts after installing. Your AI agent will automatically use the installed skills:
23+
24+
1. Use Web TWAIN in an existing Angular project.
25+
26+
```
27+
Please create a component to use Dynamic Web TWAIN for document scanning in this angular app. Just a scan button to perform scanning and view the document in a viewer.
28+
```
29+
30+
2. Create a plain JavaScript HTML file to scan documents.
31+
32+
```
33+
Please write an html file which loads Web TWAIN via CDN. The page contains a scan button, which triggers scanning with the scanner ui. The scanned images are displayed in Web TWAIN's viewer.
34+
```
35+
36+
3. Ask questions about Web TWAIN.
37+
38+
```
39+
What is Dynamic Web TWAIN service?
40+
```
41+
42+
43+
## Additional Resources
44+
45+
* [GitHub repo](https://github.com/Dynamsoft/web-twain-samples/tree/main/skills)
46+
* [Agent Skills documentation](https://agentskills.io/home)

_articles/ai/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: default-layout
3+
needAutoGenerateSidebar: true
4+
noTitleIndex: true
5+
title: AI Overview | Dynamic Web TWAIN Documentation
6+
keywords: Dynamic Web TWAIN, TWAIN, AI, Documentation
7+
breadcrumbText: AI Overview
8+
description: Overview of Dynamic Web TWAIN and AI.
9+
---
10+
11+
# AI Overview
12+
13+
AI can answer questions related to Dynamic Web TWAIN and write codes directly. You can utilize AI in several ways.
14+
15+
## How to Use
16+
17+
1. Ask the <a href="javascript:document.getElementById('ask-ai-btn').click()">AI agent</a> questions about the SDK.
18+
2. Use the [agent skills](./agent-skills.md) in your AI agent like Claude Code, Codex and Cursor. Skills teach the agent how to include Web TWAIN in your project and use its APIs correctly.
19+

_articles/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ description: Dynamic Web TWAIN SDK Documentation Homepage
9494
- [Addon]({{site.info}}schedule/Addon.html)
9595
- [Deprecated]({{site.info}}schedule/deprecated.html)
9696

97+
### AI
98+
99+
- [Overview](/_articles/ai/index.md)
100+
- [Agent Skills](/_articles/ai/agent-skills.md)
101+
97102
### [Upgrade Instructions]({{site.indepth}}development/upgrade.html)
98103
### [End-User Guide](/_articles/end-user/index.md)
99104
### [Resources]({{site.about}}resources.html)

_data/full_tree.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ tree_list:
197197
path: /info/schedule/Addon.html
198198
- name: Deprecated
199199
path: /info/schedule/deprecated.html
200+
- name: AI
201+
childList:
202+
- name: Overview
203+
path: /ai/index.html
204+
- name: Agent Skills
205+
path: /ai/agent-skills.html
200206
- name: Upgrade Instructions
201207
path: /indepth/development/upgrade.html
202208
- name: End-User Guide

0 commit comments

Comments
 (0)