用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/tomes --skill design-data-agent命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | design-data-agent |
| description | > Use when this capability is needed. |
@adobe/design-data-agent-mcp provides in-process wasm tools for validating, querying,
resolving, diffing, and authoring spec-conformant tokens and components from any dataset
on the local filesystem.
Set two path variables once and reference them throughout:
export DESIGN_DATA_PATH=./packages/design-data/tokens
export DESIGN_DATA_SPEC_PATH=./packages/design-data
For Spectrum tokens with zero setup (embedded snapshot), use the design-data skill instead — this skill targets custom or repo-local datasets.
Add @adobe/design-data-agent-mcp to your .cursor/mcp.json:
{
"mcpServers": {
"design-data-agent": {
"command": "npx",
"args": ["-y", "@adobe/design-data-agent-mcp"],
"env": {
"DESIGN_DATA_PATH": "./packages/tokens/src",
"DESIGN_DATA_COMPONENTS": "./packages/design-data/components",
"DESIGN_DATA_FIELDS": "./packages/design-data/fields"
}
}
}
}
Adjust paths to match your dataset layout.
primer firstCall primer at the start of every session that touches design data. It returns the active
dimensions, component list, taxonomy fields, and token count — structural context that scopes
all subsequent lookups. No inputs required.
resolve_tokenRequired: property (string) — e.g. "accent-background-color-default"
Optional: colorScheme ("light" or "dark"), scale ("desktop" or "mobile"),
contrast ("regular" or "high")
query_tokensRequired: filter (string)
Valid filter keys: property, component, variant, state, colorScheme, scale,
contrast, uuid, $schema.
Filter syntax examples:
property=background-color
property=*background*
component=button
component=button,state=hover
property=background-color|property=border-color
$schema=https://spectrum.adobe.com/page/design-token/
Exit codes:
0= matches found; empty array = no matches (not an error).
describe_componentRequired: id (string) — kebab-case component ID, e.g. button, action-button
Returns the component contract: name, displayName, options, anatomy, states,
and tokenBindings.
validate_usageOptional inputs:
path — dataset path (defaults to DESIGN_DATA_PATH)strict (boolean) — treat warnings as errorsschema_path — override schemas directory (defaults to @adobe/spectrum-tokens schemas)Runs Layer-1 JSON-Schema structural validation and Layer-2 relational rules.
Returns { valid, errors, warnings }.
Note:
--exceptions-path(SPEC-007 naming allowlist) is not supported in the in-process path. Use thedesign-dataCLI directly if you need exceptions support.
diff_datasetsRequired: oldPath, newPath
Optional: filter (substring to narrow results by token name)
Returns { renamed, deprecated, reverted, added, deleted, updated }.
writeWrite or update the product context document in the dataset.
Optional inputs: output (defaults to $DESIGN_DATA_PATH/product-context.json),
rationale (string)
Use the following tools in sequence to create a new token through the wizard:
start_authoring_session — start a session (returns session_id)authoring_session_step_intent — provide natural-language intent; get token suggestionsauthoring_session_step_classification — set layer, property, name fieldsauthoring_session_step_values — set mode-specific value rowsauthoring_session_commit — validate and write the token to diskauthoring_session_cancel — cancel without writingHelper tools: authoring_session_get (inspect state), authoring_session_list (all active sessions).
authoring_session_commit accepts an optional schema_path to override the schemas directory
for Layer-1 JSON-Schema validation before writing.
Note:
authoring_session_step_intent(NLP suggestion ranking) still delegates to thedesign-dataCLI because the NLPsuggestAPI is not yet on the wasm surface.
desktop and mobile — not medium/large.regular and high — not standard/high.query_tokens returns [] when no tokens match — not an error.diff_datasets filter matches by token name substring (case-insensitive).Cursor Settings → Rules → Add Rule → Remote Rule (GitHub) → paste this URL:
https://github.com/adobe/spectrum-design-data/tree/main/tools/design-data-agent-mcp/skills/design-data
Source: adobe/spectrum-design-data — distributed by TomeVault.