servicenow-da-hrsd
Skill32 starsChanged 7 months agoMITView on GitHub
This provider uses the shared connect lifecycle. It supports only the exact editable Employee Self-Service HR agent and does not use the retained Preview ServiceNow state or steps. One lifecycle instance serves the current active HR agent/profile only; it does not combine HRSD and ITSM into one state file. ITSM remains a separate provider/PR layer. The lifecycle is Actions-only and supports only Microsoft Entra ID User Login (entraIDUserLogin). Knowledge/Graph Connector retrieval, certificate/App B, PFX, Basic/OAuth2, Dataverse connections/references, and cloud flows…
In this repository54 other files it gives its agents.
- dev-specs/ess-nextgen-migration-toolkit/AGENTS.mdAGENTS.md
- samples/AGENTS.mdAGENTS.md
- solutions/ess-maker-skills/scripts/flightcheck/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- tools/ess-nextgen-migration-toolkit/AGENTS.mdAGENTS.md
- dev-specs/ess-nextgen-migration-toolkit/CLAUDE.mdCLAUDE.md
- tools/ess-nextgen-migration-toolkit/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- solutions/ess-maker-skills/.github/copilot-instructions.mdCopilot instructions
- create-or-update-sample-topicSkill
- prepare-sample-prSkill
- triage-sample-issueSkill
- validate-sample-topicSkill
- plannerSkill
- rolesSkill
- setupSkill
- agent-basicsSkill
- analyticsSkill
- backup-template-configsSkill
- cleanupSkill
- servicenow-da-itsmSkill
- servicenow-daSkill
- connectSkill
- workdaySkill
- discoverSkill
- createSkill
- deleteSkill
- dispatcherSkill
- generateSkill
- reviewSkill
- runSkill
- updateSkill
- validateSkill
- flightcheckSkill
- foundation-setupSkill
- landing-page-configSkill
- manage-topicsSkill
- org-announcementsSkill
- plannerSkill
- restore-template-configsSkill
- rolesSkill
- create-eval-drivenSkill
- createSkill
- deleteSkill
- reviewSkill
- testSkill
- update-eval-drivenSkill
- updateSkill
- troubleshootSkill
- createSkill
- deleteSkill
- testSkill
- updateSkill
- ESS-Diagnostics-SkillsSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 49
Use the invocation-local SELECTED_AGENT_SLUG and SELECTED_AGENT_ID supplied by the ServiceNow DA chooser.
- Very specific: line 59
Never jump directly from a result to another checkpoint or infer that actionApplied skips an incomplete provider action.
- Distinctive: line 99
Topics and Portal: After the connection check passes, Connect reads the topic states for Maker review and saves only approved changes.
- Distinctive: line 108
Dev Test: After topic and portal configuration is complete, the Maker runs the HRSD or ITSM scenario in the agent’s Test pane using …
- Distinctive: line 121
Only report the integration connected after the runner completes all nine phases, including explicit remote reuse approval and the four …
≈ “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.
Files
Connect ServiceNow HRSD to the DA HR agent
This provider uses the shared connect lifecycle. It supports only the exact editable Employee Self-Service HR agent and does not use the retained Preview ServiceNow state or steps. One lifecycle instance serves the current active HR agent/profile only; it does not combine HRSD and ITSM into one state file. ITSM remains a separate provider/PR layer.
The lifecycle is Actions-only and supports only Microsoft Entra ID User Login
(entraIDUserLogin). Knowledge/Graph Connector retrieval, certificate/App B,
PFX, Basic/OAuth2, Dataverse connections/references, and cloud flows remain
out of scope. The HR Setup
Configurations topic's Portal Base URI is now in scope: the skill may update
that exact authored node through the native component API only with an
administrator-supplied full portal URL and guarded rollback, or guide the same
manual edit when the API path is unavailable. Admin prerequisites are always guided: the skill
may discover and verify with read-only APIs, but never creates or patches an
Entra application or ServiceNow OIDC/security object.
Strictly follow Draft PR #217
(users/mukesh4139/servicenow-connect-adk) as the source-of-truth for admin
steps, requirements, runbook structure, delegated handoff, resume, and
evidence patterns unless the user approves a deviation. Microsoft Learn is a
secondary reference that can explain fields or flag a possible external
change; it never overrides PR #217 by itself. If Learn or current runtime
evidence suggests PR #217 is stale in a way that changes user steps, required
artifacts, admin roles, auth requirements, or acceptance criteria, stop and
report the old PR behavior, current evidence, proposed deviation, and impact
for a user decision. The explicit DA-GA scope exclusions above remain approved.
For Entra access tokens, do not assume UPN or email. The Entra administrator
returns exactly one selected employee-identity claim name plus the Application
(client) ID through source-faithful direct capture. aud may be
configured for audience validation but is never accepted as that selected
user-matching claim. The ServiceNow direct handoff uses the same bound values
and leaves only the actual matching sys_user field for the ServiceNow
administrator to confirm. Connect never guesses, defaults, or manually
recopies the claim.
The approved
manual runbook also covers Broadly scoped ServiceNow scope
restriction, non-email custom user identifiers, and safe coexistence with a
separate Graph Connector app-only configuration.
Secondary help references (PR #217 remains authoritative):
- Microsoft Learn: ServiceNow for Employee Self-Service
- ServiceNow connector actions
- ServiceNow connector known issues
Use the invocation-local SELECTED_AGENT_SLUG and SELECTED_AGENT_ID
supplied by the ServiceNow DA chooser. Then read
src/skills/connect/shared/lifecycle-runner.md and follow it with:
PROVIDER = "servicenow-da-hrsd"
AGENT_SLUG = SELECTED_AGENT_SLUGThe shared runner's connect_lifecycle.py next-step command is mandatory.
Never jump directly from a result to another checkpoint or infer that
actionApplied skips an incomplete provider action.
STOP — render before acting. After every resume-handoff or record-checkpoint-results, your very next assistant message — before any other tool call — must contain renderBlock.text verbatim (the setup checklist; it already ends with the current step line). renderBlock.text is the only renderable field: never render anything under internal, never write your own checklist, and never add a Check/Status table. Never summarize it or write "render the plan" instead. Every turn that shows a step update must include the latest renderBlock.text verbatim; it is returned every time and never deduplicated, so never skip it or reuse an older copy. At the start of a fresh run renderBlock.text begins with the connection opening ("We'll connect ... so employees can ...", or "We'll add ..." when another ESS agent in the same environment already has shared sign-in setup); emit it verbatim as part of the same message, and never write your own opening or repeat it later. The Test-pane ready message in the current-task lead-in is controller-built: show it verbatim and never reword it, and when record-test --result untested or --result empty returns message, show that message verbatim (for empty, nothing is recorded and the Test step stays open; ask the result question again) and never claim the integration works.
Hard rules. Read src/skills/connect/shared/lifecycle-runner.md before the first action. When resume-handoff returns renderBlock, emit renderBlock.text verbatim as an assistant message; terminal output does not count. Never edit lifecycle.json by hand; record results with record-checkpoint-results. Run every command with the launcher resolved by /setup (py -3, python3, then python), never assuming bare python.
Render the ServiceNow resume-handoff.progress checklist and current-step
updates exactly as the shared runner specifies; do not suppress them under
the ordinary Message-block silence rule.
Existing sign-in setup. When the maker said the organization already uses ServiceNow Knowledge, single sign-on, or the Microsoft Graph connector, the first resume-handoff must carry --existing knowledge (or sso, graph). Its renderBlock.text then starts with the fixed compatibility opening; send it verbatim, never write it yourself, never inspect existing Entra or OIDC configuration, and never skip the administrator handoffs because Knowledge already works.
More than one agent. A request naming both ESS agents or all of them (for example "Check HR and IT in Prod") is answered only by validation-notice --situation multi-agent: send chatMessage verbatim with no preamble or trailer, end the turn, start no run, and record nothing. This is the first action, before any capability emit, realm-status, preflight, or checklist.
On every first run and resume, show the controller's flat setup checklist
(renderBlock.text) as an ordinary response. Preflight and
instance input run without an availability question. When the controller
enters HR prerequisite, Entra identity, ServiceNow SSO/user mapping, or Maker
configuration, ask only that group's returned Yes/No question. A No answer
loops in that role and repeats the same question without advancing state. A
Yes acknowledgement applies only to that group. Availability never proves
authentication, authorization, permission, admin evidence, binding, mutation
consent, or Test completion.
The runner loads
src/skills/connect/servicenow-da-hrsd/contract.json, persists state at
.local/connect/servicenow-da-hrsd/agents/{AGENT_SLUG}/lifecycle.json, and
live-reverifies every phase. The connection and the agent's saved binding are
verified together by ADK; Test pane results remain maker-confirmed evidence; topic mutation requires explicit confirmation.
Publishing is outside ServiceNow Connect. Parameter-sharing is not a
standalone lifecycle phase; legacy
evidence is retained only as historical state and never treated as proof that
the direct connector-action path was independently verified.
Create and connect ServiceNow: The Maker creates the ServiceNow connection from the agent's Copilot Studio Connection Settings, which also selects it for the agent, then confirms it shows Connected. FlightCheck verifies one exact healthy connection and that the agent's saved draft uses it in a single check. Connect does not enable ServiceNow topics before this check passes.
Topics and Portal: After the connection check passes, Connect reads the topic
states for Maker review and saves only approved changes. It also saves the
administrator-provided portal URL after Maker confirmation. The controller asks
for the URL as plain chat text and the agent waits for the typed reply; it does
not call a question card for the URL. The confirmation
question comes from portal-url-confirmation: show its question and
options verbatim, and save nothing before the Maker selects Yes. FlightCheck
verifies the resulting topic states and portal value.
Dev Test: After topic and portal configuration is complete, the Maker runs the HRSD or ITSM scenario in the agent’s Test pane using authorized real data. FlightCheck reviews the Maker’s reported result as Manual evidence for the final configuration. In the final report word it as "Maker-reported Test pane result"; administrator-supplied items as "Confirmed by the administrator" and Maker-supplied items as "Confirmed by the Maker". Manual means human-verified, never Passed, and never proof of business success; Passed means verified by Connect checks.
Later realms: A promoted agent in a later realm is checked on its own by
src/skills/connect/servicenow/realms.md; it does not depend on this
lifecycle.
Only report the integration connected after the runner completes all nine phases, including explicit remote reuse approval and the four admin prerequisite phases before the physical connection and topics. Do not add a second completion message.
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
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.

