{"id":29737703,"url":"https://github.com/copilot-extensions/skillset-example","last_synced_at":"2026-01-19T23:43:23.896Z","repository":{"id":263470555,"uuid":"878071159","full_name":"copilot-extensions/skillset-example","owner":"copilot-extensions","description":"An example skillset for faster extension development that generates random test data","archived":false,"fork":false,"pushed_at":"2025-06-24T21:16:36.000Z","size":14947,"stargazers_count":43,"open_issues_count":8,"forks_count":24,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T22:26:38.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/copilot-extensions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-24T18:19:13.000Z","updated_at":"2025-06-24T21:27:01.000Z","dependencies_parsed_at":"2025-03-11T17:39:41.686Z","dependency_job_id":"4f08e432-de69-4c7d-9f41-dec0dfd02d99","html_url":"https://github.com/copilot-extensions/skillset-example","commit_stats":null,"previous_names":["copilot-extensions/skillset-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/copilot-extensions/skillset-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copilot-extensions%2Fskillset-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copilot-extensions%2Fskillset-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copilot-extensions%2Fskillset-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copilot-extensions%2Fskillset-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/copilot-extensions","download_url":"https://codeload.github.com/copilot-extensions/skillset-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copilot-extensions%2Fskillset-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267037246,"owners_count":24025544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-25T17:02:19.517Z","updated_at":"2026-01-19T23:43:23.849Z","avatar_url":"https://github.com/copilot-extensions.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Skillset Example\n\n## Description\n\nThis code sample demonstrates building a Copilot Extension using the skillsets approach rather than a traditional agent. This extension is designed to generate random test and example data for a number of development purposes, by calling publicly available APIs.\n\n### Architectural Model\n- **Skillsets**: Define up to 5 API endpoints that Copilot can call directly. Copilot handles all AI interactions, prompt engineering, and response formatting.\n- **Agents**: Provide full control over the interaction flow, including custom prompt crafting and specific LLM model selection.\n\n![Architectural comparison between Skillsets and Agents](https://github.com/user-attachments/assets/9c5d6489-afb5-47c2-be73-2561d89dfde3)\n\n\n### When to Choose Skillsets\nSkillsets are ideal when you want to:\n- Quickly integrate existing APIs or services without managing AI logic\n- Focus purely on your service's core functionality\n- Maintain consistent Copilot-style interactions without extensive development\n- Get started with minimal infrastructure and setup\n\nUse agents instead if you need:\n- Complex custom interaction flows\n- Specific LLM model control (using LLMs that aren't provided by the Copilot API)\n- Custom prompt crafting\n- Advanced state management\n\n## Example Implementation\n\nThis extension showcases the skillset approach by providing three simple endpoints that generate random development data:\n- Random commit messages\n- Lorem ipsum text generation\n- Random user data\n\n## Getting Started\n1. Clone the repository: \n\n```\ngit clone git@github.com:copilot-extensions/skillset-example.git\ncd skillset-example\n```\n\n2. Install dependencies:\n\n```\ngo mod tidy\n```\n\n## Usage\n\n1. Start up ngrok with the port provided:\n\n```\nngrok http http://localhost:8080\n```\n\n2. Set the environment variables (use the ngrok generated url for the `FDQN`)\n3. Run the application:\n\n```\ngo run .\n```\n\n## Accessing the Extension in Chat:\n\n1. In the `Copilot` tab of your Application settings (`https://github.com/settings/apps/\u003capp_name\u003e/agent`)\n- Set the app type to \"Skillset\"\n- Specify the following skills\n```\nName: random_commit_message\nInference description: Generates a random commit message\nURL: https://\u003cyour ngrok domain\u003e/random-commit-message\nParameters: { \"type\": \"object\" }\nReturn type: String\n---\nName: random_lorem_ipsum \nInference description: Generates a random Lorem Ipsum text.  Responses should have html tags present.\nURL: https://\u003cyour ngrok domain\u003e/random-lorem-ipsum\nParameters: \n{\n   \"type\": \"object\",\n   \"properties\": {\n      \"number_of_paragraphs\": {\n         \"type\": \"number\",\n         \"description\": \"The number of paragraphs to be generated.  Must be between 1 and 10 inclusive\"\n      },\n      \"paragraph_length\": {\n         \"type\": \"string\",\n         \"description\": \"The length of each paragraph.  Must be one of \\\"short\\\", \\\"medium\\\", \\\"long\\\", or \\\"verylong\\\"\"\n      }\n   }\n}\nReturn type: String\n---\nName: random_user\nInference description: Generates data for a random user\nURL: https://\u003cyour ngrok domain\u003e/random-user\nParameters: { \"type\": \"object\" }\nReturn type: String\n```\n\n2. In the `General` tab of your application settings (`https://github.com/settings/apps/\u003capp_name\u003e`)\n- Set the `Callback URL` to anything (`https://github.com` works well for testing, in a real environment, this would be a URL you control)\n- Set the `Homepage URL` to anything as above\n3. Ensure your permissions are enabled in `Permissions \u0026 events` \u003e \n- `Account Permissions` \u003e `Copilot Chat` \u003e `Access: Read Only`\n4. Ensure you install your application at (`https://github.com/apps/\u003capp_name\u003e`)\n5. Now if you go to `https://github.com/copilot` you can `@` your skillset extension using the name of your app.\n\n## What can the bot do?\n\nHere's some example things:\n\n* `@skillset-example please create a random commit message`\n* `@skillset-example generate a lorem ipsum`\n* `@skillset-example generate a short lorem ipsum with 3 paragraphs`\n* `@skillset-example generate random user data`\n\n## Implementation\n\nThis bot provides a passthrough to a couple of other APIs:\n\n* For commit messages, https://whatthecommit.com/\n* For Lorem Ipsum, https://loripsum.net/\n* For user data, https://randomuser.me/\n\n## Documentation\n- [Using Copilot Extensions](https://docs.github.com/en/copilot/using-github-copilot/using-extensions-to-integrate-external-tools-with-copilot-chat)\n- [About skillsets](https://docs.github.com/en/copilot/building-copilot-extensions/building-a-copilot-skillset-for-your-copilot-extension/about-copilot-skillsets)\n- [About building Copilot Extensions](https://docs.github.com/en/copilot/building-copilot-extensions/about-building-copilot-extensions)\n- [Set up process](https://docs.github.com/en/copilot/building-copilot-extensions/setting-up-copilot-extensions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcopilot-extensions%2Fskillset-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcopilot-extensions%2Fskillset-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcopilot-extensions%2Fskillset-example/lists"}