agentleFS
MicrosoftKnown publishermicrosoft/Employee-Self-Service-Agent-Developer-Kit/solutions/ess-maker-skills/src/skills/manage-topics/SKILL.md

manage-topics

Skill32 starsChanged 7 months agoMITView on GitHub

Enable or disable whole source-defined ESS topic sets on one verified selected native agent using the computed planner, short-lived review, single-attempt executor and readback. The source-inventory policy intentionally removes central release admission and prequalification gates. Matching topics are not proof of installed-package identity, complete membership, required-topic classification or custom-dependency coverage. Those unknowns remain warnings; they are not changed to verified evidence. Effective edit permission is enforced by the write API, not inferred from authentication or read access. Native stale-token, batch…

The file

Show its rules and text

We split this skill into the rules it gives an agent

72 rules. About 0 are common, 47 are distinctive, and 25 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈47

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 25

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add uses the same reviewed flow for sets with shipped content and requires a live Development agent enrolled in ALM.

    line 19
  2. Very specific:

    Use the renamed scripts/manage_topics.py helper and the MANAGE_TOPICS_* output markers documented below.

    line 31
  3. Distinctive:

    Use the established selected target, action and exact set keys.

    line 39
  4. Distinctive:

    Add lists report live presence and say that nothing was changed.

    line 54
  5. Distinctive:

    Do not turn a topic-list request into an enable/disable plan: omit requested states, plan columns, change counts and write-specific …

    line 56
  6. Distinctive:

    Keep unresolved topics and blockers visible.

    line 59
  7. Very specific:

    Add uses the same flow, including already_correct without approval or apply.

    line 69
  8. Distinctive:

    Never substitute a read-only list or preview because approval transport appears unavailable.

    line 70
  9. Distinctive:

    Keep routine authentication, prerequisite checks and execution bookkeeping out of the conversation.

    line 84
  10. Distinctive:

    After execution, show the outcome and verified counts, target/account context, grouped per-topic results and any material blocker or …

    line 97
  11. Distinctive:

    Do not append routine submission or publishing footers.

    line 100
  12. Distinctive:

    Do not add next steps to responses that do not need them.

    line 118
  13. Distinctive:

    Use the review's text before the one approval control, and the result's text as the final response.

    line 126
  14. Very specific:

    Do not regenerate counts, infer missing membership or turn an incomplete result into success.

    line 128
  15. Distinctive:

    Add previews show current state or presence without approval and retain the helper's no-change note.

    line 140
  16. Distinctive:

    Only when the maker explicitly requests diagnostics may safe reason codes and HTTP status accompany the fixed copy.

    line 147
  17. Distinctive:

    Use the deterministic Markdown layout, not a custom webview, HTML controls, screenshots or a hard-coded theme.

    line 153
  18. Distinctive:

    Use Enable / Disable for actions and plans, and Enabled /

    line 159
  19. Distinctive:

    Mixed: Do not mix On/Off or turn-on/turn-off language into maker-facing topic-state copy.

    line 161
  20. Distinctive:

    Use Add for that action and its plans.

    line 163
  21. Distinctive:

    Do not add a separate Requested state column: the planned change says

    line 172
  22. Distinctive:

    Add plans instead use Add and the helper's no-change/skip wording.

    line 177
  23. Distinctive:

    Use catalog-provided display names only.

    line 179
  24. Distinctive:

    Keep internal set keys for helper inputs and diagnostic evidence.

    line 180
  25. Distinctive:

    Every table uses explicit bold Markdown header cells and blank lines around tables and group headings.

    line 207
  26. Distinctive:

    Do not claim pixel-identical rendering of that proposal.

    line 213
  27. Very specific:

    Do not require connect_ready: true, a healthy Workday/ServiceNow connection or employee-data calls.

    line 231
  28. Distinctive:

    If no topics from a requested set are present, say "<friendly topic-set name> are not available in this agent." If a display name is …

    line 250
  29. Distinctive:

    If a display name is unavailable, retain the exact set key plus "topics".

    line 252
  30. Distinctive:

    Do not add administrator escalation or technical membership warnings.

    line 253
  31. Distinctive:

    No topics are changed and no approval is requested for an unavailable set.

    line 254
  32. Very specific:

    Use an existing setup/recovery destination only when verified for that problem and installed version.

    line 255
  33. Distinctive:

    Evidence unavailable or ambiguous: do not diagnose absence or access denial.

    line 259
  34. Distinctive:

    Before writes, Cancel or Not now ends the request.

    line 286
  35. Distinctive:

    When the action is unknown, ask just the action question first using the host's structured question tool.

    line 296
  36. Very specific:

    Put the actual question in both header and question, not a generic "Manage topics", "Topic sets" or "Topic changes" heading.

    line 316
  37. Very specific:

    Do not add a separate copy of the question or an option-summary paragraph.

    line 319
  38. Very specific:

    Read the tool answer under the exact supplied header, not a hard-coded generic heading.

    line 320
  39. Distinctive:

    Do not include a set-key question in this first control.

    line 323
  40. Distinctive:

    After the action is chosen, if the request is a set listing or enable/disable without established sets, read the selected agent's inventory …

    line 327
  41. Very specific:

    Run this fresh for the current invocation and selected target.

    line 342
  42. Distinctive:

    Add lists only shipped-content sets supported for the live schema, with present/expected member counts, and offers sets not fully present.

    line 353
  43. Very specific:

    Add uses the same gate and names-only selectionQuestion.

    line 365
  44. Very specific:

    When Add's complete discovery lists exactly one set, the helper omits selectionQuestion: go directly to the fresh review for that set's key.

    line 366
  45. Very specific:

    Do not reconstruct, expand or supplement the helper's options, even if the catalog or earlier conversation lists additional integrations or …

    line 371
  46. Very specific:

    Never use --list-sets to populate this control.

    line 373
  47. Very specific:

    After selection, use the normal fresh --review flow.

    line 379
  48. Very specific:

    Read src/reference/manage-topics/catalog.provisional.json or run python scripts/manage_topics.py --list-sets to list source definitions.

    line 386
  49. Distinctive:

    Do not translate an undo request into the opposite action, since earlier topic states may have been mixed.

    line 395
  50. Distinctive:

    Never infer membership from names, merge source families, expand "all" without selection or authorize a topic individually.

    line 399
  51. Very specific:

    Add accepts only whole sets with a catalog contentFolder.

    line 409
  52. Distinctive:

    Add inserts all members disabled only when all are absent.

    line 415
  53. Distinctive:

    Add requires the Object Model converter.

    line 420
  54. Distinctive:

    After a verified successful diagnostics add, append these next steps to the helper's result.

    line 440
  55. Very specific:

    Only add/enable/disable is accepted.

    line 464
  56. Distinctive:

    Do not save an input file.

    line 465
  57. Very specific:

    Add uses the expected members, including absent ones.

    line 480
  58. Very specific:

    No user approval can override blockers.

    line 481
  59. Very specific:

    Use Add/Enable/Disable consistently, not Turn on/off.

    line 521
  60. Very specific:

    If a structured question tool is genuinely unavailable, report that specific blocker.

    line 562
  61. Distinctive:

    No publish operation is requested.

    line 579
  62. Distinctive:

    Every enable/disable request uses current live topic states.

    line 608
  63. Distinctive:

    After an uncertain submission, never retry or infer that the requested change succeeded.

    line 615
  64. Distinctive:

    Add also submits at most one changeset per apply, built by the helper from fresh evidence: it inserts shipped dialogs disabled.

    line 629
  65. Distinctive:

    Only Add also runs the existing live Dev and ALM validation.

    line 636
  66. Very specific:

    After any submission, including timeout/conflict/error, the controller reads back and reports each observed result.

    line 644
  67. Distinctive:

    Add also verifies exact identity, presence, disabled state, content and blocking diagnostics.

    line 650
  68. Distinctive:

    Add also compares live dialogs with converted shipped dialogs using the helper's normalization.

    line 662
  69. Very specific:

    Keep the safe failure category and submissionHttpStatus in the diagnostic result.

    line 667
  70. Very specific:

    All actions leave the local agent folder, component map and push baseline unchanged.

    line 677
  71. Very specific:

    Only short-lived pending reviews are persisted under .local/manage-topics.

    line 678
  72. Distinctive:

    No new FlightCheck profile, telemetry collector or diagnostic upload is introduced.

    line 683

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Manage topics

Enable or disable whole source-defined ESS topic sets on one verified selected native agent using the computed planner, short-lived review, single-attempt executor and readback. The source-inventory policy intentionally removes central release admission and prequalification gates. Matching topics are not proof of installed-package identity, complete membership, required-topic classification or custom-dependency coverage. Those unknowns remain warnings; they are not changed to verified evidence. Effective edit permission is enforced by the write API, not inferred from authentication or read access. Native stale-token, batch and draft/published behavior is unqualified. For enable/disable, Dev, Test, Prod and unenrolled native agents are not excluded by realm. Service authorization or unsupported native API access can still block an operation. Removing the realm gate does not qualify those targets or make changes safe for published conversations. This is not a qualified customer release. Never describe a preview as a completed enable/disable or promise draft/published isolation.

Add uses the same reviewed flow for sets with shipped content and requires a live Development agent enrolled in ALM; saved setup data alone does not satisfy that requirement. Nothing is published by this command. Add never writes to Test or Production agents.

Naming and compatibility

The skill is Manage topics and its canonical command is /manage-topics. /topic-actions remains a compatibility alias for this same experience. Preserve the original request and caller context; do not add a rename confirmation or ask the maker to switch commands.

Use the renamed scripts/manage_topics.py helper and the MANAGE_TOPICS_* output markers documented below. New pending reviews use .local/manage-topics. Pre-rename review IDs are not migrated or accepted: request a fresh review and explicit approval. Leave legacy review databases and original-state files untouched; never copy approvals into the new store.

Interaction and output

Use the established selected target, action and exact set keys. Ask a clarifying question only when missing or ambiguous information prevents the requested operation; do not ask the maker to repeat known selections or confirm that routine checks should run.

For topic-set listing requests, show the live-agent set overview described below, without asking which sets to list. For explicit per-topic detail or preview requests, show the selected sets, short topic names and observed current states. Both are read-only and need no approval or unsolicited offer to execute. For List/Enable/Disable, successful read-only replies contain only the heading and requested tables. Omit agent/environment identifiers, redundant set-total summaries and "No topics were changed" or publishing commentary. Target identifiers and counts remain in structured results; execution reviews still show the complete required target and account. Add lists report live presence and say that nothing was changed; presence alone does not establish eligibility to add. Do not turn a topic-list request into an enable/disable plan: omit requested states, plan columns, change counts and write-specific limitation notes. The same preview-only rule applies to add. Keep unresolved topics and blockers visible; do not imply complete discovery. For an explicit enable/disable request with established sets, use the execution helper's fresh review directly; do not add a separate preview approval, a "start review" confirmation or a "ready to proceed" question before it. A previous preview is not executable approval and does not replace that fresh execution review. Once sets are established, enable and disable requests always enter the --review helper. Verified no-change enable/disable returns already_correct after a fresh readback: render the final result and stop without approval or --apply-review. Add uses the same flow, including already_correct without approval or apply. Never substitute a read-only list or preview because approval transport appears unavailable.

Display the complete required review once, including every selected member, account, target, changes, no-change topics and protections. Then present one action-specific question card supplied by approvalQuestion, with no preselected approval. Use the structured VS Code question and separate review/apply commands below, as Connect Workday does; map the selected action option to approve, Not now to deny, and dismissal or custom text to cancel. Ambiguous text is never approval. Do not introduce a second confirmation after approval; continue with the mandatory fresh checks and readback. Changed evidence or expired approval still requires a new review and explicit approval.

Keep routine authentication, prerequisite checks and execution bookkeeping out of the conversation. Use the existing entry/helper instead of inventing ad hoc shell orchestration for normal operations. Use --chat-output on the normal listing, preview, review and apply commands below. Capture and parse the single result envelope; do not echo it or print a second copy of its message in the terminal. Do not paste PowerShell, Python, shell commands, request JSON, helper source, raw stdout or polling transcripts into the review or final answer. Give terminal instructions only when the supported interactive-terminal fallback is necessary or the maker explicitly requests commands. If diagnostics are requested, provide only safe supported details; never expose tokens, private context or raw service bodies.

After execution, show the outcome and verified counts, target/account context, grouped per-topic results and any material blocker or preservation limitation. For enable/disable: Do not append routine submission or publishing footers; submission evidence stays in structured diagnostics. Distinguish observed state success from incomplete preservation. Do not repeat the review, narrate routine steps, open another decision control or append an unsolicited follow-up menu. Cancellation says only "Canceled." Denial says only "Not approved."

Retain the helper's draft/publish and no-change notes. For add, a submitted write changes only the draft, and Microsoft 365 Copilot sees it after a publish in Copilot Studio; a result with no write says nothing was changed. A review says the change will stay in the draft. Preserve the existing enable/disable output and shared review-error wording. These notes describe this invocation, not earlier writes. Render cancellation, denial and review errors as returned. An error shows the specific problem and one supported next step, not a generic failure heading or repeated inventory. Retain the helper's no-change note. Put the supported guidance in a short paragraph under a standalone NEXT STEPS heading, not an inline "Next step:" label. Do not invent unrelated setup or connection recommendations. Use this same heading-and-paragraph pattern wherever next-step guidance appears, including partial and unverified outcomes, not only errors. Do not add next steps to responses that do not need them. Never automatically retry a submission or turn uncertain evidence into an assurance that nothing changed.

Fixed maker-facing wording

The helper supplies userMessage on every review and result. Render that field verbatim as Markdown, without paraphrasing, adding a warning section, exposing internal reason codes or appending the raw diagnostic message. Use the review's text before the one approval control, and the result's text as the final response. Do not duplicate the review after execution. Do not regenerate counts, infer missing membership or turn an incomplete result into success. For multiple independent previews, render each returned userMessage; do not combine them into a newly interpreted successful scope.

The deterministic presentation is owned by scripts/manage_topics_presentation.py. Except for diagnostics Add, do not show a "Before you approve" section, its notes, or a replacement warning section. Limitations and dependency impact remain available in structured diagnostics for technical questions. For enable/disable, read-only previews show the topic inventory, not an execution plan, and never ask for approval. Display the schema-name suffix after .topic. (for example, WorkdayGetVisas); keep full identities in structured evidence and mutation logic. Use "No change" rather than "Already correct" in plans. Add previews show current state or presence without approval and retain the helper's no-change note. Give the diagnostics Add notice below before approval. Routine diagnostics such as service-enforced edit permission are not repeated as notices. Structured warnings, blockers, HTTP status and other evidence remain intact for callers and requested technical diagnosis; not displaying raw warning lists does not remove checks or establish trust. Unknown limitations remain in structured diagnostics rather than review notices. Only when the maker explicitly requests diagnostics may safe reason codes and HTTP status accompany the fixed copy. Never expose private evidence, caller context, service bodies or credentials.

Native-chat layout and terminology

Use the deterministic Markdown layout, not a custom webview, HTML controls, screenshots or a hard-coded theme. VS Code owns fonts, colors, focus and the structured question controls. Use the existing action question, names-only multi-select and unset action-specific approval / Not now decision; add no progress screen, navigation, retry, rollback, restore or resume controls.

Use Enable / Disable for actions and plans, and Enabled / Disabled / Unknown for topic states. Topic-set aggregates also use Mixed. Do not mix On/Off or turn-on/turn-off language into maker-facing topic-state copy; internal state/API values remain unchanged. Use Add for that action and its plans. Its lists use Absent, Partial or Present; an absent topic has no enabled state.

The review shows action, account and exact target first, followed directly by tables grouped under friendly topic-set names. Do not add a separate changed/no-change count summary line above the tables. Match Chelsea's review table columns: #, Integration, Topic, Current state and Planned change. Number rows within each group and use catalog integration names, falling back to the full set name. Do not add a separate Requested state column: the planned change says Enable, Disable, No change - already enabled/disabled, or the evidenced reason a topic is kept unchanged. Keep unknown states and unresolved members explicit. Use No change for matching states and Kept unchanged with the evidenced reason for protections. Retain all selected scope, including unresolved members. Add plans instead use Add and the helper's no-change/skip wording. Their reviews also show presence and check content equality. Use catalog-provided display names only; never infer availability from them. Keep internal set keys for helper inputs and diagnostic evidence.

Execution results follow Chelsea's result hierarchy: outcome heading, a concise sentence with changed/verified counts and nonzero unchanged counts, then Agent, Environment and Account when evidenced. Show numbered tables with #, Integration, Topic and Result, grouped by friendly topic-set name. Integration names come from catalog metadata, never from guessing or splitting labels; fall back to the full set name when unavailable. The Result cell includes the verified state or qualified observed state, so no redundant state column is needed. There is no separate protected-topics section or protection count in this scope. Retain the underlying safeguards: if evidence ever produces a skipped member, show its state and reason inline in the existing set table without claiming it was changed. A member shared by selected sets appears once in a shared-topic group naming every associated set; count and update it once. Distinguish newly enabled/disabled from already enabled/disabled and unchanged. Verified no-change results use the same grouped per-topic report with 0 topics changed, already-matching counts and unchanged rows; do not replace them with a short paragraph. They still require no approval or submission. Observing the requested state after an uncertain submission does not establish that this request caused it. Unknown final states, protected topics, unverified preservation and a detected preservation violation must not be labeled successful changes. A rejected/consumed review reports no new submission only through structured evidence; never claim an earlier invocation changed nothing. Error copy instead explains that the review is unavailable or already used and asks for a fresh request and approval.

Every table uses explicit bold Markdown header cells and blank lines around tables and group headings. Render tables directly in the chat message, not inside code fences, lists or blockquotes. Native chat controls table width, cell padding, header background and accent colors; the skill cannot set those with Markdown. Do not use HTML/CSS, nonbreaking-space padding, invisible characters or long filler text to simulate the HTML proposal's styling. Do not claim pixel-identical rendering of that proposal.

The complete rendered review, approval question and their display names remain part of the approval binding. Any changed presentation requires a fresh review and explicit consent; never weaken binding to preserve approval collected against older copy.

These rules govern generated conversation content, not host-rendered tool panels or permission controls. Do not promise to hide those panels, change host permission settings or bypass required approvals.

Entry and prerequisites

This route owns its setup gate. Read .local/config.json and .local/setup/config.json; resolve activeAgent to exactly one canonical agent.workspace_slug. Require schema version 4, consistent tenant, environment and agent IDs, DA release line, a recorded workspace folder and agent path, and steps.SETUP-07.state: "done".

Do not require connect_ready: true, a healthy Workday/ServiceNow connection or employee-data calls. Use src/reference/ui-formatting-guidelines.md for maker-facing guidance. Preserve the requested action, sets and established target, and distinguish these entry outcomes:

  • Setup not established: explain that ADK has not established the account, agent and environment. Direct the maker to run /setup in this workspace, then return to this conversation with a new topic-change request.
  • Setup incomplete: name the unfinished step only when known. Workspace preparation is required; connection health is not. Direct the maker to /setup for the same agent, retaining confirmed completed steps, then ask them to return here with a new request.
  • Setup broken or target unverified: identify only the information that cannot be validated. Do not assume /setup repairs it or recommend deleting setup state, switching targets or creating a replacement. State when the supported recovery route or installed-version support is unconfirmed.
  • Selected topics unavailable for enable/disable: live agent inventory determines which topics exist. For each requested set, use every present exact catalog match; differing template counts are normal, not missing-topic warnings. If no topics from a requested set are present, say "<friendly topic-set name> are not available in this agent." If a display name is unavailable, retain the exact set key plus "topics". Do not add administrator escalation or technical membership warnings. No topics are changed and no approval is requested for an unavailable set. Use an existing setup/recovery destination only when verified for that problem and installed version; otherwise state that the destination is unconfirmed. /setup does not install extension packs; /connect completion is not package or topic evidence.
  • Evidence unavailable or ambiguous: do not diagnose absence or access denial. Unverified installation does not mean a missing package; unresolved topic identities can be missing or ambiguous. Say "I couldn't identify all the requested topics in this agent." Do not claim that ambiguous topics are absent or add routine administrator escalation.
  • Access denied: describe the denied operation only. A denied read does not verify missing topic-edit permission. Only a verified edit denial may direct the maker to the administrator responsible for that agent and environment to grant topic-edit access. Do not invent a permission-request command or infer denial from an unavailable permission check.

For each blocker show its specific problem and one supported next step. Retain any no-change statement in the helper's text without repeating the inventory. Never automatically start setup, install packages, repair a connection, switch targets or resume topic changes after recovery. A new request performs fresh checks, review and applicable explicit approval. The helper rechecks identity and direct native access; reads do not prove write permission.

Direct entry and a calling skill use the same planner/controller. Preserve confirmed completed caller/setup progress and return its context in memory without completing unresolved caller steps. Returning a JSON object is not proof that setup has consumed it. Use an existing caller continuation only when its contract and installed-version support have been verified; otherwise explain that automatic return is unavailable and keep the result in this conversation. Do not promise persistent resume, invent a destination, mark the topic step complete or start the caller's next mutation.

Before writes, Cancel or Not now ends the request. For enable/disable, show only "Canceled." For add, render the helper's result. Direct entry remains in this conversation. Caller entry preserves completed steps and leaves the topic step incomplete unless the requested state was independently verified, using only the supported caller return. Closing the control or an ambiguous custom answer is not approval. No automatic retry or resume follows cancellation.

Action, live set overview and selection

When the action is unknown, ask just the action question first using the host's structured question tool. Keep Enable, Disable, Add and List in that order, with the host's "Enter custom answer" fifth:

[
  {
    "header": "What would you like to do?",
    "question": "What would you like to do?",
    "options": [
      { "label": "Enable topic sets" },
      { "label": "Disable topic sets" },
      { "label": "Add topic sets" },
      { "label": "List topic sets/current states" }
    ],
    "allowFreeformInput": true
  }
]

Put the actual question in both header and question, not a generic "Manage topics", "Topic sets" or "Topic changes" heading. The native card uses header for the pinned top row and suppresses matching body text. Do not add a separate copy of the question or an option-summary paragraph. Read the tool answer under the exact supplied header, not a hard-coded generic heading. This applies to action, set-selection and approval cards.

Do not include a set-key question in this first control. Reuse an action already supplied by the maker. Do not batch the action and set questions into one call: wait for the action answer before discovery and selection. For Add without established sets, use the same inventory entry below. After the action is chosen, if the request is a set listing or enable/disable without established sets, read the selected agent's inventory using:

python scripts/manage_topics.py --list-agent-sets --chat-output

Pass one JSON request on standard input containing contractVersion: 1, target: {tenantId, environmentId, agentId} and entry: "direct". For List/Enable/Disable, omit action and setKeys; do not invent an enable/disable request to list sets. Keep private caller context in the calling conversation as below. For Add, omit setKeys but include action: "add" to request the content-backed picker. This mode only reads; it never creates a review or writes. Parse MANAGE_TOPICS_RESULT_JSON: and render userMessage verbatim.

Run this fresh for the current invocation and selected target. Earlier chat lists, cached questions and source catalog definitions are not availability evidence. Only status: "sets_listed" supplies the live sets choices. The overview shows each available set's friendly integration/set name, present topic count and aggregate state: Enabled means every present topic is enabled; Disabled means every present topic is disabled; Mixed means both enabled and disabled; Unknown means a state or membership could not be resolved. Absent sets are omitted. Do not populate the overview from the source catalog alone or expand it into individual topic rows unless the maker explicitly requests topic details.

Add lists only shipped-content sets supported for the live schema, with present/expected member counts, and offers sets not fully present. Listing neither converts content nor validates Dev enrollment; review may still block on content, state or target.

For List topic sets/current states, stop after this overview. Do not ask for set selection or approval. For Enable or Disable, when discoveryComplete is true and sets is nonempty, pass the helper's selectionQuestion unchanged as the sole next structured question. The helper supplies exactly one option per present set with only its friendly name, such as "Workday HR Topics" or "ServiceNow IT Topics". Use this name-only pattern for all supported sets: no state/count suffix or description in picker options. Counts and states belong only in the overview. Add uses the same gate and names-only selectionQuestion; keep presence in the overview only. When Add's complete discovery lists exactly one set, the helper omits selectionQuestion: go directly to the fresh review for that set's key; its approval is the maker's decision. Multi-select is enabled, with no custom-answer field and no preselected choices. Map answered option labels to the key of each matching entry in the same response's sets; retain keys internally. Do not reconstruct, expand or supplement the helper's options, even if the catalog or earlier conversation lists additional integrations or HR/IT sets. Never use --list-sets to populate this control. If selectionQuestion is absent/null, do not invent a picker or use a catalog fallback. Empty/dismissed selection cancels without a review or write. Failed or incomplete discovery must not become an empty successful list or a guessed selection; render its result and stop.

After selection, use the normal fresh --review flow. The overview is not approval or write evidence. If the maker already supplied an unambiguous add/enable/disable action and sets, skip the action/overview/selection detour and go directly to that fresh review.

Proposed source catalog

Read src/reference/manage-topics/catalog.provisional.json or run python scripts/manage_topics.py --list-sets to list source definitions. This is not installed availability. The catalog deliberately retains unknown required-topic classifications, package IDs and coverage, and provisional approval. Do not change those labels to make a plan pass.

For changes, establish exactly one action (add, enable or disable) and use the canonical selected target with the selected whole-set keys internally. Restore and undo of previous Manage topics changes are not supported. Do not translate an undo request into the opposite action, since earlier topic states may have been mixed. Explain the limitation and ask for the desired action only when it is not established, then use live set selection above when sets are unknown. Never infer membership from names, merge source families, expand "all" without selection or authorize a topic individually. Live inventory is the source of topics to enable/disable. The catalog maps exact schema keys to the requested sets; only members actually present in this agent enter the scope. An agent with 10 matching topics does not need the 15 topics another agent has. Absent template members are ignored, not reported as incomplete. Ambiguous identities still block. Legacy flat definitions remain read-only.

Content-backed sets

Add accepts only whole sets with a catalog contentFolder. The helper checks the live schema family and exact members and converts the shipped files. Never supply topic bodies or build change rows in chat. Other topic creation, update and deletion still use the kit's existing capability stops. There is no Remove: the maker deletes added topics in Copilot Studio.

Add inserts all members disabled only when all are absent. All-present matching content changes nothing and points to Enable. Partial sets, different content, duplicate schemas and wrong component kinds block add. If the present part matches, follow the helper's guidance to delete those topics in Copilot Studio, then Add.

Add requires the Object Model converter; missing runtime or conversion failure stops before writing, with the helper's guidance. Listing, Enable and Disable need no converter. Blocking service diagnostics fail Add without enabling inserted topics; warnings alone do not. Claim a disabled state only after verification, and keep the helper's qualified result and recovery guidance after partial or uncertain writes.

Diagnostics notices

For an Add request containing diagnostics, give this notice with the review and before its approval question. It is required even if the maker skipped set selection. Do not add a second confirmation or change approvalQuestion.

Diagnostics Topics are an experimental aid for Development agents only. While the set is on, every answer that used a tool first calls the record topic, so answers are slower. The model writes the record; it is not an audit log. Without special settings on the Copilot side, the record topic is rarely offered, so a report may have no recorded search results. Report problems with Add, Enable or Disable to the kit's GitHub Issues.

After a verified successful diagnostics add, append these next steps to the helper's result. For blocked, partial or unverified results, retain the helper's recovery guidance instead of implying the set is ready.

After they are on, publish in Copilot Studio, then ask a question followed by /diagnose in the same chat. Microsoft 365 Copilot may take time to serve the new version; one test took 45 minutes. Promotion carries the set's on/off state to the next agent, so disable it in Dev and publish before any promotion.

These instructions do not authorize Enable or publishing. Enable needs its own review and approval. The maker publishes in Copilot Studio. To delete the set, name its topics as Copilot Studio shows them: [System] - Record Search Results and [System] - Diagnose Report.

Read-only preview or chat review and apply

Pass one JSON request on standard input to:

python scripts/manage_topics.py --preview --chat-output

The request contains contractVersion: 1, target: {tenantId, environmentId, agentId}, action, setKeys (distinct exact keys), and entry: "direct". Only add/enable/disable is accepted; initializeBaseline is no longer an input. Do not save an input file. For terminal execution omit private caller context; retain it with the calling conversation. An in-process caller can use run_manage_topics(..., confirm=..., preview=True) with entry: "caller" and a nonempty callerContext JSON object. Never put context, tokens or component bodies in terminal commands, chat output or files.

Parse MANAGE_TOPICS_RESULT_JSON: and render its userMessage. For preview, it presents the selected topics and observed current states in fixed plain language, plus any blocker preventing resolution. Execution reviews additionally present proposed changes, no-change topics and protections. Limitations remain in structured diagnostics. For enable/disable: Observed differences in a blocked plan are not eligible changes. Report all requested sets using their present members. A requested set with no present members blocks rather than disappearing from the request. Add uses the expected members, including absent ones; blocked changes are ineligible. No user approval can override blockers. Preview returns status: "preview" and writeStatus: "not_attempted". It does not acquire write scopes or collect executable consent.

For the normal write flow, pass the request on standard input to:

python scripts/manage_topics.py --review --chat-output

This command finishes; it does not wait for terminal input. Parse MANAGE_TOPICS_RESULT_JSON:. Only status: "review_ready" supplies a reviewId and permits asking for approval. Display its complete userMessage, including account, target, every selected set/member, proposed changes, no-change topics and protections. Do not append approval notes except the diagnostics Add notice above. Keep reviewId and expiry metadata internal. For any other status, render the returned userMessage without asking for approval and stop.

Pass the returned approvalQuestion unchanged as the sole next question to vscode_askQuestions (or the host's structured question tool). The helper derives the exact unique change count and selected set names from this fresh review, not the total inventory, earlier lists or a guessed integration label. For example, a two-topic enable review for Workday HR Topics supplies:

[
  {
    "header": "Enable the 2 topics shown above?",
    "question": "Enable the 2 topics shown above?",
    "multiSelect": false,
    "options": [
      {
        "label": "Enable 2 topics for Workday HR Topics.",
        "description": "Apply only the changes shown above."
      },
      { "label": "Not now", "description": "Leave topics unchanged." }
    ],
    "allowFreeformInput": true
  }
]

Use Add/Enable/Disable consistently, not Turn on/off. Leave every option initially unset and do not mark an option recommended. Only an explicit selection of the returned action-specific option maps to approve; selection of Not now maps to deny. Dismissal, custom text, an ambiguous or multiple-option response maps to cancel, even if free text says "yes", "approve" or copies the action label. The custom-answer field and Submit/dismiss controls belong to the host; do not add them as options. Do not add a separate Cancel option, Change integrations, reselection or a second confirmation. If the returned question is absent/null, do not invent one or collect approval. After the answer, run the fixed command with the returned ID and the actual decision:

python scripts/manage_topics.py --apply-review "{REVIEW_ID}" --decision "{DECISION}" --chat-output

This consumes the pending review exactly once, including denial or cancellation. It needs no stdin continuation, background terminal, named pipe, computer control, or ad hoc bridge. Do not request desktop access or fall back to manual terminal instructions merely because the host cannot send input to a waiting process. Never prefill approval, save an approval for later, automatically retry an apply command, or recreate a consumed review silently.

The pending review expires after five minutes. Apply authenticates again, rechecks the selected target, full evidence and exact review, then performs the existing fresh pre-dispatch checks and readback. A changed account, target, catalog, membership, content or topic state invalidates the review. Expiry is not extended by authentication or discovery. An expired, missing, consumed or changed review requires a new complete review and explicit approval; do not treat an old answer as approval of a new plan. Render the apply command's final userMessage; review creation is not completion.

--chat-output emits only userMessage and the metadata needed to continue the chat flow, including review ID/expiry, the exact approvalQuestion and live selection options/key mapping. It omits raw plans, repeated review objects, per-topic diagnostic objects and warning lists from terminal output. It does not change validation, approval, exit status, writes or readback. Full results remain available to in-process callers and the default diagnostic CLI output. Never rerun an apply command to recover omitted diagnostics, or save private output files just to hide it. Host tool panels and required sign-in or permission controls remain visible; do not change editor settings or promise to suppress them.

If a structured question tool is genuinely unavailable, report that specific blocker. Only then offer the existing interactive-terminal alternative, or use it when the maker explicitly requests terminal commands: python scripts/manage_topics.py --execute. That alternative reads one request line, emits MANAGE_TOPICS_REVIEW_JSON:, and requires the actual decision as the next line in the same process. EOF cancels. It is not the normal chat route.

An in-process host uses run_manage_topics(..., confirm=...) without preview=True; its callback owns displaying the review and collecting the maker's explicit answer. All entry types use this same controller. Authentication uses neutral ADK authentication utilities and the existing AgentBuilder cache (.local/.agentbuilder_token_cache.bin), not Connect Workday's authentication or token-cache implementation. Execution requests the explicit native component read/write scope at apply time; preview and review preparation request only the component read scope. A previously cached Workday .default token does not guarantee these scopes are available without sign-in or consent. Both recheck the exact tenant/account. No publish operation is requested. Running the CLI without a mode remains a read-only prerequisite inspection.

Planning and approval rules

The following state-only planning rules govern Enable/Disable; Add uses the content-backed rules above.

The planner deduplicates selected membership. Known required topics cannot be valid members and remain defensively protected. Unknown required status does not block this policy and remains visible as a plain-language limitation before approval. Selected sets do not protect each other. For disable, a fully enabled outside set protects shared topics; a partly enabled outside set protects them only when it has an On member outside the selected union. This protection uses only the source-defined map; its completeness and custom dependencies remain unverified. Absent template members are excluded from both selected and outside sets. Ambiguous exact matches, unknown states of present members, unsupported source variants and a missing change token still block. Every requested set must have present members.

The controller requires explicit approval for actual enable/disable changes against the exact target, account, action, selection, memberships, revision, states, protections and delta. Approval lasts at most five minutes and is rechecked immediately before dispatch. Denial/cancellation changes nothing. Any drift requires a fresh review. A nonempty eligible scope already in the desired state is different from empty scope or an all-protected action. The same approval binding, expiry and fresh-review requirements apply to add.

Current-state operations

Every enable/disable request uses current live topic states. No original-state baseline is captured or required, and no first-use or previous-change question is needed. Earlier changes, a new workspace, and absent or corrupt legacy baseline files do not change this flow. Leave existing original-state files untouched; they are no longer read or updated. The skill cannot restore an earlier configuration.

After an uncertain submission, never retry or infer that the requested change succeeded. A later explicit request starts with new live evidence and requires a new approval for any actual changes. It is not a replay or recovery of the previous operation.

Execution and truthful return

For enable/disable: The executor can submit at most one full-component, state-only changeset. Component reads and writes use the skill-owned ManageTopicsClient in scripts/manage_topics_client.py. It sends the exact state-only changeset computed from the freshly revalidated inventory, without a second payload builder, content merging or automatic conflict handling. Retries and redirects are disabled. Preservation normalization is owned by Manage topics as well. Add also submits at most one changeset per apply, built by the helper from fresh evidence: it inserts shipped dialogs disabled. Conflicts require a new review. Never construct a second payload or merge content in chat. There is no runtime import of Connect Workday or minimalbot_evaluation. Neutral ADK authentication, host validation and HTTP error utilities remain shared dependencies; this skill is not a standalone copy of the whole ADK. AgentBuilderClient is used for direct selected-agent identity verification, without requiring a particular realm or ALM enrollment for enable/disable. Only Add also runs the existing live Dev and ALM validation. Dispatch and readback are serialized per target within the process. Independent processes, workspaces or makers can still overlap; there is no durable cross-process write lock. This does not establish server-side stale-write protection. The native adapter independently binds submission to its freshly read selected target and an exact computed payload, and consumes at most one submission attempt.

After any submission, including timeout/conflict/error, the controller reads back and reports each observed result. Desired state after an uncertain submission is not attributed to this request. Verify non-state content and outside-scope preservation; otherwise report partial/unverified. Never replay, automatically roll back, publish, repair or continue a detached write. Any later attempt needs new evidence and approval. Add also verifies exact identity, presence, disabled state, content and blocking diagnostics. Observed presence or content after an uncertain submission is not attributed to this request.

Preservation comparison tolerates version and auditInfo.modifiedTimeUtc updates only on topics in the approved delta, and generated diagnostics and structuredCondition within dialogue definitions, including dependent topics. Other content, identity, membership and outside-scope state/revision changes remain strict. For enable/disable, this normalization applies only to post-submission readback; review freshness and state-only payload checks remain unchanged. A genuine preservation failure must be distinguished from observed state success. Enabled state does not establish runtime health or resolved diagnostics. Add also compares live dialogs with converted shipped dialogs using the helper's normalization; other content, including comments, must match. Review freshness binds full evidence and shipped content. Distinguish preservation failures from verified presence and content too.

For an unsuccessful submission, use the fixed plain-language failure text. Keep the safe failure category and submissionHttpStatus in the diagnostic result; show them only when technical details are requested. Do not expose exception messages or service response bodies. A rejected request is not successful completion; readback observations do not authorize a retry.

Distinguish blocked, denied, cancelled, review-required, already-correct, completed, completed-with-protections, partial and unverified outcomes. Protected topics are never reported as disabled. Partial, protected or uncertain scope must not complete the caller's whole-set request.

All actions leave the local agent folder, component map and push baseline unchanged. Only short-lived pending reviews are persisted under .local/manage-topics. Pending reviews contain only the non-secret target/request, evidence/review fingerprint and expiry metadata; they never contain an approval, caller context, token or full component inventory. A pending review is not permission to write. Its ID is atomically consumed before execution, and cannot resume or replay a write. No new FlightCheck profile, telemetry collector or diagnostic upload is introduced. Existing auth caches and platform logs are unchanged. Telemetry additions remain deferred.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.