Open issue

From Synthesys-Lab/agentize · View interactive version

Open issue is an AI agent skill from the GitHub repository Synthesys-Lab/agentize. Create GitHub issues from conversation context with proper formatting and tag selection

How to use this skill

Skill file

Open Issue

This skill instructs AI agents on how to create GitHub issues from conversation context

with meaningful titles, proper formatting, and appropriate tag selection. The AI agent

should analyze the conversation, extract issue details, and confirm with the user before

creating the issue.

Issue Format

GitHub issues created by this skill must follow this exact structure:

# [prefix][tag]: A Brief Summary of the Issue

## Description

Provide a detailed description of this issue, including the related modules and the
problem statement.

## Steps to Reproduce

(Optional, only for bug reports)
Provide a minimized step to reproduce the bug.

## Proposed Solution

(Optional, but mandatory for [plan] issues)
Provide a detailed proposed solution or plan to address the issue.

- The plan SHOULD NOT include code audits! Code audits are part of the result of planning.
- The plan SHOULD include the related files to be modified, added, or deleted.

## Related PR

(Optional, but mandatory when Proposed Solution is provided)
This can be a placeholder upon creating the issue, however, once the PR is created,
update the PR# here.

Tag Selection

A git-msg-tags.md file should appear in {ROOT_PROJ}/docs/git-msg-tags.md which

defines the tags related to the corresponding modules or modifications. The AI agent

MUST refer to this file to select the appropriate tag for the issue title.

If the file does not exist, reject the issue creation and ask the user to provide a

list of tags in docs/git-msg-tags.md.

Tag Prefix Logic

The AI agent must determine which prefix and tag combination to use based on the issue type:

Use [plan][tag] when:

Use standalone [tag] when:

Use [bug report], [feature request], or [improvement] when:

Inputs

The open-issue skill takes the following inputs:

  1. For [plan] issues: A complete implementation plan from the plan-guideline skill
  1. For other issues: Context from conversation about bugs, feature requests, or improvements
  1. Optional flags (via arguments):

Workflow for AI Agents

When this skill is invoked, the AI agent MUST follow these steps:

0. Parse Arguments

Check if optional flags are provided in arguments:

AUTO_MODE=false
UPDATE_MODE=false
UPDATE_ISSUE_NUMBER=""
PLAN_FILE=""

while [ $# -gt 0 ]; do
  if [ "$1" = "--auto" ]; then
    AUTO_MODE=true
  elif [ "$1" = "--update" ]; then
    UPDATE_MODE=true
    shift
    UPDATE_ISSUE_NUMBER="$1"
  elif [ -f "$1" ]; then
    PLAN_FILE="$1"
  fi
  shift
done

1. Context Analysis Phase

Review the conversation to determine issue type and extract details:

For [plan] issues:

For other issues (bug reports, feature requests, improvements):

Context signals for issue type:

2. Tag Selection Phase

3. Issue Draft Construction

Build the issue following the format specification:

Title:

Description section:

Steps to Reproduce section (only for bug reports):

Proposed Solution section (mandatory for [plan] issues):

For [plan] issues: Use the complete plan output from the plan-guideline skill:

For other issue types without a formal plan:

Related PR section (when Proposed Solution exists):

4. User Confirmation Phase

CRITICAL: The AI agent MUST display the complete issue draft to the user

and wait for explicit confirmation before creating the issue, UNLESS AUTO_MODE=true.

If AUTO_MODE=false (default):

Present the draft in a clear format:

I've prepared this GitHub issue:

---
[Full issue content here]
---

Should I create this issue?

If AUTO_MODE=true (ultra-planner only):

5. GitHub Issue Creation or Update

Once confirmed, create or update the issue using the GitHub CLI:

If UPDATE_MODE=false (default - create new issue):

gh issue create --title "TITLE_HERE" --body-file - <<'EOF'
BODY_CONTENT_HERE
EOF

If UPDATE_MODE=true (update existing issue):

gh issue edit "$UPDATE_ISSUE_NUMBER" --title "TITLE_HERE" --body-file - <<'EOF'
BODY_CONTENT_HERE
EOF

Important:

6. Error Handling

Handle common error scenarios gracefully:

Missing git-msg-tags.md:

Cannot create issue: docs/git-msg-tags.md not found.
Please create this file with your project's tag definitions.

GitHub CLI not authenticated:

GitHub CLI is not authenticated. Please run:
  gh auth login

No conversation context:

I don't have enough context to create an issue. Could you please provide:
- What is the issue about?
- Is this a bug, feature request, or improvement?
- Any additional details or proposed solutions?

Issue creation failed:

Failed to create GitHub issue: [error message]
Please check your GitHub CLI configuration and try again.

Issue update failed (--update mode):

Failed to update GitHub issue #N: [error message]

Possible causes:
- Issue #N does not exist
- Insufficient permissions to edit the issue
- Network or GitHub CLI configuration issues

Please check the issue number and try again.

Ownership

The AI agent SHALL NOT claim authorship or co-authorship of the GitHub issue.

The issue is created on behalf of the user, who is FULLY responsible for its content.

Do not add any "Created by AI" or similar attributions to the issue body unless

explicitly requested by the user.

Examples

Example 1: Plan Issue with Feature Tag

Context: User wants to add a new feature. A plan was created using the plan-guideline skill.

Issue:

# [plan][feat]: Add new feature name

## Description

Brief description of what the feature does and why it's needed.

## Proposed Solution

[The complete plan output from plan-guideline skill is inserted here]

See the `plan-guideline` skill documentation for detailed examples of plan structure,
including Goal, Codebase Analysis, Interface Design, Test Strategy, and Implementation Steps.

## Related PR

TBD - will be updated when PR is created

Example 2: Bug Report

Context: User reports that pre-commit hooks are not running tests.

Issue:

# [bug report]: Pre-commit hook fails to run tests

## Description

The pre-commit hook defined in `.git/hooks/pre-commit` is not executing the
test suite before allowing commits. This allows broken code to be committed.

## Steps to Reproduce

1. Make changes to any Python file in `.claude/skills/`
2. Run `git add .`
3. Run `git commit -m "test"`
4. Observe that no tests are executed before the commit succeeds

## Related PR

TBD

Example 3: Feature Request

Context: User requests support for custom plugin architecture.

Issue:

# [feature request]: Add support for custom plugins

## Description

Add a plugin system that allows users to extend agentize functionality with
custom plugins. This would enable community contributions and custom workflows
without modifying core code.

Example 4: Update Existing Issue (--update mode)

Context: Ultra-planner created a placeholder issue #42, then consensus plan is ready to update that same issue.

Invocation:

open-issue --update 42 <plan-file>

Behavior:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.