Skip to content

Commit 3882099

Browse files
authored
Merge branch 'main' into main
2 parents e3e356d + 7de4b48 commit 3882099

87 files changed

Lines changed: 6149 additions & 650 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The Awesome GitHub Copilot repository is a community-driven collection of custom
88
- **Prompts** - Task-specific prompts for code generation and problem-solving
99
- **Instructions** - Coding standards and best practices applied to specific file patterns
1010
- **Skills** - Self-contained folders with instructions and bundled resources for specialized tasks
11+
- **Hooks** - Automated workflows triggered by specific events during development
1112
- **Collections** - Curated collections organized around specific themes and workflows
1213

1314
## Repository Structure
@@ -18,6 +19,7 @@ The Awesome GitHub Copilot repository is a community-driven collection of custom
1819
├── prompts/ # Task-specific prompts (.prompt.md files)
1920
├── instructions/ # Coding standards and guidelines (.instructions.md files)
2021
├── skills/ # Agent Skills folders (each with SKILL.md and optional bundled assets)
22+
├── hooks/ # Automated workflow hooks (folders with README.md + hooks.json)
2123
├── collections/ # Curated collections of resources (.md files)
2224
├── docs/ # Documentation for different resource types
2325
├── eng/ # Build and automation scripts
@@ -48,9 +50,9 @@ npm run skill:create -- --name <skill-name>
4850

4951
## Development Workflow
5052

51-
### Working with Agents, Prompts, Instructions, and Skills
53+
### Working with Agents, Prompts, Instructions, Skills, and Hooks
5254

53-
All agent files (`*.agent.md`), prompt files (`*.prompt.md`), and instruction files (`*.instructions.md`) must include proper markdown front matter. Agent Skills are folders containing a `SKILL.md` file with frontmatter and optional bundled assets:
55+
All agent files (`*.agent.md`), prompt files (`*.prompt.md`), and instruction files (`*.instructions.md`) must include proper markdown front matter. Agent Skills are folders containing a `SKILL.md` file with frontmatter and optional bundled assets. Hooks are folders containing a `README.md` with frontmatter and a `hooks.json` configuration file:
5456

5557
#### Agent Files (*.agent.md)
5658
- Must have `description` field (wrapped in single quotes)
@@ -80,16 +82,37 @@ All agent files (`*.agent.md`), prompt files (`*.prompt.md`), and instruction fi
8082
- Asset files should be reasonably sized (under 5MB per file)
8183
- Skills follow the [Agent Skills specification](https://agentskills.io/specification)
8284

85+
#### Hook Folders (hooks/*/README.md)
86+
- Each hook is a folder containing a `README.md` file with frontmatter
87+
- README.md must have `name` field (human-readable name)
88+
- README.md must have `description` field (wrapped in single quotes, not empty)
89+
- Must include a `hooks.json` file with hook configuration (hook events extracted from this file)
90+
- Folder names should be lower case with words separated by hyphens
91+
- Can include bundled assets (scripts, utilities, configuration files)
92+
- Bundled scripts should be referenced in the README.md and hooks.json
93+
- Follow the [GitHub Copilot hooks specification](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/use-hooks)
94+
- Optionally includes `tags` field for categorization
95+
8396
### Adding New Resources
8497

85-
When adding a new agent, prompt, instruction, or skill:
98+
When adding a new agent, prompt, instruction, skill, or hook:
8699

87100
**For Agents, Prompts, and Instructions:**
88101
1. Create the file with proper front matter
89102
2. Add the file to the appropriate directory
90103
3. Update the README.md by running: `npm run build`
91104
4. Verify the resource appears in the generated README
92105

106+
**For Hooks:**
107+
1. Create a new folder in `hooks/` with a descriptive name
108+
2. Create `README.md` with proper frontmatter (name, description, hooks, tags)
109+
3. Create `hooks.json` with hook configuration following GitHub Copilot hooks spec
110+
4. Add any bundled scripts or assets to the folder
111+
5. Make scripts executable: `chmod +x script.sh`
112+
6. Update the README.md by running: `npm run build`
113+
7. Verify the hook appears in the generated README
114+
115+
93116
**For Skills:**
94117
1. Run `npm run skill:create` to scaffold a new skill folder
95118
2. Edit the generated SKILL.md file with your instructions
@@ -186,6 +209,16 @@ For skills (skills/*/):
186209
- [ ] Any bundled assets are referenced in SKILL.md
187210
- [ ] Bundled assets are under 5MB per file
188211

212+
For hook folders (hooks/*/):
213+
- [ ] Folder contains a README.md file with markdown front matter
214+
- [ ] Has `name` field with human-readable name
215+
- [ ] Has non-empty `description` field wrapped in single quotes
216+
- [ ] Has `hooks.json` file with valid hook configuration (hook events extracted from this file)
217+
- [ ] Folder name is lower case with hyphens
218+
- [ ] Any bundled scripts are executable and referenced in README.md
219+
- [ ] Follows [GitHub Copilot hooks specification](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/use-hooks)
220+
- [ ] Optionally includes `tags` array field for categorization
221+
189222
## Contributing
190223

191224
This is a community-driven project. Contributions are welcome! Please see:

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This repository provides a comprehensive toolkit for enhancing GitHub Copilot wi
1111
- **👉 [Awesome Agents](docs/README.agents.md)** - Specialized GitHub Copilot agents that integrate with MCP servers to provide enhanced capabilities for specific workflows and tools
1212
- **👉 [Awesome Prompts](docs/README.prompts.md)** - Focused, task-specific prompts for generating code, documentation, and solving specific problems
1313
- **👉 [Awesome Instructions](docs/README.instructions.md)** - Comprehensive coding standards and best practices that apply to specific file patterns or entire projects
14+
- **👉 [Awesome Hooks](docs/README.hooks.md)** - Automated workflows triggered by specific events during development, testing, and deployment
1415
- **👉 [Awesome Skills](docs/README.skills.md)** - Self-contained folders with instructions and bundled resources that enhance AI capabilities for specialized tasks
1516
- **👉 [Awesome Collections](docs/README.collections.md)** - Curated collections of related prompts, instructions, agents, and skills organized around specific themes and workflows
1617
- **👉 [Awesome Cookbook Recipes](cookbook/README.md)** - Practical, copy-paste-ready code snippets and real-world examples for working with GitHub Copilot tools and features
@@ -96,6 +97,10 @@ Use the `/` command in GitHub Copilot Chat to access prompts:
9697

9798
Instructions automatically apply to files based on their patterns and provide contextual guidance for coding standards, frameworks, and best practices.
9899

100+
### 🪝 Hooks
101+
102+
Hooks enable automated workflows triggered by specific events during GitHub Copilot coding agent sessions (like sessionStart, sessionEnd, userPromptSubmitted). They can automate tasks like logging, auto-committing changes, or integrating with external services.
103+
99104
## 🎯 Why Use Awesome GitHub Copilot?
100105

101106
- **Productivity**: Pre-built agents, prompts and instructions save time and provide consistent results.
@@ -107,7 +112,7 @@ Instructions automatically apply to files based on their patterns and provide co
107112

108113
We welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details on how to:
109114

110-
- Add new prompts, instructions, agents, or skills
115+
- Add new prompts, instructions, hooks, agents, or skills
111116
- Improve existing content
112117
- Report issues or suggest enhancements
113118

@@ -148,7 +153,7 @@ The customizations in this repository are sourced from and created by third-part
148153

149154
---
150155

151-
**Ready to supercharge your coding experience?** Start exploring our [prompts](docs/README.prompts.md), [instructions](docs/README.instructions.md), and [custom agents](docs/README.agents.md)!
156+
**Ready to supercharge your coding experience?** Start exploring our [prompts](docs/README.prompts.md), [instructions](docs/README.instructions.md), [hooks](docs/README.hooks.md), and [custom agents](docs/README.agents.md)!
152157

153158
## Contributors ✨
154159

agents/context-architect.agent.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
description: 'An agent that helps plan and execute multi-file changes by identifying relevant context and dependencies'
3+
model: 'GPT-5'
4+
tools: ['codebase', 'terminalCommand']
5+
name: 'Context Architect'
6+
---
7+
8+
You are a Context Architect—an expert at understanding codebases and planning changes that span multiple files.
9+
10+
## Your Expertise
11+
12+
- Identifying which files are relevant to a given task
13+
- Understanding dependency graphs and ripple effects
14+
- Planning coordinated changes across modules
15+
- Recognizing patterns and conventions in existing code
16+
17+
## Your Approach
18+
19+
Before making any changes, you always:
20+
21+
1. **Map the context**: Identify all files that might be affected
22+
2. **Trace dependencies**: Find imports, exports, and type references
23+
3. **Check for patterns**: Look at similar existing code for conventions
24+
4. **Plan the sequence**: Determine the order changes should be made
25+
5. **Identify tests**: Find tests that cover the affected code
26+
27+
## When Asked to Make a Change
28+
29+
First, respond with a context map:
30+
31+
```
32+
## Context Map for: [task description]
33+
34+
### Primary Files (directly modified)
35+
- path/to/file.ts — [why it needs changes]
36+
37+
### Secondary Files (may need updates)
38+
- path/to/related.ts — [relationship]
39+
40+
### Test Coverage
41+
- path/to/test.ts — [what it tests]
42+
43+
### Patterns to Follow
44+
- Reference: path/to/similar.ts — [what pattern to match]
45+
46+
### Suggested Sequence
47+
1. [First change]
48+
2. [Second change]
49+
...
50+
```
51+
52+
Then ask: "Should I proceed with this plan, or would you like me to examine any of these files first?"
53+
54+
## Guidelines
55+
56+
- Always search the codebase before assuming file locations
57+
- Prefer finding existing patterns over inventing new ones
58+
- Warn about breaking changes or ripple effects
59+
- If the scope is large, suggest breaking into smaller PRs
60+
- Never make changes without showing the context map first

agents/reepl-linkedin.agent.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: reepl-linkedin
3+
description: "AI-powered LinkedIn content creation, scheduling, and analytics agent. Create posts, carousels, and manage your LinkedIn presence with GitHub Copilot."
4+
---
5+
6+
# Reepl -- LinkedIn Content Agent
7+
8+
You are a LinkedIn content strategist and automation expert powered by [Reepl](https://reepl.io). You help developers, marketers, and professionals create, schedule, and analyze LinkedIn content directly from their editor.
9+
10+
**What is Reepl?** Reepl is an AI-powered LinkedIn content management platform that lets you create posts, design carousels, schedule content, and track analytics. Learn more at [reepl.io](https://reepl.io) or explore the skills repository at [github.com/reepl-io/skills](https://github.com/reepl-io/skills).
11+
12+
## Core Capabilities
13+
14+
- **Post Creation:** Draft engaging LinkedIn posts with AI assistance, including text formatting, hashtag suggestions, and hook optimization.
15+
- **Carousel Design:** Generate multi-slide LinkedIn carousels with structured content and visual layouts.
16+
- **Content Scheduling:** Plan and schedule posts for optimal engagement times.
17+
- **Analytics:** Review post performance, engagement metrics, and audience insights.
18+
- **Voice Profiles:** Match content tone and style to a user's personal brand or voice profile.
19+
20+
## Workflow
21+
22+
1. **Understand the Goal:** Ask what the user wants to achieve -- thought leadership, product launch, hiring, community engagement, etc.
23+
2. **Draft Content:** Create LinkedIn-optimized content following best practices (hooks, formatting, CTAs).
24+
3. **Refine:** Iterate on tone, length, and structure based on feedback.
25+
4. **Schedule or Publish:** Help the user schedule or publish the content through Reepl.
26+
27+
## LinkedIn Content Best Practices
28+
29+
- Start with a strong hook in the first two lines to earn the "see more" click.
30+
- Use short paragraphs and line breaks for readability on mobile.
31+
- Include a clear call-to-action (comment, share, visit link).
32+
- Keep hashtags relevant and limited to 3-5 per post.
33+
- Carousels should tell a story with a clear beginning, middle, and end.
34+
- Optimal post length is 1,200-1,500 characters for engagement.
35+
36+
## Guidelines
37+
38+
- Always tailor content to the user's industry and audience.
39+
- Maintain a professional but authentic tone unless the user specifies otherwise.
40+
- Respect LinkedIn's content policies and community guidelines.
41+
- Never generate misleading, spammy, or engagement-bait content.
42+
- Prioritize value-driven content that educates, inspires, or informs.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
id: context-engineering
2+
name: Context Engineering
3+
description: Tools and techniques for maximizing GitHub Copilot effectiveness through better context management. Includes guidelines for structuring code, an agent for planning multi-file changes, and prompts for context-aware development.
4+
tags: [context, productivity, refactoring, best-practices, architecture]
5+
6+
items:
7+
- path: instructions/context-engineering.instructions.md
8+
kind: instruction
9+
10+
- path: agents/context-architect.agent.md
11+
kind: agent
12+
usage: |
13+
recommended
14+
15+
The Context Architect agent helps plan multi-file changes by mapping dependencies
16+
and identifying all relevant files before making modifications.
17+
18+
Use this agent when:
19+
- Planning refactors that span multiple files
20+
- Adding features that touch several modules
21+
- Investigating unfamiliar parts of the codebase
22+
23+
Example usage:
24+
```
25+
@context-architect I need to add rate limiting to all API endpoints.
26+
What files are involved and what's the best approach?
27+
```
28+
29+
For best results:
30+
- Describe the high-level goal, not just the immediate task
31+
- Let the agent search before you provide files
32+
- Review the context map before approving changes
33+
34+
- path: prompts/context-map.prompt.md
35+
kind: prompt
36+
usage: |
37+
optional
38+
39+
Use before any significant change to understand the blast radius.
40+
Produces a structured map of files, dependencies, and tests.
41+
42+
- path: prompts/what-context-needed.prompt.md
43+
kind: prompt
44+
usage: |
45+
optional
46+
47+
Use when Copilot gives a generic or incorrect answer.
48+
Asks Copilot to explicitly list what files it needs to see.
49+
50+
- path: prompts/refactor-plan.prompt.md
51+
kind: prompt
52+
usage: |
53+
optional
54+
55+
Use for multi-file refactors. Produces a phased plan with
56+
verification steps and rollback procedures.
57+
58+
display:
59+
ordering: manual
60+
show_badge: true

0 commit comments

Comments
 (0)