Positron issue creator

From Activer007/ordinary-claude-skills · View interactive version

Positron issue creator is an AI agent skill from the GitHub repository Activer007/ordinary-claude-skills. This skill should be used when drafting GitHub issues for the Positron repository. It provides workflows for searching duplicates, selecting appropriate labels, gathering complete context through questioning, and writing terse, fluff-free issues that precisely describe what is needed or wrong. The s

How to use this skill

Skill file

Positron Issue Creator

Purpose

This skill guides the drafting of high-quality GitHub issues for the Positron IDE repository. It ensures issues are:

When to Use This Skill

Use this skill when:

Do NOT use this skill for:

GitHub Access Policy

Read operations (ALLOWED):

Write operations (NOT ALLOWED):

Instead: Prepare issues in markdown files or clipboard-ready format for manual user submission.

Core Workflow

Important: This skill prepares issues for manual submission. It does NOT automatically create GitHub issues. The user maintains full control over submitting to GitHub.

Follow this workflow for every issue drafting request:

1. Gather Complete Context

Before drafting anything, ensure all necessary information is available. Use iterative questioning if needed.

For Bug Reports, obtain:

For Feature Requests, obtain:

Ask specific questions when information is missing:

Never make assumptions. If unclear, ask rather than guess.

2. Search for Duplicates

Use scripts/search_duplicates.sh to search for existing issues and discussions:

cd /path/to/positron/.claude/skills/positron-issue-creator
./scripts/search_duplicates.sh "keywords from issue"

Review results carefully:

Present findings to user:

If duplicate found:

If no duplicates:

3. Select Appropriate Labels

Use scripts/fetch_labels.sh to retrieve current repository labels:

cd /path/to/positron/.claude/skills/positron-issue-creator
./scripts/fetch_labels.sh

Choose labels based on:

Area labels (select 1-2):

Type label (select 1):

Other considerations:

4. Draft the Issue

Use the templates in references/issue_templates.md as starting points, but adapt to the specific issue.

Load templates when needed:

Follow writing guidelines from references/writing_guidelines.md:

Core principles:

  1. Be terse - Every word serves a purpose
  2. Be fluff-free - No apologies, preambles, or unnecessary politeness
  3. Be specific - Exact versions, precise steps, concrete details
  4. Be direct - Get to the point immediately

Title guidelines:

Body structure:

  1. What - The issue itself (1 sentence)
  2. Why - Impact/context (1-2 sentences if not obvious)
  3. How - Steps or proposed solution (bullet points)
  4. Details - System info, errors, screenshots (as needed)

Example bug report:

Title: Console freezes when printing dataframes with 100k+ rows

The console becomes unresponsive when printing large dataframes.

## Steps to reproduce

1. Create dataframe: `df = pd.DataFrame({'a': range(100000)})`
2. Print it: `print(df)`
3. Console freezes, UI becomes unresponsive

## System details

- Positron 2024.10.0 Build 123
- macOS 14.5
- Python 3.11.6

## Error messages

Developer Console shows: "Maximum call stack size exceeded"

Example feature request:

Title: Add keyboard shortcut to insert markdown cell in notebooks

Currently inserting markdown cells requires clicking the dropdown menu.
Keyboard shortcut would improve notebook authoring workflow.

## Proposed behavior

- Add keyboard shortcut (e.g., Cmd+M or Ctrl+M)
- Should work when focus is in notebook
- Should insert cell below current cell

## Context

Similar to Jupyter's 'M' key in command mode. Notebook workflows
frequently alternate between code and markdown cells.

Common anti-patterns to avoid:

Review checklist before presenting:

5. Present Draft to User

Show the complete drafted issue including:

Ask user: "Does this accurately capture the issue? Would you like any changes before I create it?"

Allow for iteration:

Make requested changes and show updated draft.

6. Prepare Issue for Manual Submission

Once user approves the draft, offer options for how they want to use it:

Ask the user: "How would you like me to prepare this issue?"

Option 1: Save to Markdown File

Create a markdown file with all issue details:

# Create file with timestamp in name for uniqueness
cat > "positron-issue-$(date +%Y%m%d-%H%M%S).md" <<'EOF'
---
title: Issue title here
labels: area: console, Bug
repository: posit-dev/positron
---

Full issue body here
with multiple lines
EOF

After saving:

Option 2: Format for Clipboard

Present the issue in a format ready to copy:

**Title:**
Issue title here

**Labels:**
area: console, Bug

**Body:**
Full issue body here
with multiple lines

---
Create this issue at: https://github.com/posit-dev/positron/issues/new

After presenting:

Important Guidelines

Duplicate Detection

Be thorough but not pedantic:

When uncertain:

Context Gathering

Never guess or assume:

Be patient with iteration:

Writing Style

Optimize for scanability:

Respect reader's time:

Be precise:

Special Cases

Security Issues

If user describes a security vulnerability:

  1. Do NOT create public issue
  2. Inform user: "This appears to be a security issue. Please report it privately to security@posit.co instead of creating a public issue"
  3. Do NOT proceed with issue creation

Documentation Issues

Treat as feature requests but focus on:

Label with Documentation type.

Performance Issues

Use bug report template but emphasize:

Label with Performance type.

Multiple Related Issues

If user describes several related but distinct issues:

  1. Identify each separate issue
  2. Explain to user: "This sounds like 3 separate issues. I'll help create each one individually."
  3. Create issues one at a time
  4. Cross-reference in issue bodies if related

Scripts Reference

`scripts/fetch_labels.sh`

Retrieves all repository labels for categorization.

Usage:

./scripts/fetch_labels.sh          # Human-readable output
./scripts/fetch_labels.sh --json   # JSON output for parsing

`scripts/search_duplicates.sh`

Searches for potential duplicate issues and discussions.

Usage:

./scripts/search_duplicates.sh "search terms"
./scripts/search_duplicates.sh "search terms" --limit 30

Returns:

References

Load these reference documents when drafting issues:

Common Mistakes to Avoid

  1. Creating duplicate issues - Always search first, show results to user
  2. Incomplete information - Ask questions until all details are gathered
  3. Verbose writing - Cut all fluff, be direct and specific
  4. Vague titles - Titles should tell the complete story
  5. Multiple issues in one - Split into separate, focused issues
  6. Assuming context - Ask user to confirm unclear details
  7. Skipping labels - Always fetch and apply appropriate labels
  8. Preparing without user approval - Always show draft and get confirmation before preparing files

Success Criteria

A successful issue draft means:

Workflow Summary

1. Gather Context
   ↓
   Ask specific questions until all info available
   ↓
2. Search Duplicates
   ↓
   Run scripts/search_duplicates.sh
   ↓
   Show results to user, confirm not duplicate
   ↓
3. Select Labels
   ↓
   Run scripts/fetch_labels.sh
   ↓
   Choose appropriate area and type labels
   ↓
4. Draft Issue
   ↓
   Use templates from references/
   ↓
   Follow writing guidelines (terse, specific, direct)
   ↓
5. Present Draft
   ↓
   Show complete draft to user
   ↓
   Iterate based on feedback
   ↓
6. Prepare for Submission
   ↓
   Offer markdown file or clipboard format
   ↓
   Save to file OR format for copying
   ↓
   Provide GitHub link and submission instructions

Remember: The goal is to draft clear, actionable issues that respect both the reporter's intent and the development team's time. The user maintains full control over the final submission to GitHub.

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.