Commit Graph

1580 Commits

Author SHA1 Message Date
allcontributors[bot]
2ccbfec11a update .all-contributorsrc 2026-04-10 02:13:39 +00:00
allcontributors[bot]
80107fdd77 update website/src/pages/contributors.astro 2026-04-10 02:13:27 +00:00
allcontributors[bot]
e88e8b1b38 update README.md 2026-04-10 02:13:26 +00:00
github-actions[bot]
10cfb647f3 chore: publish from staged 2026-04-10 01:42:56 +00:00
Aaron Powell
cfe4143cdd Adding missing contributors (#1361) 2026-04-10 11:42:34 +10:00
Aaron Powell
e8383064d8 Fixing learning hub hero (#1360)
* Combining the spans

* Removing some excessive padding
2026-04-10 11:33:55 +10:00
Yiou Li
5f59ddb9cf update eval-driven-dev skill (#1352)
* update eval-driven-dev skill

* small refinement of skill description

* address review, rerun npm start.
2026-04-10 11:19:28 +10:00
Ed McAdams
88b1920cb7 Maint: Remove old agents (#1351)
* in the bin

* update docs
2026-04-10 11:17:39 +10:00
aparna198809
edb5fac39f Spark performance agent (#1346)
* adding the agent.md file

* Pyspark performance reviewer agent

* Apply suggestion from @Copilot

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

* format fixes

* spell check fix

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-10 11:12:45 +10:00
Saravanan Rajaraman
d7c16e6ed2 fix: update descriptions for React migration agents to ensure proper formatting (#1344) 2026-04-10 11:10:21 +10:00
John Haugabook
c037695901 new skill freecad-scripts (#1328)
* new skill freecad-scripts

* Apply suggestions from code review

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

* Apply suggestions from code review

* resolve: codepsellrc, readme

* Apply suggestions from code review

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

* add suggestions from review

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-10 11:02:57 +10:00
Matt Soucoup
429a075742 Merge pull request #1355 from jennyf19/fix/ember-tools-field
fix: remove invalid tool aliases from Ember agent
2026-04-09 17:42:31 -07:00
Utkarsh patrikar
2273ed1987 feat: refine gsap-framer-scroll-animation skill and references (#1284)
* feat: refine gsap-framer-scroll-animation skill and references

* fix: address review comments for gsap-framer-scroll-animation skill
2026-04-10 09:59:10 +10:00
Bruno Borges
13d5de8666 Merge pull request #1272 from github/skill/lsp-setup
Add lsp-setup skill for configuring LSP servers in Copilot CLI
2026-04-09 19:51:21 -04:00
Vladislav Guzey
1dc8a408ff Add browser investigation agents for performance, regressions, and ru… (#1266)
* Add browser investigation agents for performance, regressions, and runtime accessibility

* Update generated agent docs
2026-04-10 09:50:01 +10:00
Jenny Ferries
da221ff9e5 fix: remove invalid tool aliases from Ember agent
The tools field used non-standard names (codebase, terminalCommand,
fetch_webpage) that are not recognized as valid tool aliases. Per the
custom agents configuration docs, unrecognized tool names are silently
ignored, which effectively gave Ember zero tools.

Removing the tools field entirely enables all available tools by default,
which is the correct behavior for a general-purpose AI partner agent.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 14:06:27 -07:00
Bruno Borges
9d8c98ea51 Instruct user to /exit and restart after LSP setup
LSP servers are only loaded on Copilot CLI startup, so the user
must exit and re-launch for the new configuration to take effect.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 14:54:51 -04:00
Bruno Borges
7e12d61ec1 Update skills/lsp-setup/SKILL.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-09 14:36:53 -04:00
Bruno Borges
5e5cffd125 Regenerate README.skills.md with updated lsp-setup description
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 14:33:33 -04:00
Bruno Borges
468b65fcde Improve lsp-setup skill description for broader triggering
Rewrite description to emphasize code intelligence capabilities
(go-to-definition, find-references, hover) so the coding agent
triggers the skill when it needs deeper code understanding, while
still matching explicit LSP setup/configuration requests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 14:27:56 -04:00
Bruno Borges
a000a83efe Use pyright as single Python LSP recommendation
Replace pylsp primary + pyright alternative with a single pyright
recommendation for Python. Go already correctly recommends gopls.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 14:14:43 -04:00
Bruno Borges
767e165d69 fix: use roslyn-language-server for .NET LSP config
Replace csharp-ls/OmniSharp with roslyn-language-server in the .NET
section, matching the official dotnet/skills reference configuration.

Addresses review feedback from @aaronpowell in PR #1272.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 12:30:00 -04:00
Bruno Borges
34c9a9df20 Merge branch 'staged' into skill/lsp-setup 2026-04-09 12:23:31 -04:00
Aaron Powell
017f31f495 Learning Hub: Agents and subagents (#1261)
* New page on agents and subagents

* Update website/src/content/docs/learning-hub/agents-and-subagents.md

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

* Update website/src/content/docs/learning-hub/github-copilot-terminology-glossary.md

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-09 16:25:56 +10:00
Imran Siddique
e95bd8c4ba feat: add 3 agent security skills (MCP audit, OWASP compliance, supply chain) (#1248)
* feat: add 3 agent security skills (MCP audit, OWASP compliance, supply chain)

- mcp-security-audit: Audit .mcp.json files for hardcoded secrets,
  shell injection, unpinned versions, dangerous command patterns
- agent-owasp-compliance: Check agent systems against OWASP ASI 2026
  Top 10 risks with compliance report generation
- agent-supply-chain: SHA-256 integrity manifests, tamper detection,
  version pinning audit, promotion gates for agent plugins

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

* fix: address all 9 review comments

1. Added 3 new skills to docs/README.skills.md index
2. Added imports (json, re) to shell injection check snippet
3. Updated unpinned deps wording to match code behavior (@latest only)
4. Moved check_secrets() outside per-server loop to avoid duplicates
5. Added imports note to verify_manifest snippet
6. Updated promotion_check to support both .github/plugin and .claude-plugin layouts
7. Updated CI example to cd into plugin directory before verifying
8. Added check sections for all 10 ASI controls (was missing 03, 04, 06, 08, 10)
9. Made ASI-01 code snippet runnable with actual file scanning implementation

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

* chore: regenerate docs/README.skills.md via npm start

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 15:33:08 +10:00
Gordon Lam
8eed96741f Improve agent skills instructions with quality authoring patterns (#1232)
* Improve agent skills instructions with quality authoring patterns

Add practical, platform-agnostic authoring guidance to
agent-skills.instructions.md based on community best practices:

- Expand applyTo to cover all skills/**/SKILL.md paths
- Add writing guidance for every recommended body section with examples
  (When to Use, Prerequisites, Step-by-Step Workflows, Gotchas,
  Troubleshooting, References)
- Add 'Writing High-Impact Skills' section with 5 principles:
  - Focus on what the agent doesn't know
  - Context budget awareness for descriptions
  - Gotchas as highest-signal content
  - Flexible guidelines over rigid steps
  - Progressive disclosure for large skills
- Fix description constraints: add 10-char minimum, single-quote wrapping
- Reconcile Step-by-Step Workflows with Flexible Guidelines advice
- Consolidate Workflow Execution Pattern under Common Patterns
- Standardize terminology (agent vs AI agent)
- Align line thresholds (200 soft / 500 hard)
- Update validation checklist with new quality criteria

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

* Update instructions/agent-skills.instructions.md

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

* Address PR review: make instructions platform-agnostic

- Replace 'GitHub Copilot'-specific language with generic 'the agent'
- Add skills/<skill-name>/ to Directory Structure table for repo layouts
- Fix relative path in flexible guidelines example (./references/)
- Update description and intro to be platform-neutral

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

* Revert terminology changes per reviewer feedback

Restore 'Copilot' and 'AI agent' terminology to match
the original doc's conventions. Keep new substantive content
(Writing High-Impact Skills, Gotchas, expanded examples).

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Aaron Powell <me@aaron-powell.com>
2026-04-09 15:27:02 +10:00
Saravanan Rajaraman
7f7b1b9b46 feat: Adds React 18 and 19 migration plugin (#1339)
- Adds React 18 and 19 migration orchestration plugins
- Introduces comprehensive upgrade toolkits for migrating legacy React 16/17 and 18 codebases to React 18.3.1 and 19, respectively. Each plugin bundles specialized agents and skills for exhaustive audit, dependency management, class/component API migration, test suite transformation, and batching regression fixes.
- The React 18 toolkit targets class-component-heavy apps, ensures safe lifecycle and context transitions, resolves dependency blockers, and fully automates test migrations including Enzyme removal. The React 19 toolkit addresses breaking changes such as removal of legacy APIs, defaultProps on function components, and forwardRef, while enforcing a gated, memory-resumable migration pipeline.
- Both plugins update documentation, plugin registries, and skill references to support reliable, repeatable enterprise-scale React migrations.
2026-04-09 15:18:52 +10:00
Christopher Harrison
f4909cd581 Revise Copilot CLI for Beginners section (#1334)
Updated the description for Copilot CLI for Beginners to include options for a text-based experience and a YouTube video series.
2026-04-09 13:33:17 +10:00
Emil Andersson
5c1d63dd1c Add instruction altitude guidance and context engineering reference (#1297) 2026-04-09 13:17:17 +10:00
Aaron Powell
cd576764e7 Merge branch 'staged' into skill/lsp-setup 2026-04-09 13:00:46 +10:00
github-actions[bot]
b80ea43e62 docs: update Learning Hub for Copilot CLI v1.0.15–v1.0.16 changes (#1273)
- Add PermissionRequest hook event to automating-with-hooks.md with
  practical CI example (new in v1.0.16)
- Add Ctrl+Q / Ctrl+Enter queue shortcut note to copilot-configuration-basics.md
  (Ctrl+D no longer queues as of v1.0.15)
- Add extraKnownMarketplaces config setting to installing-and-using-plugins.md
  (old 'marketplaces' setting removed in v1.0.16)
- Update lastUpdated dates on all three files

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-09 12:48:17 +10:00
Muhammad Ubaid Raza
46bef1b61a [gem-team] Introduce specialized skills and guidelines to agents (#1271)
* feat(orchestrator): add Discuss Phase and PRD creation workflow

- Introduce Discuss Phase for medium/complex objectives, generating context‑aware options and logging architectural decisions
- Add PRD creation step after discussion, storing the PRD in docs/prd.yaml
- Refactor Phase 1 to pass task clarifications to researchers
- Update Phase 2 planning to include multi‑plan selection for complex tasks and verification with gem‑reviewer
- Enhance Phase 3 execution loop with wave integration checks and conflict filtering

* feat(gem-team): bump version to 1.3.3 and refine description with Discuss Phase and PRD compliance verification

* chore(release): bump marketplace version to 1.3.4

- Update `marketplace.json` version from `1.3.3` to `1.3.4`.
- Refine `gem-browser-tester.agent.md`:
  - Replace "UUIDs" typo with correct spelling.
  - Adjust wording and formatting for clarity.
  - Update JSON code fences to use ````jsonc````.
  - Modify workflow description to reference `AGENTS.md` when present.
- Refine `gem-devops.agent.md`:
  - Align expertise list formatting.
  - Standardize tool list syntax with back‑ticks.
  - Minor wording improvements.
- Increase retry attempts in `gem-browser-tester.agent.md` from 2 to 3 attempts.
- Minor typographical and formatting corrections across agent documentation.

* refactor: rename prd_path to project_prd_path in agent configurations

- Updated gem-orchestrator.agent.md to use `project_prd_path` instead of `prd_path` in task definitions and delegation logic.
- Updated gem-planner.agent.md to reference `project_prd_path` and clarify PRD reading.
- Updated gem-researcher.agent.md to use `project_prd_path` and adjust PRD consumption logic.
- Applied minor wording improvements and consistency fixes across the orchestrator, planner, and researcher documentation.

* feat(plugin): expand marketplace description, bump version to 1.4.0; revamp gem-browser-tester agent documentation with clearer role, expertise, and workflow specifications.

* chore: remove outdated plugin metadata fields from README.plugins.md and plugin.json

* feat(tooling): bump marketplace version to 1.5.0 and refine validation thresholds

- Update marketplace.json version from 1.4.0 to 1.5.0
- Adjust validation criteria in gem-browser-tester.agent.md to trigger additional tests when coverage < 0.85 or confidence < 0.85
- Refine accessibility compliance description, adding runtime validation and SPEC‑based accessibility notes- Add new gem-code-simplifier.agent.md documentation for code refactoring
- Update README and plugin metadata to reflect version change and new tooling

* docs: improve bug‑fix delegation description and delegation‑first guidance in gem‑orchestrator.agent.md

- Clarified the two‑step diagnostic‑then‑fix flow for bug fixes using gem‑debugger and gem‑implementer.
- Updated the “Delegation First” checklist to stress that **no** task, however small, should be performed directly by the orchestrator, emphasizing sub‑agent delegation and retry/escalation strategy.

* feat(gem-browser-tester): add flow testing support and refine workflow

- Update description to include “flow testing” and “user journey” among triggers.
- Expand expertise list to cover flow testing and visual regression.
- Revise knowledge sources and workflow to detail initialization, setup, flow execution, and teardown.
- Introduce comprehensive step types (navigate, interact, assert, branch, extract, wait, screenshot) with explicit wait strategies.
- Implement baseline screenshot comparison for visual regression.
- Restructure execution pattern to manage flow context and multi‑step user journeys.

* feat: add performance, design, responsive checks

* feat(styling): add priority-based styling hierarchy and validation rules

* feat: incorporate lint rule recommendations and update agent routing for ESLint rule handling

* chore(release): bump marketplace version to 1.5.4

* docs: Simplify readme

* chore: Add mobile specific agents and disable user invocation flags

* feat(architecture): add mobile agents and refactor diagram

* feat(readme): add recommended LLM column to agent team roles

* docs: Update readme

---------

Co-authored-by: Aaron Powell <me@aaron-powell.com>
2026-04-09 12:17:20 +10:00
Bruno Borges
e1f966dd8c Merge pull request #1316 from github/cookbook/java-to-staged
Add Java SDK cookbook with 7 recipes (re-targeted to staged)
2026-04-08 22:11:24 -04:00
Temitayo Afolabi
6dd2453ef7 Enhance Salesforce Development plugin with new agents and skills (#1326)
* feat: add Salesforce Development plugin bundling Apex, Flow, LWC/Aura, and Visualforce agents

* feat: improve Salesforce plugin agents and add 3 quality skills

- Rewrote all 4 agent files with specific, actionable Salesforce guidance:
  - salesforce-apex-triggers: added discovery phase, pattern selection matrix,
    PNB test coverage standard, modern Apex idioms (safe nav, null coalescing,
    WITH USER_MODE, Assert.*), TAF awareness, anti-patterns table with risks,
    and structured output format
  - salesforce-aura-lwc: major expansion — PICKLES methodology, data access
    pattern selection table, SLDS 2 compliance, WCAG 2.1 AA accessibility
    requirements, component communication rules, Jest test requirements, and
    output format
  - salesforce-flow: major expansion — automation tool confirmation step, flow
    type selection matrix, bulk safety rules (no DML/Get Records in loops),
    fault connector requirements, Transform element guidance, deployment
    safety steps, and output format
  - salesforce-visualforce: major expansion — controller pattern selection,
    security requirements (CSRF, XSS, FLS/CRUD, SOQL injection), view state
    management, performance rules, and output format

- Added 3 new skills to the plugin:
  - salesforce-apex-quality: Apex guardrails, governor limit patterns, sharing
    model, CRUD/FLS enforcement, injection prevention, PNB testing checklist,
    trigger architecture rules, and code examples
  - salesforce-flow-design: flow type selection, bulk safety patterns with
    correct and incorrect examples, fault path requirements, automation density
    checks, screen flow UX guidelines, and deployment safety steps
  - salesforce-component-standards: LWC data access patterns, SLDS 2 styling,
    accessibility (WCAG 2.1 AA), component communication, Jest requirements,
    Aura event design, and Visualforce XSS/CSRF/FLS/view-state standards

- Updated plugin.json v1.0.0 → v1.1.0 with explicit agent paths and skill refs

* fix: resolve codespell error and README drift in Salesforce plugin

- Fix 'ntegrate' codespell false positive in salesforce-aura-lwc agent:
  rewrote PICKLES acronym bullets from letter-prefixed (**I**ntegrate)
  to full words (**Integrate**) so codespell reads the full word correctly
- Regenerate docs/README.plugins.md to match current build output
  (table column padding was updated by the build script)

* fix: regenerate README after rebasing on latest staged
2026-04-09 12:09:42 +10:00
Catherine Han
82c6b786ea feat: add FlowStudio monitoring + governance skills, update debug + build + mcp (#1304)
- **New skill: flowstudio-power-automate-monitoring** — flow health, failure
  rates, maker inventory, Power Apps, environment/connection counts via
  FlowStudio MCP cached store tools.
- **New skill: flowstudio-power-automate-governance** — 10 CoE-aligned
  governance workflows: compliance review, orphan detection, archive scoring,
  connector audit, notification management, classification/tagging, maker
  offboarding, security review, environment governance, governance dashboard.
- **Updated flowstudio-power-automate-debug** — purely live API tools (no
  store dependencies), mandatory action output inspection step, resubmit
  clarified as working for ALL trigger types.
- **Updated flowstudio-power-automate-build** — Step 1 uses list_live_flows
  (not list_store_flows) for the duplicate check, resubmit-first testing.
- **Updated flowstudio-power-automate-mcp** — store tool catalog, response
  shapes verified against real API calls, set_store_flow_state shape fix.
- Plugin version bumped to 2.0.0, all 5 skills listed in plugin.json.
- Generated docs regenerated via npm start.

All response shapes verified against real FlowStudio MCP API calls.
All 10 governance workflows validated with real tenant data.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 10:39:58 +10:00
Patel Dhruv
49fd3f3faf Add new skill: Python PyPI Package Builder (#1302)
* Add python-pypi-package-builder skill for Python packaging

- Created `SKILL.md` defining decision-driven workflow for building, testing, versioning, and publishing Python packages.
- Added reference modules covering PyPA packaging, architecture patterns, CI/CD, testing, versioning strategy, and release governance.
- Implemented scaffold script to generate complete project structure with pyproject.toml, CI workflows, tests, and configuration.
- Included support for multiple build backends (setuptools_scm, hatchling, flit, poetry) with clear decision rules.
- Added secure release practices including tag-based versioning, branch protection, and OIDC Trusted Publishing.

* fix: correct spelling issues detected by codespell
2026-04-09 10:36:17 +10:00
Renee Noble
68bd143e37 Fix broken links beginners cli course sync (#1263)
* chore: publish from staged

* Update instructions for converting links from original repo

* Correct existing broken links

* chore: retrigger ci

* cleaning up marerialzed plugins

* Fixing clean script to sort out plugin.json file too

* Fixing readme

* Fixing plugin.json drift

* Fixing readme

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aaron Powell <me@aaron-powell.com>
2026-04-09 10:22:38 +10:00
jennyf19
112678359f Add Ember plugin metadata for marketplace registration (#1327)
Adds plugins/ember/ with plugin.json and README.md so Ember
appears as an installable plugin in the awesome-copilot
marketplace. The agent and skill files already exist at the
repo root from PR #1324.

Ran npm run plugin:validate (passes) and npm start to
regenerate README and marketplace.json.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 09:57:45 +10:00
oceans-of-time
df81ca0319 Update powershell.instructions.md (#1125)
* Update powershell.instructions.md

## Description

### Error Handling

- Update to the `powershell.instructions.md` file. Now includes less error handling in the examples. This means when using the instructions file the output script contains less of the structured error handling, however the output scripts are easier for beginners and powershell novices to read and understand.

### Switch parameter

- Updates to using the switch parameters should now prevent default values data type being a bool
- Using no default value is the way in PowerShell. Defaults to a false value and shouldn't be set to a true value. Although a note has been added to show the correct syntax that requires type casting

### Examples updates
- Now includes a better demonstration of using the `WhatIf` parameter via `$PSCmdlet.ShouldProcesss`
- Full Example: End-to-End Cmdlet Pattern updated with the `$Force` & `$PSCmdlet.ShouldContinue` pattern

* Update instructions/powershell.instructions.md

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

* Update instructions/powershell.instructions.md

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

* Update instructions/powershell.instructions.md

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

* Apply suggestions from code review

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

* Update ShouldProcess and ShouldContinue guidance

Clarified ShouldProcess and ShouldContinue usage in PowerShell instructions.

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-09 09:55:07 +10:00
Bruno Borges
d32b431aad Merge branch 'staged' into skill/lsp-setup 2026-04-08 17:30:31 -04:00
Matt Soucoup
52e14abc86 Merge pull request #1324 from jennyf19/ember/add-ember-agent
Add Ember agent and Vega story skill
2026-04-07 17:35:11 -07:00
Jenny Ferries
64e5a4b765 Address PR review comments: add model field, fix SKILL.md description, add skills index entry
- Add model: claude-opus-4.6 to ember.agent.md frontmatter
- Collapse multi-line SKILL.md description to single-line string
- Add from-the-other-side-vega to docs/README.skills.md index

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-07 13:43:44 -07:00
Bruno Borges
e447f7d7c1 Update cookbook/copilot-sdk/java/recipe/PersistingSessions.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-06 16:31:24 -04:00
Bruno Borges
8f570c0d89 Update cookbook/copilot-sdk/java/recipe/ErrorHandling.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-06 16:31:10 -04:00
Bruno Borges
6f47a3d1d2 Update cookbook/copilot-sdk/java/recipe/ManagingLocalFiles.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-06 16:30:41 -04:00
Bruno Borges
8ba7845b8e Update cookbook/copilot-sdk/java/recipe/AccessibilityReport.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-06 16:30:25 -04:00
Bruno Borges
e03ccb978a fix: Java cookbook recipes to compile with copilot-sdk-java 0.2.1-java.1
Fix compilation errors and documentation inaccuracies in Java cookbook
recipes against the actual SDK API:

- MultipleSessions: Replace non-existent destroy() with close()
- AccessibilityReport: Replace non-existent McpServerConfig class with
  Map<String, Object> (the actual type accepted by setMcpServers)
- error-handling.md: Replace non-existent session.addTool(),
  ToolDefinition.builder(), and ToolResultObject with actual SDK APIs
  (ToolDefinition.create(), SessionConfig.setTools(),
  CompletableFuture<Object> return type)

All 7 recipes now compile successfully with jbang build.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-06 15:20:20 -04:00
Bruno Borges
0f06f346be Address review feedback
- Replace Thread.sleep with sendAndWait in PRVisualization
- Fix top-level statements in multiple-sessions.md (wrap in class)
- Fix .getMessage() → .getData().content() in MultipleSessions.java
- Guard against null readLine() in AccessibilityReport.java
- Add null-safe getCause() + InterruptedException handling in ErrorHandling.java
- Fix paths: jbang commands now include recipe/ prefix
- Fix root README path: cd java/recipe (not java/cookbook/recipe)
- Fix recipe/README.md ralph-loop CLI example
2026-04-06 15:20:20 -04:00
Bruno Borges
57b2799408 Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-06 15:20:20 -04:00
Bruno Borges
46f6f3e6db Add Java SDK cookbook with 7 recipes
Add complete Java cookbook matching the pattern of existing .NET, Go,
Node.js, and Python cookbooks. All 7 recipes included:

- Ralph Loop: Autonomous AI task loops with JBang
- Error Handling: try-with-resources, ExecutionException, timeouts
- Multiple Sessions: Parallel sessions with CompletableFuture
- Managing Local Files: AI-powered file organization
- PR Visualization: Interactive PR age charts
- Persisting Sessions: Save/resume with custom IDs
- Accessibility Report: WCAG reports via Playwright MCP

Each recipe includes both markdown documentation and a standalone
JBang-runnable Java file in recipe/.
2026-04-06 15:20:20 -04:00