示例主题创建与更新
create-or-update-sample-topic
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 31
- Forks
- 19
03 SKILL.md 正文
Skill: Create or update a sample topic
Preconditions: triage produced actionable-new-topic or actionable-fix. You have read samples/AGENTS.md.
This skill is the execution layer. samples/AGENTS.md defines what good looks like; this file defines the steps to get there.
Procedure
-
Read a neighbor first.
- Pick the sibling topic that is most similar in content and within the same sub-grouping.
- Read its
topic.yamlend-to-end and at least one of its*.xmlfiles. - Note its top-level YAML keys, XML root element, and file layout. This is your shape reference. Record the path — you will cite it in the PR.
-
Pick exactly one path from the table below and follow only that section. Do not read the other sections.
Triage label Issue is a bug fix? Go to actionable-new-topicn/a New topic checklist actionable-fixyes Bug-fix tracing actionable-fixno Modify-topic rules -
Hard rules (always). Apply every rule in every group:
File-scope rules:
- Do not rename or delete existing files or folders.
- Confine the diff to one topic folder (or the new topic folder).
Security rules:
- No secrets, no internal URLs.
Schema rules:
- Do not invent unsupported top-level YAML keys or action kinds. Verify any unfamiliar key/kind appears in a sibling topic; if not, stop and ask.
New topic checklist
Walk through every step before writing YAML:
- Archetype — UI, system, or lifecycle/shared (see AGENTS.md).
- Persona / scope — employee, manager, admin, support.
- Read-only vs mutation — mutations require confirmation card + cancel path.
- Trigger style —
triggerQueries(deterministic) and/ormodelDescription(LLM-routed). Trigger phrases must include the object/action. - Inputs and source — for each input, decide source: LLM (
AutomaticTaskInputwithentity+description), caller (ManualTaskInput),Global.*,Env.*, orSystem.*. Mark required-but-not-inferable inputsshouldPromptUser: true. - Outputs — populate
outputType.propertiesif the topic returns data. - Downstream calls — list child topics (
BeginDialog), flows (InvokeFlowAction), and any sibling XML/template-config dependencies in the topic folder. - Five UX states — success-with-data, success-with-no-data, validation failure, downstream error, user cancel. Each must have an explicit branch.
- Author by mirroring the nearest sibling — same top-level keys, same XML root element, same file layout.
- Validate via
validate-sample-topicbefore preparing the PR.
If any step lacks information, stop and ask.
Modify-topic rules
- Read the topic file before editing.
- Make the smallest safe change. No opportunistic refactors.
- Preserve action
id:values, action ordering, andConditionGroupbranches not targeted by the change. - Do not rename or remove existing
inputs. Do not rename or retype existinginputType/outputTypeproperties — add new properties instead. - New variables go under
Topic.*unless cross-topic persistence requiresGlobal.*or environment config requiresEnv.*. - Do not reformat unrelated YAML/XML.
Bug-fix tracing
Required from the issue: current behavior, expected behavior, repro/transcript if available, target topic path. If any is missing, stop and ask.
When fixing:
- Trace the
actionslist before editing — walk the path the bug takes and record it. The trace goes into the PR description. - Make the minimal safe change. No surrounding cleanup.
- Schema/parsing bugs — confirm the upstream response shape before changing a
ParseValueschema. - Power Fx bugs — prefer adding an
IsBlankorIsBlankOrErrorguard over rewriting the expression. - Missing-branch bugs — add or update an explicit
ConditionGroupbranch rather than restructuring.
Outputs
- A working tree ready for
validate-sample-topic. - The neighbor reference path, for the PR body.
- For bug fixes, the
actionstrace, for the PR body.
Stop conditions
- Stop if no suitable neighbor exists (e.g., first topic in a new area). Post a comment on the triggering GitHub issue or PR that names the missing neighbor and tags the repository maintainers listed in
CODEOWNERS, then wait for their reply before continuing. - Stop if the change would require touching more than one topic folder.
- Stop if any required information from the new-topic checklist or bug-fix list is missing.
04 同仓库更多 Skills
topic-actions
暂无简介
servicenow-da
暂无简介
servicenow-da-itsm
暂无简介
servicenow-da-hrsd
暂无简介
ESS 诊断技能集
ESS-Diagnostics-Skills
暂无简介
更新
update
暂无简介