Input Classification System
1. Skill Name
Input Classification System
Identifier: input-classification-system
2. Version
1.0
This is the initial release of the Input Classification System skill.
3. Skill Purpose
Provide a deterministic, rule-based classification system that enables the Main Agent to categorize clarified user input into exactly one primary task category, assign execution complexity, assess risk level, and determine confidence score before any task decomposition or execution planning occurs.
Measurable Objectives:
- Achieve 100% single-category classification (no ambiguous multi-category outputs)
- Provide deterministic tie-breaking for all edge cases
- Assign complexity levels using measurable thresholds
- Calculate confidence scores with explicit formulas
- Route ambiguous inputs to clarification with specific triggers
4. What This Skill Does
- Classifies clarified input into exactly one primary category from a fixed list
- Assigns complexity level based on measurable operation counts and time estimates
- Calculates risk level based on impact scope and reversibility criteria
- Computes confidence score using explicit scoring factors
- Determines if input requires additional clarification
- Sets the appropriate state transition after classification
- Applies deterministic tie-breaking logic when multiple categories match
- Validates that input has been clarified before classification
- Logs all classification decisions with full context
- Provides secondary tags for additional context (maximum 3)
- Enforces boundary definitions between categories
- Triggers escalation for high-risk or low-confidence classifications
- Prevents misclassification through explicit rules
- Outputs structured ClassificationResult for downstream systems
- Maintains audit trail for all classification decisions
5. What This Skill Must Not Do
- Must not perform task decomposition or breakdown
- Must not solve or execute any tasks
- Must not create execution plans or strategies
- Must not apply emotional reasoning or sentiment analysis
- Must not assign multiple primary categories to a single input
- Must not overlap with Clarification System responsibilities
- Must not modify the original input content
- Must not make assumptions about user intent without explicit indicators
- Must not skip complexity assessment for any classification
- Must not bypass risk assessment for any classification
- Must not assign confidence scores below threshold without escalation
- Must not classify inputs that have not been clarified first
- Must not use probabilistic or non-deterministic classification methods
- Must not ignore tie-breaking rules when categories conflict
- Must not proceed to execution without setting state transition
6. Activation Conditions
This skill activates when ALL of the following conditions are met:
- Clarification Complete: Input has been processed by the Clarification System and marked as clarified
- No Pending Questions: No outstanding clarification questions remain
- Classification Not Yet Performed: Input has not been previously classified
- Valid Input Structure: Input contains recognizable task indicators
Pre-Activation Checklist:
Do NOT activate if:
- Input is still being clarified
- Input is a clarification question itself
- Input is a response to a clarification question
- Input has already been classified
7. Classification Categories
The following 15 categories form the fixed classification list:
| Category |
Code |
Description |
| CODE_GENERATION |
CG |
Writing, modifying, or generating source code |
| CODE_REVIEW |
CR |
Reviewing, analyzing, or auditing existing code |
| DEBUGGING |
DB |
Identifying and fixing bugs, errors, or issues |
| DATA_ANALYSIS |
DA |
Analyzing, processing, or visualizing data |
| FILE_OPERATIONS |
FO |
Reading, writing, moving, or managing files |
| DOCUMENTATION |
DC |
Creating or updating documentation |
| REFACTORING |
RF |
Restructuring code without changing behavior |
| TESTING |
TS |
Writing, running, or managing tests |
| DEPLOYMENT |
DP |
Deploying applications or infrastructure |
| RESEARCH |
RS |
Investigating, searching, or gathering information |
| CONFIGURATION |
CF |
Setting up or modifying configurations |
| COMMUNICATION |
CM |
Drafting messages, emails, or communications |
| CONVERSION |
CV |
Transforming data or files between formats |
| ANALYSIS |
AN |
General analysis not covered by other categories |
| PLANNING |
PL |
Creating plans, strategies, or roadmaps |
Category Priority Order (for tie-breaking):
- DEBUGGING (highest - immediate attention needed)
- DEPLOYMENT
- CODE_GENERATION
- REFACTORING
- TESTING
- CODE_REVIEW
- DATA_ANALYSIS
- CONFIGURATION
- FILE_OPERATIONS
- CONVERSION
- DOCUMENTATION
- RESEARCH
- ANALYSIS
- COMMUNICATION
- PLANNING (lowest)
8. Category Boundary Definitions
CODE_GENERATION vs CODE_REVIEW
- CODE_GENERATION: Input requests creating new code or modifying existing code
- CODE_REVIEW: Input requests analysis of existing code without modifications
- Boundary: If modification is implied, classify as CODE_GENERATION
CODE_GENERATION vs REFACTORING
- CODE_GENERATION: Creating new functionality or features
- REFACTORING: Restructuring existing code without new functionality
- Boundary: "Improve performance" without feature change = REFACTORING
DEBUGGING vs CODE_GENERATION
- DEBUGGING: Input explicitly mentions errors, bugs, or failures
- CODE_GENERATION: Input requests new features without error context
- Boundary: "Fix this bug" = DEBUGGING; "Add error handling" = CODE_GENERATION
DATA_ANALYSIS vs ANALYSIS
- DATA_ANALYSIS: Input involves data processing, statistics, or visualization
- ANALYSIS: Input involves general analysis of concepts, requirements, or situations
- Boundary: If data files/sets are mentioned = DATA_ANALYSIS
FILE_OPERATIONS vs CONVERSION
- FILE_OPERATIONS: Input requests file management (read, write, move, delete)
- CONVERSION: Input requests format transformation between file types
- Boundary: "Convert X to Y format" = CONVERSION; "Read file X" = FILE_OPERATIONS
RESEARCH vs ANALYSIS
- RESEARCH: Input requests information gathering or investigation
- ANALYSIS: Input requests evaluation or assessment of known information
- Boundary: "Find information about X" = RESEARCH; "Evaluate X" = ANALYSIS
TESTING vs CODE_GENERATION
- TESTING: Input specifically requests test creation or test execution
- CODE_GENERATION: Input requests production code
- Boundary: "Write tests for X" = TESTING; "Write X with tests" = CODE_GENERATION (primary)
CONFIGURATION vs DEPLOYMENT
- CONFIGURATION: Input requests setup of settings or configurations
- DEPLOYMENT: Input requests deployment to environments or infrastructure
- Boundary: Local setup = CONFIGURATION; Remote/environment setup = DEPLOYMENT
9. Single-Primary-Category Rule
Rule: Every classified input MUST have exactly one primary category.
Enforcement Rules
- No Multi-Category Output: Never output multiple primary categories
- Tie-Breaking Required: When multiple categories match, apply tie-breaking logic
- Category Exclusivity: Primary category is mutually exclusive with other primary categories
Tie-Breaking Logic
When input matches multiple categories, apply in order:
Step 1: Keyword Dominance
- Count explicit keyword matches for each candidate category
- Category with highest keyword count wins
- If tied, proceed to Step 2
Step 2: Action Verb Analysis
- Identify primary action verb in input
- Map action verb to category using verb-to-category mapping
- If still tied, proceed to Step 3
Step 3: Priority Order
- Apply category priority order (see Section 7)
- Higher priority category wins
Step 4: Default Fallback
- If all steps fail, default to ANALYSIS category
Tie-Breaking Example
Input: "Debug and fix the error in the authentication code, then add logging"
- Keywords: DEBUGGING (debug, fix, error), CODE_GENERATION (add, logging)
- Action Verb: "Debug" (primary action) → DEBUGGING
- Result: DEBUGGING (primary), secondary_tags: [CODE_GENERATION]
10. Secondary Tag Rules
Secondary tags provide additional context without affecting primary routing.
Rules
- Maximum 3 Tags: No more than 3 secondary tags per classification
- No Primary Duplicate: Secondary tags cannot duplicate primary category
- Related Categories Only: Secondary tags must be from the fixed category list
- Relevance Threshold: Only add tags with >50% keyword match confidence
Secondary Tag Selection Process
- Identify all categories with keyword matches (excluding primary)
- Calculate relevance score for each (0.0-1.0)
- Sort by relevance score (descending)
- Select top 3 with score > 0.5
- Add to ClassificationResult
When to Apply Secondary Tags
- Input contains multiple distinct sub-tasks
- Input references multiple technology domains
- Input implies follow-up work in other categories
- Input has context from previous interactions in different categories
When NOT to Apply Secondary Tags
- Input is single-focused with no additional context
- Relevance scores are below threshold (0.5)
- Would duplicate primary category
- Would exceed 3-tag limit
Secondary Tag Examples
| Input |
Primary |
Secondary Tags |
| "Debug the API and update the docs" |
DEBUGGING |
[DOCUMENTATION] |
| "Refactor the auth module and add tests" |
REFACTORING |
[TESTING] |
| "Analyze sales data and create a report" |
DATA_ANALYSIS |
[DOCUMENTATION, COMMUNICATION] |
| "Fix this bug" |
DEBUGGING |
[] |
Classification Models Reference
For detailed complexity, risk, confidence, and state transition models, see classification-models.md.
For system integration, failure conditions, logging, and examples, see system-integration.md.
1---
2name: input-classification-system
3description: Deterministic rule-based system for classifying clarified input into a single primary task category and assigning execution complexity. Use when the Main Agent needs to categorize user requests before task decomposition, route tasks to appropriate handlers, assess complexity and risk levels, or determine if clarification is needed. Triggers after clarification is complete and before decomposition begins.
4metadata:
5 source: https://skillmd.com/skills/modbender/input-classification-system
6---
7
8# Input Classification System
9
10## 1. Skill Name
11
12**Input Classification System**
13
14Identifier: `input-classification-system`
15
16## 2. Version
17
18**1.0**
19
20This is the initial release of the Input Classification System skill.
21
22## 3. Skill Purpose
23
24Provide a deterministic, rule-based classification system that enables the Main Agent to categorize clarified user input into exactly one primary task category, assign execution complexity, assess risk level, and determine confidence score before any task decomposition or execution planning occurs.
25
26**Measurable Objectives:**
27- Achieve 100% single-category classification (no ambiguous multi-category outputs)
28- Provide deterministic tie-breaking for all edge cases
29- Assign complexity levels using measurable thresholds
30- Calculate confidence scores with explicit formulas
31- Route ambiguous inputs to clarification with specific triggers
32
33## 4. What This Skill Does
34
35- Classifies clarified input into exactly one primary category from a fixed list
36- Assigns complexity level based on measurable operation counts and time estimates
37- Calculates risk level based on impact scope and reversibility criteria
38- Computes confidence score using explicit scoring factors
39- Determines if input requires additional clarification
40- Sets the appropriate state transition after classification
41- Applies deterministic tie-breaking logic when multiple categories match
42- Validates that input has been clarified before classification
43- Logs all classification decisions with full context
44- Provides secondary tags for additional context (maximum 3)
45- Enforces boundary definitions between categories
46- Triggers escalation for high-risk or low-confidence classifications
47- Prevents misclassification through explicit rules
48- Outputs structured ClassificationResult for downstream systems
49- Maintains audit trail for all classification decisions
50
51## 5. What This Skill Must Not Do
52
53- Must not perform task decomposition or breakdown
54- Must not solve or execute any tasks
55- Must not create execution plans or strategies
56- Must not apply emotional reasoning or sentiment analysis
57- Must not assign multiple primary categories to a single input
58- Must not overlap with Clarification System responsibilities
59- Must not modify the original input content
60- Must not make assumptions about user intent without explicit indicators
61- Must not skip complexity assessment for any classification
62- Must not bypass risk assessment for any classification
63- Must not assign confidence scores below threshold without escalation
64- Must not classify inputs that have not been clarified first
65- Must not use probabilistic or non-deterministic classification methods
66- Must not ignore tie-breaking rules when categories conflict
67- Must not proceed to execution without setting state transition
68
69## 6. Activation Conditions
70
71This skill activates when ALL of the following conditions are met:
72
731. **Clarification Complete**: Input has been processed by the Clarification System and marked as clarified
742. **No Pending Questions**: No outstanding clarification questions remain
753. **Classification Not Yet Performed**: Input has not been previously classified
764. **Valid Input Structure**: Input contains recognizable task indicators
77
78**Pre-Activation Checklist:**
79- [ ] Input marked as "clarified" by Clarification System
80- [ ] No clarification questions pending
81- [ ] Input contains actionable request
82- [ ] Input is not empty or malformed
83
84**Do NOT activate if:**
85- Input is still being clarified
86- Input is a clarification question itself
87- Input is a response to a clarification question
88- Input has already been classified
89
90## 7. Classification Categories
91
92The following 15 categories form the fixed classification list:
93
94| Category | Code | Description |
95|----------|------|-------------|
96| CODE_GENERATION | CG | Writing, modifying, or generating source code |
97| CODE_REVIEW | CR | Reviewing, analyzing, or auditing existing code |
98| DEBUGGING | DB | Identifying and fixing bugs, errors, or issues |
99| DATA_ANALYSIS | DA | Analyzing, processing, or visualizing data |
100| FILE_OPERATIONS | FO | Reading, writing, moving, or managing files |
101| DOCUMENTATION | DC | Creating or updating documentation |
102| REFACTORING | RF | Restructuring code without changing behavior |
103| TESTING | TS | Writing, running, or managing tests |
104| DEPLOYMENT | DP | Deploying applications or infrastructure |
105| RESEARCH | RS | Investigating, searching, or gathering information |
106| CONFIGURATION | CF | Setting up or modifying configurations |
107| COMMUNICATION | CM | Drafting messages, emails, or communications |
108| CONVERSION | CV | Transforming data or files between formats |
109| ANALYSIS | AN | General analysis not covered by other categories |
110| PLANNING | PL | Creating plans, strategies, or roadmaps |
111
112**Category Priority Order (for tie-breaking):**
1131. DEBUGGING (highest - immediate attention needed)
1142. DEPLOYMENT
1153. CODE_GENERATION
1164. REFACTORING
1175. TESTING
1186. CODE_REVIEW
1197. DATA_ANALYSIS
1208. CONFIGURATION
1219. FILE_OPERATIONS
12210. CONVERSION
12311. DOCUMENTATION
12412. RESEARCH
12513. ANALYSIS
12614. COMMUNICATION
12715. PLANNING (lowest)
128
129## 8. Category Boundary Definitions
130
131### CODE_GENERATION vs CODE_REVIEW
132- **CODE_GENERATION**: Input requests creating new code or modifying existing code
133- **CODE_REVIEW**: Input requests analysis of existing code without modifications
134- **Boundary**: If modification is implied, classify as CODE_GENERATION
135
136### CODE_GENERATION vs REFACTORING
137- **CODE_GENERATION**: Creating new functionality or features
138- **REFACTORING**: Restructuring existing code without new functionality
139- **Boundary**: "Improve performance" without feature change = REFACTORING
140
141### DEBUGGING vs CODE_GENERATION
142- **DEBUGGING**: Input explicitly mentions errors, bugs, or failures
143- **CODE_GENERATION**: Input requests new features without error context
144- **Boundary**: "Fix this bug" = DEBUGGING; "Add error handling" = CODE_GENERATION
145
146### DATA_ANALYSIS vs ANALYSIS
147- **DATA_ANALYSIS**: Input involves data processing, statistics, or visualization
148- **ANALYSIS**: Input involves general analysis of concepts, requirements, or situations
149- **Boundary**: If data files/sets are mentioned = DATA_ANALYSIS
150
151### FILE_OPERATIONS vs CONVERSION
152- **FILE_OPERATIONS**: Input requests file management (read, write, move, delete)
153- **CONVERSION**: Input requests format transformation between file types
154- **Boundary**: "Convert X to Y format" = CONVERSION; "Read file X" = FILE_OPERATIONS
155
156### RESEARCH vs ANALYSIS
157- **RESEARCH**: Input requests information gathering or investigation
158- **ANALYSIS**: Input requests evaluation or assessment of known information
159- **Boundary**: "Find information about X" = RESEARCH; "Evaluate X" = ANALYSIS
160
161### TESTING vs CODE_GENERATION
162- **TESTING**: Input specifically requests test creation or test execution
163- **CODE_GENERATION**: Input requests production code
164- **Boundary**: "Write tests for X" = TESTING; "Write X with tests" = CODE_GENERATION (primary)
165
166### CONFIGURATION vs DEPLOYMENT
167- **CONFIGURATION**: Input requests setup of settings or configurations
168- **DEPLOYMENT**: Input requests deployment to environments or infrastructure
169- **Boundary**: Local setup = CONFIGURATION; Remote/environment setup = DEPLOYMENT
170
171## 9. Single-Primary-Category Rule
172
173**Rule**: Every classified input MUST have exactly one primary category.
174
175### Enforcement Rules
176
1771. **No Multi-Category Output**: Never output multiple primary categories
1782. **Tie-Breaking Required**: When multiple categories match, apply tie-breaking logic
1793. **Category Exclusivity**: Primary category is mutually exclusive with other primary categories
180
181### Tie-Breaking Logic
182
183When input matches multiple categories, apply in order:
184
185**Step 1: Keyword Dominance**
186- Count explicit keyword matches for each candidate category
187- Category with highest keyword count wins
188- If tied, proceed to Step 2
189
190**Step 2: Action Verb Analysis**
191- Identify primary action verb in input
192- Map action verb to category using verb-to-category mapping
193- If still tied, proceed to Step 3
194
195**Step 3: Priority Order**
196- Apply category priority order (see Section 7)
197- Higher priority category wins
198
199**Step 4: Default Fallback**
200- If all steps fail, default to ANALYSIS category
201
202### Tie-Breaking Example
203
204Input: "Debug and fix the error in the authentication code, then add logging"
205
2061. Keywords: DEBUGGING (debug, fix, error), CODE_GENERATION (add, logging)
2072. Action Verb: "Debug" (primary action) → DEBUGGING
2083. Result: DEBUGGING (primary), secondary_tags: [CODE_GENERATION]
209
210## 10. Secondary Tag Rules
211
212Secondary tags provide additional context without affecting primary routing.
213
214### Rules
215
2161. **Maximum 3 Tags**: No more than 3 secondary tags per classification
2172. **No Primary Duplicate**: Secondary tags cannot duplicate primary category
2183. **Related Categories Only**: Secondary tags must be from the fixed category list
2194. **Relevance Threshold**: Only add tags with >50% keyword match confidence
220
221### Secondary Tag Selection Process
222
2231. Identify all categories with keyword matches (excluding primary)
2242. Calculate relevance score for each (0.0-1.0)
2253. Sort by relevance score (descending)
2264. Select top 3 with score > 0.5
2275. Add to ClassificationResult
228
229### When to Apply Secondary Tags
230
231- Input contains multiple distinct sub-tasks
232- Input references multiple technology domains
233- Input implies follow-up work in other categories
234- Input has context from previous interactions in different categories
235
236### When NOT to Apply Secondary Tags
237
238- Input is single-focused with no additional context
239- Relevance scores are below threshold (0.5)
240- Would duplicate primary category
241- Would exceed 3-tag limit
242
243### Secondary Tag Examples
244
245| Input | Primary | Secondary Tags |
246|-------|---------|----------------|
247| "Debug the API and update the docs" | DEBUGGING | [DOCUMENTATION] |
248| "Refactor the auth module and add tests" | REFACTORING | [TESTING] |
249| "Analyze sales data and create a report" | DATA_ANALYSIS | [DOCUMENTATION, COMMUNICATION] |
250| "Fix this bug" | DEBUGGING | [] |
251
252---
253
254## Classification Models Reference
255
256For detailed complexity, risk, confidence, and state transition models, see [classification-models.md](references/classification-models.md).
257
258For system integration, failure conditions, logging, and examples, see [system-integration.md](references/system-integration.md).