{"meta":{"title":"Ihr erster benutzerdefinierter Agent","intro":"Erstellen und testen Sie Ihren ersten benutzerdefinierten Agent mit diesem einfachen README-Spezialistenbeispiel.","product":"GitHub Copilot","breadcrumbs":[{"href":"/de/copilot","title":"GitHub Copilot"},{"href":"/de/copilot/tutorials","title":"Anleitungen"},{"href":"/de/copilot/tutorials/customization-library","title":"Anpassungsbibliothek"},{"href":"/de/copilot/tutorials/customization-library/custom-agents","title":"Benutzerdefinierte Agents"},{"href":"/de/copilot/tutorials/customization-library/custom-agents/your-first-custom-agent","title":"Ihr erster benutzerdefinierter Agent"}],"documentType":"article"},"body":"# Ihr erster benutzerdefinierter Agent\n\nErstellen und testen Sie Ihren ersten benutzerdefinierten Agent mit diesem einfachen README-Spezialistenbeispiel.\n\n> \\[!NOTE]\n>\n> * Die Beispiele in dieser Bibliothek dienen der Inspiration. Du solltest sie so anpassen, dass sie für deine Projekte, Sprachen und Teamprozesse spezifischer sind.\n> * Beispiele für von der Community beigetragene Beispiele für bestimmte Sprachen und Szenarien finden Sie im [Repository \"Awesome GitHub Copilot Customizations](https://github.com/github/awesome-copilot/tree/main/agents) \".\n\n## Informationen zum custom agents\n\nCustom agents sind spezialisierte Versionen von Copilot cloud agent, die über ganze Workflows hinweg konsequente Expertise aufrechterhalten. Im Gegensatz zu benutzerdefinierten Anweisungen, die allgemein gelten, oder zu prompt-Dateien, die für einmalige Aufgaben genutzt werden, werden custom agents für spezielle Aufgaben ausgewählt und behalten ihre Konfiguration im gesamten Workflow bei.\n\nEine ausführlichere Übersicht finden Sie unter [Informationen zu benutzerdefinierten Agents](/de/copilot/concepts/agents/cloud-agent/about-custom-agents).\n\n## Ihr erstes custom agent\n\nBeginnen Sie mit diesem einfachen README-Spezialisten-Agent, der hilft, project README-Dateien zu erstellen und zu verbessern.\n\n### README-Spezialist agent profile\n\n```text copy\n---\nname: readme-specialist\ndescription: Specialized agent for creating and improving README files and project documentation\ntools: ['read', 'search', 'edit']\n---\n\nYou are a documentation specialist focused primarily on README files, but you can also help with other project documentation when requested. Your scope is limited to documentation files only - do not modify or analyze code files.\n\n**Primary Focus - README Files:**\n- Create and update README.md files with clear project descriptions\n- Structure README sections logically: overview, installation, usage, contributing\n- Write scannable content with proper headings and formatting\n- Add appropriate badges, links, and navigation elements\n- Use relative links (e.g., `docs/CONTRIBUTING.md`) instead of absolute URLs for files within the repository\n- Ensure all links work when the repository is cloned\n- Use proper heading structure to enable GitHub's auto-generated table of contents\n- Keep content under 500 KiB (GitHub truncates beyond this)\n\n**Other Documentation Files (when requested):**\n- Create or improve CONTRIBUTING.md files with clear contribution guidelines\n- Update or organize other project documentation (.md, .txt files)\n- Ensure consistent formatting and style across all documentation\n- Cross-reference related documentation appropriately\n\n**File Types You Work With:**\n- README files (primary focus)\n- Contributing guides (CONTRIBUTING.md)\n- Other documentation files (.md, .txt)\n- License files and project metadata\n\n**Important Limitations:**\n- Do NOT modify code files or code documentation within source files\n- Do NOT analyze or change API documentation generated from code\n- Focus only on standalone documentation files\n- Ask for clarification if a task involves code modifications\n\nAlways prioritize clarity and usefulness. Focus on helping developers understand the project quickly through well-organized documentation.\n```\n\n## Testen\n\nTesten Sie diesen Agent, indem Sie ihm eine Aufgabe zum Ausführen geben:\n\n1. Wechseln Sie zur Registerkarte \"Agents\" unter [https://github.com/copilot/agents](https://github.com/copilot/agents?ref_product=copilot\\&ref_type=engagement\\&ref_style=text).\n2. Wählen Sie über die Dropdown-Menüs im Textfeld das Repository und den Branch aus, mit dem Sie gerne testen möchten (idealerweise eines mit einer minimalen oder veralteten README).\n3. Klicken Sie auf <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-copilot\" aria-label=\"copilot\" role=\"img\"><path d=\"M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z\"></path><path d=\"M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z\"></path></svg> und dann auf **<svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-plus\" aria-label=\"Plus button\" role=\"img\"><path d=\"M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z\"></path></svg> Erstellen von custom agent**.\n4. Ein agent profile Template namens `my-agent.agent.md` wird im `.github/agents` Verzeichnis des gewählten Repositorys geöffnet. Benennen Sie die Datei `readme-specialist.agent.md` , und fügen Sie sie in das Beispiel agent profileein.\n5. Diese Datei muss in den Standardzweig Ihres Repositorys übernommen und zusammengeführt werden. Gehen Sie zurück zur Registerkarte \"Agenten\" (Sie müssen möglicherweise die Seite aktualisieren) und wählen Sie im Textfeld Ihren Readme-Specialist-Agenten aus der Dropdownliste aus.\n6. Geben Sie im Textfeld eine Aufgabe für den Agent ein (z. B. das folgende Beispiel), und klicken oder drücken Sie **<svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-paper-airplane\" aria-label=\"Start task\" role=\"img\"><path d=\"M.989 8 .064 2.68a1.342 1.342 0 0 1 1.85-1.462l13.402 5.744a1.13 1.13 0 0 1 0 2.076L1.913 14.782a1.343 1.343 0 0 1-1.85-1.463L.99 8Zm.603-5.288L2.38 7.25h4.87a.75.75 0 0 1 0 1.5H2.38l-.788 4.538L13.929 8Z\"></path></svg>** die <kbd>EINGABETASTE</kbd>.\n\n   ```copilot copy\n   Please review and improve our README.md file.\n   ```\n\nDie Agentaufgabe wird auf der Seite unterhalb des Textfelds angezeigt. Der Agent konzentriert sich speziell auf README-Verbesserungen mithilfe seiner speziellen Kenntnisse und erstellt eine Pull-Anforderung in Ihrem Repository. Sie können in die Aufgabe klicken und dem Agenten folgen. Weitere Informationen finden Sie unter [Verwalten von Agent-Sitzungen](/de/copilot/how-tos/copilot-on-github/use-copilot-agents/manage-and-track-agents).\n\n## Weiterführende Lektüre\n\n* [Informationen zu benutzerdefinierten Agents](/de/copilot/concepts/agents/cloud-agent/about-custom-agents)\n* [Erstellen von benutzerdefinierten Agents für Copilot cloud agent](/de/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/create-custom-agents)\n* [Konfiguration von benutzerdefinierten Agents](/de/copilot/reference/custom-agents-configuration)"}