diff --git a/README.md b/README.md index 21673ccef0..e2648ef520 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,35 @@ This repository has been approved by Hacktoberfest in spirit of learning source That's it! **For detailed contribution instructions, please read our [CONTRIBUTING.md](CONTRIBUTING.md) guide before submitting.** + +📝 Code Snippet Submission Template + +To help maintain consistency, please use the following structure when adding a new snippet: + +Snippet Name: +Category: +Description: +Usage: +Code File(s): + - snippet_file.js # main snippet + - variant.js # optional variants +Tags: +Author: + + +Example: + +Snippet Name: GlideRecord Query Optimization +Category: Core APIs +Description: Shows how to optimize GlideRecord queries for better performance. +Usage: Copy the snippet into a Background Script or Script Include and adjust table/fields as needed. +Code File(s): + - basic_query.js + - optimized_query.js +Tags: GlideRecord, Performance, Optimization +Author: @yourusername + + ### What makes a good contribution? - **Useful snippets** that solve common ServiceNow development challenges