Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

use-gdansk使用格但斯克

Agent Skill

use-gdansk 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

288

周安装

12

GitHub Stars

5

下载量

96
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:use-gdansk(使用格但斯克)
来源仓库:https://github.com/mplemay/gdansk
仓库路径:skills/use-gdansk
安装命令:
npx skills add https://github.com/mplemay/gdansk --skill use-gdansk
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/mplemay/gdansk --skill use-gdansk

简介

use-gdansk 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 建议结合来源仓库和原始 README 核验具体用法和功能边界。

SKILL.md

Use Gdansk

Use this workflow when the job is to adopt gdansk in a repository or extend an existing gdansk integration with new widgets or server capabilities. Keep the implementation on gdansk's public API surface. Do not send the user into gdansk internals to figure out how to wire the feature.

1) Classify the request

Choose one primary path before making edits:

  1. Bootstrap gdansk in a new repo:

- Add the Python dependency. - Create the frontend package root and Vite config. - Add the first @ship.widget(...) tool and widget entry.

  1. Add another widget to an existing repo:

- Define the tool function. - Add a new widgets/<name>/widget.tsx or widget.jsx. - Register it with @ship.widget(path=Path(".../widget.tsx"), name=...).

  1. Add integration features:

- Global or per-widget metadata. - structured_output=True. - Extra @mcp.tool(...) tools on the same MCPServer. - FastAPI mounting.

If the request is primarily about a broken existing integration, switch to $debug-gdansk.

2) Establish the repo layout and dependency baseline first

Fail early on missing package structure before writing feature code.

  • Confirm the Python project installs gdansk and targets a supported Python version.
  • Confirm the frontend package root exists and contains:

- package.json - vite.config.ts - widgets/

  • Confirm the frontend package is ESM with "type": "module".
  • Confirm package.json includes:

- @gdansk/vite - vite - @vitejs/plugin-react - react - react-dom - @modelcontextprotocol/ext-apps

  • After changing frontend dependencies, run uv run deno install from that package directory and update deno.lock when the repo tracks it.

Use quickstart.md for the canonical baseline layout and minimum files. Use adoption-checklist.md for compatibility and dependency expectations.

3) Wire the server and widget using only public APIs

Use the public integration points directly:

  • Create ship = Ship(vite=Vite(Path(...))) with the frontend package root, not the widget directory.
  • Register the UI tool with @ship.widget(path=Path("hello/widget.tsx"), name="hello").
  • Keep path= relative to widgets/ inside the frontend package root.
  • Use an MCPServer lifespan that enters async with ship.mcp(app=app, watch=...).
  • In the frontend package, import @gdansk/vite in vite.config.ts and compose it with the framework plugins you need.
  • The Vite plugin now provides a default @ alias to the frontend package root; only add a manual @ alias when you need a different target.
  • Prefer gdansk({refresh: true}) in real app repos so nearby Python or Jinja edits trigger a full browser reload.
  • If you customize the runtime host or port, pass Vite(Path(...), host=..., port=...) to Ship and use the same values in gdansk(...).
  • If you customize the build output directory, keep Vite(Path(...), build_directory=...) aligned with gdansk({buildDirectory:...}). Widget sources always use widgets/ under the frontend package root.
  • Ensure the widget file default-exports the React component.

Do not use filesystem-absolute paths for widget registration. Do not assume the frontend package directory must be named views; any directory passed to Vite(...) is valid.

4) Apply optional integrations only when requested

Choose the smallest integration needed:

  • Metadata:

- Set shared page metadata on Ship(..., metadata=...). - Override per-widget metadata with @ship.widget(..., metadata=...).

  • Structured outputs:

- Use structured_output=True on widget tools when the UI needs typed tool data instead of plain text parsing.

  • Plain MCP tools (no React UI):

- After mcp = MCPServer(...), use @mcp.tool(...) or mcp.add_tool(...).

  • FastAPI:

- Build mcp_app = mcp.streamable_http_app(streamable_http_path="/"), run its lifespan from FastAPI, mount it at /mcp (or your chosen prefix), and mount ship.assets at /<assets_dir> on the same public app.

Use integration-options.md for exact implementation shapes.

5) Verify the integration before finishing

After implementation:

  1. Start the server in development with ship.mcp(..., watch=True) (or watch=False to build on startup, watch=None when assets are prebuilt).
  2. Confirm bundle output appears under <frontend-package>/dist/.
  3. Open or fetch the UI resource and confirm the rendered HTML includes the client script.
  4. Confirm the widget's callServerTool(...) calls use the registered MCP tool names.
  5. For metadata work, confirm the expected title or meta tags appear in the rendered page.
  6. For CSS changes, confirm the generated CSS file is present and referenced.

If startup, bundling, or rendering fails, switch to $debug-gdansk.

Guardrails

  • Do not tell the user to inspect gdansk internals for supported kwargs or wiring behavior when the public API already covers the task.
  • Do not invent alternative widget entry conventions such as app.tsx; gdansk expects widget.tsx or widget.jsx.
  • Do not use widgets/... as the path prefix in @ship.widget(...).
  • Ensure each widget default-exports the app component and that its imports are render-compatible.

Reference map

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.27%
按下载量换算35

Claude

27.79%
按下载量换算27

Cursor

20.68%
按下载量换算20

Gemini CLI

9.7%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills