Skip to content

Commit 288169f

Browse files
authored
Convert .prompt.md files to custom agent format (#2889)
1 parent 19b11f9 commit 288169f

12 files changed

+228
-307
lines changed

.changeset/patch-convert-prompts-to-agents.md

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/prompts/copilot-prompt-add-safe-output-type.prompt.md renamed to .github/agents/copilot-add-safe-output-type.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
---
2+
name: copilot-add-safe-output-type
3+
description: Adding a New Safe Output Type to GitHub Agentic Workflows
4+
tools:
5+
- runInTerminal
6+
- getTerminalOutput
7+
- createFile
8+
- createDirectory
9+
- editFiles
10+
- search
11+
- changes
12+
- githubRepo
13+
---
14+
115
# Copilot Agent: Adding a New Safe Output Type to GitHub Agentic Workflows
216

317
## Overview
@@ -20,6 +34,26 @@ Safe output types are structured data formats that AI agents can emit to perform
2034
- `create-code-scanning-alert` - Create SARIF security alerts
2135
- `upload-asset` - Upload files as assets
2236

37+
## Overview
38+
39+
You are tasked with adding a new safe output type to the GitHub Agentic Workflows system. This system processes AI agent outputs as JSONL (JSON Lines) format and validates them through a multi-step pipeline involving TypeScript types, JSON schema validation, and JavaScript collection logic.
40+
41+
## Background: Understanding Safe Output Types
42+
43+
Safe output types are structured data formats that AI agents can emit to perform GitHub actions safely. The system currently supports:
44+
45+
- `create-issue` - Create GitHub issues
46+
- `add-comment` - Add comments to issues/PRs
47+
- `create-pull-request` - Create pull requests
48+
- `create-pull-request-review-comment` - Add code review comments
49+
- `add-labels` - Add labels to issues/PRs
50+
- `update-issue` - Update existing issues
51+
- `push-to-pull-request-branch` - Push commits to PR branches
52+
- `create-discussion` - Create GitHub discussions
53+
- `missing-tool` - Report missing functionality
54+
- `create-code-scanning-alert` - Create SARIF security alerts
55+
- `upload-asset` - Upload files as assets
56+
2357
## Implementation Plan
2458

2559
### Step 1: Update JSON Schema

0 commit comments

Comments
 (0)