30-seconds-of-code
Copilot instructions129k starsChanged 16 months agoCC-BY-4.0View on GitHub
When generating text in Markdown format, follow these additional guidelines:
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about Chalarangelo/30-seconds-of-code
- Juan Beck“3 repos de GitHub super útiles para devs - Parte 2 🔥”YouTube · Nov 25, 2025 · 949 views
- A Hacker News story“30 seconds of code: Curated list of useful JavaScript snippets”Hacker News · Dec 11, 2017 · 75 points
- Back To Code“Trained From Empty in 10 Minutes: English and JavaScript (109.6M Interactions)”YouTube · Nov 5, 2026 · 17 views
- CodeTimelapse“How 3,300 JavaScript Snippets Grow in Under a Minute! 🚀”YouTube · Apr 12, 2026 · 5 views
- The Mr. Ozz“BOOST dev skills with 128K⭐ coding articles FREE!”YouTube · Sep 13, 2026 · 4 views
The biggest 5 of 71 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 71
Talked about on GitHub, Hacker News, Bluesky, the web and YouTube (71 times).
On GitHub · 48
- Dec 29, 2023py2php转换错误例子 — swoole/phpy2 reactions · 1 comment
- Jan 2, 2018[Feature] Keep text editor snippet files in sync with Chalarangelo/30-seconds-of-code — Rob-Rychs/30-seconds-of-code-texteditorsnippets1 reaction
- Dec 18, 2017Use Case Suggestion: Tons of already made solution for JS — jadjoubran/codetogo.io1 reaction · 1 comment
- Nov 3, 2026ANUBHAV KUMAR RAI — R52-T050: Protect the example against regression: check array values are truthy [content/snippets/js/s/check-array-values-are-truthy.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026ANUBHAV KUMAR RAI — R52-T049: Explain resource behavior: reorder function arguments [content/snippets/js/s/reorder-function-arguments.md] — S-AI-Projects/30-seconds-of-code0 reactions
43 more on GitHub
- Nov 3, 2026ANUBHAV KUMAR RAI — R52-T048: Document a failure or limitation: transpose matrix [content/snippets/js/s/transpose-matrix.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026ANUBHAV KUMAR RAI — R52-T047: Derive the result step by step: construct url [content/snippets/js/s/construct-url.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026ANUBHAV KUMAR RAI — R52-T046: Clarify the implementation: value as number [content/snippets/js/s/value-as-number.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026ANUBHAV KUMAR RAI — R52-T045: Remove hidden state from the example: relative time formatting [content/snippets/js/s/relative-time-formatting.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026ANUBHAV KUMAR RAI — R52-T044: Explain an invariant: singleton proxy [content/snippets/js/s/singleton-proxy.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026ANUBHAV KUMAR RAI — R52-T043: Compare two methods: enum [content/snippets/js/s/enum.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026ANUBHAV KUMAR RAI — R52-T042: Explain the boundary: prefix css property [content/snippets/js/s/prefix-css-property.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026ANUBHAV KUMAR RAI — R52-T041: Make the example executable: store dom items [content/snippets/js/s/store-dom-items.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026ANIKETBHAI PANARA — R52-T040: Protect the example against regression: unwind object [content/snippets/js/s/unwind-object.md] — S-AI-Projects/30-seconds-of-code0 reactions · 1 comment
- Nov 3, 2026ANIKETBHAI PANARA — R52-T039: Explain resource behavior: record animation frames [content/snippets/js/s/record-animation-frames.md] — S-AI-Projects/30-seconds-of-code0 reactions · 1 comment
- Nov 3, 2026ANIKETBHAI PANARA — R52-T038: Document a failure or limitation: array filtering tips [content/snippets/js/s/array-filtering-tips.md] — S-AI-Projects/30-seconds-of-code0 reactions · 1 comment
- Nov 3, 2026ANIKETBHAI PANARA — R52-T037: Derive the result step by step: euclidean distance [content/snippets/js/s/euclidean-distance.md] — S-AI-Projects/30-seconds-of-code0 reactions · 1 comment
- Nov 3, 2026ANIKETBHAI PANARA — R52-T036: Clarify the implementation: ternary operator [content/snippets/js/s/ternary-operator.md] — S-AI-Projects/30-seconds-of-code0 reactions · 1 comment
- Nov 3, 2026ANIKETBHAI PANARA — R52-T035: Remove hidden state from the example: smallfuck interpreter [content/snippets/js/s/smallfuck-interpreter.md] — S-AI-Projects/30-seconds-of-code0 reactions · 1 comment
- Nov 3, 2026ANIKETBHAI PANARA — R52-T034: Explain an invariant: nth number root [content/snippets/js/s/nth-number-root.md] — S-AI-Projects/30-seconds-of-code0 reactions · 1 comment
- Nov 3, 2026ANIKETBHAI PANARA — R52-T033: Compare two methods: caesar cipher [content/snippets/js/s/caesar-cipher.md] — S-AI-Projects/30-seconds-of-code0 reactions · 1 comment
- Nov 3, 2026ANIKETBHAI PANARA — R52-T032: Explain the boundary: prevent string being escaped [content/snippets/js/s/prevent-string-being-escaped.md] — S-AI-Projects/30-seconds-of-code0 reactions · 1 comment
- Nov 3, 2026ANIKETBHAI PANARA — R52-T031: Make the example executable: data structures tree [content/snippets/js/s/data-structures-tree.md] — S-AI-Projects/30-seconds-of-code0 reactions · 1 comment
- Nov 3, 2026AADITYA UDAYSINHA DESHMUKH PATIL — R52-T030: Protect the example against regression: create directory if not exists [content/snippets/js/s/create-directory-if-not-exists.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026AADITYA UDAYSINHA DESHMUKH PATIL — R52-T029: Explain resource behavior: arrow functions [content/snippets/js/s/arrow-functions.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026AADITYA UDAYSINHA DESHMUKH PATIL — R52-T028: Document a failure or limitation: cannot extend proxy object [content/snippets/js/s/cannot-extend-proxy-object.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026AADITYA UDAYSINHA DESHMUKH PATIL — R52-T027: Derive the result step by step: common regexp cheatsheet [content/snippets/js/s/common-regexp-cheatsheet.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026AADITYA UDAYSINHA DESHMUKH PATIL — R52-T026: Clarify the implementation: add key value pair to object [content/snippets/js/s/add-key-value-pair-to-object.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026AADITYA UDAYSINHA DESHMUKH PATIL — R52-T025: Remove hidden state from the example: callbacks [content/snippets/js/s/callbacks.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026AADITYA UDAYSINHA DESHMUKH PATIL — R52-T024: Explain an invariant: tf idf inverted index [content/snippets/js/s/tf-idf-inverted-index.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026AADITYA UDAYSINHA DESHMUKH PATIL — R52-T023: Compare two methods: encodeuri encodeuricomponent [content/snippets/js/s/encodeuri-encodeuricomponent.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026AADITYA UDAYSINHA DESHMUKH PATIL — R52-T022: Explain the boundary: eslint prettier configuration [content/snippets/js/s/eslint-prettier-configuration.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026AADITYA UDAYSINHA DESHMUKH PATIL — R52-T021: Make the example executable: get selected text [content/snippets/js/s/get-selected-text.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Unnati Gupta — R52-T020: Protect the example against regression: browser os detection [content/snippets/js/s/browser-os-detection.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Unnati Gupta — R52-T019: Explain resource behavior: indexed object collections [content/snippets/js/s/indexed-object-collections.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Unnati Gupta — R52-T018: Document a failure or limitation: weekday name [content/snippets/js/s/weekday-name.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Unnati Gupta — R52-T017: Derive the result step by step: string contains substring [content/snippets/js/s/string-contains-substring.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Unnati Gupta — R52-T016: Clarify the implementation: remove matching array elements [content/snippets/js/s/remove-matching-array-elements.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Unnati Gupta — R52-T015: Remove hidden state from the example: immutable object proxy [content/snippets/js/s/immutable-object-proxy.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Unnati Gupta — R52-T014: Explain an invariant: initialize array with range [content/snippets/js/s/initialize-array-with-range.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Unnati Gupta — R52-T013: Compare two methods: formatting day hour ranges [content/snippets/js/s/formatting-day-hour-ranges.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Unnati Gupta — R52-T012: Explain the boundary: partially apply function [content/snippets/js/s/partially-apply-function.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Unnati Gupta — R52-T011: Make the example executable: make iterable [content/snippets/js/s/make-iterable.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Surya Pratap — R52-T010: Protect the example against regression: collection is empty [content/snippets/js/s/collection-is-empty.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Nov 3, 2026Surya Pratap — R52-T009: Explain resource behavior: object comparison [content/snippets/js/s/object-comparison.md] — S-AI-Projects/30-seconds-of-code0 reactions
- Oct 22, 2026参考リポジトリ候補メモ — bakotan502/my-first-app0 reactions
- May 10, 2026参考リポジトリ候補メモ — aogaku/my-study-log0 reactions
- Dec 12, 2023bablrcroot-repro — ssylvia/next-babelrcroots-repro0 reactions
On Hacker News · 7
- Dec 11, 201730 seconds of code: Curated list of useful JavaScript snippets75 points · 27 comments
- Dec 25, 202330-seconds-of-code: Short code snippets for all your development needs4 points
- Jun 23, 202530-seconds-of-code – short, reusable JavaScript code snippets3 points · 2 comments
- Dec 16, 2017Collection of useful JS snippets that you can understand in 30 seconds or less3 points
- Dec 12, 201730-seconds-of-code: Collection of useful JavaScript snippets to understand in 30 seconds3 points
2 more on Hacker News
- Jan 22, 201830 Seconds of Code2 points · 2 comments
- Jan 10, 2018Useful JavaScript snippets that you can understand in 30 seconds or less2 points
On Bluesky · 7
- Feb 24, 2024Bonjour et bon samedi ! Si vous avez 30 secondes, voici 30 seconds of code, une collection de snippets de codes dans de nombreux langages… — @ponceto91.bsky.social4 likes and reposts
- May 12, 20253️⃣ 30-seconds-of-code ( Coding articles to level up your development skills. github.com/Chalarangel... — @devshorts.in1 likes and repost · 1 reply
- May 28, 2024📦 Chalarangelo / 30-seconds-of-code ⭐ 119,710 (+32) 🗒 JavaScript Short code snippets for all your development needs — @github-trending-js.bsky.social1 likes and repost
- Aug 7, 20253. 30-seconds-of-code A treasure trove of super-short, clear code snippets in JavaScript (and more) perfect for learning new tricks or… — @devshorts.in0 likes and reposts · 1 reply
- Jul 14, 20251. 30 Seconds of Code - Short JavaScript code snippets for fast learning. - Perfect for quick refreshers or interview prep.… — @devshorts.in0 likes and reposts · 1 reply
2 more on Bluesky
- Jun 30, 20254️⃣ 30 Seconds of Code Short, useful code snippets in JavaScript, Python & more. Quick reference goldmine. github.com/Chalarangel... — @devshorts.in0 likes and reposts · 1 reply
- Jun 23, 20252️⃣ 30-seconds-of-code Short, useful JavaScript snippets, readable in under 30s. Learn .map(), .reduce(), debounce, memoization & more.… — @devshorts.in0 likes and reposts · 1 reply
On the web · 5
- May 22, 202630-seconds-of-code 詳細教學 — Curated Snippet Site:內容資產、Astro Pipeline、寫作 SOP 三層解析 - TPOW Lab — tpow-001.netlify.app
- Aug 7, 2024精心收集的48个JavaScript代码片段,仅需30秒就可理解!-CSDN博客 — blog.csdn.net
- Aug 6, 2021精心收集的48个JavaScript代码片段,仅需30秒就可理解_js const randomin = (min max)-CSDN博客 — blog.csdn.net
- Oct 10, 2018JavaScriptの1行小ネタ集 #es6 — qiita.com
- Dec 27, 2017Weekly Trending Repositories on GitHub [Dec 21~27] | by Junpei Shimotsu — medium.com
On YouTube · 4
- Nov 25, 20253 repos de GitHub super útiles para devs - Parte 2 🔥 — Juan Beck949 views
- Nov 5, 2026Trained From Empty in 10 Minutes: English and JavaScript (109.6M Interactions) — Back To Code17 views
- Apr 12, 2026How 3,300 JavaScript Snippets Grow in Under a Minute! 🚀 — CodeTimelapse5 views
- Sep 13, 2026BOOST dev skills with 128K⭐ coding articles FREE! — The Mr. Ozz4 views
Where files are headingNew Copilot instructions files have more rules about branches and pull requests, and fewer about code style.
Of the Copilot instructions files we read, the 2,336 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
17 rules. About 0 are common, 9 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
Licensed with conditions — read it at the source. We count its rules but don't quote them. Read them on GitHub.
≈ “Common” is an estimate: at least 1 in 5 of the 3,779 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

