Proposal: Skills — workflow-level context for tool composition
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript
- Lĩnh vực
- web-dev
Hướng nghiên cứu
Start with the proposal’s registerSkill() strawman API and the existing registerTool() and provideContext() behavior. There are unresolved API and semantics questions, so the first task is to identify the relevant specification section or proposal entry point and determine the intended scope; completion requires an agreed API and normative documentation, which this issue does not yet identify.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Proposal to let pages register skills — bundling tools with structured context and workflow guidance — so agents can use a site competently, not just functionally.
Tools can tell agents what a site can do, but Skills tell agents how to do it well.
A skill bundles registered tools with structured context and optional guidance, so agents can operate competently within a domain rather than calling functions blind.
Strawman API
navigator.modelContext.registerSkill({
name: "personal_shopper",
description: "Shopping assistant guidance for this store",
instructions: `
1. Ask about occasion and budget before searching
2. Our sizing runs small — suggest one size up
3. For orders over $100, mention current promotion
4. Always mention 30-day return policy before checkout
5. Use requestUserInteraction() for payment confirmation
`,
tools: ["searchProducts", "showProducts", "addToCart", "applyPromoCode"],
context: {
currentPromotion: { code: "SPRING30", minOrder: 100, discount: "30%" },
returnPolicy: "30-day free returns, free first exchange",
sizingNote: "Sizes run ~1 size small vs. US standard"
},
annotations: { category: "commerce", version: "1.0" }
});
Tools are still registered independently via registerTool(). A skill references them by name and adds the layer of how and when to use them.
instructions is an optional hint — clients that don't interpret natural language (accessibility tools, OS assistants) can ignore it and still use the tools and structured context directly.
Problem
An e-commerce site registers searchProducts, addToCart, and applyPromoCode. An agent can call them. But it doesn't know the store's sizing runs small, there's an active promo code, it should ask about occasion before searching, or which products pair well together.
Tool descriptions can't carry this weight — they document individual functions, not workflows. The gap grows with domain complexity: travel sites need fare class knowledge, support portals need triage logic.
Design Considerations
- Trust. Skills influence agent behavior. Safeguards: user-inspectable (like page source), domain-scoped (like tools), advisory (agents serve users first). Browsers could enforce content policies on instructions.
- Discoverability. A
.well-known/webmcpmanifest could include skill declarations alongside tools. - Agnosticism.
instructionsis a hint for LLM-based agents. The structured context object and tools list are useful to any client. Non-LLM clients skip what they don't understand — same pattern asreadOnlyHint.
Open Questions
- New method (
registerSkill) or extension toprovideContext()? - Should
instructionsbe plain text, structured steps, or both? - How should skills interact with the agent's own system-level constraints?
Prior Art
- MCP prompts/resources — backend MCP's guidance and data primitives
- MCP-B — already bridges WebMCP to full MCP including prompts and resources via npm packages
- Claude Skills, Custom GPTs, LobeHub Skills — production patterns bundling instructions + tools + context
- Ngôn ngữ chính
- Bikeshed
- Star
- 4.7k
- Fork
- 328
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của webmachinelearning/webmcp
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
webmachinelearning/webmcp#360 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Say how an agent should weigh annotations that the page wrote about itselfCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
webmachinelearning/webmcp#353 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
webmachinelearning/webmcp#343 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Agenda+ i18n-tracker
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
webmachinelearning/webmcp#273 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
a11y-tracker Agenda+
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
webmachinelearning/webmcp#272 · 4 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của webmachinelearning/webmcp
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Vanilla-OS/apx-gui#112 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PhyberApex/slds-json-schema-renderer#371 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
usage: a custom provider's balance meters ("…%" in the balance path) ignore the Left/Used switchĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
daohoangson/flutter_widget_from_html#1657 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
USACE/chart-docs#788 ·