Skip to content

Commit fc47c6a

Browse files
Copilotdata-douser
andcommitted
Implement agentic maintenance infrastructure with agents, instructions, prompts, and issue templates
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
1 parent 43dcad5 commit fc47c6a

25 files changed

+2946
-0
lines changed
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
name: CAP Framework Modeling Task
2+
description: Task for developing CodeQL queries and models for SAP CAP framework
3+
title: "[CAP]: "
4+
labels: ["cap-framework", "agent-task", "codeql"]
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
## 🤖 Agent Assignment
12+
13+
This issue will be handled by the **`cap-modeling-agent`** which specializes in CodeQL modeling for SAP CAP framework.
14+
15+
The agent follows:
16+
- `.github/instructions/javascript_cap_ql.instructions.md`
17+
- `.github/prompts/cap_framework_development.prompt.md`
18+
19+
- type: textarea
20+
id: description
21+
attributes:
22+
label: Task Description
23+
description: Describe the CAP modeling task
24+
placeholder: |
25+
Example: Model new CAP event handler pattern for remote flow sources
26+
Example: Fix false positive in SQL injection query for CAP
27+
Example: Add test case for CAP authorization bypass
28+
validations:
29+
required: true
30+
31+
- type: dropdown
32+
id: task_type
33+
attributes:
34+
label: Task Type
35+
description: What kind of task is this?
36+
options:
37+
- New Query
38+
- Query Improvement
39+
- New Library Model
40+
- Bug Fix
41+
- Test Case Addition
42+
- False Positive Fix
43+
- False Negative Fix
44+
validations:
45+
required: true
46+
47+
- type: dropdown
48+
id: vulnerability_type
49+
attributes:
50+
label: Vulnerability Type (if applicable)
51+
description: What type of vulnerability does this relate to?
52+
options:
53+
- SQL Injection
54+
- XSS
55+
- Path Injection
56+
- Log Injection
57+
- Authorization Bypass
58+
- Information Disclosure
59+
- Other
60+
- Not Applicable
61+
62+
- type: textarea
63+
id: example_code
64+
attributes:
65+
label: Example Code
66+
description: Provide example CAP code that demonstrates the pattern
67+
placeholder: |
68+
```javascript
69+
srv.on('READ', 'Books', async (req) => {
70+
const userInput = req.data.query;
71+
await srv.run(`SELECT * FROM Books WHERE title = '${userInput}'`);
72+
});
73+
```
74+
75+
- type: textarea
76+
id: context
77+
attributes:
78+
label: Additional Context
79+
description: Any additional information or related resources
80+
placeholder: |
81+
- Related CAP documentation
82+
- Similar patterns in other frameworks
83+
- Test database considerations
84+
85+
- type: checkboxes
86+
id: requirements
87+
attributes:
88+
label: Requirements Checklist
89+
description: Verify these will be met
90+
options:
91+
- label: Test cases created with expected results
92+
required: true
93+
- label: CodeQL tests pass (`codeql test run`)
94+
required: true
95+
- label: Query formatted (`codeql query format`)
96+
required: true
97+
- label: Follows test-driven development
98+
required: false
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: CDS Extractor Development Task
2+
description: Task for developing, testing, or maintaining the CodeQL CDS extractor
3+
title: "[CDS-EXTRACTOR]: "
4+
labels: ["cds-extractor", "agent-task"]
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
## 🤖 Agent Assignment
12+
13+
This issue will be handled by the **`cds-extractor-agent`** which specializes in TypeScript development for the CodeQL CDS extractor.
14+
15+
The agent follows:
16+
- `.github/instructions/extractors_cds_tools_ts.instructions.md`
17+
- `.github/prompts/cds_extractor_development.prompt.md`
18+
19+
- type: textarea
20+
id: description
21+
attributes:
22+
label: Task Description
23+
description: Describe what needs to be done with the CDS extractor
24+
placeholder: |
25+
Example: Add support for parsing CDS annotations
26+
Example: Fix failing test in compiler module
27+
Example: Upgrade @sap/cds dependency to latest version
28+
validations:
29+
required: true
30+
31+
- type: dropdown
32+
id: task_type
33+
attributes:
34+
label: Task Type
35+
description: What kind of task is this?
36+
options:
37+
- New Feature
38+
- Bug Fix
39+
- Dependency Upgrade
40+
- Performance Improvement
41+
- Refactoring
42+
- Testing
43+
- Documentation
44+
validations:
45+
required: true
46+
47+
- type: textarea
48+
id: context
49+
attributes:
50+
label: Additional Context
51+
description: Any additional information, error messages, or relevant files
52+
placeholder: |
53+
- Error messages
54+
- Relevant file paths
55+
- Related issues or PRs
56+
- Expected vs actual behavior
57+
58+
- type: textarea
59+
id: acceptance_criteria
60+
attributes:
61+
label: Acceptance Criteria
62+
description: How will we know this task is complete?
63+
placeholder: |
64+
- [ ] Tests pass
65+
- [ ] Build succeeds
66+
- [ ] Feature works as expected
67+
- [ ] Documentation updated
68+
69+
- type: checkboxes
70+
id: requirements
71+
attributes:
72+
label: Requirements Checklist
73+
description: Verify these will be met
74+
options:
75+
- label: All tests must pass (`npm run build:all`)
76+
required: true
77+
- label: No trailing whitespace
78+
required: true
79+
- label: Follows TypeScript best practices
80+
required: true
81+
- label: Test-driven development approach
82+
required: false
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: Dependency Upgrade Task
2+
description: Task for upgrading CodeQL CLI, QLT, Node.js dependencies, or GitHub Actions
3+
title: "[DEPS]: "
4+
labels: ["dependencies", "agent-task"]
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
## 🤖 Agent Assignment
12+
13+
This issue will be handled by the **`dependency-upgrade-agent`** which specializes in dependency maintenance.
14+
15+
The agent follows:
16+
- `.github/instructions/dependency_upgrades.instructions.md`
17+
- `.github/prompts/dependency_upgrade.prompt.md`
18+
19+
- type: dropdown
20+
id: dependency_category
21+
attributes:
22+
label: Dependency Category
23+
description: What type of dependency needs upgrading?
24+
options:
25+
- Node.js Package (CDS Extractor)
26+
- CodeQL CLI
27+
- QLT CLI
28+
- GitHub Actions
29+
validations:
30+
required: true
31+
32+
- type: textarea
33+
id: packages
34+
attributes:
35+
label: Package(s) to Upgrade
36+
description: List the package(s) and desired versions
37+
placeholder: |
38+
- @sap/cds: 7.4.0 → 7.5.0
39+
- axios: 1.5.0 → 1.6.2
40+
41+
Or for CLI:
42+
- CodeQL CLI: 2.14.6 → 2.15.4
43+
44+
Or for Actions:
45+
- actions/checkout: v3 → v4
46+
validations:
47+
required: true
48+
49+
- type: dropdown
50+
id: upgrade_reason
51+
attributes:
52+
label: Reason for Upgrade
53+
description: Why is this upgrade needed?
54+
options:
55+
- Security Vulnerability
56+
- Bug Fix
57+
- New Features
58+
- Routine Maintenance
59+
- Deprecation Warning
60+
validations:
61+
required: true
62+
63+
- type: textarea
64+
id: breaking_changes
65+
attributes:
66+
label: Known Breaking Changes
67+
description: Are there any known breaking changes? (Check release notes)
68+
placeholder: |
69+
- List breaking changes from release notes
70+
- Or: "None identified"
71+
- Or: "Need to review release notes"
72+
73+
- type: textarea
74+
id: security_info
75+
attributes:
76+
label: Security Information
77+
description: If this is a security fix, provide details
78+
placeholder: |
79+
- CVE number (if applicable)
80+
- npm audit output
81+
- Severity level
82+
- Description of vulnerability
83+
84+
- type: textarea
85+
id: context
86+
attributes:
87+
label: Additional Context
88+
description: Any additional information
89+
placeholder: |
90+
- Links to release notes
91+
- Related issues
92+
- Testing considerations
93+
94+
- type: checkboxes
95+
id: requirements
96+
attributes:
97+
label: Validation Checklist
98+
options:
99+
- label: Release notes reviewed
100+
required: true
101+
- label: Breaking changes documented
102+
required: true
103+
- label: Tests will pass after upgrade
104+
required: true
105+
- label: No new security vulnerabilities introduced
106+
required: true
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: GitHub Maintenance Task
2+
description: Task for maintaining .github infrastructure (agents, instructions, prompts, templates, workflows)
3+
title: "[GITHUB]: "
4+
labels: ["github-maintenance", "agent-task"]
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
## 🤖 Agent Assignment
12+
13+
This issue will be handled by the **`github-maintenance-agent`** which specializes in maintaining `.github/` infrastructure.
14+
15+
The agent follows:
16+
- `.github/instructions/github_maintenance.instructions.md`
17+
- `.github/prompts/github_maintenance.prompt.md`
18+
19+
- type: dropdown
20+
id: maintenance_type
21+
attributes:
22+
label: Maintenance Type
23+
description: What needs to be maintained?
24+
options:
25+
- Add New Agent
26+
- Update Existing Agent
27+
- Add New Instruction File
28+
- Update Instruction File
29+
- Add New Prompt File
30+
- Update Prompt File
31+
- Add Issue Template
32+
- Update Issue Template
33+
- Add/Update PR Template
34+
- Update Workflow
35+
- Update PROMPTS.md
36+
- Other
37+
validations:
38+
required: true
39+
40+
- type: textarea
41+
id: description
42+
attributes:
43+
label: Task Description
44+
description: Describe what needs to be done
45+
placeholder: |
46+
Example: Create new agent for Java query development
47+
Example: Update CAP agent to include new responsibilities
48+
Example: Fix broken link in PROMPTS.md diagram
49+
Example: Add validation workflow for agent files
50+
validations:
51+
required: true
52+
53+
- type: textarea
54+
id: files_affected
55+
attributes:
56+
label: Files Affected
57+
description: List the files that will be created, modified, or deleted
58+
placeholder: |
59+
- .github/agents/new-agent.md (create)
60+
- .github/instructions/existing.instructions.md (update)
61+
- PROMPTS.md (update diagram)
62+
63+
- type: textarea
64+
id: hierarchy_impact
65+
attributes:
66+
label: Hierarchy Impact
67+
description: How does this change affect the prompts hierarchy?
68+
placeholder: |
69+
- Adding new connection from issue template to instruction
70+
- New prompt linked from instruction file
71+
- No hierarchy changes (content update only)
72+
73+
- type: textarea
74+
id: context
75+
attributes:
76+
label: Additional Context
77+
description: Any additional information
78+
placeholder: |
79+
- References to similar agents/templates
80+
- Reasons for the change
81+
- Expected outcomes
82+
83+
- type: checkboxes
84+
id: requirements
85+
attributes:
86+
label: Validation Checklist
87+
options:
88+
- label: Agent files have proper frontmatter (if applicable)
89+
required: false
90+
- label: Instruction files have applyTo pattern (if applicable)
91+
required: false
92+
- label: PROMPTS.md diagram updated (if structure changed)
93+
required: false
94+
- label: YAML syntax validated (for templates/workflows)
95+
required: false
96+
- label: No broken internal links
97+
required: true
98+
- label: Follows best practices from agents.md guide
99+
required: true

0 commit comments

Comments
 (0)