snu-coding-standards

Validate ServiceNow scoped application scripts for API and security compliance.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/A865732/PDI-SNSyncScript --skill snu-coding-standards-a865732
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: snu-coding-standards
Source: https://github.com/A865732/PDI-SNSyncScript/tree/main/agentrules/skills/snu-coding-standards
Command: npx skills add https://github.com/A865732/PDI-SNSyncScript --skill snu-coding-standards-a865732

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the common pitfalls in ServiceNow development, such as scoped application API violations, improper client-side scripting, and security vulnerabilities related to file handling and path traversal.

Core Features & Use Cases

  • Scoped API Guidance: Provides clear rules on allowed vs. restricted APIs in scoped applications to prevent runtime errors.
  • Scripting Best Practices: Enforces the use of Angular dependency injection for widgets and proper GlideRecord methods for data operations.
  • Security Guardrails: Defines strict validation rules for request IDs and file paths to prevent workspace traversal and unauthorized access.

Quick Start

Use the snu-coding-standards skill to validate my current ServiceNow script for scoped application compliance and security best practices.

Frequently Asked Questions about snu-coding-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce ServiceNow scoped application API restrictions in my scripts?

ServiceNow scoped application API restrictions are enforced by validating script content against allowed versus restricted APIs, preventing runtime errors and ensuring platform-specific compliance.

What is the best way to handle GlideRecord operations in a ServiceNow scoped app?

The best way to handle GlideRecord operations in a ServiceNow scoped app is to follow coding standards that enforce proper GlideRecord methods, ensuring secure and compliant data operations within platform constraints.

How do I validate Angular dependency injection patterns for ServiceNow widgets?

Validating Angular dependency injection patterns for ServiceNow widgets requires enforcing client-side scripting best practices, ensuring that widget scripts adhere to platform-specific constraints and security boundaries.

How do I prevent path traversal and secure file handling in ServiceNow development?

Preventing path traversal and securing file handling in ServiceNow development requires defining strict validation rules for request IDs and file paths to stop workspace traversal and unauthorized access.

Why does my ServiceNow scoped app script fail API compliance checks?

Your ServiceNow scoped app script fails API compliance checks when it violates scoped application boundaries by using restricted APIs or improper client-side scripting patterns instead of approved coding standards.

Can I use restricted APIs in ServiceNow scoped application development without causing runtime errors?

No, you cannot use restricted APIs in ServiceNow scoped application development without causing runtime errors; scripts must adhere to coding standards that enforce allowed platform-specific constraints and security boundaries.