| name | servicenow-sdk-docs-builder |
| skill_type | skill |
| description | Automation skill to generate or update the `servicenow-sdk-docs` documentation skill by fetching and processing the ServiceNow SDK and Examples repositories. It combines READMEs, extracts code samples, harvests the SDK CLI/auth docs, and creates a self-contained, portable documentation skill. |
| license | MIT |
| tags | ["servicenow","sdk","documentation","builder","automation","documentation-generation"] |
| metadata | {"author":"Antigravity","version":"0.2.0"} |
ServiceNow SDK Docs Builder
This skill provides an automated pipeline for generating the servicenow-sdk documentation skill. It ensures that the documentation is always up-to-date with the latest examples and core SDK information.
Workflow
To update the documentation skill, run the provided build script:
python build_docs.py --target /path/to/universal-skills/servicenow-sdk
Automation Steps:
- Sync Repositories: (Optional) Pulls the latest changes from
https://github.com/ServiceNow/sdk and https://github.com/ServiceNow/sdk-examples.
- Combine READMEs: Merges the main READMEs from both repositories, de-duplicating headers and categorizing content.
- Process Samples: Iterates through all examples in
sdk-examples, mirroring source files into the target skill's assets/ directory.
- Generate References: Creates detailed markdown reference files for each example with relative links to bundled source code.
- Harvest CLI Docs: Scans the
sdk repo's README.md and docs/** for CLI / auth / command-oriented markdown and mirrors each into references/cli-*.md, keeping the now-sdk CLI surface refreshed for the servicenow-sdk-lifecycle skill to reference.
- Index Documentation: Generates the main
SKILL.md for the servicenow-sdk-docs skill (samples + a "SDK CLI & Tooling Reference" section), emitting name: servicenow-sdk-docs at version 0.3.0.
Configuration
The builder uses the repositories mirrored at:
Workspace/sdk
Workspace/sdk-examples
Ensure these are present or use the --sync flag to fetch them.
Troubleshooting
If the build fails, check the console output for specific errors related to directory structures or missing README files.