Chuyển đến nội dung
Skillpedia
Agent5.4k · #14872

self-awareness

Skill này làm gì

Skill này cho phép agent xem xét chính không gian làm việc của nó, bao gồm các tính năng host khả dụng, file dự án và các phiên đang chạy. Nó dành cho người dùng môi trường Open-Science cần agent tìm ra những gì nó có thể dùng.

Khi nào nên dùng

  • ✓Khi agent cần biết những tính năng nào đã được bật trước khi thử một tác vụ.
  • ✓Khi bạn muốn tìm một file hoặc một phiên bản dữ liệu cụ thể trong dự án hiện tại.
  • ✓Khi bạn muốn agent đọc lại bản ghi của một phiên trước để xem điều gì đã xảy ra.

Liên kết skill

https://github.com/aipoch/open-science/blob/main/resources/skills/self-awareness/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/aipoch/open-science/blob/main/resources/skills/self-awareness/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể kiểm tra các tính năng host đang khả dụng trong dự án này và tìm phiên bản dữ liệu mới nhất không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent gọi một lệnh kiểm tra khả năng trong môi trường điều khiển. Sau đó nó tra cứu file dự án, phiên làm việc hoặc bản ghi, rồi báo lại những gì tìm được.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Self-awareness

Use repl_execute for every host.* call. The host object exists only in the persistent JavaScript control REPL; Python and R data kernels do not receive it.

Inspect available capabilities

const caps = await host.capabilities()

The current project-native result contains 20 known boolean keys:

  • mcp gates connector calls through host.mcp(server, method, args?).
  • compute gates the host.compute namespace.
  • agents gates the host.agents namespace.
  • skills gates the host.skills namespace.
  • artifacts gates managed-file discovery through host.artifacts(options?) and exact path resolution through host.artifactPath(versionId).
  • lineage gates the read-only host.lineage namespace.
  • frames gates the read-only host.frames namespace.
  • sessions gates Main-only, read-only Session diagnostics through host.sessions.list(options?) and exact lookup through host.sessions.inspect(sessionId) in the current Project.
  • llm gates one-shot, tool-less inference through host.llm(request, options?).
  • currentModel gates exact current-model lookup through host.currentModel(). It returns the calling Session's exact current model id and fails when the live backend cannot establish one.
  • listModels gates configured Host LLM model discovery through host.listModels(). It returns the frozen, stable-sorted configured model ids for the current Host LLM Provider and framework. It never refreshes over the network or merges ids across Providers.
  • viewImage gates transient image attachment through host.viewImage(source, options?). Sources may be an Artifact or Upload Version in the current Project, or a path relative to the current execution workspace. For a generated file, pass the same relative path used to save it.
  • delegate, children, collect, stopChild, and resolveMessage are Main/root-only delegated work operations.
  • sendFrameMessage and messageReceipt are available to Main/root and Delegate agents when their trusted route is provisioned.
  • submitOutput is available only to an authenticated Delegate Attempt with an admitted output schema.

Newer runtimes may return additive boolean keys. Do not assume their meaning until their matching Skill documents them. Older runtimes can omit known keys.

Interpret every key narrowly:

  • true means the current session capability authorizes the namespace and the application has its handler configured. It does not mean a resource exists, approval is unnecessary, or a call will succeed.
  • false means the capability name is known but unavailable to this caller.
  • A missing key means this runtime does not know that capability. Test with === true.
const caps = await host.capabilities()
if (caps.compute === true) {
  const availableHosts = await host.compute.listHosts()
}

if (caps.llm === true) {
  const result = await host.llm('Summarize the current findings.')
}

if (caps.currentModel === true) {
  const sessionModel = await host.currentModel()
}

if (caps.listModels === true) {
  const hostLlmModels = await host.listModels()
}

if (caps.sessions === true) {
  const recentSessions = await host.sessions.list({ limit: 20 })
}

if (caps.viewImage === true) {
  await host.viewImage({ path: 'results/plot.png' }, { maxSize: 1200 })
}

if (caps.sendFrameMessage === true) {
  await host.sendFrameMessage('parent', 'The analysis is ready.')
}

Do not infer capabilities by reflecting over host, and do not treat this result as a resource, credential, permission, or readiness inventory. Call it again when current availability matters; each call returns a fresh frozen projection.

host.help() documents registered topics only. A not_found result identifies missing Help documentation: not_found does not override host.capabilities() or prove that a method is absent.

Discover managed Project files

When caps.artifacts === true, use await host.artifacts(options) to list generated Artifacts and user Uploads across the current Project. Optional camelCase fields are versionId, frameId, filename, exact, search, contentType, after, before, cursor, and limit (default 20, maximum 100). versionId is exclusive; exact requires filename; search and filename cannot be combined. contentType accepts an exact MIME type or a top-level prefix such as text/. Bare dates are UTC midnight, after is inclusive, and before is exclusive

Câu hỏi thường gặp

Skill có thay đổi gì trong dự án của tôi không?

Một số lệnh chỉ đọc, chẳng hạn như liệt kê phiên và đọc bản ghi.

Nó chạy ở đâu?

Nó chỉ chạy trong môi trường điều khiển JavaScript, vì đối tượng host chỉ tồn tại ở đó.

Nó có thể gọi mô hình không?

Chỉ khi tính năng đó được bật cho dự án. Skill liệt kê nó như một khả năng riêng.

Chi tiết

Mô tả gốc của tác giả

Inspect Open-Science's JavaScript control REPL, discover managed Project files, Sessions, and Agent Frames, and safely feature-gate host.* calls with host.capabilities(). Use when an Agent needs to discover available host APIs, locate an Artifact or Upload Version, diagnose a Session, or read a Frame transcript in the current Project.

repo: aipoch/open-science

Độ phổ biến

Sao GitHub
5.4k
Vị trí xếp hạng
#14872
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự