knowledge-graph
Skill41 starsChanged 17 days agoApache-2.0View on GitHub
Build and navigate knowledge graphs showing article relationships, topic hierarchies, cross-reference maps, content dependency analysis, and knowledge domain coverage visualization
23 other projects use a version of this.
Adopted by
Most recently taken up by
- ddehart/claude-code-pluginstheir own version, first seen Nov 8, 2026
- AsiaOstrich/EngramGraphtheir own version, first seen Nov 8, 2026
- debjan/knowledge-graphtheir own version, first seen Nov 6, 2026
- nikhilw/structured-agentic-workflowtheir own version, first seen Nov 6, 2026
- digitalgym/aipathway-standardstheir own version, first seen Nov 4, 2026
- AsiaOstrich/universal-dev-standardstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use metrics, push and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GoogleSkillmetrics
Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.
Also in 3 projects that use this
OpenAISkillpush
Also in 3 projects that use this
MicrosoftSkillretrospective
Review how work went and improve the next round. USE WHEN asked for a retro, delays, or process lessons. DO NOT USE for code review or transcript replay.
Also in 3 projects that use this
VercelSkilldeploy
Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".
Also in 3 projects that use this
varun29ankuSSkillorchestrate
This skill should be used when the user asks to 'orchestrate a task', 'break down work into parallel agents', 'coordinate subtasks', 'run agents in parallel', or mentions 'multi-agent'. Decomposes complex tasks into tracked subtasks, dispatches parallel subagents, and coordinates until completion.
Also in 3 projects that use this
nicolasestremSkillbrainstorm
Structured idea generation and solution exploration with systematic analysis.
Also in 3 projects that use this
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- llopresto87/Cypress★ 119same name
- AsiaOstrich/universal-dev-standards★ 84same name
- iagocavalcante/claude-turbo-search★ 16same name
- iuiaoin/agent-skills★ 16same name
- ariaxhan/kernel-claude★ 15same name
- Alexander-Tyagunov/magician★ 14same name
- nikhilw/structured-agentic-workflow★ 7same name
- cirwel/unitares★ 6same name
- urmzd/saige★ 6same name
- AsiaOstrich/EngramGraph★ 4same name
13 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository184 other files it gives its agents.
- happy-platform-skillsSkill
- application-scopeSkill
- batch-operationsSkill
- configuration-validationSkill
- deployment-workflowSkill
- generic-crud-operationsSkill
- instance-managementSkill
- schema-discoverySkill
- script-executionSkill
- script-syncSkill
- smart-assessmentSkill
- task-analysisSkill
- task-summarizationSkill
- update-set-managementSkill
- user-provisioningSkill
- workflow-creationSkill
- workspace-insightsSkill
- approval-summarizationSkill
- approval-workflowsSkill
- catalog-builder-aiSkill
- catalog-item-generationSkill
- item-creationSkill
- multi-turn-orderingSkill
- request-fulfillmentSkill
- ui-policiesSkill
- variable-managementSkill
- ci-discoverySkill
- cmdb-search-analysisSkill
- data-qualitySkill
- impact-analysisSkill
- relationship-mappingSkill
- service-graph-diagnosisSkill
- activity-responseSkill
- csm-case-summarizationSkill
- chat-recommendationSkill
- email-recommendationSkill
- csm-kb-generationSkill
- resolution-notesSkill
- csm-sentiment-analysisSkill
- csm-sidebar-summarizationSkill
- csm-suggested-stepsSkill
- trending-topicsSkill
- automated-testingSkill
- business-rulesSkill
- client-scriptsSkill
- code-assistSkill
- code-reviewSkill
- data-importSkill
- debugging-techniquesSkill
- fluent-sdkSkill
- glide-api-referenceSkill
- mcp-server-installationSkill
- mcp-serverSkill
- notificationsSkill
- performance-optimizationSkill
- scheduled-jobsSkill
- scripted-rest-apisSkill
- script-includesSkill
- servicenow-docs-mcpSkill
- test-generationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
3
Distinctive
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 45
When to use: When knowledge managers need to understand the structure and interconnections of their knowledge base, when building guided …
- Very specific: line 51
Access: Read/write access to kb_knowledge, kb_category, m2m_kb_to_kb, label_entry
- Distinctive: line 231
Add discovered relationships to the knowledge graph.
- Distinctive: line 278
Create ordered reading sequences using prerequisite relationships:
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Knowledge Graph Construction and Navigation
Overview
This skill covers building and navigating knowledge graphs within ServiceNow Knowledge Management:
- Mapping article-to-article relationships (prerequisites, related, supersedes, depends-on)
- Building topic hierarchies from category structures and content analysis
- Creating cross-reference maps that surface hidden connections between articles
- Analyzing content dependencies to understand knowledge flow and gaps
- Identifying orphaned articles with no inbound or outbound connections
- Visualizing knowledge domain coverage and density
- Using graph traversal to recommend related content and learning paths
When to use: When knowledge managers need to understand the structure and interconnections of their knowledge base, when building guided learning paths, when identifying knowledge silos, or when improving article discoverability through relationship enrichment.
Prerequisites
- Roles:
knowledge_manager,knowledge_admin, oradmin - Plugins:
com.glideapp.knowledge(Knowledge Management) - Access: Read/write access to
kb_knowledge,kb_category,m2m_kb_to_kb,label_entry - Knowledge: Graph concepts (nodes, edges, traversal), knowledge management taxonomy principles
- Related Skills:
knowledge/gap-analysisfor coverage assessment,knowledge/content-recommendationfor graph-based recommendations
Procedure
Step 1: Map the Category Hierarchy (Topic Tree)
Retrieve the full category structure to establish the topic hierarchy backbone.
MCP Approach:
Tool: SN-Query-Table
Parameters:
table_name: kb_category
query: active=true^ORDERBYparent,order
fields: sys_id,label,parent_id,parent_table,full_category,active,kb_knowledge_base
limit: 500REST Approach:
GET /api/now/table/kb_category
?sysparm_query=active=true^ORDERBYparent_id,order
&sysparm_fields=sys_id,label,parent_id,full_category,active,kb_knowledge_base
&sysparm_display_value=true
&sysparm_limit=500Build the hierarchy tree:
Knowledge Base: IT Support
+-- Hardware
| +-- Laptops
| | +-- Setup & Configuration
| | +-- Troubleshooting
| +-- Printers
| +-- Mobile Devices
+-- Software
| +-- Operating Systems
| +-- Business Applications
| +-- Development Tools
+-- Network
+-- VPN & Remote Access
+-- WiFi
+-- Email & CalendarStep 2: Retrieve Existing Article Relationships
Fetch the many-to-many relationship records between articles.
MCP Approach:
Tool: SN-Query-Table
Parameters:
table_name: m2m_kb_to_kb
query: from_kb.workflow_state=published
fields: sys_id,from_kb,to_kb,relationship_type
limit: 1000REST Approach:
GET /api/now/table/m2m_kb_to_kb
?sysparm_query=from_kb.workflow_state=published
&sysparm_fields=sys_id,from_kb,to_kb,relationship_type
&sysparm_display_value=true
&sysparm_limit=1000Step 3: Discover Implicit Relationships from Content
Find hidden connections by analyzing article content for cross-references.
Approach 1 -- Inline links:
MCP Approach:
Tool: SN-Query-Table
Parameters:
table_name: kb_knowledge
query: workflow_state=published^textLIKEKB00
fields: sys_id,number,short_description,text
limit: 200Parse the text field for patterns like KB001XXXX to extract referenced article numbers.
Approach 2 -- Shared tags and labels:
Tool: SN-Query-Table
Parameters:
table_name: label_entry
query: table=kb_knowledge
fields: sys_id,id_display,label,table,id
limit: 500Group articles by shared labels to identify topic clusters:
Label: "vpn" -> KB0012001, KB0012345, KB0012290, KB0012310
Label: "remote-access" -> KB0012001, KB0012189, KB0012290, KB0012310
Label: "security" -> KB0012310, KB0013001, KB0013045Approach 3 -- Co-occurrence in incident resolution:
Tool: SN-Query-Table
Parameters:
table_name: incident
query: u_knowledge_articleISNOTEMPTY^resolved_at>javascript:gs.daysAgo(90)
fields: u_knowledge_article,category,subcategory
limit: 500Articles frequently used to resolve the same incident category are implicitly related.
Step 4: Build the Knowledge Graph Data Structure
Represent the graph as nodes (articles) and edges (relationships):
=== KNOWLEDGE GRAPH STRUCTURE ===
Nodes (Articles): 342 published articles
Edges (Relationships): 567 connections
Node Properties:
- sys_id, number, title, category, knowledge_base
- view_count, rating, age_days, word_count
- in_degree (articles pointing to this), out_degree (articles this points to)
Edge Types:
- RELATED_TO: General topical relationship (312 edges)
- PREREQUISITE: Must read A before B (45 edges)
- SUPERSEDES: Article A replaces article B (28 edges)
- DEPENDS_ON: Article A references procedures in B (89 edges)
- SAME_TOPIC: Articles in the same category (93 edges)
Graph Metrics:
- Average degree: 3.3 connections per article
- Density: 0.0097 (sparse - room for enrichment)
- Connected components: 23 (ideally should be 1-3)
- Orphaned articles: 47 (no connections at all)Step 5: Identify Orphaned and Weakly Connected Articles
Find articles with no or minimal connections.
MCP Approach:
Tool: SN-Query-Table
Parameters:
table_name: kb_knowledge
query: workflow_state=published^sys_idNOT IN<list_of_connected_article_ids>
fields: sys_id,number,short_description,kb_category,sys_view_count,rating,sys_created_on
limit: 100=== ORPHANED ARTICLES ===
Articles with zero connections: 47
High-Impact Orphans (>100 views, still unlinked):
| Article | Title | Views | Category |
|------------|---------------------------------|-------|-----------------|
| KB0014523 | Outlook Calendar Sync Issues | 890 | Email |
| KB0014601 | Docker Container Best Practices | 456 | Dev Tools |
| KB0014789 | Expense Report Submission Guide | 1,234 | Finance |
Recommended Actions:
1. KB0014523 -> Link to KB0012290 (shares email/remote topic)
2. KB0014601 -> Link to KB0013201 (development environment setup)
3. KB0014789 -> Create new "Finance" topic clusterStep 6: Create Missing Relationships
Add discovered relationships to the knowledge graph.
MCP Approach:
Tool: SN-Create-Record
Parameters:
table_name: m2m_kb_to_kb
data:
from_kb: "<article_a_sys_id>"
to_kb: "<article_b_sys_id>"
relationship_type: "related"REST Approach:
POST /api/now/table/m2m_kb_to_kb
Body: {
"from_kb": "<article_a_sys_id>",
"to_kb": "<article_b_sys_id>",
"relationship_type": "related"
}Step 7: Analyze Topic Density and Coverage
Evaluate how well different topics are covered:
=== TOPIC COVERAGE ANALYSIS ===
| Topic Area | Articles | Avg Rating | Avg Views | Gaps Identified |
|---------------------|----------|------------|-----------|-----------------|
| VPN & Remote Access | 12 | 4.1 | 1,450 | Mobile VPN setup |
| Email & Calendar | 8 | 3.8 | 980 | Shared mailbox config |
| Laptop Setup | 15 | 4.3 | 2,100 | Linux support |
| Printer Setup | 6 | 3.2 | 560 | Wireless printing |
| Software Install | 22 | 3.9 | 1,800 | License requests |
| Security Policies | 5 | 4.0 | 780 | BYOD policies |
Under-served Topics (high incident volume, low article count):
1. Password Reset - 450 incidents/month, only 2 articles
2. MFA Setup - 280 incidents/month, only 1 article
3. File Sharing - 190 incidents/month, only 3 articlesStep 8: Build Learning Paths from Graph Traversal
Create ordered reading sequences using prerequisite relationships:
=== LEARNING PATH: VPN Administration ===
Level 1 - Foundations:
1. KB0012001 - VPN Client Installation (prerequisite for all)
2. KB0012310 - Remote Security Policy (prerequisite for all)
Level 2 - User Support:
3. KB0012345 - VPN Troubleshooting (depends on KB0012001)
4. KB0012290 - Network Drive Mapping (depends on KB0012001)
Level 3 - Advanced:
5. KB0012400 - VPN Split Tunnel Configuration (depends on KB0012345)
6. KB0012450 - VPN Server Administration (depends on KB0012001, KB0012310)
Estimated Total Reading Time: 45 minutes
Assessment Available: Yes (quiz after Level 2)Step 9: Generate Graph Visualization Data
Export graph data in a format suitable for visualization tools:
MCP Approach:
Tool: SN-Query-Table
Parameters:
table_name: kb_knowledge
query: workflow_state=published
fields: sys_id,number,short_description,kb_category,sys_view_count
limit: 500Output as a node-edge list for visualization:
{
"nodes": [
{"id": "KB0012001", "label": "VPN Installation", "group": "Network", "size": 1890},
{"id": "KB0012345", "label": "VPN Troubleshooting", "group": "Network", "size": 2340}
],
"edges": [
{"from": "KB0012001", "to": "KB0012345", "type": "prerequisite"},
{"from": "KB0012345", "to": "KB0012400", "type": "related"}
]
}Step 10: Monitor and Maintain the Graph
Set up ongoing graph health monitoring:
MCP Approach:
Tool: SN-Query-Table
Parameters:
table_name: kb_knowledge
query: workflow_state=published^sys_created_on>javascript:gs.daysAgo(30)
fields: sys_id,number,short_description,kb_category
limit: 50For each new article, check if it has been connected to the graph. Flag unconnected new articles for relationship assignment.
Tool Usage
| Tool | Purpose | When to Use |
| SN-Query-Table | Fetch articles, categories, relationships, usage data | Primary data retrieval for graph construction |
| SN-Get-Record | Retrieve single article details for content analysis | Deep-dive into specific nodes |
| SN-Create-Record | Create new relationship records | Adding edges to the graph |
| SN-Update-Record | Update article tags, topics, metadata | Enriching node properties |
| SN-Natural-Language-Search | Find semantically related articles | Discovering implicit relationships |
Best Practices
- Start with category hierarchy -- the topic tree is the backbone of the knowledge graph
- Prioritize high-traffic orphans -- connect popular articles first for maximum impact
- Use bidirectional relationships -- if A relates to B, B should relate to A
- Define relationship types clearly -- distinguish between "related", "prerequisite", and "supersedes"
- Review graph health monthly -- new articles without connections degrade discoverability
- Use view co-occurrence data -- articles viewed in the same session are likely related
- Limit relationship depth -- more than 3 levels of prerequisites creates friction
- Tag consistently -- standardize label vocabulary across the knowledge base
- Retire stale edges -- remove relationships to retired or outdated articles
- Validate learning paths -- test prerequisite chains with actual users before publishing
Troubleshooting
| Issue | Cause | Resolution |
| No m2m records found | Relationships not used in this instance | Check if m2m_kb_to_kb table exists; may need custom relationship table |
| Category hierarchy flat | Categories not structured with parent references | Build hierarchy using parent_id field on kb_category |
| Too many orphaned articles | Relationship management not part of publishing workflow | Add relationship check to article review process |
| Graph too dense | Every article linked to every other | Limit to meaningful relationships; use topic clustering instead |
| Learning path loops | Circular prerequisite chains | Validate graph is a DAG (directed acyclic graph) for prerequisites |
| Performance issues with large queries | Too many articles queried at once | Paginate queries using sysparm_offset and process in batches |
Examples
Example 1: Knowledge Base Health Report
Input: "Analyze the IT Support knowledge base graph and identify disconnected clusters"
Steps: Retrieve all published articles and relationships, build adjacency list, run connected component analysis, identify isolated clusters, generate report with recommendations to bridge clusters.
Example 2: Build a New Hire Learning Path
Input: "Create a learning path for new IT support agents covering incident management"
Steps: Identify all articles in the Incident Management category, analyze prerequisite relationships, order by dependency depth, generate a sequential learning path with estimated reading times.
Example 3: Cross-Reference Enrichment
Input: "Find and create missing relationships for all VPN-related articles"
Steps: Query all articles with "VPN" in title or body, analyze inline references and shared tags, identify articles that reference each other but lack formal relationships, create m2m_kb_to_kb records for discovered connections.
Related Skills
knowledge/gap-analysis- Identify missing knowledge coverage areasknowledge/content-recommendation- Recommend articles based on graph proximityknowledge/duplicate-detection- Find redundant articles in the graphknowledge/kb-summarization- Summarize articles for graph node descriptionsknowledge/article-generation- Create articles to fill identified graph gapsknowledge/gap-grouping- Group knowledge gaps by topic clusters
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.

