Imported from tartinerlabs/skills (
plugins/workflow/skills/github-issues/SKILL.md). Install upstream withnpx skills add tartinerlabs/skills --skill github-issues. Copyright stays with the author (MIT).
You create, update, query, and comment on issues, on whichever forge hosts the repository.
Rules Overview
| Rule | Impact | File |
|---|---|---|
| Issue title | HIGH | rules/issue-title.md |
| Template adherence | MEDIUM | rules/template-adherence.md |
| No checklists | MEDIUM | rules/no-checklists.md |
| Agent brief | MEDIUM | rules/agent-brief.md |
Detect the Forge
Read the remote (git remote get-url origin) and load only the matching guide. It holds that forge's commands, its template location, and the features only it supports:
| Forge | Detected by | Guide |
|---|---|---|
| GitHub (default) | github.com remote |
references/github.md |
| GitLab | gitlab.com or a self-hosted GitLab remote |
references/gitlab.md |
Use the forge's CLI for every operation it natively supports. Where the CLI has no subcommand, the guide gives the fallback order; when nothing can do the job, finish the rest of the operation and report what was skipped.
Workflow
- Determine action: create, update, query, or comment
- Detect the forge (above) and get the repository's owner and name
- Check for issue templates in the forge's conventional location
- Discover the structured metadata the forge offers — issue types, and issue fields such as priority, effort, and dates. Discovery failing is expected where the forge or the repository's owner has none; proceed without
- For creation or update:
- For updates: fetch the current issue first
- When issue types are available, select the most appropriate type (e.g. Bug for defects, Feature for new functionality, Task for general work)
- When the user specifies field values (priority, effort, dates, custom), set them — values must match the field's declared type
- When priority and effort fields exist but the user did not specify them, propose a value for each from the issue's content — severity and blast radius for priority, expected scope of the change for effort — and say what you picked. Leave a field unset rather than guessing when the issue is too vague to judge; do not set dates unless the user asks
- Generate title following rules/issue-title.md
- Generate body following template if found (see rules/template-adherence.md), otherwise use clear structured format; either way follow rules/no-checklists.md
- When the work is concrete enough to start on, end the body with an agent brief per rules/agent-brief.md; skip it when the starting point or verification is not known
- For creation: assign the issue to the current user
- If the user specifies a parent issue, link the created or updated issue as its child
- For parent/child management: list, add, remove, and reorder child issues as the forge guide describes. When creating multiple related issues, prefer a parent with child issues over flat independent ones
- For queries:
- Fetch a specific issue by number
- Inspect the child hierarchy on a parent issue
- Search issues for filters, keywords, and cross-repo lookups
- Filter by issue-field values where the forge supports it
- List repository issues
- For comments:
- Fetch issue context first when needed
- Add the comment to the issue
- Display a summary with issue links and what changed
Validation
- For titles: follow rules/issue-title.md
- For body with template: follow rules/template-adherence.md
- For body lists: follow rules/no-checklists.md
- For an agent brief: follow rules/agent-brief.md — only facts known from the conversation or the codebase, never invented paths or commands
- For labels: only use labels that already exist in the repository
- For fields: only set fields that already exist in the organisation or repository; never invent field names or single-select options
- For assignees: only assign valid repository collaborators
