@mohammadhprp/system-prompt 0.12.0 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/agents/README.md +0 -1
- package/framework/commands/mr.md +8 -9
- package/framework/mcps/README.md +0 -3
- package/framework/skills/README.md +5 -4
- package/framework/skills/effective-html/SKILL.md +63 -0
- package/framework/skills/effective-html/examples.md +19 -0
- package/framework/skills/effective-html/references/charts-and-data.md +32 -0
- package/framework/skills/effective-html/references/creative-direction.md +48 -0
- package/framework/skills/effective-html/references/design-artifact.md +78 -0
- package/framework/skills/effective-html/references/diagrams.md +68 -0
- package/framework/skills/effective-html/references/documents-and-presentations.md +28 -0
- package/framework/skills/effective-html/references/html-diagram.md +43 -0
- package/framework/skills/effective-html/references/html-plan.md +40 -0
- package/framework/skills/effective-html/references/html-prototype.md +97 -0
- package/framework/skills/effective-html/references/html-wireframe.md +81 -0
- package/framework/skills/effective-html/references/html.md +72 -0
- package/framework/skills/effective-html/references/interfaces.md +17 -0
- package/framework/skills/glab/SKILL.md +222 -0
- package/framework/skills/glab/references/commands-detailed.md +616 -0
- package/framework/skills/glab/references/quick-reference.md +145 -0
- package/framework/skills/glab/references/troubleshooting.md +669 -0
- package/framework/skills/great-interface/SKILL.md +43 -0
- package/framework/skills/great-interface/references/animations.md +205 -0
- package/framework/skills/great-interface/references/better-accessibility.md +106 -0
- package/framework/skills/great-interface/references/better-colors.md +100 -0
- package/framework/skills/great-interface/references/better-interface.md +132 -0
- package/framework/skills/great-interface/references/better-layout.md +76 -0
- package/framework/skills/great-interface/references/better-typography.md +157 -0
- package/framework/skills/great-interface/references/better-ui.md +107 -0
- package/framework/skills/great-interface/references/better-writing.md +109 -0
- package/framework/skills/great-interface/references/choosing-fonts.md +64 -0
- package/framework/skills/great-interface/references/color-formats.md +90 -0
- package/framework/skills/great-interface/references/color-usage.md +118 -0
- package/framework/skills/great-interface/references/contrast.md +79 -0
- package/framework/skills/great-interface/references/css-cheat-sheet.md +65 -0
- package/framework/skills/great-interface/references/details-and-accessibility.md +119 -0
- package/framework/skills/great-interface/references/enter-exit.md +147 -0
- package/framework/skills/great-interface/references/explain-interface.md +126 -0
- package/framework/skills/great-interface/references/find-the-effect.md +94 -0
- package/framework/skills/great-interface/references/focus-and-keyboard.md +131 -0
- package/framework/skills/great-interface/references/forms.md +84 -0
- package/framework/skills/great-interface/references/from-an-image.md +55 -0
- package/framework/skills/great-interface/references/grouping-and-alignment.md +123 -0
- package/framework/skills/great-interface/references/hit-areas.md +94 -0
- package/framework/skills/great-interface/references/icon-transitions.md +102 -0
- package/framework/skills/great-interface/references/icons.md +110 -0
- package/framework/skills/great-interface/references/interface-review.md +148 -0
- package/framework/skills/great-interface/references/motion-and-zoom.md +79 -0
- package/framework/skills/great-interface/references/no-browser.md +73 -0
- package/framework/skills/great-interface/references/palette-generation.md +104 -0
- package/framework/skills/great-interface/references/palette-structure.md +76 -0
- package/framework/skills/great-interface/references/performance.md +88 -0
- package/framework/skills/great-interface/references/picker.md +76 -0
- package/framework/skills/great-interface/references/read-the-system.md +178 -0
- package/framework/skills/great-interface/references/removed-signals.md +38 -0
- package/framework/skills/great-interface/references/review-format.md +46 -0
- package/framework/skills/great-interface/references/scope-resolution.md +88 -0
- package/framework/skills/great-interface/references/screen-readers.md +101 -0
- package/framework/skills/great-interface/references/semantics-and-aria.md +84 -0
- package/framework/skills/great-interface/references/spacing-and-adaptivity.md +159 -0
- package/framework/skills/great-interface/references/spacing-and-sizing.md +121 -0
- package/framework/skills/great-interface/references/surfaces.md +219 -0
- package/framework/skills/great-interface/references/token-naming.md +97 -0
- package/framework/skills/great-interface/references/variable-fonts-and-opentype.md +105 -0
- package/framework/skills/great-interface/references/variant.md +104 -0
- package/framework/skills/great-interface/references/wrapping-and-punctuation.md +55 -0
- package/framework/skills/improve/SKILL.md +137 -0
- package/framework/skills/improve/examples.md +19 -0
- package/framework/skills/improve/references/audit-playbook.md +130 -0
- package/framework/skills/improve/references/closing-the-loop.md +96 -0
- package/framework/skills/improve/references/plan-template.md +197 -0
- package/framework/skills/jira-cli/SKILL.md +260 -0
- package/framework/skills/jira-cli/references/commands-detailed.md +268 -0
- package/framework/skills/jira-cli/references/quick-reference.md +111 -0
- package/framework/skills/jira-cli/references/troubleshooting.md +114 -0
- package/framework/styles/README.md +9 -4
- package/framework/styles/factory/DESIGN.md +360 -0
- package/framework/styles/factory/README.md +32 -0
- package/framework/styles/factory/assets/preview.jpg +0 -0
- package/framework/styles/huly/DESIGN.md +449 -0
- package/framework/styles/huly/README.md +32 -0
- package/framework/styles/huly/assets/preview.jpg +0 -0
- package/framework/styles/notion/DESIGN.md +423 -0
- package/framework/styles/notion/README.md +32 -0
- package/framework/styles/notion/assets/preview.jpg +0 -0
- package/package.json +1 -1
- package/src/catalog.js +8 -8
- package/framework/agents/backend-architect.md +0 -146
- package/framework/mcps/github-mcp/README.md +0 -51
- package/framework/mcps/github-mcp/capabilities.md +0 -83
- package/framework/mcps/github-mcp/configs/.env.example +0 -1
- package/framework/mcps/github-mcp/configs/opencode.json +0 -13
- package/framework/mcps/github-mcp/install.md +0 -60
- package/framework/mcps/github-mcp/troubleshooting.md +0 -79
- package/framework/mcps/gitlab-mcp/README.md +0 -53
- package/framework/mcps/gitlab-mcp/capabilities.md +0 -216
- package/framework/mcps/gitlab-mcp/configs/.env.example +0 -2
- package/framework/mcps/gitlab-mcp/configs/opencode.json +0 -13
- package/framework/mcps/gitlab-mcp/install.md +0 -99
- package/framework/mcps/gitlab-mcp/troubleshooting.md +0 -116
- package/framework/mcps/jira-mcp/README.md +0 -52
- package/framework/mcps/jira-mcp/capabilities.md +0 -79
- package/framework/mcps/jira-mcp/configs/.env.example +0 -2
- package/framework/mcps/jira-mcp/configs/opencode.json +0 -13
- package/framework/mcps/jira-mcp/install.md +0 -94
- package/framework/mcps/jira-mcp/troubleshooting.md +0 -113
- package/framework/skills/brand-guidelines/LICENSE.txt +0 -202
- package/framework/skills/brand-guidelines/SKILL.md +0 -73
- package/framework/skills/gitlab-mcp/SKILL.md +0 -83
- package/framework/skills/gitlab-mcp/examples.md +0 -31
- package/framework/skills/gitlab-mcp/references/code-review.md +0 -110
- package/framework/skills/gitlab-mcp/references/issues.md +0 -141
- package/framework/skills/gitlab-mcp/references/merge-requests.md +0 -120
- package/framework/skills/gitlab-mcp/references/pipelines.md +0 -67
- package/framework/skills/gitlab-mcp/references/search.md +0 -17
- package/framework/skills/gitlab-mcp/references/webhooks.md +0 -32
- package/framework/skills/gitlab-mcp/references/work-items.md +0 -50
- package/framework/skills/jira-mcp/SKILL.md +0 -57
- package/framework/skills/jira-mcp/examples.md +0 -31
- package/framework/skills/jira-mcp/references/comments.md +0 -27
- package/framework/skills/jira-mcp/references/issues.md +0 -97
- package/framework/skills/jira-mcp/references/projects.md +0 -39
- package/framework/skills/lavish/SKILL.md +0 -67
- package/framework/skills/lavish/examples.md +0 -31
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: brand-guidelines
|
|
3
|
-
description: Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
|
|
4
|
-
license: Complete terms in LICENSE.txt
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Anthropic Brand Styling
|
|
8
|
-
|
|
9
|
-
## Overview
|
|
10
|
-
|
|
11
|
-
To access Anthropic's official brand identity and style resources, use this skill.
|
|
12
|
-
|
|
13
|
-
**Keywords**: branding, corporate identity, visual identity, post-processing, styling, brand colors, typography, Anthropic brand, visual formatting, visual design
|
|
14
|
-
|
|
15
|
-
## Brand Guidelines
|
|
16
|
-
|
|
17
|
-
### Colors
|
|
18
|
-
|
|
19
|
-
**Main Colors:**
|
|
20
|
-
|
|
21
|
-
- Dark: `#141413` - Primary text and dark backgrounds
|
|
22
|
-
- Light: `#faf9f5` - Light backgrounds and text on dark
|
|
23
|
-
- Mid Gray: `#b0aea5` - Secondary elements
|
|
24
|
-
- Light Gray: `#e8e6dc` - Subtle backgrounds
|
|
25
|
-
|
|
26
|
-
**Accent Colors:**
|
|
27
|
-
|
|
28
|
-
- Orange: `#d97757` - Primary accent
|
|
29
|
-
- Blue: `#6a9bcc` - Secondary accent
|
|
30
|
-
- Green: `#788c5d` - Tertiary accent
|
|
31
|
-
|
|
32
|
-
### Typography
|
|
33
|
-
|
|
34
|
-
- **Headings**: Poppins (with Arial fallback)
|
|
35
|
-
- **Body Text**: Lora (with Georgia fallback)
|
|
36
|
-
- **Note**: Fonts should be pre-installed in your environment for best results
|
|
37
|
-
|
|
38
|
-
## Features
|
|
39
|
-
|
|
40
|
-
### Smart Font Application
|
|
41
|
-
|
|
42
|
-
- Applies Poppins font to headings (24pt and larger)
|
|
43
|
-
- Applies Lora font to body text
|
|
44
|
-
- Automatically falls back to Arial/Georgia if custom fonts unavailable
|
|
45
|
-
- Preserves readability across all systems
|
|
46
|
-
|
|
47
|
-
### Text Styling
|
|
48
|
-
|
|
49
|
-
- Headings (24pt+): Poppins font
|
|
50
|
-
- Body text: Lora font
|
|
51
|
-
- Smart color selection based on background
|
|
52
|
-
- Preserves text hierarchy and formatting
|
|
53
|
-
|
|
54
|
-
### Shape and Accent Colors
|
|
55
|
-
|
|
56
|
-
- Non-text shapes use accent colors
|
|
57
|
-
- Cycles through orange, blue, and green accents
|
|
58
|
-
- Maintains visual interest while staying on-brand
|
|
59
|
-
|
|
60
|
-
## Technical Details
|
|
61
|
-
|
|
62
|
-
### Font Management
|
|
63
|
-
|
|
64
|
-
- Uses system-installed Poppins and Lora fonts when available
|
|
65
|
-
- Provides automatic fallback to Arial (headings) and Georgia (body)
|
|
66
|
-
- No font installation required - works with existing system fonts
|
|
67
|
-
- For best results, pre-install Poppins and Lora fonts in your environment
|
|
68
|
-
|
|
69
|
-
### Color Application
|
|
70
|
-
|
|
71
|
-
- Uses RGB color values for precise brand matching
|
|
72
|
-
- Applied via python-pptx's RGBColor class
|
|
73
|
-
- Maintains color fidelity across different systems
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: gitlab-mcp
|
|
3
|
-
description: Use this skill when working with the GitLab MCP server tools for merge requests, issues, repositories, pipelines, work items, webhooks, search, and related GitLab workflows.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# gitlab-mcp
|
|
7
|
-
|
|
8
|
-
GitLab MCP server providing 173 tools: 171 tools across 16 toolsets, plus `execute_graphql` and the always-available `discover_tools` meta-tool.
|
|
9
|
-
|
|
10
|
-
## Toolsets
|
|
11
|
-
|
|
12
|
-
| Toolset | Default | Enable with |
|
|
13
|
-
|---------------------------|---------|------------------------------------------------------|
|
|
14
|
-
| merge_requests (41 tools) | yes | - |
|
|
15
|
-
| issues (23 tools) | yes | - |
|
|
16
|
-
| repositories (7 tools) | yes | - |
|
|
17
|
-
| branches (6 tools) | yes | - |
|
|
18
|
-
| projects (8 tools) | yes | - |
|
|
19
|
-
| labels (5 tools) | yes | - |
|
|
20
|
-
| ci (2 tools) | yes | - |
|
|
21
|
-
| users (5 tools) | yes | - |
|
|
22
|
-
| pipelines (19 tools) | no | `USE_PIPELINE=true` or `GITLAB_TOOLSETS=pipelines` |
|
|
23
|
-
| milestones (9 tools) | no | `USE_MILESTONE=true` or `GITLAB_TOOLSETS=milestones` |
|
|
24
|
-
| wiki (10 tools) | no | `USE_GITLAB_WIKI=true` or `GITLAB_TOOLSETS=wiki` |
|
|
25
|
-
| releases (7 tools) | no | `GITLAB_TOOLSETS=releases` |
|
|
26
|
-
| tags (5 tools) | no | `GITLAB_TOOLSETS=tags` |
|
|
27
|
-
| workitems (18 tools) | no | `GITLAB_TOOLSETS=workitems` |
|
|
28
|
-
| webhooks (3 tools) | no | `GITLAB_TOOLSETS=webhooks` |
|
|
29
|
-
| search (3 tools) | no | `GITLAB_TOOLSETS=search` |
|
|
30
|
-
|
|
31
|
-
Enable all: `GITLAB_TOOLSETS=all`. Use `GITLAB_TOOLS` to enable individual tools outside their toolset. `discover_tools` can activate opt-in categories for the current session.
|
|
32
|
-
|
|
33
|
-
## Key Workflows
|
|
34
|
-
|
|
35
|
-
### Code Review (see references/code-review.md)
|
|
36
|
-
|
|
37
|
-
1. `list_merge_request_changed_files` - get file paths only (no diffs)
|
|
38
|
-
2. `get_merge_request_file_diff` - get diffs for 3-5 files per call (batch)
|
|
39
|
-
3. `create_merge_request_thread` or `create_draft_note` - leave review comments
|
|
40
|
-
4. `bulk_publish_draft_notes` - publish all drafts at once
|
|
41
|
-
|
|
42
|
-
### MR Lifecycle (see references/merge-requests.md)
|
|
43
|
-
|
|
44
|
-
`create_merge_request` -> review -> `approve_merge_request` -> `merge_merge_request`
|
|
45
|
-
|
|
46
|
-
### Issue Management (see references/issues.md)
|
|
47
|
-
|
|
48
|
-
`create_issue` -> `create_issue_link` -> `create_issue_note` -> `update_issue`
|
|
49
|
-
|
|
50
|
-
### Work Items (see references/work-items.md)
|
|
51
|
-
|
|
52
|
-
`list_work_items` -> `get_work_item` -> `update_work_item` -> `create_work_item_note`
|
|
53
|
-
|
|
54
|
-
### Webhooks & Search
|
|
55
|
-
|
|
56
|
-
- Webhooks: see references/webhooks.md
|
|
57
|
-
- Code search: see references/search.md
|
|
58
|
-
|
|
59
|
-
### File Operations
|
|
60
|
-
|
|
61
|
-
- Read: `get_file_contents`, `get_repository_tree`
|
|
62
|
-
- Write: `create_or_update_file` (single file), `push_files` (multiple files in one commit)
|
|
63
|
-
|
|
64
|
-
## Parameter Hints
|
|
65
|
-
|
|
66
|
-
- **project_id**: numeric ID or URL-encoded path (`group/subgroup/project`)
|
|
67
|
-
- **MR lookup**: provide `mergeRequestIid` OR `branchName` (not both)
|
|
68
|
-
- **list_issues**: default scope = created by current user. Use `scope: "all"` for all issues
|
|
69
|
-
- **list_merge_requests**: without project_id returns user's MRs across all projects
|
|
70
|
-
- **emoji reactions**: merge request, issue, and work item reaction tools use GitLab emoji names like `thumbsup`, `rocket`, or `eyes`
|
|
71
|
-
- **work items**: status and custom fields require GitLab Premium/Ultimate features
|
|
72
|
-
- **execute_graphql**: escape double quotes in query strings
|
|
73
|
-
|
|
74
|
-
## Destructive Tools (require caution)
|
|
75
|
-
|
|
76
|
-
`delete_issue`, `delete_label`, `delete_wiki_page`, `delete_group_wiki_page`, `delete_milestone`, `delete_release`, `delete_tag`, `delete_merge_request_note`, `delete_merge_request_discussion_note`, `delete_draft_note`, `delete_issue_link`, `delete_merge_request_emoji_reaction`, `delete_merge_request_note_emoji_reaction`, `delete_issue_emoji_reaction`, `delete_issue_note_emoji_reaction`, `delete_work_item_emoji_reaction`, `delete_work_item_note_emoji_reaction`, `merge_merge_request`, `push_files`
|
|
77
|
-
|
|
78
|
-
## Advanced
|
|
79
|
-
|
|
80
|
-
- **Dynamic discovery**: `discover_tools` lists and activates opt-in toolsets at runtime
|
|
81
|
-
- **GraphQL**: `execute_graphql` for queries not covered by REST tools
|
|
82
|
-
- **Zoekt search**: `search_code`, `search_project_code`, `search_group_code` (requires advanced search enabled)
|
|
83
|
-
- **Work Items**: GraphQL-based alternative to issues (Premium/Ultimate features)
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# GitLab MCP Examples
|
|
2
|
-
|
|
3
|
-
## Example 1: Review Merge Request Diffs
|
|
4
|
-
|
|
5
|
-
Review a merge request with multiple file changes. Good agent behavior:
|
|
6
|
-
|
|
7
|
-
- Use `list_merge_request_changed_files` to get the list of changed files (no diff).
|
|
8
|
-
- Use `get_merge_request_file_diff` with 3-5 files at a time to review diffs in batches.
|
|
9
|
-
- Use `get_merge_request_approval_state` to check who has approved.
|
|
10
|
-
- Use `create_merge_request_thread` to leave inline feedback on specific lines.
|
|
11
|
-
- Use `approve_merge_request` and `merge_merge_request` when the review passes.
|
|
12
|
-
|
|
13
|
-
## Example 2: Investigate Pipeline Failure
|
|
14
|
-
|
|
15
|
-
A CI pipeline failed on the main branch. Good agent behavior:
|
|
16
|
-
|
|
17
|
-
- Use `list_pipelines` to find the latest failed pipeline for the target branch.
|
|
18
|
-
- Use `list_pipeline_jobs` to identify which job failed.
|
|
19
|
-
- Use `get_pipeline_job_output` with pagination to read the failure logs.
|
|
20
|
-
- Use `get_pipeline_job` to inspect the job's environment and timing.
|
|
21
|
-
- Summarize the root cause and propose a fix based on the log output.
|
|
22
|
-
|
|
23
|
-
## Example 3: Create and Manage an Issue
|
|
24
|
-
|
|
25
|
-
Track a bug report discovered during development. Good agent behavior:
|
|
26
|
-
|
|
27
|
-
- Use `create_issue` with project key, summary, description, and labels.
|
|
28
|
-
- Use `create_issue_note` to add reproduction steps as a comment.
|
|
29
|
-
- Use `update_issue` to set assignee and priority.
|
|
30
|
-
- Use `create_branch` to start work from the issue branch naming convention.
|
|
31
|
-
- Use `create_merge_request` when the fix is ready, linking the MR to the issue.
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
# Code Review Workflow
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
Efficient code review uses a 2-step approach: list files first, then fetch diffs in batches.
|
|
6
|
-
This avoids loading the entire diff payload at once.
|
|
7
|
-
|
|
8
|
-
## Step 1: List Changed Files
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
list_merge_request_changed_files
|
|
12
|
-
project_id: "my-group/my-project"
|
|
13
|
-
mergeRequestIid: 42
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Returns file paths with metadata:
|
|
17
|
-
|
|
18
|
-
- `new_path`, `old_path` - file locations
|
|
19
|
-
- `new_file`, `deleted_file`, `renamed_file` - change type flags
|
|
20
|
-
|
|
21
|
-
Use `excluded_file_patterns` to skip generated files:
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
excluded_file_patterns: ["*.lock", "*.min.js", "dist/**"]
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Step 2: Batch Diff Retrieval
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
get_merge_request_file_diff
|
|
31
|
-
project_id: "my-group/my-project"
|
|
32
|
-
mergeRequestIid: 42
|
|
33
|
-
file_paths: ["src/api.ts", "src/utils.ts", "src/types.ts"]
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
**Batch 3-5 files per call** for optimal balance between API calls and response size.
|
|
37
|
-
For large MRs (20+ files), prioritize reviewing:
|
|
38
|
-
|
|
39
|
-
1. Source code files first (skip configs, lockfiles)
|
|
40
|
-
2. New files before modified files
|
|
41
|
-
3. Core logic before tests
|
|
42
|
-
|
|
43
|
-
## Step 3: Leave Comments
|
|
44
|
-
|
|
45
|
-
### Option A: Thread comments (visible immediately)
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
create_merge_request_thread
|
|
49
|
-
project_id: "my-group/my-project"
|
|
50
|
-
mergeRequestIid: 42
|
|
51
|
-
body: "Consider using a const here"
|
|
52
|
-
position:
|
|
53
|
-
new_path: "src/api.ts"
|
|
54
|
-
new_line: 15
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Reply to existing threads:
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
create_merge_request_discussion_note
|
|
61
|
-
project_id: "my-group/my-project"
|
|
62
|
-
mergeRequestIid: 42
|
|
63
|
-
discussion_id: "abc123"
|
|
64
|
-
body: "Good point, updated"
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Option B: Draft notes (batch review)
|
|
68
|
-
|
|
69
|
-
Create drafts, then publish all at once:
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
create_draft_note -> create_draft_note -> create_draft_note
|
|
73
|
-
... repeat for each comment ...
|
|
74
|
-
bulk_publish_draft_notes
|
|
75
|
-
project_id: "my-group/my-project"
|
|
76
|
-
mergeRequestIid: 42
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
This mimics GitHub's "pending review" pattern - all comments appear simultaneously.
|
|
80
|
-
|
|
81
|
-
## Step 4: Resolve Threads
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
resolve_merge_request_thread
|
|
85
|
-
project_id: "my-group/my-project"
|
|
86
|
-
mergeRequestIid: 42
|
|
87
|
-
discussion_id: "abc123"
|
|
88
|
-
resolved: true
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## Alternative: Full Diff Methods
|
|
92
|
-
|
|
93
|
-
For small MRs where batching is unnecessary:
|
|
94
|
-
|
|
95
|
-
- `get_merge_request_diffs` - all diffs at once (can be large)
|
|
96
|
-
- `list_merge_request_diffs` - paginated diffs
|
|
97
|
-
|
|
98
|
-
For comparing arbitrary refs:
|
|
99
|
-
|
|
100
|
-
- `get_branch_diffs` - compare two branches or commits
|
|
101
|
-
- `get_commit_diff` - single commit changes
|
|
102
|
-
|
|
103
|
-
## Version Comparison
|
|
104
|
-
|
|
105
|
-
Track review progress across force-pushes:
|
|
106
|
-
|
|
107
|
-
```
|
|
108
|
-
list_merge_request_versions -> get versions list
|
|
109
|
-
get_merge_request_version -> get specific version details
|
|
110
|
-
```
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
# Issue Management
|
|
2
|
-
|
|
3
|
-
## Create
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
create_issue
|
|
7
|
-
project_id: "my-group/my-project"
|
|
8
|
-
title: "Login page returns 500"
|
|
9
|
-
description: "Steps to reproduce..."
|
|
10
|
-
labels: "bug,critical"
|
|
11
|
-
assignee_ids: [123]
|
|
12
|
-
milestone_id: 5
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Read
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
get_issue -> single issue details
|
|
19
|
-
list_issues -> project issues (default: created by current user)
|
|
20
|
-
scope: "all" -> list ALL issues (not just current user's)
|
|
21
|
-
state: "opened" -> filter by state
|
|
22
|
-
labels: "bug" -> filter by labels
|
|
23
|
-
my_issues -> issues assigned to current user across all projects
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
**Important**: `list_issues` defaults to showing only issues created by the current user.
|
|
27
|
-
Pass `scope: "all"` to see all project issues.
|
|
28
|
-
|
|
29
|
-
## Update
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
update_issue
|
|
33
|
-
project_id: "my-group/my-project"
|
|
34
|
-
issue_iid: 10
|
|
35
|
-
state_event: "close" # or "reopen"
|
|
36
|
-
labels: "bug,resolved"
|
|
37
|
-
assignee_ids: [456]
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Patch-based description update (token-efficient)
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
update_issue_description_patch
|
|
44
|
-
project_id: "my-group/my-project"
|
|
45
|
-
issue_iid: 10
|
|
46
|
-
patch_type: "search_replace" # or "unified_diff"
|
|
47
|
-
patch: |
|
|
48
|
-
<<<<<<< SEARCH
|
|
49
|
-
Status: In progress
|
|
50
|
-
=======
|
|
51
|
-
Status: Ready for review
|
|
52
|
-
>>>>>>> REPLACE
|
|
53
|
-
dry_run: false
|
|
54
|
-
create_note: true
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Applies a small patch to the issue description without sending the full text.
|
|
58
|
-
Reduces token usage for AI agents editing long descriptions.
|
|
59
|
-
|
|
60
|
-
**Search/Replace format**:
|
|
61
|
-
```
|
|
62
|
-
<<<<<<< SEARCH
|
|
63
|
-
text to find
|
|
64
|
-
=======
|
|
65
|
-
replacement text
|
|
66
|
-
>>>>>>> REPLACE
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
**Options**:
|
|
70
|
-
- `dry_run: true` — preview changes without updating
|
|
71
|
-
- `create_note: true` — add a comment summarizing the change after update
|
|
72
|
-
- `allow_multiple: true` — allow multiple matches to all be replaced (search_replace only)
|
|
73
|
-
|
|
74
|
-
**Error handling**:
|
|
75
|
-
- Search text not found → fails with clear message
|
|
76
|
-
- Multiple matches (without `allow_multiple`) → fails with count
|
|
77
|
-
- Patch results in identical description → fails (no-op)
|
|
78
|
-
- Unified diff doesn't match → fails
|
|
79
|
-
|
|
80
|
-
## Delete
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
delete_issue -> permanently delete (destructive, cannot be undone)
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Issue Links
|
|
87
|
-
|
|
88
|
-
Link related issues:
|
|
89
|
-
|
|
90
|
-
```
|
|
91
|
-
create_issue_link
|
|
92
|
-
project_id: "my-group/my-project"
|
|
93
|
-
issue_iid: 10
|
|
94
|
-
target_project_id: "my-group/other-project"
|
|
95
|
-
target_issue_iid: 20
|
|
96
|
-
link_type: "relates_to" # or "blocks", "is_blocked_by"
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
```
|
|
100
|
-
list_issue_links -> list all linked issues
|
|
101
|
-
get_issue_link -> get specific link details
|
|
102
|
-
delete_issue_link -> remove a link
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
## Discussions & Notes
|
|
106
|
-
|
|
107
|
-
Add comments:
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
create_issue_note
|
|
111
|
-
project_id: "my-group/my-project"
|
|
112
|
-
issue_iid: 10
|
|
113
|
-
body: "Confirmed, this is a regression"
|
|
114
|
-
discussion_id: "abc123" # optional: reply to existing thread
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
```
|
|
118
|
-
update_issue_note -> edit a comment
|
|
119
|
-
list_issue_discussions -> list all discussion threads
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### Emoji reactions
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
list_issue_emoji_reactions -> list reactions on an issue
|
|
126
|
-
create_issue_emoji_reaction -> add reaction to an issue
|
|
127
|
-
delete_issue_emoji_reaction -> remove reaction from an issue
|
|
128
|
-
list_issue_note_emoji_reactions -> list reactions on an issue note or thread reply
|
|
129
|
-
create_issue_note_emoji_reaction -> add reaction to an issue note or thread reply
|
|
130
|
-
delete_issue_note_emoji_reaction -> remove reaction from an issue note or thread reply
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
Generic note creation (works for both issues and MRs):
|
|
134
|
-
|
|
135
|
-
```
|
|
136
|
-
create_note
|
|
137
|
-
project_id: "my-group/my-project"
|
|
138
|
-
noteable_type: "Issue" # or "MergeRequest"
|
|
139
|
-
noteable_iid: 10
|
|
140
|
-
body: "Note content"
|
|
141
|
-
```
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
# Merge Request Workflow
|
|
2
|
-
|
|
3
|
-
## Create
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
create_merge_request
|
|
7
|
-
project_id: "my-group/my-project"
|
|
8
|
-
title: "Add user authentication"
|
|
9
|
-
source_branch: "feature/auth"
|
|
10
|
-
target_branch: "main"
|
|
11
|
-
description: "Implements OAuth2 login flow"
|
|
12
|
-
assignee_id: 123
|
|
13
|
-
labels: "feature,auth"
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Read & Track
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
get_merge_request -> full MR details (by IID or branch name)
|
|
20
|
-
list_merge_requests -> list with filters (state, labels, author, etc.)
|
|
21
|
-
- without project_id: current user's MRs across all projects
|
|
22
|
-
- with project_id: MRs in that project
|
|
23
|
-
get_merge_request_conflicts -> check for merge conflicts
|
|
24
|
-
list_merge_request_pipelines -> list pipelines attached to an MR
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Update
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
update_merge_request
|
|
31
|
-
project_id: "my-group/my-project"
|
|
32
|
-
mergeRequestIid: 42
|
|
33
|
-
title: "Updated title"
|
|
34
|
-
state_event: "close" # or "reopen"
|
|
35
|
-
assignee_ids: [123, 456]
|
|
36
|
-
labels: "feature,reviewed"
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Review & Approve
|
|
40
|
-
|
|
41
|
-
See [code-review.md](code-review.md) for the full diff review workflow.
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
approve_merge_request -> approve
|
|
45
|
-
unapprove_merge_request -> retract approval
|
|
46
|
-
get_merge_request_approval_state -> check who approved, rules status
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Merge
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
merge_merge_request
|
|
53
|
-
project_id: "my-group/my-project"
|
|
54
|
-
mergeRequestIid: 42
|
|
55
|
-
should_remove_source_branch: true
|
|
56
|
-
squash: true
|
|
57
|
-
merge_when_pipeline_succeeds: true
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**Warning**: `merge_merge_request` is destructive - cannot be undone.
|
|
61
|
-
|
|
62
|
-
## Discussion Management
|
|
63
|
-
|
|
64
|
-
### Threads (inline code comments)
|
|
65
|
-
|
|
66
|
-
```
|
|
67
|
-
create_merge_request_thread -> new thread on a diff line
|
|
68
|
-
resolve_merge_request_thread -> mark thread resolved
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Notes (general comments)
|
|
72
|
-
|
|
73
|
-
```
|
|
74
|
-
create_merge_request_note -> add comment
|
|
75
|
-
get_merge_request_notes -> list all comments
|
|
76
|
-
update_merge_request_note -> edit comment
|
|
77
|
-
delete_merge_request_note -> remove comment
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### Discussion notes (replies in threads)
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
mr_discussions -> list all discussions
|
|
84
|
-
create_merge_request_discussion_note -> reply to thread
|
|
85
|
-
update_merge_request_discussion_note -> edit reply
|
|
86
|
-
delete_merge_request_discussion_note -> remove reply
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### Draft notes (pending review)
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
create_draft_note -> create pending comment
|
|
93
|
-
list_draft_notes -> see all drafts
|
|
94
|
-
update_draft_note -> edit before publishing
|
|
95
|
-
delete_draft_note -> discard
|
|
96
|
-
publish_draft_note -> publish single draft
|
|
97
|
-
bulk_publish_draft_notes -> publish all drafts at once
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### Emoji reactions
|
|
101
|
-
|
|
102
|
-
```
|
|
103
|
-
list_merge_request_emoji_reactions -> list reactions on an MR
|
|
104
|
-
create_merge_request_emoji_reaction -> add reaction to an MR
|
|
105
|
-
delete_merge_request_emoji_reaction -> remove reaction from an MR
|
|
106
|
-
list_merge_request_note_emoji_reactions -> list reactions on an MR note or thread reply
|
|
107
|
-
create_merge_request_note_emoji_reaction -> add reaction to an MR note or thread reply
|
|
108
|
-
delete_merge_request_note_emoji_reaction -> remove reaction from an MR note or thread reply
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
## Branch Comparison
|
|
112
|
-
|
|
113
|
-
Compare without an existing MR:
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
get_branch_diffs
|
|
117
|
-
project_id: "my-group/my-project"
|
|
118
|
-
from: "main"
|
|
119
|
-
to: "feature/auth"
|
|
120
|
-
```
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# Pipeline Operations
|
|
2
|
-
|
|
3
|
-
> **Opt-in toolset**: Enable with `USE_PIPELINE=true` or `GITLAB_TOOLSETS=pipelines`
|
|
4
|
-
|
|
5
|
-
## List & Inspect
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
list_pipelines -> list pipelines with filters (status, ref, source)
|
|
9
|
-
get_pipeline -> pipeline details (status, duration, coverage)
|
|
10
|
-
list_pipeline_jobs -> all jobs in a pipeline
|
|
11
|
-
list_pipeline_trigger_jobs -> trigger/bridge jobs (downstream pipelines)
|
|
12
|
-
get_pipeline_job -> single job details
|
|
13
|
-
get_pipeline_job_output -> job log output (supports pagination for large logs)
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Create & Control
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
create_pipeline -> trigger new pipeline for a branch/tag
|
|
20
|
-
project_id: "my-group/my-project"
|
|
21
|
-
ref: "main"
|
|
22
|
-
variables: [{ key: "DEPLOY_ENV", value: "staging" }]
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
retry_pipeline -> retry all failed jobs in a pipeline
|
|
27
|
-
cancel_pipeline -> cancel running pipeline
|
|
28
|
-
play_pipeline_job -> run a manual job
|
|
29
|
-
retry_pipeline_job -> retry a single failed job
|
|
30
|
-
cancel_pipeline_job -> cancel a single running job
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Artifacts
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
list_job_artifacts -> list files in a job's artifact archive
|
|
37
|
-
get_job_artifact_file -> get content of a single artifact file
|
|
38
|
-
download_job_artifacts -> download full artifact archive (zip) to local_path
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Deployments & Environments
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
list_deployments -> list deployments with filters
|
|
45
|
-
get_deployment -> deployment details
|
|
46
|
-
list_environments -> list project environments
|
|
47
|
-
get_environment -> environment details
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Common Patterns
|
|
51
|
-
|
|
52
|
-
### Check why a pipeline failed
|
|
53
|
-
|
|
54
|
-
1. `list_pipelines` with `status: "failed"` -> get pipeline ID
|
|
55
|
-
2. `list_pipeline_jobs` -> find failed job(s)
|
|
56
|
-
3. `get_pipeline_job_output` -> read error logs
|
|
57
|
-
|
|
58
|
-
### Retry failed pipeline
|
|
59
|
-
|
|
60
|
-
1. `retry_pipeline` -> retries all failed jobs
|
|
61
|
-
OR
|
|
62
|
-
2. `retry_pipeline_job` -> retry specific job only
|
|
63
|
-
|
|
64
|
-
### Download test results
|
|
65
|
-
|
|
66
|
-
1. `list_job_artifacts` -> find the test report file path
|
|
67
|
-
2. `get_job_artifact_file` -> read the report content
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Code Search
|
|
2
|
-
|
|
3
|
-
> **Opt-in toolset**: Enable with `GITLAB_TOOLSETS=search`
|
|
4
|
-
|
|
5
|
-
Search requires GitLab advanced search or exact code search/Zoekt support on the target instance.
|
|
6
|
-
|
|
7
|
-
## Scope
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
search_code -> search code across all accessible projects
|
|
11
|
-
search_project_code -> search within one project
|
|
12
|
-
search_group_code -> search within one group
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Pattern
|
|
16
|
-
|
|
17
|
-
Use the narrowest scope that can answer the question. Prefer `search_project_code` when the project is known, then broaden to group or instance-wide search only when needed.
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Webhook Operations
|
|
2
|
-
|
|
3
|
-
> **Opt-in toolset**: Enable with `GITLAB_TOOLSETS=webhooks`
|
|
4
|
-
|
|
5
|
-
## List Webhooks
|
|
6
|
-
|
|
7
|
-
Provide either `project_id` or `group_id`.
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
list_webhooks
|
|
11
|
-
project_id: "my-group/my-project"
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Inspect Recent Events
|
|
15
|
-
|
|
16
|
-
GitLab exposes recent webhook events for the past 7 days.
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
list_webhook_events
|
|
20
|
-
project_id: "my-group/my-project"
|
|
21
|
-
webhook_id: 123
|
|
22
|
-
summary: true
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Fetch full event details only after narrowing to the event ID.
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
get_webhook_event
|
|
29
|
-
project_id: "my-group/my-project"
|
|
30
|
-
webhook_id: 123
|
|
31
|
-
event_id: 456
|
|
32
|
-
```
|