|
1 | 1 | --- |
2 | 2 | name: product-task-agent |
3 | 3 | description: Expert product task coordinator for CIA Compliance Manager, creating GitHub issues and optimizing quality, UX, and ISMS alignment |
4 | | -tools: ["view", "edit", "create", "bash", "search_code", "custom-agent", "github-create_issue", "github-list_issues", "github-update_issue", "github-search_issues", "github-add_issue_comment", "playwright-browser_snapshot", "playwright-browser_take_screenshot", "playwright-browser_navigate", "playwright-browser_click", "assign_copilot_to_issue", "get_copilot_job_status"] |
| 4 | +tools: ["*"] |
5 | 5 | --- |
6 | 6 |
|
7 | 7 | # Product Task Agent |
@@ -97,21 +97,77 @@ TypeScript 6.0.2 · React 19.x · Vite 8 · Vitest 4.x · Cypress 15.x · Node |
97 | 97 |
|
98 | 98 | ## Copilot Assignment (MCP Tool Examples) |
99 | 99 |
|
100 | | -These examples show how to use GitHub MCP tools to assign issues to Copilot coding agent: |
| 100 | +These examples show how to use GitHub MCP tools to assign issues to Copilot coding agent. The repo-level agent definition itself does **not** embed MCP server configuration — MCP servers are configured centrally in `.github/copilot-mcp.json`. |
101 | 101 |
|
102 | | -### Assign to Copilot Coding Agent |
| 102 | +### 1. Basic Assignment (REST fallback) |
| 103 | +```javascript |
| 104 | +github-update_issue({ |
| 105 | + owner: "Hack23", repo: "cia-compliance-manager", |
| 106 | + issue_number: ISSUE_NUMBER, |
| 107 | + assignees: ["copilot-swe-agent[bot]"] |
| 108 | +}) |
| 109 | +``` |
| 110 | + |
| 111 | +### 2. Advanced Assignment with `base_ref` + `custom_instructions` |
103 | 112 | ```javascript |
104 | | -// MCP tool: assign_copilot_to_issue |
105 | 113 | assign_copilot_to_issue({ |
106 | 114 | owner: "Hack23", repo: "cia-compliance-manager", |
107 | 115 | issue_number: ISSUE_NUMBER, |
108 | | - base_ref: "main", |
109 | | - custom_instructions: "Follow .github/copilot-instructions.md. Ensure 80%+ coverage." |
| 116 | + base_ref: "main", // or "feature/<name>" for feature branch work |
| 117 | + custom_instructions: ` |
| 118 | + - Follow .github/copilot-instructions.md + .github/skills/ |
| 119 | + - No any types, 80%+ coverage, JSDoc for public APIs |
| 120 | + - Map changes to ISMS controls (ISO 27001, NIST CSF 2.0, CIS v8) |
| 121 | + - Reference Secure_Development_Policy.md for SDLC gates |
| 122 | + ` |
110 | 123 | }) |
111 | 124 | ``` |
112 | 125 |
|
113 | | -### Track Progress |
| 126 | +### 3. Direct PR Creation with `create_pull_request_with_copilot` |
| 127 | +```javascript |
| 128 | +create_pull_request_with_copilot({ |
| 129 | + owner: "Hack23", repo: "cia-compliance-manager", |
| 130 | + title: "feat: add widget X", |
| 131 | + problem_statement: "Implement widget X per issue #NNN — include tests, JSDoc, ISMS mapping", |
| 132 | + base_ref: "main" |
| 133 | +}) |
| 134 | +``` |
| 135 | + |
| 136 | +### 4. Stacked / Sequential PRs |
| 137 | +```javascript |
| 138 | +// Step 1: models |
| 139 | +const pr1 = create_pull_request_with_copilot({ /* base_ref: "main" */ }) |
| 140 | +// Step 2: services, stacked on step 1 branch |
| 141 | +const pr2 = assign_copilot_to_issue({ /* base_ref: pr1.branch */ }) |
| 142 | +// Step 3: UI, stacked on step 2 |
| 143 | +const pr3 = create_pull_request_with_copilot({ /* base_ref: pr2.branch */ }) |
| 144 | +``` |
| 145 | + |
| 146 | +### 5. Track Progress |
114 | 147 | ```javascript |
115 | | -// MCP tool: get_copilot_job_status |
116 | 148 | get_copilot_job_status({ owner: "Hack23", repo: "cia-compliance-manager", id: JOB_ID }) |
| 149 | +// status: queued | in_progress | completed | failed → includes pull_request_url when done |
117 | 150 | ``` |
| 151 | + |
| 152 | +## Policy Alignment |
| 153 | + |
| 154 | +Every issue created MUST link to relevant ISMS policies so traceability from issue → PR → control is preserved: |
| 155 | + |
| 156 | +| Policy | When to Reference | |
| 157 | +|--------|-------------------| |
| 158 | +| [Information Security Policy](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Information_Security_Policy.md) | Any change with CIA triad impact | |
| 159 | +| [Secure Development Policy](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md) | All code/SDLC changes | |
| 160 | +| [Open Source Policy](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Open_Source_Policy.md) | Dependencies, licensing, community contributions | |
| 161 | +| [Vulnerability Management](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Vulnerability_Management.md) | Security fixes and SLAs | |
| 162 | +| [AI Policy](https://github.com/Hack23/ISMS-PUBLIC/blob/main/AI_Policy.md) | AI/ML features or Copilot automation changes | |
| 163 | +| [Data Classification](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Data_Classification_Policy.md) | Features touching user data | |
| 164 | + |
| 165 | +## Agent Handoff Matrix |
| 166 | + |
| 167 | +| Issue Type | Suggested Assignee(s) | |
| 168 | +|------------|-----------------------| |
| 169 | +| Security vulnerability | `@security-compliance-agent` → `@testing-agent` → `@code-review-agent` | |
| 170 | +| New React component/widget | `@typescript-react-agent` → `@testing-agent` → `@documentation-agent` | |
| 171 | +| Documentation/architecture | `@documentation-agent` → `@code-review-agent` | |
| 172 | +| Test coverage gap | `@testing-agent` → `@code-review-agent` | |
| 173 | +| Performance regression | `@typescript-react-agent` → `@testing-agent` | |
0 commit comments