Implement agentic maintenance infrastructure for automated repository workflows #260
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What This PR Contributes
Implements hierarchical AI agent system to automate repository maintenance across six specialized domains.
Architecture (4-level hierarchy)
.github/ISSUE_TEMPLATE/*.yml) - workflow entry points.github/agents/*.md) - specialized AI personas with executable commands, code examples, clear boundaries.github/instructions/*.instructions.md) - file-scoped rules auto-applied viaapplyTopatterns.github/prompts/*.prompt.md) - detailed task guidanceSpecialized Agents (6)
Each agent follows GitHub's agents.md best practices: frontmatter metadata, commands section early, code examples, explicit boundaries, focused scope.
Documentation
PROMPTS.md: Complete hierarchy with mermaid diagram showing relationships.github/instructions/README.md: Instructions directory guide with usage patternsStructure
Implementation Details
applyToglob patterns for automatic file-scoped applicationwriteAttributeEscapederroneously included in SinkModel #34, Track dataflow through event handlers and their parameters #40, UI5 support flow through event handlers #24) as pattern examplesFuture Works
Original prompt
This section details on the original issue you should resolve
<issue_title>Agentic maintenance of
advanced-security/codeql-sap-jsrepository</issue_title><issue_description>
This issue tracks the implementation and validation of agentic maintenance capabilities for this repository, where "maintenance" is intentionally vague for our use case and applies to any development, testing, or other repository-specific task that has been done before and could reasonably be repeated and validated via some complementary set of agentic AI agents, with each "agent" described by a
.github/agents/*.mdfile and backed by the Copilot Coding Agent (CCA) issue-assignment-to-PR workflow.Purpose
The overall of this "agentic maintenance" approach is to minimize the amount of human time required purely for the maintenance of this repository
Another way to rephrase this "purpose" would be:
All good admins are lazy.And we want to be great admins.Requirements
Requirements to prepare
.github/**for agentic maintenance:.github/**contents for Issue templates, PR templates, agents, instructions, and prompts by following the approach used in advanced-security/codeql-development-template/.github/;.github/ISSUE_TEMPLATE/*.ymltemplates and our.github/agents/*.mdagents to be at the top of the hierarchy of prompts and.github/prompts/*.prompt.mdprompts to be at the bottom of the hierarchy and.github/instructions/*.instructions.mdinstructions to be the middle layer that links to the top and bottom layers of the prompts hierarchy..github/agents/*.mdagents are create using best practices from the how-to-write-a-great-agents-md-lessons-from-over-2500-repsitories guide. The CCA firewall should allow a fetch of that guide, which should form the basis of your understanding for how to implement a complementary set of.github/agents/*.mdagents for:.github/instructions/extractors_cds_tools_ts.instructions.mdinstructions;.qlqueries and.qlllibrary modeling for CAP framework;.qlqueries and.qlllibrary modeling for UI5 framework;.qlqueries and.qlllibrary modeling for XSJS framework;codeqlandqltCLI dependencies as well as other actions/software versions used in.github/workflows/*.ymlactions workflows of this repository;.github/**implementation of agents, instructions, prompts, issue templates, PR templates, and actions workflows;Related Issues and PRs
The following closed Issues and Pull Requests (PRs) from this repository should be fetched for context on the types of issues we expect to be able to assign to our agents and the types of changes required to submit and merge a given PR:
writeAttributeEscapederroneously included in SinkModel #34advanced-security/codeql-sap-jsrepository #259💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.