schematic-define — for Claude Code schematic-define, rusty-biscuit, community, for Claude Code, ide skills, RestApi, Endpoint, RestMethod, AuthStrategy, ApiKeyLocation

v1.0.0

关于此技能

适用场景: Ideal for AI agents that need use this skill when working in schematic/define or when updating docs/tests that describe. 本地化技能摘要: A monorepo for AI-powered research and automation tools # schematic-define Use this skill when working in schematic/define or when updating docs/tests that describe schematic-define behavior. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

功能特性

Use this skill when working in schematic/define or when updating docs/tests that describe
schematic-define is the definition layer for Schematic:
RestApi, Endpoint, RestMethod
AuthStrategy, ApiKeyLocation, UpdateStrategy
ApiRequest, ApiResponse, FormField, Schema

# 核心主题

yankeeinlondon yankeeinlondon
[0]
[0]
更新于: 4/11/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 8/11

This page remains useful for teams, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
8/11
Quality Score
49
Canonical Locale
en
Detected Body Locale
en

适用场景: Ideal for AI agents that need use this skill when working in schematic/define or when updating docs/tests that describe. 本地化技能摘要: A monorepo for AI-powered research and automation tools # schematic-define Use this skill when working in schematic/define or when updating docs/tests that describe schematic-define behavior. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

核心价值

推荐说明: schematic-define helps agents use this skill when working in schematic/define or when updating docs/tests that describe. A monorepo for AI-powered research and automation tools # schematic-define Use this skill

适用 Agent 类型

适用场景: Ideal for AI agents that need use this skill when working in schematic/define or when updating docs/tests that describe.

赋予的主要能力 · schematic-define

适用任务: Applying Use this skill when working in schematic/define or when updating docs/tests that describe
适用任务: Applying schematic-define is the definition layer for Schematic:
适用任务: Applying RestApi, Endpoint, RestMethod

! 使用限制与门槛

  • 限制说明: Pick the right ApiResponse, because generated method shape depends on it:
  • 限制说明: AuthStrategy is broader than bearer/header-only patterns:
  • 限制说明: Match statements must include a wildcard arm for forward compatibility.

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

评审后的下一步

先决定动作,再继续看上游仓库材料

Killer-Skills 的主价值不应该停在“帮你打开仓库说明”,而是先帮你判断这项技能是否值得安装、是否应该回到可信集合复核,以及是否已经进入工作流落地阶段。

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

schematic-define 是什么?

适用场景: Ideal for AI agents that need use this skill when working in schematic/define or when updating docs/tests that describe. 本地化技能摘要: A monorepo for AI-powered research and automation tools # schematic-define Use this skill when working in schematic/define or when updating docs/tests that describe schematic-define behavior. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

如何安装 schematic-define?

运行命令:npx killer-skills add yankeeinlondon/rusty-biscuit/schematic-define。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

schematic-define 适用于哪些场景?

典型场景包括:适用任务: Applying Use this skill when working in schematic/define or when updating docs/tests that describe、适用任务: Applying schematic-define is the definition layer for Schematic:、适用任务: Applying RestApi, Endpoint, RestMethod。

schematic-define 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

schematic-define 有哪些限制?

限制说明: Pick the right ApiResponse, because generated method shape depends on it:;限制说明: AuthStrategy is broader than bearer/header-only patterns:;限制说明: Match statements must include a wildcard arm for forward compatibility.。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add yankeeinlondon/rusty-biscuit/schematic-define。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    schematic-define 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

schematic-define

安装 schematic-define,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看评审结论、使用场景与安装路径。

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

schematic-define

Use this skill when working in schematic/define or when updating docs/tests that describe schematic-define behavior.

Scope

schematic-define is the definition layer for Schematic:

  • RestApi, Endpoint, RestMethod
  • AuthStrategy, ApiKeyLocation, UpdateStrategy
  • ApiRequest, ApiResponse, FormField, Schema
  • Headers, EnvMapping, EnvList, SensitiveString
  • OpenAPI vendor extension models (x-schematic)

Code generation and runtime clients live in schematic-gen and schematic-schema, but this crate defines the contracts they consume.

High-Signal Rules

1) Response Type Selection Is Runtime-Critical

Pick the right ApiResponse, because generated method shape depends on it:

ApiResponseGenerated methodReturn type
Json(Schema)request<T>()T
Binaryrequest_bytes()bytes::Bytes
Textrequest_text()String
Emptyrequest_empty()()

If an endpoint returns bytes/text but is modeled as JSON, generated clients call the wrong response parser.

2) Auth Strategies Include Query/Cookie API Keys

AuthStrategy is broader than bearer/header-only patterns:

  • BearerToken { header: Option<String> }
  • ApiKey { header: String }
  • ApiKeyParam { location: ApiKeyLocation, name: String }
  • Basic
  • None

ApiKeyLocation supports:

  • Query
  • Cookie

3) Public Enums Are #[non_exhaustive]

Match statements must include a wildcard arm for forward compatibility.

Key enums: AuthStrategy, ApiKeyLocation, UpdateStrategy, ApiRequest, FormFieldKind, ApiResponse, RestMethod.

4) Env Mapping Field Names

Use current EnvMapping names:

  • bearer_token
  • basic_user
  • basic_pass
  • api_key

Do not document or introduce legacy basic_auth object shapes.

5) Basic Auth Source of Truth

For AuthStrategy::Basic:

  • Username: env_username (or env_mapping.basic_user)
  • Password: env_auth[0] (or env_mapping.basic_pass)

Generated-Client Contracts To Keep In Sync

When updating docs or examples that touch generated clients:

  • OpenAI::new() returns Self (no ?)
  • Variant APIs are:
    • variant() builder
    • variant_with(base_url, env_auth, strategy)
    • variant_with_headers(headers)
  • Headers::use_bearer_token() / use_basic_auth() bypass env credential lookup when auth is already set programmatically.

Canonical pattern:

rust
1use schematic_define::Headers; 2use schematic_schema::openai::{ListModelsRequest, ListModelsResponse, OpenAI}; 3 4let client = OpenAI::new() 5 .variant() 6 .headers_builder(Headers::default().use_bearer_token("token")) 7 .build(); 8 9let _models: ListModelsResponse = client 10 .request(ListModelsRequest::default()) 11 .await?;

OpenAPI Extension Reality (Current Exporter)

Schematic defines three extension structs, but exporter emission is currently:

  • emitted: document-level x-schematic
  • emitted: operation-level x-schematic
  • defined but not emitted: schema-level x-schematic (SchematicSchemaExtension)

Document-level extension carries API-wide config (module_path, request_suffix, env_mapping, headers). Operation-level extension carries endpoint config (request, response, headers).

Current serialized response shape uses enum tagging, e.g.:

yaml
1x-schematic: 2 response: 3 Json: 4 type_name: ListModelsResponse 5 module_path: null

Text/Binary/Empty appear as scalar enum values.

Schematic Definitions Facts That Frequently Drift

Keep these aligned when docs/examples mention built-in APIs:

  • LM Studio: 6 endpoints, bearer auth via LM_API_TOKEN
  • EMQX Basic: 36 endpoints, basic auth via EMQX_API_KEY + EMQX_API_SECRET
  • EMQX Bearer: 38 endpoints, bearer auth via EMQX_TOKEN
  • GitHub: 14 endpoints, bearer auth via GITHUB_TOKEN or GH_TOKEN
  • Gitea: 14 endpoints, API key auth via GITEA_TOKEN (uses token prefix, not Bearer)

Update Workflow

  1. Edit definition types/docs in schematic/define.
  2. Verify behavior in generator/runtime contracts when the change affects response/auth/env mapping.
  3. Update related docs in:
    • schematic/README.md
    • schematic/define/README.md
    • schematic/definitions/README.md
    • schematic/docs/headers/README.md
    • schematic/docs/io/openapi-extensions.md
    • schematic/gen/README.md
    • schematic/schema/README.md
  4. Re-run focused tests before broad checks.

Verification Commands

Focused response-method generation coverage:

bash
1cargo test -p schematic-gen --test e2e_generation binary_response_generates_request_bytes_method 2cargo test -p schematic-gen --test e2e_generation text_response_generates_request_text_method 3cargo test -p schematic-gen --test e2e_generation empty_response_generates_request_empty_method

Definitions/auth sanity checks:

bash
1cargo test -p schematic-definitions api_uses_bearer_token_auth 2cargo test -p schematic-definitions basic_api_has_expected_endpoint_count 3cargo test -p schematic-definitions bearer_api_has_more_endpoints

End-to-end regeneration safety pass:

bash
1cargo test -p schematic-gen 2just -f schematic/justfile generate 3cargo check -p schematic-schema

Remaining Testing Gap

Current tests validate generation logic, emitted methods, and compile-time structure. They do not validate live provider HTTP integration behavior.

Reference Map

Read these as needed:

  • schematic/define/README.md (authoritative type-level behavior)
  • schematic/docs/headers/README.md (programmatic auth patterns)
  • schematic/docs/io/openapi-extensions.md (extension schema and examples)
  • schematic/gen/README.md (generated method/contracts)
  • schematic/schema/README.md (runtime client usage examples)
  • schematic/definitions/README.md (built-in API catalog)

For legacy detailed notes that may still be useful, see:

  • .claude/skills/schematic/define.md

相关技能

寻找 schematic-define 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具