Merge pull request #68 from 0xdx2/copilot

feat:Add support for Copilot agents installation in install.sh
This commit is contained in:
Michael Sitarzewski 2026-03-10 09:51:20 -05:00 committed by GitHub
commit c54a597638
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 83 additions and 9 deletions

View File

@ -55,6 +55,7 @@ Browse the agents below and copy/adapt the ones you need!
# Or target a specific tool directly
./scripts/install.sh --tool cursor
./scripts/install.sh --tool copilot
./scripts/install.sh --tool aider
./scripts/install.sh --tool windsurf
```
@ -388,6 +389,7 @@ The Agency works natively with Claude Code, and ships conversion + install scrip
### Supported Tools
- **[Claude Code](https://claude.ai/code)** — native `.md` agents, no conversion needed → `~/.claude/agents/`
- **[Github Copilot](https://github.com/copilot)** — native `.md` agents, no conversion needed → `~/.github/agents/`
- **[Antigravity](https://github.com/google-gemini/antigravity)** — `SKILL.md` per agent → `~/.gemini/antigravity/skills/`
- **[Gemini CLI](https://github.com/google-gemini/gemini-cli)** — extension + `SKILL.md` files → `~/.gemini/extensions/agency-agents/`
- **[OpenCode](https://opencode.ai)** — `.md` agent files → `.opencode/agent/`
@ -419,14 +421,15 @@ The installer scans your system for installed tools, shows a checkbox UI, and le
System scan: [*] = detected on this machine
[x] 1) [*] Claude Code (claude.ai/code)
[x] 2) [*] Antigravity (~/.gemini/antigravity)
[ ] 3) [ ] Gemini CLI (gemini extension)
[ ] 4) [ ] OpenCode (opencode.ai)
[x] 5) [*] Cursor (.cursor/rules)
[ ] 6) [ ] Aider (CONVENTIONS.md)
[ ] 7) [ ] Windsurf (.windsurfrules)
[x] 2) [*] Copilot (~/.github/agents)
[x] 3) [*] Antigravity (~/.gemini/antigravity)
[ ] 4) [ ] Gemini CLI (gemini extension)
[ ] 5) [ ] OpenCode (opencode.ai)
[x] 6) [*] Cursor (.cursor/rules)
[ ] 7) [ ] Aider (CONVENTIONS.md)
[ ] 8) [ ] Windsurf (.windsurfrules)
[1-7] toggle [a] all [n] none [d] detected
[1-8] toggle [a] all [n] none [d] detected
[Enter] install [q] quit
```
@ -463,6 +466,23 @@ Use the Frontend Developer agent to review this component.
See [integrations/claude-code/README.md](integrations/claude-code/README.md) for details.
</details>
<details>
<summary><strong>Github Copilot</strong></summary>
Agents are copied directly from the repo into `~/.github/agents/` -- no conversion needed.
```bash
./scripts/install.sh --tool copilot
```
Then activate in Github Copilot:
```
Use the Frontend Developer agent to review this component.
```
See [integrations/github-copilot/README.md](integrations/github-copilot/README.md) for details.
</details>
<details>
<summary><strong>Antigravity (Gemini)</strong></summary>

View File

@ -0,0 +1,31 @@
# Github Copilot Integration
The Agency was built for Github Copilot. No conversion needed — agents work
natively with the existing `.md` + YAML frontmatter format.
## Install
```bash
# Copy all agents to your Github Copilot agents directory
./scripts/install.sh --tool copilot
# Or manually copy a category
cp engineering/*.md ~/.github/agents/
```
## Activate an Agent
In any Github Copilot session, reference an agent by name:
```
Activate Frontend Developer and help me build a React component.
```
```
Use the Reality Checker agent to verify this feature is production-ready.
```
## Agent Directory
Agents are organized into divisions. See the [main README](../../README.md) for
the full roster of 61 specialists.

View File

@ -11,6 +11,7 @@
#
# Tools:
# claude-code -- Copy agents to ~/.claude/agents/
# copilot -- Copy agents to ~/.github/agents/
# antigravity -- Copy skills to ~/.gemini/antigravity/skills/
# gemini-cli -- Install extension to ~/.gemini/extensions/agency-agents/
# opencode -- Copy agents to .opencode/agent/ in current directory
@ -79,7 +80,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
INTEGRATIONS="$REPO_ROOT/integrations"
ALL_TOOLS=(claude-code antigravity gemini-cli opencode cursor aider windsurf)
ALL_TOOLS=(claude-code copilot antigravity gemini-cli opencode cursor aider windsurf)
# ---------------------------------------------------------------------------
# Usage
@ -103,6 +104,7 @@ check_integrations() {
# Tool detection
# ---------------------------------------------------------------------------
detect_claude_code() { [[ -d "${HOME}/.claude" ]]; }
detect_copilot() { command -v code >/dev/null 2>&1 || [[ -d "${HOME}/.github" ]]; }
detect_antigravity() { [[ -d "${HOME}/.gemini/antigravity/skills" ]]; }
detect_gemini_cli() { command -v gemini >/dev/null 2>&1 || [[ -d "${HOME}/.gemini" ]]; }
detect_cursor() { command -v cursor >/dev/null 2>&1 || [[ -d "${HOME}/.cursor" ]]; }
@ -113,6 +115,7 @@ detect_windsurf() { command -v windsurf >/dev/null 2>&1 || [[ -d "${HOME}/.c
is_detected() {
case "$1" in
claude-code) detect_claude_code ;;
copilot) detect_copilot ;;
antigravity) detect_antigravity ;;
gemini-cli) detect_gemini_cli ;;
opencode) detect_opencode ;;
@ -127,6 +130,7 @@ is_detected() {
tool_label() {
case "$1" in
claude-code) printf "%-14s %s" "Claude Code" "(claude.ai/code)" ;;
copilot) printf "%-14s %s" "Copilot" "(~/.github/agents)" ;;
antigravity) printf "%-14s %s" "Antigravity" "(~/.gemini/antigravity)" ;;
gemini-cli) printf "%-14s %s" "Gemini CLI" "(gemini extension)" ;;
opencode) printf "%-14s %s" "OpenCode" "(opencode.ai)" ;;
@ -188,7 +192,7 @@ interactive_select() {
# --- controls ---
printf "\n"
printf " ------------------------------------------------\n"
printf " ${C_CYAN}[1-7]${C_RESET} toggle ${C_CYAN}[a]${C_RESET} all ${C_CYAN}[n]${C_RESET} none ${C_CYAN}[d]${C_RESET} detected\n"
printf " ${C_CYAN}[1-8]${C_RESET} toggle ${C_CYAN}[a]${C_RESET} all ${C_CYAN}[n]${C_RESET} none ${C_CYAN}[d]${C_RESET} detected\n"
printf " ${C_GREEN}[Enter]${C_RESET} install ${C_RED}[q]${C_RESET} quit\n"
printf "\n"
printf " >> "
@ -272,6 +276,24 @@ install_claude_code() {
ok "Claude Code: $count agents -> $dest"
}
install_copilot() {
local dest="${HOME}/.github/agents"
local count=0
mkdir -p "$dest"
local dir f first_line
for dir in design engineering marketing product project-management \
testing support spatial-computing specialized; do
[[ -d "$REPO_ROOT/$dir" ]] || continue
while IFS= read -r -d '' f; do
first_line="$(head -1 "$f")"
[[ "$first_line" == "---" ]] || continue
cp "$f" "$dest/"
(( count++ )) || true
done < <(find "$REPO_ROOT/$dir" -maxdepth 1 -name "*.md" -type f -print0)
done
ok "Copilot: $count agents -> $dest"
}
install_antigravity() {
local src="$INTEGRATIONS/antigravity"
local dest="${HOME}/.gemini/antigravity/skills"
@ -362,6 +384,7 @@ install_windsurf() {
install_tool() {
case "$1" in
claude-code) install_claude_code ;;
copilot) install_copilot ;;
antigravity) install_antigravity ;;
gemini-cli) install_gemini_cli ;;
opencode) install_opencode ;;