From workhuman-pack
Workhuman hello world for employee recognition and rewards API. Use when integrating Workhuman Social Recognition, or building recognition workflows with HRIS systems. Trigger: "workhuman hello world".
npx claudepluginhub flight505/skill-forge --plugin workhuman-packThis skill is limited to using the following tools:
Create a recognition nomination and list recent recognitions -- the two fundamental Workhuman API operations. Workhuman Social Recognition enables peer-to-peer and manager-to-employee recognition with points-based rewards.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Create a recognition nomination and list recent recognitions -- the two fundamental Workhuman API operations. Workhuman Social Recognition enables peer-to-peer and manager-to-employee recognition with points-based rewards.
const { data: recognitions } = await api.get('/api/v1/recognitions', {
params: { limit: 10, sort: '-created_at' },
});
recognitions.data.forEach((rec: any) => {
console.log(`${rec.nominator.name} recognized ${rec.recipient.name}`);
console.log(` Award: ${rec.award_level} | Points: ${rec.points}`);
console.log(` Message: ${rec.message}`);
console.log(` Value: ${rec.company_value}`);
});
const nomination = await api.post('/api/v1/recognitions', {
recipient_id: 'emp-12345',
award_level: 'silver',
company_value: 'innovation',
message: 'Outstanding work on the Q1 product launch. Your innovative approach to the deployment pipeline saved the team 3 days of work.',
points: 500,
visibility: 'public', // 'public', 'team', 'private'
});
console.log(`Recognition created: ${nomination.data.id}`);
console.log(`Status: ${nomination.data.status}`); // pending_approval or approved
const { data: status } = await api.get(`/api/v1/recognitions/${nomination.data.id}`);
console.log(`Status: ${status.status}`);
// Status: pending_approval -> approved -> delivered
const { data: catalog } = await api.get('/api/v1/rewards/catalog', {
params: { category: 'gift_cards', country: 'US' },
});
catalog.items.forEach((item: any) => {
console.log(`${item.name} - ${item.points_required} points`);
});
Jane Smith recognized Alex Johnson
Award: Silver | Points: 500
Message: Outstanding work on the Q1 product launch...
Value: Innovation
Recognition created: rec-67890
Status: pending_approval
| Error | Cause | Solution |
|---|---|---|
422 on nomination | Missing required field | Include recipient, award_level, message |
404 recipient | Invalid employee ID | Verify against HRIS sync |
403 award level | Insufficient budget | Check recognition budget limits |
Proceed to workhuman-local-dev-loop for development workflow.