issue-classification
Configure issue classification for ADWs to route work to the correct templates. Use when setting up automatic classification of GitHub issues into chores, bugs, and features.
What this skill does
# Issue Classification
Guide for configuring automatic classification of issues into problem classes.
## When to Use
- Setting up ADW issue routing
- Improving classification accuracy
- Handling edge cases in classification
- Designing custom problem classes
## Why Classification Matters
Classification routes issues to the correct template:
```text
Issue: "Login button not working"
↓
Classification: /bug
↓
Template: Bug fix plan with root cause analysis
```
Without classification, agents don't know which workflow to use.
## Standard Problem Classes
### Chore
Maintenance tasks, updates, cleanup:
```text
Examples:
- "Update dependencies to latest"
- "Clean up unused imports"
- "Rename function to follow convention"
- "Add missing documentation"
Signals:
- "update", "upgrade", "clean", "remove", "rename"
- "documentation", "comment", "format"
- No user-facing change
- Maintenance in nature
```
### Bug
Defects, errors, unexpected behavior:
```text
Examples:
- "Login form submits twice"
- "404 error on profile page"
- "Data not saving correctly"
- "Crash when clicking button"
Signals:
- "error", "bug", "fix", "broken", "crash"
- "not working", "fails", "incorrect"
- Something that worked before now doesn't
- Unexpected behavior
```
### Feature
New functionality, enhancements:
```text
Examples:
- "Add dark mode toggle"
- "Implement user authentication"
- "Create new dashboard page"
- "Add export to CSV"
Signals:
- "add", "create", "implement", "new"
- "enhance", "improve", "extend"
- User-facing new capability
- Didn't exist before
```
## Classification Command
### Basic Structure
```markdown
# Issue Classification
Analyze the issue and respond with exactly one of:
- `/chore` - maintenance, updates, cleanup
- `/bug` - defects, errors, unexpected behavior
- `/feature` - new functionality, enhancements
If the issue doesn't fit any category, respond with `0`.
## Issue
$ARGUMENTS
```
### Enhanced with Examples
```markdown
# Issue Classification
Classify the GitHub issue into one of these categories.
## Categories
### /chore
- Maintenance and cleanup tasks
- Dependency updates
- Refactoring without behavior change
- Documentation improvements
Examples: "update deps", "clean up code", "rename variables"
### /bug
- Something broken that should work
- Errors, crashes, incorrect behavior
- Regressions from previous functionality
Examples: "button doesn't work", "error on page", "crash when..."
### /feature
- New functionality
- Enhancements to existing features
- User-facing improvements
Examples: "add dark mode", "create API endpoint", "implement..."
## Rules
1. Respond with exactly one: /chore, /bug, /feature, or 0
2. If unclear, prefer /chore (safest default)
3. If multiple types, choose the primary purpose
## Issue
$ARGUMENTS
```
## Classification Accuracy
### Testing Classification
```bash
# Test chores
claude -p "/classify-issue 'Update all dependencies'"
# Expected: /chore
claude -p "/classify-issue 'Clean up unused imports'"
# Expected: /chore
# Test bugs
claude -p "/classify-issue 'Login form submits twice on enter'"
# Expected: /bug
claude -p "/classify-issue '404 error on profile page'"
# Expected: /bug
# Test features
claude -p "/classify-issue 'Add dark mode toggle'"
# Expected: /feature
claude -p "/classify-issue 'Implement OAuth with Google'"
# Expected: /feature
```
### Handling Edge Cases
**Multi-type issues:**
```text
"Fix the broken login AND add remember me feature"
Approach: Classify by primary purpose
If equal: Request issue be split
```
**Unclear issues:**
```text
"Improve the performance"
Approach: Default to /chore
Rationale: Safest, lowest risk
```
**Not classifiable:**
```text
"Question about the API"
Approach: Return 0
Action: Human triage required
```
## Custom Problem Classes
For specialized workflows, extend the base classes:
### Example: Refactor Class
```markdown
### /refactor
- Code restructuring
- Architecture changes
- Performance optimization
- No functional change
Examples: "refactor auth module", "optimize queries", "restructure..."
```
### Example: Security Class
```markdown
### /security
- Vulnerability fixes
- Security improvements
- Access control changes
- Compliance requirements
Examples: "fix XSS vulnerability", "add rate limiting", "update auth..."
```
## Integration with ADW
In your ADW orchestrator:
```python
def classify_and_route(issue):
# Classify
result = execute_agent("classifier", issue)
issue_type = parse_classification(result)
# Route to template
if issue_type == "/chore":
return execute_agent("planner", "/chore", issue)
elif issue_type == "/bug":
return execute_agent("planner", "/bug", issue)
elif issue_type == "/feature":
return execute_agent("planner", "/feature", issue)
else:
return mark_for_triage(issue)
```
## Model Selection
For classification, use Haiku:
| Model | Speed | Cost | Accuracy |
| --- | --- | --- | --- |
| Haiku | Fast | Low | Good for simple decisions |
| Sonnet | Medium | Medium | Better for nuanced cases |
Haiku is usually sufficient since classification is a simple decision.
## Quality Metrics
Track classification quality:
- **Accuracy**: % correctly classified
- **Confusion matrix**: Which misclassifications happen
- **Override rate**: How often humans change classification
## Related Memory Files
- @piter-framework.md - Classification is the "I" in PITER
- @adw-anatomy.md - How classification fits in ADW
- @template-engineering.md - Templates for each class
## Version History
- **v1.0.0** (2025-12-26): Initial release
---
## Last Updated
**Date:** 2025-12-26
**Model:** claude-opus-4-5-20251101
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.