Commit Graph

1627 Commits

Author SHA1 Message Date
vinod kumar
daa7f3d4ef Add migration guide and skill entry for javax to jakarta transition (#1537)
* Add migration guide from javax to jakarta namespace

This document provides a comprehensive guide for migrating Java code from the javax namespace to the jakarta namespace, including steps for scanning, updating dependencies, and verifying the migration.

* Add javax to jakarta migration skill entry
2026-04-28 16:52:44 +10:00
Xiaoyun Ding
02e0f54463 Add Github Copilot modernization for java plugin (#1523)
* sync: java-upgrade plugin update from devdiv-azure-service-dmitryr/azure-java-migration-copilot-vscode-extension@187b2f8

Source commit: 187b2f85130550fbb5213b55347ab4afbb8c17e1

Source branch: xiading/sync-java-2

Triggered by: xiading_microsoft

Workflow: https://github.com/devdiv-azure-service-dmitryr/azure-java-migration-copilot-vscode-extension/actions/runs/24984055440

* Fix modernize-java plugin checklist issues

- Fix keyword casing: 'Java' → 'java' in plugin.json
- Add plugins/modernize-java/README.md based on upstream microsoft/modernize-java
- Remove hook declarations referencing missing scripts (recordToolUse.sh/.ps1)
- Run npm run build to update docs/README.plugins.md, docs/README.agents.md, and marketplace.json

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix README install command to use awesome-copilot marketplace

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: app_modernization <app_modernization@example.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-28 16:42:15 +10:00
Mario Codes
0d5ea7bc3c Add Instructions Razor Pages (#1503) 2026-04-28 16:09:16 +10:00
Philippe D
1993d16ca4 feat: add Caveman Mode agent and instructions for low-token responses (#1498) 2026-04-28 14:30:56 +10:00
Shubham Jiyani
8ca38ffb9e feat: add data-breach-blast-radius skill for pre-breach impact analysis (#1487)
* feat: add data-breach-blast-radius skill for pre-breach impact analysis

* fix: resolve codespell false positives (ZAR currency code, SME abbreviation)

* fix: remove ZAR abbreviation to pass codespell check
2026-04-28 14:26:20 +10:00
Antonio Villanueva
8d182ae78d Update modernize-dotnet plugin to 1.0.1047-preview1 (#1476)
Co-authored-by: Antonio Villanueva <anvillan@microsoft.com>
2026-04-28 14:00:35 +10:00
Alishahzad1903
d23c722dfa updated description (#1471) 2026-04-28 13:58:17 +10:00
wuwen
5037cca922 Fix links in SKILL.md for project template instructions (#1470) 2026-04-28 13:57:46 +10:00
Falco
fff751c9d9 fix: correct TOC links and vscode tasks for adding agents and prompts in CONTRIBUTING.md (#1468)
* fix: correct link for adding agents in CONTRIBUTING.md
removing outdated prompts-link

* feat: add Terminal Helper agent for PowerShell and Bash command assistance

* fix: rename task to validate-plugins and update command details
as collections are outdated
https://github.com/github/awesome-copilot/pull/717

* update name format for terminal helper to lowercase

* update scope description for terminal context clarity
2026-04-28 13:57:02 +10:00
AJ
8af6e729ab feat: add impediment-prioritization skill (#1463)
* feat: add impediment prioritization skill and scoring rubric. This has been derived from Value Stream Mapping processing.

* chore: regenerate README for impediment-prioritization skill

* Update skills/impediment-prioritization/SKILL.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update skills/impediment-prioritization/SKILL.md

removed redundant code

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update skills/impediment-prioritization/SKILL.md

agreed for accuracy

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor: update skill documentation for impediment prioritization and enhance downstream integration details

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-28 13:49:58 +10:00
dstrupl
2f4f41b8bd Add vardoger-analyze skill (#1461)
* Add vardoger-analyze skill

Made-with: Cursor

* fix Copilot session-state path in vardoger-analyze SKILL.md

* add numbered workflow overview to satisfy skill-validator

The dotnet/skills validator's NumberedStepRegex (^\d+\.\s, multiline)
only matches ordered list items at line start, not ### numbered
headings, so the previous '### 1. …' layout triggered the
'No numbered workflow steps' warning on PR #1461. Keep the existing
step headings for structure and add a short numbered Workflow
summary that the regex picks up.

* regenerate docs/README.skills.md for vardoger-analyze
2026-04-28 13:46:03 +10:00
Dennis Lembree
e2c9480231 Revise accessibility instructions for clarity and detail (#1456) 2026-04-28 13:37:57 +10:00
John Haugabook
2a8de795ca new skill adobe-illustrator-scripting (#1448)
* new skill adobe-illustrator-scripting

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-28 13:37:06 +10:00
Dev Shah
1aea01a677 Add resemble-detect skill (#1396)
* Add resemble-detect skill

Deepfake detection and media safety skill using Resemble AI — detects
AI-generated audio, images, video, and text with confidence scores,
traces audio source platforms, applies and reads watermarks, verifies
speaker identity, and extracts media intelligence (speaker, emotion,
misinformation signals).

Packaged as SKILL.md + LICENSE (Apache-2.0). Generated docs updated
via npm start per CONTRIBUTING.md.

* resemble-detect: trim body under 500 lines + add compatibility

Moves detailed request/response schemas from SKILL.md into
references/api-reference.md, bringing the SKILL body from 557 to
282 lines (validator hard cap is 500). Core decision-making content
— capability decision tree, score interpretation, workflows, red
flags — stays in the body where the agent needs it at query time.

Also adds a compatibility field to frontmatter per review feedback:
surfaces the RESEMBLE_API_KEY requirement and the public-HTTPS-URL
constraint upfront.

* Fix resemble-detect skill metadata
2026-04-28 12:09:46 +10:00
Tilak Patel
5f69546969 Add error recovery hooks and PyInstaller frozen build recipes (#1388)
* Add error recovery hooks and PyInstaller frozen build recipes

* fixed datas to data
2026-04-28 12:08:25 +10:00
Aaron Powell
0c31682e47 Updating packages (#1530) 2026-04-28 11:56:54 +10:00
Vijay Bandi
ba16533333 feat: add SAST/SCA Security Analyzer agent and audit-integrity skill (#1458)
Co-authored-by: Vijay Bandi <vijay.bandi@hp.com>
2026-04-28 11:46:05 +10:00
Zixuan Jiang
ca56e9577d feat: add minecraft-plugin-development skillFeat/minecraft plugin development (#1454)
* feat: add minecraft-plugin-development skill

* docs: expand minecraft plugin skill patterns

* docs: add minecraft skill examples

* docs: generalize minecraft skill patterns

* docs: expand minecraft progression guidance

* docs: add minecraft plugin validation workflow

---------

Co-authored-by: jiang <helloworld@jiang.cn>
2026-04-28 11:41:41 +10:00
John Haugabook
7b9e8229fb new skill batch-files (#1435)
* new skill batch-files

* batch-files: codespell, re-run start, suggestions, txt assets

codespellrc: add FO for tasklist option

validate-readme: re-run npm start

apply suggestions from code review

batch-files: change asset templates to text files

* codespellrc: resolve spelling in comment
2026-04-28 11:29:28 +10:00
Yiou Li
2860790bc9 update eval-driven-dev skill (#1434)
* update eval-driven-dev skill

* fix: update skill update command to use correct repository path

* address comments.

* update eval driven dev
2026-04-28 11:27:48 +10:00
Bruno Borges
9933f65e6b Merge pull request #1401 from rbgmulmb/add-weeklycommentsync-workflow
Add weekly comment sync agentic workflow
2026-04-27 11:23:21 -04:00
Yauhen
5dd3813351 Merge branch 'staged' into add-weeklycommentsync-workflow 2026-04-27 11:50:00 +02:00
Tim Hanewich
0e422e6dff Add power-platform-architect plugin (#1432)
* Moved power-platform-architect skill to plugin

* Restore power-platform-architect skill

* Scaffolded power-platform-architect

* Added skill

* Tweaked plugin.json

* Imported readme

* Added to readme

* Deleted README.md

* Renamed to README.md

* Added demo header

* Replaced banner

* AI

* Provided description

* Built

* Fixed md table

* Removed duplication power-platform key

* Re-built to clear out dual key:

* Fixed what it does md table

* Removed section

* Removed empty lines
2026-04-20 15:09:18 +10:00
github-actions[bot]
d7cf720ede docs: update Learning Hub with recent Copilot CLI features (v1.0.23-v1.0.30) (#1421)
- copilot-configuration-basics.md: Add /ask, /env, /statusline commands
  and --mode/--autopilot/--plan startup flags
- automating-with-hooks.md: Document preToolUse modifiedArgs/updatedInput
  and additionalContext fields for modifying tool arguments
- understanding-mcp-servers.md: Add /mcp install registry section and
  note that type field is optional for remote MCP servers
- installing-and-using-plugins.md: Add copilot plugin marketplace update
  command and deprecation notice for repo/URL/path installs
- using-copilot-coding-agent.md: Add Remote Control section
  (replaces steering feature)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-20 12:32:57 +10:00
Ayush Saklani
b360c76848 Add exam-ready skill (#1419)
* Add files via upload

What it does:
Converts student-provided PDFs/notes + a syllabus into concise, exam-ready outputs per topic — definitions, key points, keywords, diagrams, and ready-to-write exam sentences.
Features:

MCQ vs written exam mode
Triage mode with priority ordering for time-constrained students
Missing input handling
Cross-references between related topics
Practice question per topic

* Move exam-ready skill into skills folder and update index
2026-04-20 12:31:29 +10:00
Copilot
dddab5e459 feat: add copy install command from skills list and modal (#1424)
* docs: reference gh skill install command for managing agent skills

Agent-Logs-Url: https://github.com/github/awesome-copilot/sessions/e8324f6a-26ee-4d2c-b86f-028cf78499d5

Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>

* feat: add copy install command button to skills list and modal

Agent-Logs-Url: https://github.com/github/awesome-copilot/sessions/efbb7ae2-6ff7-40d2-a8fe-45253caea717

Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>

* revert: undo changes to 05-skills.md as requested

Agent-Logs-Url: https://github.com/github/awesome-copilot/sessions/ba67c365-f36a-47de-af44-629305b9eb94

Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
2026-04-17 18:52:15 +10:00
Copilot
8ffb353f4a Remove README.md files from azure-architecture-autopilot and phoenix-tracing skills (#1423)
Agent-Logs-Url: https://github.com/github/awesome-copilot/sessions/e2503454-cce5-46fe-8101-404a13491731

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
2026-04-17 11:07:05 +10:00
Alishahzad1903
ddfc3e205a feat: update readme and skills (#1418)
* feat: update readme and skills

* Update plugins/context-matic/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-17 10:57:35 +10:00
Onur Senturk
5aa80658b0 Add foundry-agent-sync skill (#1417) 2026-04-17 10:56:28 +10:00
Anush
9637e1ab08 feat: Qdrant skills (#1412) 2026-04-17 10:54:27 +10:00
Muhammad Ubaid Raza
971139baf2 feat: Move to xml top tags, plan review, hints and more (#1411)
* feat: move to xml top tags for ebtter llm parsing and structure

- Orchestrator is now purely an orchestrator
- Added new calrify  phase for immediate user erequest understanding and task parsing before workflow
- Enforce review/ critic to plan instea dof 3x plan generation retries for better error handling and self-correction
- Add hins to all agents
- Optimize defitons for simplicity/ conciseness while maintaining clarity

* feat(critic): add holistic review and final review enhancements
2026-04-17 10:52:07 +10:00
Tim Hanewich
4a3c7becc3 Add new agent skill: power-platform-architect (#1395)
* Added power-platform-architect skill

* updated readme w/ build in npm script

* Removed power-platform-architect readme.md

* Renamed skill.md

* Renamed to SKILL.md

* Rebuild
2026-04-17 10:49:40 +10:00
Scott O'Hara
600cfda900 Clarify accessibility criteria descriptions (#1405)
* Clarify accessibility criteria descriptions

I have not been able to look through everything in the accessibility instruction file. But the changes I'm submitting attempt to clarify / correct content that needed it.

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Apply suggestion from @scottaohara

* Apply suggestion from @scottaohara

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-04-16 09:24:55 +10:00
Alishahzad1903
de50693531 fix: update plugin description and remove readme installation instructions (#1399)
* fix: update plugin description

* copilot suggestions
2026-04-16 09:15:26 +10:00
Aaron Powell
3ce818d8d1 Updating agentic workflows (#1397) 2026-04-16 08:57:55 +10:00
Shailesh
c356debcbb Add LinkedIn Post Formatter skill and LinkedIn Post Writer agent 🤖🤖🤖 (#1392)
* feat(skills,agents): add LinkedIn post formatter skill and writer agent

Add self-contained LinkedIn post formatting skill with Unicode bold/italic
character mapping and engagement-optimized post structure patterns.
Add LinkedIn Post Writer agent for transforming raw content into
copy-paste-ready LinkedIn posts. No external service dependencies.

* fix: address Copilot review comments on PR #1392

- Correct Unicode range header to include digit range (U+1D7EC–U+1D7F5)
- Add explicit instruction to load references/unicode-charmap.md
- Fix LinkedIn casing in README.agents.md (Linkedin → LinkedIn)

* fix: use display name for LinkedIn agent to preserve brand casing

The name field now uses 'LinkedIn Post Writer' instead of the slug
format, ensuring the auto-generated README table shows correct casing.

---------

Co-authored-by: Shailesh Mishra <shaileshmishra@example.com>
2026-04-16 08:54:58 +10:00
Yauhen Habrusevich
15b1f9f8f9 Add weekly comment sync workflow 2026-04-15 14:58:57 +02:00
Antonio Villanueva
1565493324 Update modernize-dotnet plugin to 1.0.1037-preview1 (#1394)
Co-authored-by: Antonio Villanueva <anvillan@microsoft.com>
2026-04-15 09:51:18 +10:00
Carlos Alexandro Becker
aaf86f6055 docs: update go sdk examples (#1393)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2026-04-15 09:50:39 +10:00
Utkarsh patrikar
66a60afe70 Add author credits skills (#1379)
* docs(premium-frontend-ui): add author credits

* docs(gsap-framer-scroll-animation): add author credits

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update skills/premium-frontend-ui/SKILL.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: remove author metadata from skill documentation files

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-15 09:42:53 +10:00
ming
3fc2cef781 fix(agents): remove invalid tool names across multiple agents 🤖🤖🤖 (#1384)
Remove or replace tool names that VS Code Copilot silently ignores
because they do not exist in the current built-in tools reference.

Files changed:
- context-architect: 'codebase', 'terminalCommand' → proper namespaced tools
- debug: 'web/githubRepo', bare 'search' → remove/replace
- implementation-plan: 'think', 'search/changes', 'findTestFiles',
  'search/searchResults', 'web/githubRepo', 'execute/runNotebookCell',
  'read/getNotebookSummary', 'read/readNotebookCellOutput', bare 'search' → remove
- janitor: 'browser', 'microsoft.docs.mcp/*', 'read/getTaskOutput' →
  remove browser & mcp wildcard; move getTaskOutput to execute/ namespace
- plan: 'web/githubRepo', 'azure-mcp/search', 'search/searchResults' → remove
- principal-software-engineer: 'browser' → remove
- specification: old-style bare tool names → correct namespaced equivalents

Reference: https://code.visualstudio.com/docs/copilot/reference/copilot-vscode-features#_chat-tools

Co-authored-by: Ming <oncwnuAUeYAFR4UGlq8BEJq8Jy-k@git.weixin.qq.com>
2026-04-14 10:41:00 +10:00
Jan Krivanek
dd3bce4417 Improve skills validation runs (#1387) 2026-04-14 10:39:08 +10:00
Satya K
b8f3822748 Adds a new Agent Skill - Acquire-Codebase-Knowledge (#1373)
* feat(skill): add acquire-codebase-knowledge skill documentation

* feat(templates): add architecture, concerns, conventions, integrations, stack, structure, and testing documentation templates

* feat(references): add inquiry checkpoints and stack detection documentation

* feat(scan): add script to collect project discovery information for acquire-codebase-knowledge skill

* feat(skills): add acquire-codebase-knowledge skill for codebase mapping and documentation

* feat(scan): enhance scan script with absolute path handling and improved output variable validation

* feat(scan): replace bash script with Python script for project discovery information collection

* feat(skills): update acquire-codebase-knowledge skill to replace scan.sh with scan.py
2026-04-14 10:29:57 +10:00
Rajesh Goldy
e163a40937 Add project architecture planner (#1371)
* Add project-architecture-planner agent

* Add draw-io-diagram-generator skill reference to behavioral rules

---------

Co-authored-by: Rajesh Goldy (rgoldy) <Rajesh.Goldy@quest.com>
2026-04-14 10:28:29 +10:00
ming
e37cd3123f fix(agents): replace deprecated tool names with official namespaced equivalents 🤖🤖🤖 (#1382)
Update tools lists in tdd-red, tdd-green, tdd-refactor, and github-actions-expert
agents to use the current VS Code Copilot built-in tool names.

Old names were silently ignored by VS Code (documented behaviour: 'If a given
tool is not available when using the custom agent, it is ignored.').

Tool name mapping applied:
- github          → github/*
- findTestFiles   → search/fileSearch
- runTests        → execute/runTests
- runCommands     → execute/runInTerminal
- terminalCommand → execute/runInTerminal
- codebase        → search/codebase
- filesystem      → read/readFile
- problems        → read/problems
- testFailure     → execute/testFailure
- terminalLastCommand → read/terminalLastCommand
- githubRepo      → github/*

Also added missing tools present in the current VS Code tool reference:
- execute/getTerminalOutput
- read/terminalSelection

Additionally, generalised C#-specific content in TDD agents to be polyglot,
covering JavaScript/TypeScript (Jest/Vitest), Python (pytest), Java/Kotlin
(JUnit 5), and C# (.NET) — making the agents useful to the broader community.

Reference: https://code.visualstudio.com/docs/copilot/reference/copilot-vscode-features#_chat-tools

Co-authored-by: Ming <oncwnuAUeYAFR4UGlq8BEJq8Jy-k@git.weixin.qq.com>
2026-04-13 11:02:14 +10:00
Antonio Villanueva
30ed357edc Update modernize-dotnet plugin to 1.0.1026-preview1 (#1359)
* Update modernize-dotnet plugin to 1.0.1026-preview1

* Update modernize-dotnet version in marketplace.json to 1.0.1026-preview1

---------

Co-authored-by: Antonio Villanueva <anvillan@microsoft.com>
2026-04-13 09:54:53 +10:00
Mangokernel
dba2367fe9 Add whatidid skill — turn your Copilot sessions into proof of impact (#1319)
* Add whatidid skill — Copilot impact report generator

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix: use single quotes for description in SKILL.md frontmatter

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Convert from skill to external plugin per reviewer feedback

Address @aaronpowell's review: convert whatidid from a bundled skill
to an external plugin referencing microsoft/What-I-Did-Copilot.
This improves supply chain transparency and stays current with
the source repo.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-13 09:54:07 +10:00
Srinivas Vaddi
09049e3b78 feat: add code-tour skill — AI-generated CodeTour walkthroughs (#1277)
* feat: add code-tour skill for AI-generated CodeTour walkthroughs

* fix: trim SKILL.md from 645 to 432 lines (under 500 limit)

Reduce persona table to top 10, condense verbose examples and notes,
trim redundant anti-patterns, compress step type docs and PR recipe.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: run npm run build to update README with code-tour skill

Addresses review feedback from @aaronpowell

* fix: add missing scripts/ and references/ files referenced in SKILL.md

Addresses reviewer feedback — SKILL.md referenced bundled files
(validate_tour.py, generate_from_docs.py, codetour-schema.json,
examples.md) that were not included in the PR.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: run npm run build to update skills README with new assets

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 09:52:59 +10:00
Anmol Behl
10fda505b7 Add Azure Functions and Durable Functions instructions for .NET/C# development (#1139)
* feat: add azure-functions-csharp.instructions.md

Added guidelines and best practices for building Azure Functions in C# using the isolated worker model.

* feat: add azure-durable-functions-csharp.instructions.md

Added guidelines and best practices for building Azure Durable Functions in C# using the isolated worker model.

* docs: add config & testing sections to durable functions instructions

Added detailed configuration and testing guidelines for Azure Durable Functions in C#.

* Fix capitalization in applyTo path for local.settings.json

Changed Local.settings.json to local.settings.json in the applyTo directive to match the actual filename used in Azure Functions projects.

* update through npm build
2026-04-10 14:45:17 +10:00
Gonzalo Fleming
6ef9d3c4fd feat(instructions): update security, a11y, and performance to 2025-2026 standards (#1270)
* feat(instructions): update security, a11y, and performance to 2025-2026 standards

Security: OWASP 2025 (55 anti-patterns, AI/LLM section, 6 frameworks)
Accessibility: WCAG 2.2 AA (38 anti-patterns, legal context EAA/ADA, 4 frameworks)
Performance: CWV (50 anti-patterns, Next.js 16, Angular 20, modern APIs)

* fix(instructions): use globalThis.scheduler to prevent ReferenceError

Access scheduler via globalThis to safely handle environments where
the Scheduling API is not declared as a global variable.

* fix(instructions): correct regex patterns and harden SSRF example

- AU1: anchor jwt.verify lookahead inside parentheses
- AU2: anchor jwt.sign lookahead, add expiresIn alternative
- AU7: fix greedy .* before negative lookahead in OAuth state check
- I5: resolve all DNS records, add TOCTOU production note
- K2: add closing delimiters and multi-digit support to tabindex regex

* fix(instructions): enhance SSRF IP validation with IPv4-mapped IPv6

Normalize IPv4-mapped IPv6 addresses (::ffff:127.0.0.1) before
checking private ranges, preventing bypass via mapped addresses.

* fix(instructions): add noscript fallback for deferred CSS pattern

Without JS, the media="print" + onload pattern leaves the stylesheet
inactive. The noscript tag loads it normally when JS is disabled.

* fix(instructions): add execFileSync to I3 command injection detection

The BAD example uses execFileSync but the regex only matched exec,
execSync, and execFile — missing the sync variant.

* fix(instructions): cover full IPv6 link-local range in SSRF check

fe80::/10 spans fe80-febf (fe8*, fe9*, fea*, feb*). Previous regex
only matched fe80::. Also use normalized variable for consistency.

* fix(instructions): adjust SSRF wording and downgrade reduced-motion severity

- SSRF: replace "full DNS/IP validation" with accurate wording that
  acknowledges TOCTOU limitation
- V5: downgrade prefers-reduced-motion from IMPORTANT to SUGGESTION,
  remove 2.2.2 (A) reference since it's an AAA enhancement

* fix(instructions): rename AU4 heading to include SHA-256

The heading said "Weak Password Hash (MD5/SHA1)" but the detection
regex and BAD example both use SHA-256. Renamed to "Fast Hash for
Passwords" which better describes the actual anti-pattern.

* fix(instructions): clarify WCAG 2.2 SC 4.1.1 status as obsolete

SC 4.1.1 Parsing is still present in the WCAG 2.2 spec but marked
as obsolete (always satisfied). Changed wording from "removed" to
"obsolete" for accuracy.

* fix(instructions): rename I1 example vars to avoid TS redeclaration

Copy-pasting the I1 SQL injection example as a single block failed with a
TypeScript redeclaration error because both BAD and GOOD snippets used
`const result`. Rename to `unsafeResult`/`safeResult` so the block remains
copy-pasteable into a single scope.

* fix(instructions): migrate I3 example to async execFile with bounds

The I3 command injection example used `execFileSync` in both BAD and GOOD
paths, which (a) redeclared `const output` in the same block and (b) blocks
the Node event loop in server handlers, amplifying DoS impact.

Switch the GOOD/BEST paths to a promisified `execFile` call with explicit
`timeout` and `maxBuffer` bounds, and rename variables to
`unsafeOutput`/`safeOutput` so the snippet stays copy-pasteable. Add a
trailing note recommending async child_process APIs for server code.

* fix(instructions): align AU6 heading with session fixation example

The AU6 heading claimed "Session Not Invalidated on Password Change" but
the mitigation example showed `req.session.regenerate`, which is the
canonical defense against session fixation on login rather than bulk
invalidation after a credential change.

Rename the anti-pattern to "Missing Session Regeneration on Login (Session
Fixation)" so it matches the example, and add a trailing note pointing to
the complementary practice of invalidating other active sessions for the
user on password change (e.g., via a `tokenVersion` counter).

* fix(instructions): make L1 critical CSS pattern CSP-compatible

The L1 "GOOD" snippet relied on an inline `onload="this.media='all'"`
handler on a `<link>` tag. Under a strict CSP that disallows
`'unsafe-inline'` / `script-src-attr 'unsafe-inline'`, inline event
handlers are blocked, so the stylesheet would never activate and users
would hit a styling regression.

Replace the pattern with build-time critical CSS extraction
(Critters/Beasties/Next.js `optimizeCss`) plus a normal
`<link rel="preload" as="style">` and standard `<link rel="stylesheet">`.
Add a trailing note explaining why the older inline-onload trick breaks
under strict CSP and how to defer non-critical CSS with an external
script when deferral is truly needed.
2026-04-10 14:40:42 +10:00