-
Notifications
You must be signed in to change notification settings - Fork 0
Add brainstorming and issue-triage Claude Code skills #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| --- | ||
| name: brainstorming | ||
| description: 'Use before any creative work - designing features, adding API coverage, improving developer experience, or modifying SDK behavior. Explores intent, requirements, and design before implementation.' | ||
| --- | ||
|
|
||
| # Brainstorming Ideas Into Designs | ||
|
|
||
| ## Overview | ||
|
|
||
| Help turn ideas into fully formed designs and specs through natural collaborative dialogue. | ||
|
|
||
| Start by understanding the current SDK state and Montonio API coverage, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design in small sections (200-300 words), checking after each section whether it looks right so far. | ||
|
|
||
| ## The Process | ||
|
|
||
| **Understanding the idea:** | ||
|
|
||
| - Check out the current project state first (source files, tests, recent commits, Montonio API docs) | ||
| - Ask questions one at a time to refine the idea | ||
| - Prefer multiple choice questions when possible, but open-ended is fine too | ||
| - Only one question per message - if a topic needs more exploration, break it into multiple questions | ||
| - Focus on understanding: purpose, constraints, success criteria | ||
|
|
||
| **Exploring approaches:** | ||
|
|
||
| - Propose 2-3 different approaches with trade-offs | ||
| - Present options conversationally with your recommendation and reasoning | ||
| - Lead with your recommended option and explain why | ||
| - Consider: API coverage gaps, type safety, developer ergonomics, backwards compatibility, testability | ||
|
|
||
| **Presenting the design:** | ||
|
|
||
| - Once you believe you understand what you're building, present the design | ||
| - Break it into sections of 200-300 words | ||
| - Ask after each section whether it looks right so far | ||
| - Cover: public API surface, request/response models, error handling, JWT/auth concerns, testing strategy | ||
| - Be ready to go back and clarify if something doesn't make sense | ||
|
|
||
| ## After the Design | ||
|
|
||
| **Documentation:** | ||
|
|
||
| - Write the design document to `docs/plans/YYYY-MM-DD-<topic>-design.md` | ||
|
|
||
| ## Key Principles | ||
|
|
||
| - **One question at a time** - Don't overwhelm with multiple questions | ||
| - **Multiple choice preferred** - Easier to answer than open-ended when possible | ||
| - **YAGNI ruthlessly** - Remove unnecessary features from all designs | ||
| - **Explore alternatives** - Always propose 2-3 approaches before settling | ||
| - **Incremental validation** - Present design in sections, validate each | ||
| - **Be flexible** - Go back and clarify when something doesn't make sense | ||
| - **Backwards compatibility** - Consider impact on existing SDK consumers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| --- | ||
| name: issue-triage | ||
| description: 'Classify, prioritize, and label incoming GitHub issues. Identifies duplicates, suggests labels, and recommends affected areas of the codebase.' | ||
| --- | ||
|
|
||
| # Issue Triaging | ||
|
|
||
| ## Overview | ||
|
|
||
| Help classify, prioritize, and label incoming GitHub issues for the Montonio Java SDK. Produces a structured triage summary that can be applied directly to the issue. | ||
|
|
||
| ## Input | ||
|
|
||
| A GitHub issue number or URL. If not provided, list recent open untriaged issues. | ||
|
|
||
| ## Step 1: Gather Context | ||
|
|
||
| 1. **Read the issue** using `gh issue view` | ||
| 2. **Check for duplicates or related issues** by searching existing open and closed issues for similar keywords | ||
| 3. **Identify affected code** by searching the codebase for classes, methods, or packages mentioned in the issue | ||
|
|
||
| ## Step 2: Classify the Issue | ||
|
|
||
| Assign exactly one **type**: | ||
|
|
||
| | Type | When to use | | ||
| | --------------- | ------------------------------------------------------------ | | ||
| | `bug` | Something is broken or behaves incorrectly | | ||
| | `feature` | A wholly new capability that doesn't exist yet | | ||
| | `enhancement` | An improvement to existing functionality | | ||
| | `question` | A usage question or request for clarification | | ||
| | `documentation` | Missing or incorrect documentation | | ||
|
|
||
| ## Step 3: Assess Priority | ||
|
|
||
| Assign a **priority** based on impact and urgency: | ||
|
|
||
| | Priority | Criteria | | ||
| | ---------- | --------------------------------------------------------------- | | ||
| | `critical` | Breaks core payment flow, data loss, or security vulnerability | | ||
| | `high` | Significant functionality broken, no workaround | | ||
| | `medium` | Functionality impaired but workaround exists | | ||
| | `low` | Minor inconvenience, cosmetic, or nice-to-have | | ||
|
|
||
| ## Step 4: Identify Affected Areas | ||
|
|
||
| Map the issue to one or more areas of the SDK: | ||
|
|
||
| - **api-client** - HTTP client, request/response handling | ||
| - **payment-orders** - Payment order creation, lifecycle | ||
| - **payment-methods** - Payment method discovery | ||
| - **webhooks** - JWT validation, webhook/return handling | ||
| - **auth** - Authentication, JWT signing | ||
| - **models** - Request/response DTOs | ||
| - **configuration** - SDK configuration, builder | ||
| - **testing** - Test infrastructure, test utilities | ||
| - **build** - Gradle, CI/CD, publishing | ||
|
|
||
| ## Step 5: Present Triage Summary | ||
|
|
||
| Output the triage in this format: | ||
|
|
||
| ```markdown | ||
| ## Triage Summary | ||
|
|
||
| **Type:** <type> | ||
| **Priority:** <priority> | ||
| **Areas:** <comma-separated areas> | ||
| **Duplicates/Related:** <issue numbers or "None found"> | ||
|
|
||
| ### Analysis | ||
|
|
||
| <2-3 sentence summary of the issue and its impact> | ||
|
|
||
| ### Affected Code | ||
|
|
||
| - `<file path>` - <why it's relevant> | ||
| - ... | ||
|
|
||
| ### Suggested Labels | ||
|
|
||
| <list of GitHub labels to apply: type/<type>, priority/<priority>, area/<area>> | ||
|
|
||
| ### Recommended Next Steps | ||
|
|
||
| <1-3 actionable items for addressing the issue> | ||
| ``` | ||
|
|
||
| ## Step 6: Apply Labels (if requested) | ||
|
|
||
| If the user confirms, apply the suggested labels to the issue using `gh issue edit`. | ||
|
|
||
| ## Key Principles | ||
|
|
||
| - **Be specific** - Point to exact files and code paths, not vague areas | ||
| - **Check for duplicates first** - Avoid duplicate work by linking related issues | ||
| - **Prioritize by user impact** - Payment flow issues are always higher priority | ||
| - **Stay neutral** - Classify based on evidence in the issue, not assumptions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix MD013 on Line 28 and Line 29 to unblock CI.
Both lines exceed the configured 80-character limit, so
markdown-lintfails and blocks the workflow.Suggested patch
📝 Committable suggestion
🧰 Tools
🪛 GitHub Check: markdown-lint
[failure] 29-29: Line length
CLAUDE.md:29:81 MD013/line-length Line length [Expected: 80; Actual: 277] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md013.md
[failure] 28-28: Line length
CLAUDE.md:28:81 MD013/line-length Line length [Expected: 80; Actual: 218] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md013.md
🤖 Prompt for AI Agents