← スキル一覧に戻る

copilot
by AndrewWeinmann
Personal development tools, configs, templates, and automation.
⭐ 1🍴 0📅 2026年1月18日
SKILL.md
name: copilot description: Use when the user asks to run GitHub Copilot CLI or references GitHub Copilot for code analysis, refactoring, or automated editing
GitHub Copilot CLI Skill Guide
Running a Task
- Ask the user (via
AskUserQuestion) which model to run (e.g.,claude-sonnet-4.5,gpt-5.2,gpt-5.1-codex) in a single prompt. - Select the appropriate mode and permissions for the task:
- Interactive mode (
-i) for ongoing work - Non-interactive mode (
-p) for one-off tasks (requires--allow-all-tools)
- Interactive mode (
- Assemble the command with the appropriate options:
--model <MODEL>(claude-sonnet-4.5, gpt-5.2, gpt-5.1-codex, etc.)--allow-all-tools(for non-interactive mode or to skip tool confirmations)--add-dir <directory>(to grant access to specific directories)--allow-all-paths(to disable path verification entirely)-s, --silent(to output only agent response, useful for scripting)
- When continuing a previous session, use
copilot --continueorcopilot --resume [sessionId]. - Run the command and summarize the outcome for the user.
- After Copilot completes, inform the user: "You can resume this session at any time by saying 'copilot continue' or asking me to continue with additional analysis or changes."
Quick Reference
| Use case | Mode | Key flags |
|---|---|---|
| Interactive coding session | Interactive | copilot -i "prompt" --model <model> |
| One-off task (automated) | Non-interactive | copilot -p "prompt" --model <model> --allow-all-tools |
| Silent output (scripting) | Non-interactive | copilot -p "prompt" --allow-all-tools --silent |
| Resume most recent session | Continue | copilot --continue |
| Resume specific session | Resume | copilot --resume [sessionId] |
| Grant directory access | Either | --add-dir /path/to/dir |
| Allow all file paths | Either | --allow-all-paths |
| Share session to file | Non-interactive | --share [path] or --share-gist |
Common Model Options
claude-sonnet-4.5- Latest Claude Sonnet modelclaude-opus-4.5- Latest Claude Opus modelgemini-3-pro-preview- Google Gemini 3 Pro Preview modelgpt-5.2- GPT-5.2 modelgpt-5.1-codex- Codex-specialized GPT modelgpt-5.1-codex-max- Maximum capability Codex modelgpt-5-mini- Faster, lightweight model
Permission and Access Control
--allow-all-tools- Required for non-interactive mode; allows all tools without confirmation--allow-tool [tools...]- Explicitly allow specific tools (e.g.,--allow-tool 'shell(git:*)' --allow-tool 'write')--deny-tool [tools...]- Explicitly deny specific tools (e.g.,--deny-tool 'shell(git push)')--add-dir <directory>- Add directory to allowed list (can be used multiple times)--allow-all-paths- Disable path verification (use with caution)--allow-url [urls...]- Allow access to specific URLs or domains--allow-all-urls- Allow all URLs without confirmation
Example Commands
# Interactive session with Claude
copilot -i "Fix the bug in main.js" --model claude-sonnet-4.5
# Non-interactive task with auto-approval
copilot -p "Refactor auth.ts to use async/await" --model gpt-5.1-codex --allow-all-tools
# Resume most recent session
copilot --continue
# Resume with session picker
copilot --resume
# Grant access to specific directories
copilot -i "Analyze project structure" --add-dir ~/workspace --add-dir /tmp
# Silent mode for scripting
copilot -p "Generate test file for utils.js" --allow-all-tools --silent
# Share session to file after completion
copilot -p "Add error handling" --allow-all-tools --share ./session-log.md
Following Up
- After every
copilotcommand, immediately useAskUserQuestionto confirm next steps, collect clarifications, or decide whether to continue withcopilot --continue. - When resuming, use
copilot --continuefor the most recent session orcopilot --resumeto pick from previous sessions. - The resumed session automatically uses the same model and settings from the original session.
- Restate the chosen model and mode when proposing follow-up actions.
Error Handling
- Stop and report failures whenever a
copilotcommand exits non-zero; request direction before retrying. - Before using high-impact flags (
--allow-all-tools,--allow-all-paths), ask the user for permission using AskUserQuestion unless it was already given. - When output includes warnings or partial results, summarize them and ask how to adjust using
AskUserQuestion. - If
copilotis not installed, guide the user to install it from https://docs.github.com/en/copilot/using-github-copilot/using-github-copilot-in-the-command-line
Best Practices
- Model Selection: Choose the appropriate model based on task complexity (codex models for code-heavy tasks, claude for analysis)
- Permission Management: Use
--add-dirto grant specific access instead of--allow-all-pathswhen possible - Tool Permissions: In interactive mode, let the user approve tools individually; use
--allow-all-toolsonly for non-interactive automation - Session Continuity: Leverage
--continueand--resumefor multi-step workflows instead of starting fresh each time - Silent Mode: Use
--silentwhen scripting to get clean output without stats
Additional Options
--log-level <level>- Set logging verbosity (none, error, warning, info, debug, all)--stream <mode>- Enable or disable streaming (on/off)--no-custom-instructions- Disable loading custom instructions from AGENTS.md--agent <agent>- Specify a custom agent (only in prompt mode)--available-tools [tools...]- Limit available tools to specific set--disable-parallel-tools-execution- Execute tools sequentially instead of in parallel
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です