← Back to Skills Marketplace
omprasad122007-rgb

input classification

by omprasad122007-rgb · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
507
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install input-classification-v1
Description
Deterministic rule-based system for classifying clarified input into a single primary task category and assigning execution complexity. Use when the Main Age...
README (SKILL.md)

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:

  1. Clarification Complete: Input has been processed by the Clarification System and marked as clarified
  2. No Pending Questions: No outstanding clarification questions remain
  3. Classification Not Yet Performed: Input has not been previously classified
  4. Valid Input Structure: Input contains recognizable task indicators

Pre-Activation Checklist:

  • Input marked as "clarified" by Clarification System
  • No clarification questions pending
  • Input contains actionable request
  • Input is not empty or malformed

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):

  1. DEBUGGING (highest - immediate attention needed)
  2. DEPLOYMENT
  3. CODE_GENERATION
  4. REFACTORING
  5. TESTING
  6. CODE_REVIEW
  7. DATA_ANALYSIS
  8. CONFIGURATION
  9. FILE_OPERATIONS
  10. CONVERSION
  11. DOCUMENTATION
  12. RESEARCH
  13. ANALYSIS
  14. COMMUNICATION
  15. 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

  1. No Multi-Category Output: Never output multiple primary categories
  2. Tie-Breaking Required: When multiple categories match, apply tie-breaking logic
  3. 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"

  1. Keywords: DEBUGGING (debug, fix, error), CODE_GENERATION (add, logging)
  2. Action Verb: "Debug" (primary action) → DEBUGGING
  3. Result: DEBUGGING (primary), secondary_tags: [CODE_GENERATION]

10. Secondary Tag Rules

Secondary tags provide additional context without affecting primary routing.

Rules

  1. Maximum 3 Tags: No more than 3 secondary tags per classification
  2. No Primary Duplicate: Secondary tags cannot duplicate primary category
  3. Related Categories Only: Secondary tags must be from the fixed category list
  4. Relevance Threshold: Only add tags with >50% keyword match confidence

Secondary Tag Selection Process

  1. Identify all categories with keyword matches (excluding primary)
  2. Calculate relevance score for each (0.0-1.0)
  3. Sort by relevance score (descending)
  4. Select top 3 with score > 0.5
  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.

Usage Guidance
This skill appears internally consistent and fits its stated purpose, but review a few operational details before installing: - Data privacy: the skill logs 'full context' and forwards clarified_input/original_input to downstream systems. Confirm where logs and downstream queues are stored, who can access them, and whether inputs may contain PII or secrets. Ask whether logs are encrypted, whether inputs are redacted or hashed (and if hashes are salted) before long-term retention. - Retention and audit: the documentation prescribes multi-tier log retention (DEBUG 7d ... AUDIT 2y). Ensure those retention policies align with your data governance and that audit logs do not retain sensitive content longer than allowed. - Integration endpoints and authorization: the SKILL.md references JSON handoffs to Clarification, Task Decomposition, Human Review, and queues. Confirm the actual endpoints, authentication, and transport security used in your deployment so classification results are not leaked to unauthorized systems. - Behavior guarantees: the skill claims deterministic 100% single-category classification and tight latency (<100ms). Those are strong guarantees — validate on representative inputs (including ambiguous/edge cases) to ensure the tie-breaking/escalation behavior works as intended and does not produce forced misclassifications. - Escalation and human review: confirm human-review workflows and who can override classifications; verify audit trails record overrides as specified. If these operational questions are answered satisfactorily (privacy controls, secure endpoints, and realistic performance expectations), the skill is appropriate to install. If you cannot confirm log handling or downstream endpoints, treat the integration as a potential privacy risk and seek remediation before enabling it.
Capability Analysis
Type: OpenClaw Skill Name: input-classification-v1 Version: 1.0.0 The OpenClaw AgentSkills skill bundle describes a robust and security-conscious input classification system. The documentation (SKILL.md, classification-models.md, system-integration.md) details a deterministic, rule-based approach to categorize user input, assess complexity, calculate risk, and determine confidence. Crucially, it includes explicit safeguards such as mandatory human escalation for 'CRITICAL' risk levels or 'Unacceptable Confidence' scores (below 0.50), and comprehensive logging requirements for auditability. The skill's 'What This Skill Must Not Do' section explicitly forbids performing task execution, decomposition, or modifying original input, preventing direct malicious actions. There is no evidence of intentional harmful behavior, data exfiltration, persistence mechanisms, or prompt injection attempts designed to bypass security controls or manipulate the agent into unauthorized actions; instead, the design prioritizes safety and human oversight for high-risk scenarios.
Capability Assessment
Purpose & Capability
The name/description (rule-based input classification) matches the SKILL.md and reference documents. No binaries, env vars, or installs are requested and the documented downstream/upstream integrations (clarification, decomposition, human review) are appropriate for a classification component.
Instruction Scope
Instructions are narrowly scoped to classification, confidence, risk, and routing and explicitly forbid decomposition or execution. However the skill requires logging of 'full context' and forwarding clarified_input to downstream systems; that can expose sensitive content (clarified_input/original_input). The docs do not specify redaction, encryption, or privacy controls for logs or downstream payloads.
Install Mechanism
This is an instruction-only skill with no install spec or code files to write/execute. That minimizes installation risk.
Credentials
The skill requests no environment variables, credentials, or config paths. All required fields are inline in the documentation and proportional to the classification purpose.
Persistence & Privilege
always:false and default autonomous invocation are set to normal. The skill does not request persistent presence or modify other skills. It does define logging and retention policies, which are behaviorally significant but not a platform privilege request.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install input-classification-v1
  3. After installation, invoke the skill by name or use /input-classification-v1
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of the Input Classification System. - Provides deterministic, rule-based classification of clarified input into a single primary task category. - Assigns execution complexity, risk level, and confidence score for each input. - Enforces single-category output with explicit tie-breaking and category boundary rules. - Triggers only after clarification is complete and before task decomposition. - Outputs structured results for downstream systems and maintains full audit trails. - Prevents misclassification and escalation for high-risk or low-confidence inputs.
Metadata
Slug input-classification-v1
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is input classification?

Deterministic rule-based system for classifying clarified input into a single primary task category and assigning execution complexity. Use when the Main Age... It is an AI Agent Skill for Claude Code / OpenClaw, with 507 downloads so far.

How do I install input classification?

Run "/install input-classification-v1" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is input classification free?

Yes, input classification is completely free (open-source). You can download, install and use it at no cost.

Which platforms does input classification support?

input classification is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created input classification?

It is built and maintained by omprasad122007-rgb (@omprasad122007-rgb); the current version is v1.0.0.

💬 Comments