Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/sdd/.detected-stack.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Detected Stack

> Auto-generated by `scripts/init-workspace.sh` at 2026-05-13T14:55:59Z.
> Auto-generated by `scripts/init-workspace.sh` at 2026-05-15T13:03:02Z.
> Re-run to refresh. Delete this file to force re-detection on next session.

No recognized stack detected. AgentSpec will use generic agents.
Expand Down
47 changes: 32 additions & 15 deletions .github/skills/workflow-create-pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,29 @@ This command streamlines PR creation by:

## Process

### Step 1: Analyze Changes
### Step 1: Detect Base Branch

Before analyzing changes, resolve the target base branch:

```bash
# Check if 'develop' exists on the remote
git ls-remote --heads origin develop
```

| Result | Base branch |
|--------|-------------|
| Output is non-empty | `develop` |
| Output is empty | `main` |

Store the result as `BASE_BRANCH` and use it in every subsequent step.

### Step 2: Analyze Changes

```bash
# Run these commands to understand the change scope
git status
git diff --stat
git log origin/main..HEAD --oneline
git log origin/$BASE_BRANCH..HEAD --oneline
```

Categorize files into change types:
Expand All @@ -159,7 +175,7 @@ style: Formatting, whitespace
perf: Performance improvements
```

### Step 2: Determine PR Type
### Step 3: Determine PR Type

Based on file analysis, identify the primary change type:

Expand All @@ -175,7 +191,7 @@ Based on file analysis, identify the primary change type:
| `.github/kb/**` | `docs(kb):` |
| `.github/sdd/**` | `docs(sdd):` |

### Step 3: Generate Commit Message
### Step 4: Generate Commit Message

Use Conventional Commits format:

Expand All @@ -199,7 +215,7 @@ feat(auth): add OAuth2 token refresh flow
Co-Authored-By: Claude <noreply@anthropic.com>
```

### Step 4: Ask Clarifying Questions
### Step 5: Ask Clarifying Questions

Use AskUserQuestion to confirm:

Expand All @@ -219,7 +235,7 @@ Use AskUserQuestion to confirm:
- **GitHub**: Link to any related issues? (e.g., "Closes #123")
- **Azure DevOps**: Link to any related work items? (e.g., work item IDs: `1234 5678`)

### Step 5: Build PR Description
### Step 6: Build PR Description

Generate structured description following this template:

Expand Down Expand Up @@ -267,10 +283,10 @@ Generate structured description following this template:
Generated with [GitHub Copilot](https://github.com/features/copilot)
```

### Step 6: Create Branch (if needed)
### Step 7: Create Branch (if needed)

```bash
# If on main, create feature branch
# If on main or develop, create feature branch
git checkout -b <type>/<short-description>

# Examples:
Expand All @@ -279,7 +295,7 @@ git checkout -b fix/parser-null-handling
git checkout -b refactor/agents-standardization
```

### Step 7: Commit and Push
### Step 8: Commit and Push

```bash
# Stage all changes (or specific files)
Expand All @@ -292,23 +308,23 @@ git commit -m "<message>"
git push -u origin <branch-name>
```

### Step 8: Create PR
### Step 9: Create PR

#### GitHub

```bash
gh pr create \
--title "<type>(<scope>): <description>" \
--body "<generated-body>" \
--base main
--base $BASE_BRANCH
```

For draft PRs:
```bash
gh pr create --draft \
--title "<type>(<scope>): <description>" \
--body "<generated-body>" \
--base main
--base $BASE_BRANCH
```

#### Azure DevOps
Expand All @@ -326,7 +342,7 @@ az repos pr create \
--title "<type>(<scope>): <description>" \
--description "<generated-body>" \
--source-branch "<branch-name>" \
--target-branch main \
--target-branch $BASE_BRANCH \
--repository "$ADO_REPO" \
--project "$ADO_PROJECT" \
--organization "$ADO_ORG"
Expand All @@ -338,7 +354,7 @@ az repos pr create --draft \
--title "<type>(<scope>): <description>" \
--description "<generated-body>" \
--source-branch "<branch-name>" \
--target-branch main \
--target-branch $BASE_BRANCH \
--repository "$ADO_REPO" \
--project "$ADO_PROJECT" \
--organization "$ADO_ORG"
Expand Down Expand Up @@ -389,7 +405,8 @@ PR DESCRIPTION

BRANCH
[ ] Branch name matches convention
[ ] Not committing directly to main
[ ] Not committing directly to main or develop
[ ] Base branch resolved (develop if it exists, otherwise main)
[ ] All changes are staged
```

Expand Down
49 changes: 34 additions & 15 deletions plugin-copilot/skills/workflow-create-pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,29 @@ This command streamlines PR creation by:

## Process

### Step 1: Analyze Changes
### Step 1: Detect Base Branch

Before analyzing changes, resolve the target base branch:

```bash
# Check if 'develop' exists on the remote
git ls-remote --heads origin develop
```

| Result | Base branch |
|--------|-------------|
| Output is non-empty | `develop` |
| Output is empty | `main` |

Store the result as `BASE_BRANCH` and use it in every subsequent step.

### Step 2: Analyze Changes

```bash
# Run these commands to understand the change scope
git status
git diff --stat
git log origin/main..HEAD --oneline
git log origin/$BASE_BRANCH..HEAD --oneline
```

Categorize files into change types:
Expand All @@ -159,7 +175,7 @@ style: Formatting, whitespace
perf: Performance improvements
```

### Step 2: Determine PR Type
### Step 3: Determine PR Type

Based on file analysis, identify the primary change type:

Expand All @@ -175,7 +191,7 @@ Based on file analysis, identify the primary change type:
| `${COPILOT_PLUGIN_ROOT}/kb/**` | `docs(kb):` |
| `.github/sdd/**` | `docs(sdd):` |

### Step 3: Generate Commit Message
### Step 4: Generate Commit Message

Use Conventional Commits format:

Expand All @@ -199,7 +215,7 @@ feat(auth): add OAuth2 token refresh flow
Co-Authored-By: Claude <noreply@anthropic.com>
```

### Step 4: Ask Clarifying Questions
### Step 5: Ask Clarifying Questions

Use AskUserQuestion to confirm:

Expand All @@ -219,7 +235,7 @@ Use AskUserQuestion to confirm:
- **GitHub**: Link to any related issues? (e.g., "Closes #123")
- **Azure DevOps**: Link to any related work items? (e.g., work item IDs: `1234 5678`)

### Step 5: Build PR Description
### Step 6: Build PR Description

Generate structured description following this template:

Expand Down Expand Up @@ -267,10 +283,10 @@ Generate structured description following this template:
Generated with [GitHub Copilot](https://github.com/features/copilot)
```

### Step 6: Create Branch (if needed)
### Step 7: Create Branch (if needed)

```bash
# If on main, create feature branch
# If on main or develop, create feature branch
git checkout -b <type>/<short-description>

# Examples:
Expand All @@ -279,7 +295,7 @@ git checkout -b fix/parser-null-handling
git checkout -b refactor/agents-standardization
```

### Step 7: Commit and Push
### Step 8: Commit and Push

```bash
# Stage all changes (or specific files)
Expand All @@ -292,23 +308,25 @@ git commit -m "<message>"
git push -u origin <branch-name>
```

### Step 8: Create PR
### Step 9: Create PR

#### GitHub

#### GitHub

```bash
gh pr create \
--title "<type>(<scope>): <description>" \
--body "<generated-body>" \
--base main
--base $BASE_BRANCH
```

For draft PRs:
```bash
gh pr create --draft \
--title "<type>(<scope>): <description>" \
--body "<generated-body>" \
--base main
--base $BASE_BRANCH
```

#### Azure DevOps
Expand All @@ -326,7 +344,7 @@ az repos pr create \
--title "<type>(<scope>): <description>" \
--description "<generated-body>" \
--source-branch "<branch-name>" \
--target-branch main \
--target-branch $BASE_BRANCH \
--repository "$ADO_REPO" \
--project "$ADO_PROJECT" \
--organization "$ADO_ORG"
Expand All @@ -338,7 +356,7 @@ az repos pr create --draft \
--title "<type>(<scope>): <description>" \
--description "<generated-body>" \
--source-branch "<branch-name>" \
--target-branch main \
--target-branch $BASE_BRANCH \
--repository "$ADO_REPO" \
--project "$ADO_PROJECT" \
--organization "$ADO_ORG"
Expand Down Expand Up @@ -389,7 +407,8 @@ PR DESCRIPTION

BRANCH
[ ] Branch name matches convention
[ ] Not committing directly to main
[ ] Not committing directly to main or develop
[ ] Base branch resolved (develop if it exists, otherwise main)
[ ] All changes are staged
```

Expand Down
Loading