AgentSkillsCN

reward-zone-send

在 Red Hat Reward Zone 发送表彰奖励。全流程包括:SAML 认证、接收人搜索、提交奖励。当用户说“向 X 发送奖励”、“给予 Y 表彰”或“提名 Z 参与奖项评选”时,可使用此功能。

SKILL.md
--- frontmatter
name: reward-zone-send
description: Send a recognition award on Red Hat Reward Zone. End-to-end flow: SAML auth, recipient search, submit. Use when user says "send reward to X", "give recognition to Y", or "nominate Z for award".

Reward Zone Send

Send a single award on rewardzone.redhat.com. Pure HTTP, no browser.

Inputs

InputTypeDefaultPurpose
recipientstringrequiredName to search for
awardstring"Focus on Team"Award name
pointsint25Points to award
messagestringrequiredRecognition message
descriptionstring=messageOptional description
dry_runboolfalsePreview without sending

Workflow

1. Validate

  • recipient and message required; points positive int

2. Create Session

  • http_session_create(name="reward_zone", base_url="https://rewardzone.redhat.com")

3. Authenticate

  • http_saml_auth(session="reward_zone")
  • If failed → return "Authentication Failed" with troubleshooting

4. Search Recipient

  • http_request(session="reward_zone", method="GET", path="/api/v1/Members/advancedMemberSearch", params='{"searchText": "recipient"}')
  • Parse for pin, name; if not found → return "Recipient not found"

5. Dry Run

  • If dry_run → return preview (recipient, award, points, message) and exit

6. Submit

  • http_request(session="reward_zone", method="POST", path="/api/v1/Awards/submitNomination", json_body='{"nomineePin": "pin", "awardName": "award", "points": N, "description": "desc", "message": "msg"}')

7. Post-Action

  • memory_session_log("Reward Zone Send", "Sent N points to {name} ({award})")

Key Details

  • Prerequisite: redhatter service on localhost:8009
  • Use reward_zone: For check_points, view_received, view_sent use the full reward_zone skill with action