Enhance GitHub Copilot AI with curated instructions, prompts, and agent skills. Ideal for developers and operations teams to streamline workflows and improve code generation. Integrates with VSCode Copilot Chat and Claude agents.
git clone https://github.com/Code-and-Sorts/awesome-copilot-agents.githttps://github.com/Code-and-Sorts/awesome-copilot-agents
["1. Open VSCode and ensure you have the GitHub Copilot extension installed and activated.","2. Open the Copilot Chat interface or create a new Claude agent session.","3. Use the provided prompt template to instruct the AI, replacing the placeholders with your specific instructions, best practices, task description, and desired output format.","4. For better results, be as specific as possible in your task description and provide clear examples of the best practices you want the AI to follow.","5. Review the generated code or output, and provide feedback to the AI to refine the results if necessary."]
Create tailored Copilot instructions for specific programming languages and frameworks.
Generate structured prompts for AI-assisted development tasks like PRD creation and task execution.
Utilize boilerplate templates to standardize coding practices across projects.
Implement custom agents to enhance Copilot's contextual understanding of your codebase.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/Code-and-Sorts/awesome-copilot-agentsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as an expert developer assistant. Use the following curated instructions to enhance GitHub Copilot's capabilities: [INSTRUCTIONS]. When generating code, follow these best practices: [BEST_PRACTICES]. For this task, I need you to [TASK_DESCRIPTION]. Provide the output in [OUTPUT_FORMAT].
Based on your instructions, I've enhanced GitHub Copilot's capabilities to assist with your task. Here's the optimized code for implementing a user authentication system with JWT in Node.js, following the best practices you provided:
```javascript
// Import required modules
const express = require('express');
const jwt = require('jsonwebtoken');
const bcrypt = require('bcrypt');
const bodyParser = require('body-parser');
// Initialize Express app
const app = express();
app.use(bodyParser.json());
// Mock user database
const users = [];
// Generate JWT token
const generateToken = (user) => {
return jwt.sign(
{ id: user.id, email: user.email },
process.env.JWT_SECRET,
{ expiresIn: '1h' }
);
};
// Register endpoint
app.post('/register', async (req, res) => {
try {
const { email, password } = req.body;
const hashedPassword = await bcrypt.hash(password, 10);
const user = { id: Date.now().toString(), email, password: hashedPassword };
users.push(user);
const token = generateToken(user);
res.status(201).json({ token }); // Return token in JSON format
} catch (error) {
res.status(500).json({ error: error.message }); // Return error in JSON format
}
});
// Login endpoint
app.post('/login', async (req, res) => {
try {
const { email, password } = req.body;
const user = users.find(u => u.email === email);
if (!user) {
return res.status(401).json({ error: 'Invalid credentials' }); // Return error in JSON format
}
const validPassword = await bcrypt.compare(password, user.password);
if (!validPassword) {
return res.status(401).json({ error: 'Invalid credentials' }); // Return error in JSON format
}
const token = generateToken(user);
res.json({ token }); // Return token in JSON format
} catch (error) {
res.status(500).json({ error: error.message }); // Return error in JSON format
}
});
// Start server
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});
```
I've also included error handling and JSON format responses as per your requirements. The code follows the best practices you provided, such as using async/await, proper error handling, and secure password hashing.Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan