Manage Schemas 标志

Manage Schemas

社区
jpicklyk
manage-schemas

Creates, views, edits, deletes, and validates note schemas for the MCP Task Orchestrator in .taskorchestrator/config.yaml — the templates that define which notes agents must fill at each workflow phase. Also recommends schema designs from a library of workflow patterns (autonomous coding loops, spec-driven teams, research pipelines, content production, support triage, data pipelines, incident response, document review) — use this skill whenever the user describes a workflow they want tracked or gated, even without the word 'schema': what schema should I use, help me design schemas, recommend gates for X, set up schemas for my team/workflow/pipeline. Also manages the actor_authentication config block: set actor authentication policy, configure degraded mode, show actor_authentication config, set degradedModePolicy to reject, what's the current degraded mode policy. Use when user says: create schema, show schemas, edit schema, delete schema, validate config, what schemas exist, add a note to schema, remove note from schema, or configure gates.

Add to TypingMind

概览

发布者jpicklyk
代码仓库task-orchestrator
技能名称manage-schemas
星标数
204
复刻数
22
附带文件
18
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 18 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 jpicklyk 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Manage Schemas AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/jpicklyk/task-orchestrator/tree/main/claude-plugins/task-orchestrator/skills/manage-schemas
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jpicklyk/task-orchestrator.git /tmp/task-orchestrator
mkdir -p .claude/skills
cp -r /tmp/task-orchestrator/claude-plugins/task-orchestrator/skills/manage-schemas .claude/skills/manage-schemas
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Manage Schemas,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Manage Schemas。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Manage Schemas 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Manage Schemas — Note Schema Lifecycle

Create, view, edit, delete, and validate note schemas in .taskorchestrator/config.yaml. Schemas define which notes agents must fill at each workflow phase before advancing items.


Step 1 — Determine Intent

Classify from $ARGUMENTS and conversation context before making any tool calls.

Signal wordsAction
"create", "build", "new", "add schema", "define", "set up"CREATE
"recommend", "advise", "design", "what schema should I use", "help me choose", a described workflow with no schema nameCREATE (advisor path)
"show", "view", "list", "what schemas", "display"VIEW
"edit", "modify", "change", "update", "add note to", "remove note from"EDIT
"delete", "remove schema", "drop"DELETE
"validate", "check", "verify", "lint"VALIDATE

If $ARGUMENTS contains both an action and a schema name (e.g., "view bug-fix"), extract both. If intent cannot be determined, ask via AskUserQuestion with options: Create, View / Validate, Edit, Delete.

Validate is grouped with View — both are read-only operations on the config file.


Step 2 — Config Bootstrap

Check if .taskorchestrator/config.yaml exists by reading it.

If the file does not exist:

  • For VIEW or VALIDATE: report "No schemas configured — .taskorchestrator/config.yaml does not exist." and stop.
  • For CREATE, EDIT, or DELETE: create the .taskorchestrator/ directory if missing, then create config.yaml with an empty work_item_schemas: key:
    yaml
    work_item_schemas:

If the file exists: Read and parse it. Proceed to Step 3.

Note: project: is a recognized top-level key alongside work_item_schemas, traits, resources, and actor_authentication — it anchors this repo to a project root item and is read only by other skills (quick-start, /adopt-project-scope), never by this skill. Do not treat it as unknown, and never drop or rewrite it — every write operation in Step 3 (CREATE/EDIT/DELETE) must carry it through unchanged. See references/config-format.md → Project Scoping for its fields. (resources: is the optional shared-resource registry — see references/config-format.md → "Resources (Trait Dimension)"; it must be preserved the same way.)


Step 3 — Route to Operation

CREATE — Build a New Schema

Three entry paths: a pattern-driven advisor (the user describes their workflow; classify it against references/workflow-patterns.md and recommend a configuration with per-gate rationale), starter templates, and from-scratch Q&A. All three converge on the same customize → write → smoke-test machinery. When the user described a workflow rather than naming a schema, go straight to the advisor path.

For detailed workflow, see references/create-workflow.md in this skill folder.

VIEW — Display Existing Schemas

Read .taskorchestrator/config.yaml and display schemas in a summary table:

◆ Note Schemas — .taskorchestrator/config.yaml

| Schema Type | Lifecycle | Queue Notes | Work Notes | Review Notes | Total |
|---|---|---|---|---|---|
| feature-implementation | auto | 1 (1 req) | 2 (2 req) | 1 (1 req) | 4 |
| bug-fix | auto | 1 (1 req) | 2 (2 req) | 1 (1 req) | 4 |

If the user specified a schema name, show that schema's full detail: each note with key, role, required, description, guidance, and skill (if set). Also show the schema's lifecycle mode and default_traits (if any).

If the config has a traits: section, show a separate traits summary table:

◆ Traits

| Trait | Notes | Skills |
|---|---|---|
| needs-security-review | security-assessment (review, req) | security-review |
| needs-migration-review | migration-assessment (queue, req) | migration-review |

If the config has an actor_authentication: section, display the actor authentication status including verifier type when present:

◆ Actor authentication: enabled, verifier: noop

Or with a JWKS verifier and its source:

◆ Actor authentication: enabled, verifier: jwks (uri: https://provider.example/.well-known/jwks.json)

Or with DID-trust mode:

◆ Actor authentication: enabled, verifier: jwks (DID trust: did:web:agent.example.com, did:web:lair.dev)

Or ◆ Actor authentication: disabled (or omit if the section is absent). When verifier is absent, default to verifier: noop. When did_allowlist or did_pattern is set, show the DID trust variant.

EDIT — Modify an Existing Schema

Read current config, display the target schema, ask what to change (add note, remove note, toggle required, change description/guidance/skill, change lifecycle mode, add/remove default_traits, rename key), apply changes, write back.

When adding or editing a note, offer the skill field: "Should this note have a skill framework? If so, provide the skill name (e.g., review-quality, or a Claude Code built-in like security-review). The skill will be invoked before the agent fills the note."

If the target schema is not found in config.yaml, inform the user and offer to CREATE instead.

For detailed workflow, see references/edit-workflow.md in this skill folder.

DELETE — Remove a Schema

Read current config, confirm the schema name, warn about orphaned notes on existing items, remove the key, write back.

If the target schema is not found in config.yaml, inform the user and offer to CREATE instead.

For detailed workflow, see references/delete-workflow.md in this skill folder.

VALIDATE — Check Config Integrity

Run structural and semantic checks on the config file and report issues with fix suggestions. In addition to the checks in references/validate-workflow.md, flag any skill: value that is exactly one of review, plan, run, or init as a probable built-in-skill collision (warning, not an error) — these bare names resolve to a Claude Code built-in (e.g. review is the GitHub-PR review skill) rather than a project's intended framework skill. Suggest the likely intended framework skill name (e.g. review-quality instead of review) and cite the exact-name rule in references/config-format.md → "skill — exact-name rule".

For detailed workflow, see references/validate-workflow.md in this skill folder.


Step 4 — Report

For write operations (CREATE, EDIT, DELETE):

  • Show what changed in the config file
  • Sync to server (if project-scoped): Check whether the config has a top-level project.rootId (see Step 2's note and references/config-format.md → Project Scoping). If present, check the tool list for manage_project_config — older servers may not expose it, in which case note this to the user and skip (the config.yaml write above is authoritative locally; the server picks it up on its normal read path once the tool becomes available). If the tool is available, call:
    manage_project_config(operation="push", rootId="<project.rootId>", configYaml="<full current file text>")
    • Success → report the returned fingerprint. Re-pushing identical content later returns the same fingerprint (idempotent) — safe to call after every write without pre-checking.
    • VALIDATION_ERROR → the server rejected the YAML (e.g. a construct its parser can't accept). The local file is already saved — tell the user the parse error from the response and to fix .taskorchestrator/config.yaml, then re-run VALIDATE and retry the push.
    • CONFLICT_ERROR (superseded) → the pushed content is provably older than the server's (its fingerprint is in the server's history but not current). Tell the user to pull/copy the server's config back before editing (manage_project_config(operation="get", ...) shows it), or pass force: true on the push if overwriting the server's newer config is intentional.
    • A warning field on a successful response → relay it to the user as-is (non-fatal — e.g. the root item's type isn't "project").
  • Remind: MCP reconnect required (/mcp) for schema changes to take effect on the global config path — the server caches .taskorchestrator/config.yaml on first access. A successful per-root push above takes effect immediately for items scoped to that root, without needing reconnect.

For VIEW and VALIDATE: The output from Step 3 is the deliverable — no additional report needed.


Troubleshooting

expectedNotes is empty after creating an item with the schema tag

  • Cause: MCP server hasn't loaded the updated config file
  • Solution: Run /mcp in Claude Code to reconnect the server, then retry

Schema not applied — item has no schema

  • Cause: The item's type field doesn't match any key in work_item_schemas, and its tags don't match any note_schemas key (legacy fallback)
  • Resolution order: type field → direct lookup in work_item_schemas; if no type or no match, first tag match in note_schemas; if no match, falls back to default schema if one exists
  • Solution: Verify the item's type and tags with query_items(operation="get", itemId="<uuid>"). Set type to a key that exists in work_item_schemas for reliable schema selection.

Duplicate schema key in config file

  • Cause: YAML allows duplicate keys but only the last one is used
  • Solution: Check for duplicate entries under work_item_schemas: (or note_schemas:) and merge them

Changes not taking effect after editing config

  • Cause: The server caches schemas on first access — changes are not hot-reloaded
  • Solution: Run /mcp to reconnect the MCP server subprocess

Examples

Example 1: View all schemas

User says: "What schemas do I have?"

  1. Read .taskorchestrator/config.yaml
  2. Display summary table with note counts per phase
  3. Offer to show detail for any specific schema

Example 2: Add a required note to an existing schema

User says: "Add a rollout-plan note to the bug-fix schema"

  1. Read config, find bug-fix schema
  2. Ask: which phase (queue/work/review), required?, description, guidance
  3. Append the new note entry, write config back
  4. Remind: /mcp reconnect needed

Example 3: Validate config after manual editing

User says: "I edited the config by hand — check it"

  1. Read and parse config
  2. Run validation checks (syntax, structure, field rules, duplicates)
  3. Report issues or confirm "Config is valid — N schemas, M total notes"

Actor authentication config

The .taskorchestrator/config.yaml file also has an actor_authentication: block:

yaml
actor_authentication:
  degraded_mode_policy: accept-cached  # accept-cached | accept-self-reported | reject
  # ... other actor_authentication settings (enabled, verifier)

When the user wants to view, set, or change degradedModePolicy:

  1. Read .taskorchestrator/config.yaml
  2. Locate the actor_authentication: block (create it if absent)
  3. For view: display the current value (default accept-cached if key is absent)
  4. For changes: update the degraded_mode_policy: field (preserving all other actor_authentication keys)
  5. Validate the new value is one of: accept-cached, accept-self-reported, reject
  6. Write back

Note: If the DEGRADED_MODE_POLICY environment variable is set on the server, it overrides the YAML value. To check whether an override is in effect:

bash
echo $DEGRADED_MODE_POLICY

Tell the user when the env-var override is active — the YAML change will be shadowed until the env var is unset or the server is restarted without it.

Recommended: Use reject for cross-org or multi-tenant fleet deployments where agents from different organizations share a single Task Orchestrator instance. See current/docs/fleet-deployment.md for the full security rationale.

degradedModePolicy values

ValueBehaviorWhen to use
accept-cached(default) Trust JWKS-verified identity from stale cache on UNAVAILABLE; self-reported otherwiseSingle-org; occasional JWKS outages
accept-self-reportedAlways trust the caller-supplied actor.idLocal dev; no JWKS; explicit opt-out
rejectReject any unverified operation (rejected_by_policy)Cross-org did:web fleets; maximum assurance

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Manage Schemas AI 技能有什么作用?

Creates, views, edits, deletes, and validates note schemas for the MCP Task Orchestrator in .taskorchestrator/config.yaml — the templates that define which notes agents must fill at each workflow phase. Also recommends schema designs from a library of workflow patterns (autonomous coding loops, spec-driven teams, research pipelines, content production, support triage, data pipelines, incident response, document review) — use this skill whenever the user describes a workflow they want tracked or gated, even without the word 'schema': what schema should I use, help me design schemas, recommen...

为什么在 TypingMind 中使用 Manage Schemas?

因为您只需安装一次,就能搭配任何模型使用。Manage Schemas 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Manage Schemas?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/jpicklyk/task-orchestrator/tree/main/claude-plugins/task-orchestrator/skills/manage-schemas。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Manage Schemas?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Manage Schemas 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Manage Schemas 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Manage Schemas AI 技能免费吗?

是的。jpicklyk 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇