Enonic XP server-side JavaScript/TypeScript API reference for all /lib/xp/* libraries. Provides function signatures, parameters, return types, and usage examples for lib-content, lib-node, lib-auth, lib-portal, lib-context, lib-event, lib-task, lib-repo, lib-io, lib-mail, lib-schema, lib-project, lib-export, lib-scheduler, lib-value, lib-i18n, lib-websocket, lib-admin, lib-app, lib-auditlog, lib-cluster, lib-common, lib-grid, and lib-vhost. Use when looking up Enonic XP library functions, parameter shapes, return types, or usage examples. Do not use for Guillotine GraphQL queries, content type schema definitions, Enonic CLI commands, or non-Enonic JavaScript APIs.
80
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Step 1: Identify the Target Library
Determine which /lib/xp/* library the query relates to.
Map the library to the appropriate reference file:
| Library | Reference File |
|---|---|
| lib-content | references/lib-content-reference.md |
| lib-node | references/lib-node-reference.md |
| lib-auth | references/lib-auth-reference.md |
| lib-portal | references/lib-portal-reference.md |
| lib-context, lib-event, lib-task | references/lib-context-reference.md |
| lib-io, lib-mail, lib-repo, lib-schema | references/lib-utilities-reference.md |
| lib-project, lib-export, lib-scheduler, lib-value | references/lib-cms-reference.md |
| lib-i18n, lib-websocket | references/lib-web-reference.md |
| lib-admin, lib-app, lib-auditlog, lib-cluster, lib-common, lib-grid, lib-vhost | references/lib-platform-reference.md |
If the query spans multiple libraries or asks for a usage pattern, read references/examples.md.
Step 2: Look Up the Function
Step 3: Provide the Answer
Step 4: Handle Cross-Library Patterns
references/examples.md for established patterns.Step 5: Troubleshoot Common Issues
references/troubleshooting.md.Step 6: Generate Import Blocks
assets/enonic-imports.template.ts.references/troubleshooting.md.029e044
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.