Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add serac-labs/serac --skill domain-separationgit clone --depth 1 https://github.com/serac-labs/seracWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/serac-labs/serac/domain-separation)<a href="https://agentmods.dev/skills/serac-labs/serac/domain-separation"><img src="https://agentmods.dev/badge/skills/serac-labs/serac/domain-separation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/serac-labs/serac/domain-separation"><img src="https://agentmods.dev/badge/skills/serac-labs/serac/domain-separation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00038 | $0.02353 |
| Opus 5.5 | $0.00015 | $0.00941 |
| Sonnet 5.5 | $0.00008 | $0.00471 |
| Haiku 4.5 | $0.00004 | $0.00235 |
Grade A, and why
domain-separation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 401 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Domain Separation for ServiceNow
Domain Separation enables multi-tenancy by partitioning data and processes between domains.
Domain Architecture
TOP (Global)
├── Domain A (Customer 1)
│ ├── Sub-domain A1
│ └── Sub-domain A2
└── Domain B (Customer 2)
└── Sub-domain B1
Key Tables
| Table | Purpose |
|---|---|
domain |
Domain definitions |
sys_user_has_domain |
User domain membership |
domain_path |
Domain hierarchy paths |
sys_db_object |
Table domain settings |
Domain Configuration (ES5)
Create Domain
// Create domain (ES5 ONLY!)
var domain = new GlideRecord("domain")
domain.initialize()
domain.setValue("name", "Acme Corp")
domain.setValue("description", "Domain for Acme Corporation")
// Parent domain (empty for top-level)
domain.setValue("parent", parentDomainSysId)
// Domain visibility
domain.setValue("active", true)
domain.insert()
Domain-Aware Queries
// Query respecting domain separation (ES5 ONLY!)
function getDomainAwareRecords(tableName, query) {
var gr = new GlideRecord(tableName)
// Domain separation is automatic when enabled
// Records are filtered to user's visible domains
if (query) {
gr.addEncodedQuery(query)
}
gr.query()
var records = []
while (gr.next()) {
records.push({
sys_id: gr.getUniqueValue(),
sys_domain: gr.getValue("sys_domain"),
sys_domain_path: gr.getValue("sys_domain_path"),
})
}
return records
}
Cross-Domain Access
// Access records across domains (requires elevated privileges) (ES5 ONLY!)
function getCrossdomainRecords(tableName) {
var gr = new GlideRecord(tableName)
// Disable domain separation for this query
gr.setQueryReferences(false)
// Query all domains
gr.queryNoDomain()
var records = []
while (gr.next()) {
records.push({
sys_id: gr.getUniqueValue(),
domain: gr.sys_domain.getDisplayValue(),
})
}
return records
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 401 lines · 38 tokens per session scan A 9475dea6ce95
domain-separation is a skill published in the GitHub repository serac-labs/serac (77 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session and 2,353 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
domain-separation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| domain-separationserac-labs/serac | Skill | 77 | today | Apache-2.0 | A | 38 | Claude Code |
| sn-safe-writeIvanBBaev/servicenow-mcp-ai | Skill | 13 | 4d ago | GPL-3.0 | A | 43 | Claude Code |
| sn-discoverIvanBBaev/servicenow-mcp-ai | Skill | 13 | 4d ago | GPL-3.0 | A | 53 | Claude Code |
| sn-triageIvanBBaev/servicenow-mcp-ai | Skill | 13 | 4d ago | GPL-3.0 | A | 50 | Claude Code |
| sn-driftIvanBBaev/servicenow-mcp-ai | Skill | 13 | 4d ago | GPL-3.0 | A | 46 | Claude Code |
| sn-impactIvanBBaev/servicenow-mcp-ai | Skill | 13 | 4d ago | GPL-3.0 | A | 47 | Claude Code |
| sn-uibIvanBBaev/servicenow-mcp-ai | Skill | 13 | 4d ago | GPL-3.0 | A | 57 | Claude Code |