servicenow-claude-kit
CLAUDE.md0 starsChanged 6 months agoMITView on GitHub
This file tells Claude Code how to work in this repository. Always read it first. Replace every <placeholder> during /bootstrap. Surface-specific rules live in .claude/rules/ — read the matching rule before touching that surface (ai-agents, ai-tools, capability-report, a2a-exposure, fluent-metadata). A ServiceNow project scaffolded from servicenow-claude-kit, working against the instance below via the servicenow-mcp server (Layer A) plus this repo's scaffolding (Layer B). .team/instance-capabilities.json is the source of truth for what works on this instance — never this doc, never memory.…
- Reads credentials
In this repository5 other files it gives its agents.
- a2a-usageSkill
- create-agentic-workflowSkill
- create-catalog-itemSkill
- create-dashboardSkill
- flowsSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Check the SessionStart capability summary.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md 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
CLAUDE.md — <project name>
This file tells Claude Code how to work in this repository. Always read it first. Replace every <placeholder> during /bootstrap.
Surface-specific rules live in .claude/rules/ — read the matching rule before touching that surface (ai-agents, ai-tools, capability-report, a2a-exposure, fluent-metadata).
What this repo is
A ServiceNow project scaffolded from servicenow-claude-kit, working against the instance below via the servicenow-mcp server (Layer A) plus this repo's scaffolding (Layer B).
Coordinates
- Instance:
<instance>.service-now.com - Application scope:
<scope or "none yet"> - Integration user:
<integration username>(creds resolve via env →.env→~/.claude.json; see scripts/lib/sn-creds.js) - Canonical sys_ids: record every agent/team/table sys_id here the day it's created — name lookups across scopes are a bug (see
.claude/rules/ai-agents.md).
Instance state — the capability report
.team/instance-capabilities.json is the source of truth for what works on this instance — never this doc, never memory. Refresh with npm run probe:quick (read-only, ~5s) or npm run probe:full (sentinel writes). The SessionStart hook prints the summary. Branch on it via getCapability() only; the safe default for unknown is the previous-behaviour path.
Division of labour — authoring vs live state
| Task | Use |
| Reading live instance state | MCP (mcp__ServiceNow__* get/list tools) |
| Ad-hoc script execution | MCP execute_script (requires the god-mode endpoint — probe execute_script.available) |
| AI-agent runtime debug | MCP debug_agent_execution, get_ai_execution_plan |
| Mutating live data (records, not metadata) | MCP / Table API |
| Authoring metadata (tables, BRs, agents, catalog) | MCP power-build tools — or the Fluent SDK once adopted (then: source → build → deploy ONLY; never hand-patch a deployed artifact) |
| Platform-behaviour questions | servicenow-docs skill (local mirror) — never from memory |
Daily loop
- Check the SessionStart capability summary; re-probe if
[STALE]. - Build (MCP tools or Fluent source per the table above).
- Verify —
/verify: read back every artifact, prove behaviour, never trust a silent write. - Review non-trivial diffs with
/team_review. - Record reusable traps in .team/LESSONS.md; investigation narratives in .team/agent-findings/.
Knowledge bases in this repo
- .team/LESSONS.md — instance-independent ServiceNow gotchas. Read before building anything.
- .team/agent-findings/ — dated root-cause narratives (this project's durable memory; machine-local auto-memory does not survive a laptop move).
vendor/servicenow-docs/— official platform docs mirror (gitignored;npm run docs:servicenow:detect). Retrieval:llms.txtindex → ripgrep → read the page. No vector DB.
Fluent SDK opt-in
This repo starts MCP-first. To adopt source-controlled metadata authoring: install @servicenow/sdk, now-sdk init (creates now.config.json + src/fluent/), then read .claude/rules/fluent-metadata.md BEFORE declaring anything. The Stop-hook quality gate picks up now-sdk build automatically once now.config.json exists. Probe sdk_install.*-class capabilities before trusting the SDK deploy path on this instance.
Verification before any commit
npm run lint:sanitizegreen (no secrets/instance leakage — adjust the banned list for THIS project's confidentiality needs)- Capability report fresh; any capability the change depends on is
OK - Every created/modified artifact read back from the instance (
/verify) - If an AI agent changed: clean
debug_agent_executiontrace + stop conditions intact
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.

