servicenow-cmdb
Skill24 starsChanged 9 months agoMITView on GitHub
Exploring CMDB configuration items, CI class hierarchy, relationships, health metrics, data quality, and CSDM compliance. Use when the user mentions CMDB, configuration items, CIs, CI classes, dependencies, relationships, CMDB health, data quality, duplicates, orphaned CIs, CSDM, service taxonomy, Data Foundations certification, staleness, compliance scores, or \"show me what depends on X.\"
In this repository4 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- exploring-tablesSkill
- reviewing-update-setsSkill
- triaging-incidentsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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
- Distinctive: line 38
Check class-specific fields by getting the schema for a subclass:
- Distinctive: line 90
Check active health rules:
- Distinctive: line 94
Look at health scores by CI class:
- Distinctive: line 100
After remediation, re-query health scores to verify improvement.
- Distinctive: line 123
Check for orphaned CIs (no relationships):
- Very specific: line 171
Use fields parameter on list_ci and list_records to limit returned data to relevant columns.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
ServiceNow CMDB Data Foundations
Explore CI classes, map dependencies, assess CMDB health, investigate data quality, and review CSDM service taxonomy. See references/cmdb-tables.md for CI classes, health KPIs, CSDM mappings, and encoded query syntax.
Workflows
1. Explore CI Class Hierarchy
Discover what CI classes exist and their structure.
Progress checklist (copy into your response):
- [ ] Get base CI table schema
- [ ] Sample populated CI classes
- [ ] Check class-specific fields
- [ ] Summarize class inventory- Get the base CI table schema:
get_table_schema(table_name="cmdb_ci") - List CIs by class to see what's populated:
list_ci(class_name="cmdb_ci_server", limit=10) list_ci(class_name="cmdb_ci_computer", limit=10) list_ci(class_name="cmdb_ci_app_server", limit=10) - Check class-specific fields by getting the schema for a subclass:
get_table_schema(table_name="cmdb_ci_server") - Summarize which classes have data and how many CIs each contains.
2. Map CI Dependencies
Trace upstream and downstream dependencies for a given CI.
Progress checklist:
- [ ] Find target CI
- [ ] Get CI details
- [ ] Get relationships
- [ ] Build dependency tree
- [ ] Present upstream/downstream map- Find the target CI:
list_ci(class_name="cmdb_ci", query="nameLIKE<search_term>", limit=10) - Get the CI details:
get_ci(sys_id="<ci_sys_id>") - Get all relationships:
get_ci_relationships(sys_id="<ci_sys_id>") - For each related CI, optionally recurse one level deeper to build a dependency map.
- Present results as an upstream/downstream tree showing relationship types.
3. Assess CMDB Health
Query the CMDB Health Dashboard tables for data quality KPIs. Uses a validation loop: assess -> identify issues -> remediate -> re-assess.
Progress checklist:
- [ ] Query health audit results
- [ ] Check active health rules
- [ ] Get health scores by class
- [ ] Identify top failing rules
- [ ] Recommend remediation actions
- [ ] (Optional) Re-assess after fixes- List recent health audit results:
list_records(table_name="cmdb_health_audit", limit=20, order_by="-sys_created_on") - Check active health rules:
list_records(table_name="cmdb_health_rule", query="active=true", limit=20) - Look at health scores by CI class:
list_records(table_name="cmdb_health_config", limit=20) - Summarize: overall health score, top failing rules, classes with lowest scores.
- Recommend specific remediation actions for each failing rule.
- After remediation, re-query health scores to verify improvement.
4. Investigate Data Quality
Drill into data quality issues for specific CI classes. Uses a validation loop: profile -> identify gaps -> suggest fixes.
Progress checklist:
- [ ] Find CIs with missing mandatory fields
- [ ] Check for duplicates
- [ ] Check for orphaned CIs (no relationships)
- [ ] Query data quality rules
- [ ] Report issues by category with recommendations- Find CIs with missing mandatory fields:
list_ci(class_name="cmdb_ci_server", query="ip_addressISEMPTY", limit=20) - Find duplicate CIs (same name, different sys_id):
list_ci(class_name="cmdb_ci_server", query="nameLIKE<name>", limit=20) - Check for orphaned CIs (no relationships):
get_ci_relationships(sys_id="<ci_sys_id>") - Query data quality rules:
list_records(table_name="dl_definition", query="active=true", limit=20) - Report: count of issues by category, affected CI classes, recommended actions.
5. CSDM Service Taxonomy
Explore the Common Service Data Model service hierarchy.
Progress checklist:
- [ ] List Business Services
- [ ] List Technical Services
- [ ] List Application Services
- [ ] Map service relationships
- [ ] Check service-to-offering mappings
- [ ] Present service taxonomy tree- List Business Services:
list_ci(class_name="cmdb_ci_service_business", limit=20) - List Technical Services:
list_ci(class_name="cmdb_ci_service_technical", limit=20) - List Application Services:
list_ci(class_name="cmdb_ci_service", query="sys_class_nameLIKEservice", limit=20) - For a specific service, map relationships to see which CIs support it:
get_ci_relationships(sys_id="<service_sys_id>") - Check service-to-offering mappings:
list_records(table_name="service_offering", limit=20) - Present the service taxonomy: business -> technical -> application services, with supporting CIs.
Tips
- Use
fieldsparameter onlist_ciandlist_recordsto limit returned data to relevant columns. - CMDB health tables may not exist on all instances — if a table returns 404, the Health Dashboard module may not be activated.
- CSDM class names vary by SN version. If a class returns no results, try
get_table_schemato confirm it exists. - See
references/cmdb-tables.mdfor encoded query syntax, CI class reference, and health KPI definitions.
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.

