AgentSkillsCN

confirmation-responder

为Agent输出生成友好且贴合语境的确认信息与乌尔都语回复。

SKILL.md
--- frontmatter
name: confirmation-responder
description: Generates friendly confirmations and Urdu responses for agent outputs

You create natural, helpful response messages for task operations.

Core Rules

  1. Always confirm the action taken
  2. Match language - Urdu input gets Urdu response
  3. Include context - Show task title/ID in response
  4. Handle errors gracefully - Friendly, actionable error messages
  5. Embed tool results - Include relevant data from tool output

Response Templates

English Confirmations

IntentSuccess Response
add_taskTask '{{title}}' added!
list_tasksHere are your {{count}} tasks:
complete_taskTask '{{title}}' marked as complete!
delete_taskTask '{{title}}' has been deleted.
update_taskTask '{{title}}' updated successfully!
get_taskHere's task #{{id}}: {{title}}

Urdu Confirmations (اردو)

IntentSuccess Response
add_taskٹاسک '{{title}}' شامل کر دیا گیا!
list_tasksیہ ہیں آپ کے {{count}} ٹاسک:
complete_taskٹاسک '{{title}}' مکمل ہو گیا!
delete_taskٹاسک '{{title}}' حذف کر دیا گیا۔
update_taskٹاسک '{{title}}' اپڈیٹ ہو گیا!
get_taskیہ ہے ٹاسک #{{id}}: {{title}}

Error Responses

English Errors

Error CodeResponse
TASK_NOT_FOUNDTask not found – please check the ID and try again.
VALIDATION_ERRORInvalid input: {{details}}. Please correct and retry.
UNAUTHORIZEDPlease log in to manage your tasks.
SERVER_ERRORSomething went wrong. Please try again in a moment.
NO_TASKSYou don't have any tasks yet. Try adding one!

Urdu Errors (اردو)

Error CodeResponse
TASK_NOT_FOUNDٹاسک نہیں ملا – براہ کرم آئی ڈی چیک کریں۔
VALIDATION_ERRORغلط معلومات: {{details}}۔ درست کر کے دوبارہ کوشش کریں۔
UNAUTHORIZEDبراہ کرم اپنے ٹاسک دیکھنے کے لیے لاگ ان کریں۔
SERVER_ERRORکچھ غلط ہو گیا۔ تھوڑی دیر بعد دوبارہ کوشش کریں۔
NO_TASKSآپ کے پاس ابھی کوئی ٹاسک نہیں۔ ایک شامل کریں!

Response Builder Function

python
def build_response(
    intent: str,
    tool_result: dict,
    is_urdu: bool = False
) -> str:
    """Build natural language response from tool result."""

    if not tool_result.get("success"):
        return get_error_response(
            tool_result["error"]["code"],
            is_urdu,
            tool_result["error"].get("details")
        )

    template = get_template(intent, is_urdu)
    return template.format(**tool_result["data"])

List Formatting

English List

code
Here are your 3 tasks:

1. Buy milk (pending)
2. Call dentist (pending)
3. Submit report (completed)

Urdu List (اردو)

code
یہ ہیں آپ کے 3 ٹاسک:

1. دودھ خریدو (زیر التواء)
2. ڈینٹسٹ کو کال کرو (زیر التواء)
3. رپورٹ جمع کرو (مکمل)

Status Translations

EnglishUrdu
pendingزیر التواء
completedمکمل
in_progressجاری

Response Object Format

json
{
  "message": "Task 'Buy milk' added!",
  "language": "en",
  "intent": "add_task",
  "data": {
    "task_id": 123,
    "title": "Buy milk",
    "status": "pending"
  }
}

Tone Guidelines

  • Friendly: Use exclamation marks for success
  • Helpful: Provide next steps on errors
  • Concise: Keep responses short and clear
  • Consistent: Same structure for same intent
  • Natural: Read like human conversation

Integration Points

  • natural-language-parser: Provides is_urdu flag
  • mcp-tool-craft: Provides tool results to format
  • conversation-state-manager: Stores formatted responses