Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问clear审计未展示

the-vm-standard虚拟机标准

Agent Skill

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

总安装

441

周安装

18

GitHub Stars

公开资料未说明

下载量

141
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add front-depiction/claude-setup --skill "the-vm-standard"

简介

发现并安装 AI 代理的技能工具。the-vm-standard 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适用于 Codex、Claude、Cursor 和 Gemini CLI 平台。
  • 通过 npx 命令从 GitHub 仓库添加技能。
  • 需确保仓库路径与技能名称正确对应。
  • 注意评估外部依赖与代码执行安全性。

SKILL.md

name
the-vm-standard
description
The VM Standard - inviolable covenants governing View Model architecture in this codebase. These covenants SHALL NOT be violated under any circumstance.

TITLE 1: VIEW MODEL ARCHITECTURE CODE

PREAMBLE

This Code establishes the governing requirements for View Model architecture within this codebase. The View Model pattern serves as the bridge between domain services and user interface. These provisions ensure consistency, maintainability, and proper separation of concerns across all View Model implementations.


CHAPTER 1: STRUCTURAL REQUIREMENTS

§ 1.1 Colocation

A View Model SHALL be defined in a single file bearing the name format {ComponentName}.vm.ts. No View Model definition SHALL span multiple files.

The interface, the tag, and the layer SHALL coexist within this single source file.

§ 1.2 Unity of Type and Tag

The interface type and the Context.Tag for any View Model SHALL bear identical names.

export interface ChatVM {
  readonly history$: Atom.Atom<Prompt.Prompt>;
  readonly inputValue$: Atom.Atom<string>;
  readonly setInputValue: (value: string) => void;
  readonly sendMessageAtom: Atom.AtomResultFn<void, void, unknown>;
}

export const ChatVM = Context.GenericTag<ChatVM>("ChatVM");

When imported as a namespace, this unity SHALL enable both type and runtime tag access through the same identifier.


CHAPTER 2: EXPORT REQUIREMENTS

§ 2.1 Live Layer Export

Every View Model SHALL export a live layer providing full production dependencies.

const FullLayer = pipe(
  FullSessionLayer,
  Layer.provide(DependentVMKey.variants.live)
);

const layerLive = pipe(
  layer,
  Layer.provide(FullLayer),
);

No View Model SHALL exist without a live layer capable of executing in production.

§ 2.2 Default Key Export

Every View Model file SHALL conclude with a default export via VMRuntime.key().

This export SHALL provide both live and test variants.

export default VMRuntime.key(ChatVM, {
  live: pipe(layer, Layer.provide(FullLayer)),
  test: layer,
});

§ 2.3 Namespace Import Requirement

All View Models SHALL be imported as namespaces.

// Required form:
import ChatVM from "./Chat.vm";

// Access patterns:
// ChatVM.variants.live  - the production layer
// ChatVM.variants.test  - the test layer
// ChatVM.tag            - the Context.Tag

Named imports that fracture the namespace unity are prohibited:

// Prohibited:
import { ChatVM } from "./Chat.vm";

CHAPTER 3: BEHAVIORAL REQUIREMENTS

§ 3.1 Thin Presentational Bridge

View Models SHALL serve as thin bridges between service layers and the user interface.

View Models SHALL NOT contain business logic. A View Model is required to:

(a) Yield services from the Effect context; (b) Expose atoms for reactive UI binding; (c) Provide action functions that delegate to services; (d) Transform domain values into UI-ready formats.

// Compliant: VM delegates to service
const sendMessageAtom = VMRuntime.fn((_: void, get: Atom.FnContext) =>
  Effect.gen(function* () {
    const input = get(inputValue$);
    if (!input.trim()) return;
    get.set(inputValue$, "");
    yield* chatService.handleUserMessage(input);
  }).pipe(Effect.withSpan("Chat.sendMessage"))
);

Business logic SHALL reside in service layers. View Models adapt; they must not compute.

§ 3.2 Service Yield Requirement

View Models SHALL yield services from the Effect context. View Models must not construct services directly.

// Compliant: Services yielded from context
const layer = Layer.effect(
  ChatVM,
  Effect.gen(function* () {
    const registry = yield* AtomRegistry;
    const chatService = yield* ChatService.ChatService;
    const session = yield* EvaluationSession.tag;

    return { /* ... */ };
  })
);

Direct service construction is prohibited:

// Prohibited:
const layer = Layer.effect(
  ChatVM,
  Effect.gen(function* () {
    const chatService = new ChatServiceImpl();
    const session = createSession();

    return { /* ... */ };
  })
);

CHAPTER 4: ATOM REQUIREMENTS

§ 4.1 Atom Suffix Convention

All atom properties SHALL bear the $ suffix.

export interface SessionSetupVM {
  readonly inputValue$: Atom.Atom<string>;
  readonly history$: Atom.Atom<Prompt.Prompt>;
  readonly isLoading$: Atom.Atom<boolean>;
  readonly streamingMode$: Atom.Atom<StreamingMode>;
  readonly setupState$: Atom.Atom<SetupState>;

  // Non-atom members bear no suffix
  readonly setInputValue: (value: string) => void;
  readonly sendMessageAtom: Atom.AtomResultFn<void, void, unknown>;
}

§ 4.2 Confinement of Atoms

Atoms SHALL be defined only inside Effect.gen within the layer factory.

Atoms must not be defined at module scope.

// Compliant: Atoms confined within Effect.gen
const layer = Layer.effect(
  ChatVM,
  Effect.gen(function* () {
    const registry = yield* AtomRegistry;

    const inputValue$ = Atom.make("");
    const debugMode$ = Atom.make(false);
    const history$ = Atom.subscriptionRef(chat.history);

    return { inputValue$, debugMode$, history$ };
  })
);

Module-scope atoms are prohibited:

// Prohibited:
const inputValue$ = Atom.make("");

const layer = Layer.effect(
  ChatVM,
  Effect.gen(function* () {
    return { inputValue$ };
  })
);

CHAPTER 5: ACTION REQUIREMENTS

§ 5.1 Synchronous Setters

Synchronous setters SHALL use registry.set():

const setInputValue = (value: string) => registry.set(inputValue$, value);
const setDebugMode = (enabled: boolean) => registry.set(debugMode$, enabled);

§ 5.2 Asynchronous Actions

Asynchronous actions SHALL use VMRuntime.fn() returning AtomResultFn:

const sendMessageAtom = VMRuntime.fn((_: void, get: Atom.FnContext) =>
  Effect.gen(function* () {
    const input = get(inputValue$);
    if (!input.trim()) return;
    get.set(inputValue$, "");
    yield* chatService.handleUserMessage(input);
  }).pipe(Effect.withSpan("Chat.sendMessage"))
);

§ 5.3 Observability Span Requirement

All asynchronous actions SHALL be wrapped with Effect.withSpan().


CHAPTER 6: VARIANT REQUIREMENTS

§ 6.1 Dual Variant Structure

Every VMKey SHALL provide both live and test variants.

export default VMRuntime.key(SessionSetupVM, {
  live: layerLive,
  test: layer,
});

(a) The live variant SHALL provide the complete dependency graph for production execution.

(b) The test variant SHALL provide the minimal layer, allowing tests to inject mock dependencies.


CHAPTER 7: TESTING REQUIREMENTS

§ 7.1 Testing Protocol

Tests SHALL use the live layer variant with test dependencies injected.

Tests must not test the test layer directly.

// Compliant:
describe("ChatVM", () => {
  const ChatServiceMock = Layer.succeed(ChatService.ChatService, {
    handleUserMessage: () => Effect.succeed(undefined),
    exportChat: () => Effect.succeed({ json: "{}", filename: "test.json" }),
  });

  const TestLayer = pipe(
    ChatVMKey.variants.live,
    Layer.provide(ChatServiceMock),
    Layer.provide(TestSessionLayer),
  );

  it("sends messages via ChatService", () => /* test with TestLayer */);
});

Direct testing of the test variant is prohibited:

// Prohibited:
describe("ChatVM", () => {
  it("tests nothing of value", () => {
    const vm = buildVM(ChatVMKey.variants.test);
  });
});

The test variant exists for dependency injection, not for direct testing.


SCHEDULE A: COMPLIANCE CHECKLIST

Before any View Model is considered complete, the following SHALL be verified:

  • [ ] § 1.1: VM resides in single ComponentName.vm.ts file
  • [ ] § 1.2: Interface and tag share identical name
  • [ ] § 2.1: Live layer exports with full production dependencies
  • [ ] § 2.2: Default export uses VMRuntime.key() with live and test variants
  • [ ] § 2.3: All imports use namespace pattern
  • [ ] § 3.1: No business logic in VM; all logic delegated to services
  • [ ] § 3.2: All services yielded from context, none constructed
  • [ ] § 4.1: All atoms use $ suffix
  • [ ] § 4.2: All atoms defined inside Effect.gen within layer
  • [ ] § 5.1: Sync actions use registry.set()
  • [ ] § 5.2: Async actions use VMRuntime.fn()
  • [ ] § 5.3: Async actions wrapped with Effect.withSpan()
  • [ ] § 6.1: Both live and test variants provided
  • [ ] § 7.1: Tests use live variant with injected test dependencies

SCHEDULE B: CANONICAL TEMPLATE

import * as Atom from "@effect-atom/atom/Atom";
import { AtomRegistry } from "@effect-atom/atom/Registry";
import * as Result from "@effect-atom/atom/Result";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import { pipe } from "effect/Function";
import { VMRuntime } from "@/lib/VMRuntime.js";
import * as SomeService from "../../services/SomeService.js";
import { FullLayer } from "../../lib/FullLayer.js";

// =============================================================================
// Interface
// =============================================================================

export interface ComponentNameVM {
  readonly data$: Atom.Atom<SomeData>;
  readonly isLoading$: Atom.Atom<boolean>;
  readonly setValue: (value: string) => void;
  readonly submitAtom: Atom.AtomResultFn<void, void, unknown>;
}

export const ComponentNameVM = Context.GenericTag<ComponentNameVM>("ComponentNameVM");

// =============================================================================
// Layer
// =============================================================================

const layer = Layer.effect(
  ComponentNameVM,
  Effect.gen(function* () {
    const registry = yield* AtomRegistry;
    const service = yield* SomeService.SomeService;

    const data$ = Atom.make<SomeData>(initialData);

    const submitAtom = VMRuntime.fn((_: void, get: Atom.FnContext) =>
      Effect.gen(function* () {
        yield* service.submit(get(data$));
      }).pipe(Effect.withSpan("ComponentName.submit"))
    );

    const isLoading$ = pipe(submitAtom, Atom.map(Result.isWaiting));

    return {
      data$,
      isLoading$,
      setValue: (value: string) => registry.set(data$, value),
      submitAtom,
    };
  })
);

// =============================================================================
// Export
// =============================================================================

export default VMRuntime.key(ComponentNameVM, {
  live: pipe(layer, Layer.provide(FullLayer)),
  test: layer,
});

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Claude Code

26.45%
按下载量换算37

windsurf

26.21%
按下载量换算37

trae

16.52%
按下载量换算23

OpenCode

14.3%
按下载量换算20

Codex

7.62%
按下载量换算11

Antigravity

3.11%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills