Skip to content

Commit 9179891

Browse files
author
jzhu
committed
feat: Add Copilot support and enable/disable commands for prompts
- Refactor prompts module into a package with handler classes - base.py: BasePromptHandler abstract class - claude.py, codex.py, gemini.py: Tool-specific handlers - copilot.py: GitHub Copilot CLI handler with repo-wide and path-specific instructions - manager.py: PromptManager with handler delegation - models.py: Prompt dataclass - Integrate Copilot as --app option in existing commands - sync: supports --app copilot with --apply-to for path-specific - import-live: imports from .github/copilot-instructions.md - show-live: shows Copilot instructions content - status: shows Copilot status with path-specific file count - unsync: clears Copilot instruction files - Add enable/disable commands for prompt status control - enable: activates prompt, syncs to file, tracks enabled state (user level) - disable: deactivates prompt without clearing files - Remove redundant copilot-sync, copilot-import, copilot-show commands - Update tests for new functionality
1 parent 47d74bc commit 9179891

13 files changed

Lines changed: 1647 additions & 430 deletions

File tree

.github/copilot-instructions.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
# CLAUDE.md — Repository guidelines for AI-assisted edits
1+
# Copilot Instructions for Testing
22

3-
This file documents repository-level expectations and instructions intended to guide contributors and AI-assisted editing tools (like Claude Code) when making changes in this project.
3+
This is a test instruction file for GitHub Copilot CLI custom instructions support.
44

5-
- Ask for approval before any git commit and push
6-
- Always run tests before completing all development of new changes
7-
- Always test the CLI usages
8-
- After any changes, run the folling to reinstall the project:
9-
```
10-
rm -rf dist/*
11-
./install.sh uninstall
12-
./install.sh
13-
cp ~/.config/code-assistant-manager/providers.json.bak ~/.config/code-assistant-manager/providers.json
14-
```
5+
## Guidelines
6+
7+
- Write clear, maintainable code
8+
- Test everything before committing
9+
- Follow the repository's coding style

0 commit comments

Comments
 (0)