Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计提醒

moldablemoldable 搜索

Agent Skill

moldable 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

188

周安装

8

GitHub Stars

公开资料未说明

下载量

66
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/moldable-ai/skills --skill moldable

简介

用于查找、检索和筛选相关信息。moldable 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和 README 核验具体用法。
  • 安装前建议确认权限范围和是否会触发联网或文件操作。
  • 注意维护状态,避免使用已废弃或不受支持的技能。

SKILL.md

Moldable App Development

This skill provides comprehensive knowledge for building and modifying apps within the Moldable desktop application.

Quick Reference

ResourcePath
App source code~/.moldable/shared/apps/{app-id}/
App runtime data~/.moldable/workspaces/{workspace-id}/apps/{app-id}/data/
Workspace config~/.moldable/workspaces/{workspace-id}/config.json
MCP config~/.moldable/shared/config/mcp.json
Skills~/.moldable/shared/skills/{repo}/{skill}/
Environment~/.moldable/shared/.env

Default Tech Stack

  • Framework: Vite + Hono + React 19 + TypeScript
  • Styling: Tailwind CSS 4 + shadcn/ui (semantic colors only)
  • State: TanStack Query v5
  • Storage: Filesystem via @moldable-ai/storage
  • Dev Reloading: Vite client HMR via Portless-aware MOLDABLE_APP_URL; Hono server reloads via tsx watch
  • Package Manager: pnpm

Creating Apps

ALWAYS use the scaffoldApp tool — never create app files manually.

scaffoldApp({
  appId: "expense-tracker", // lowercase, hyphens only
  name: "Expense Tracker", // Display name
  icon: "💰", // Emoji icon
  description: "Track expenses and generate reports",
  widgetSize: "medium", // small, medium, or large
  extraDependencies: {
    // Optional npm packages
    zod: "^3.0.0",
  },
});

After scaffolding, customize:

  • src/client/app.tsx — Main app view
  • src/client/widget.tsx — Widget view
  • src/server/app.ts or src/server/routes/ — Hono API routes
  • src/client/components/ or src/components/ — React components

Detailed References

Read these for in-depth guidance:

Core Concepts

Implementation Patterns

Essential Patterns

1. UI Components (@moldable-ai/ui)

Always use @moldable-ai/ui for all UI work. It includes shadcn/ui components, theme support, and a rich text editor.

// Import components from @moldable-ai/ui (NOT from shadcn directly)
import {
  Button,
  Card,
  Input,
  Dialog,
  Select,
  Tabs,
  ThemeProvider,
  WorkspaceProvider,
  useTheme,
  Markdown,
  CodeBlock,
  WidgetLayout,
  downloadFile,
  sendToMoldable,
} from "@moldable-ai/ui";

// For rich text editing
import { MarkdownEditor } from "@moldable-ai/editor";

Use semantic colors only:

// ✅ Correct
<div className="bg-background text-foreground border-border" />
<Button className="bg-primary text-primary-foreground" />

// ❌ Wrong - raw colors don't adapt to theme
<div className="bg-white text-gray-900" />

See references/ui.md for complete component list and usage.

2. Workspace-Aware Storage

All apps must isolate data per workspace:

// Client - use workspaceId in query keys
const { workspaceId, fetchWithWorkspace } = useWorkspace();
const { data } = useQuery({
  queryKey: ["items", workspaceId], // ← Include workspace!
  queryFn: () => fetchWithWorkspace("/api/items").then((r) => r.json()),
});

// Server - extract workspace from request
import { getWorkspaceFromRequest, getAppDataDir } from "@moldable-ai/storage";

export async function GET(request: Request) {
  const workspaceId = getWorkspaceFromRequest(request);
  const dataDir = getAppDataDir(workspaceId);
  // Read/write files in dataDir
}

3. Desktop Integration

Apps communicate with Moldable desktop via postMessage:

// Open external URL
window.parent.postMessage(
  { type: "moldable:open-url", url: "https://..." },
  "*",
);

// Show file in Finder
window.parent.postMessage(
  { type: "moldable:show-in-folder", path: "/path/to/file" },
  "*",
);

// Pre-populate chat input
window.parent.postMessage(
  { type: "moldable:set-chat-input", text: "Help me..." },
  "*",
);

// Provide context to AI
window.parent.postMessage(
  {
    type: "moldable:set-chat-instructions",
    text: "User is viewing meeting #123...",
  },
  "*",
);

4. Layout Setup

Required providers for Moldable apps:

// src/client/main.tsx
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { ThemeProvider, WorkspaceProvider } from "@moldable-ai/ui";
import { App } from "./app";
import { QueryProvider } from "./query-provider";

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <ThemeProvider>
      <WorkspaceProvider>
        <QueryProvider>
          <App />
        </QueryProvider>
      </WorkspaceProvider>
    </ThemeProvider>
  </StrictMode>,
);

5. Adding Dependencies

Use sandbox: false for package manager commands:

await runCommand({
  command: "cd ~/.moldable/shared/apps/my-app && pnpm add zod",
  sandbox: false, // Required for network access
});

App Management Tools

ToolPurposeReversible
scaffoldAppCreate new app
getAppInfoCheck which workspaces use an app
unregisterAppRemove from current workspace only✅ Re-add later
deleteAppDataDelete app's data (keep installed)❌ Data lost
deleteAppPermanently delete from ALL workspaces❌ Everything lost

File Structure

~/.moldable/
├── shared/
│   ├── apps/{app-id}/              # App source code
│   │   ├── moldable.json           # App manifest
│   │   ├── package.json
│   │   └── src/
│   ├── skills/{repo}/{skill}/      # Skills library
│   ├── mcps/{mcp-name}/            # Custom MCP servers
│   └── config/mcp.json             # Shared MCP config
│
└── workspaces/{workspace-id}/
    ├── config.json                 # Registered apps
    ├── .env                        # Workspace env overrides
    ├── apps/{app-id}/data/         # App runtime data
    └── conversations/              # Chat history

Common Mistakes to Avoid

  1. ❌ Creating apps manually — Always use scaffoldApp
  2. ❌ Using localStorage — Use filesystem storage
  3. ❌ Forgetting workspaceId — Include in query keys and API calls
  4. ❌ Hardcoding paths — Use getAppDataDir() for portability
  5. ❌ Using raw colors — Use shadcn semantic colors (bg-background, not bg-gray-100)
  6. ❌ Running pnpm with sandbox — Set sandbox: false for network access

Study Existing Apps

For complex features, reference apps in ~/.moldable/shared/apps/:

  • scribo — Translation journal with language selection
  • meetings — Audio recording with real-time transcription
  • calendar — Google Calendar integration with OAuth

These demonstrate data fetching, storage patterns, API routes, and UI components.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

windsurf

30.38%
按下载量换算20

OpenCode

24.52%
按下载量换算16

Codex

19.49%
按下载量换算13

Claude Code

11.11%
按下载量换算7

Antigravity

7.29%
按下载量换算5

Gemini CLI

3.72%
按下载量换算2

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills