exploring-tables
Skill24 starsChanged 9 months agoMITView on GitHub
Exploring any ServiceNow table — schema, field types, sample records, relationships, and data patterns. Use when the user mentions tables, schemas, fields, data dictionary, sys_dictionary, sys_db_object, table structure, \"what fields does X have,\" or wants to understand a ServiceNow table they haven't worked with before.
In this repository4 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- reviewing-update-setsSkill
- servicenow-cmdbSkill
- triaging-incidentsSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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 74
Search for tables by name or label:
- Very specific: line 116
Use fields parameter to limit returned data: fields="sys_id,name,state".
≈ “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
Exploring ServiceNow Tables
General-purpose table exploration — schema discovery, data profiling, and table comparison.
Workflows
1. Explore a Table
Get the full picture of any ServiceNow table.
Progress checklist (copy into your response):
- [ ] Get table schema
- [ ] Pull sample records
- [ ] Summarize field types, mandatory fields, reference fields- Get the table schema (field definitions, types, mandatory flags):
get_table_schema(table_name="<table_name>") - Pull sample records to see real data:
list_records(table_name="<table_name>", limit=5) - Summarize:
- Total field count and types (string, integer, reference, boolean, etc.)
- Mandatory fields (the ones users must populate)
- Reference fields (links to other tables — these define relationships)
- Choice fields (fields with dropdown values)
2. Compare Tables
Side-by-side schema comparison between two related tables.
Progress checklist:
- [ ] Get schema for table A
- [ ] Get schema for table B
- [ ] Compare field overlap and differences- Get schemas for both tables:
get_table_schema(table_name="<table_a>") get_table_schema(table_name="<table_b>") - Compare:
- Fields present in both (shared/inherited from a common parent)
- Fields unique to each table
- Differences in field types or mandatory flags
- Reference field targets
3. Find Tables
Discover tables matching a keyword by querying sys_db_object.
Progress checklist:
- [ ] Query sys_db_object for matching tables
- [ ] Get record counts for top matches
- [ ] Summarize results- Search for tables by name or label:
list_records(table_name="sys_db_object", query="nameLIKE<keyword>", fields="name,label,super_class,sys_id", limit=20) - For top matches, get a sample record to confirm the table has data:
list_records(table_name="<matched_table>", limit=1) - Summarize: table name, label, parent class, whether it has data.
4. Data Profiling
Sample records and assess data quality for a table.
Progress checklist:
- [ ] Get table schema
- [ ] Pull sample records
- [ ] Check null rates on key fields
- [ ] Identify unused or sparse columns- Get the schema to know what fields exist:
get_table_schema(table_name="<table_name>") - Pull a larger sample:
list_records(table_name="<table_name>", limit=20) - For key fields, check how many have empty values:
list_records(table_name="<table_name>", query="<field_name>ISEMPTY", limit=1, fields="sys_id") - Report:
- Fields with high null rates (potential data quality issues)
- Fields that appear unused (always empty or default)
- Reference fields that point to empty/missing records
- Recommendations for data cleanup
Tips
- Use
fieldsparameter to limit returned data:fields="sys_id,name,state". - The
sys_db_objecttable contains all table definitions. Use it to discover tables by keyword. - The
sys_dictionarytable contains field-level metadata. Query it for advanced schema details:list_records(table_name="sys_dictionary", query="name=<table_name>"). - Encoded query cheat sheet:
=(equals),LIKE(contains),ISEMPTY(null),^(AND),^OR(OR).
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.

