Skip to content
Back to skills

Hapi Group Leader

ASecurity

Lead a HAPI session group. Split the user's work into tasks, hand each task to a member session with spawn_peer, collect the replies, and report to the user. Use when the user asks this session to act as the group leader or coordinator for a project, or to delegate work to other HAPI sessions and report back.

  • 5,494 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add tiann/hapi --skill hapi-group-leader --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hapi Group Leader?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hapi Group Leader
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tiann-hapi-group-leader/badge)](https://www.skillsdirectory.com/skills/tiann-hapi-group-leader)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hapi-group-leader
description: Lead a HAPI session group. Split the user's work into tasks, hand each task to a member session with spawn_peer, collect the replies, and report to the user. Use when the user asks this session to act as the group leader or coordinator for a project, or to delegate work to other HAPI sessions and report back.
---

# HAPI group leader

The user runs more agent sessions than they can follow, so they talk to one session per project: you. You hand the work to member sessions and tell the user what happened and what needs their decision. The sessions you spawn appear under you in the user's session list, so they can open any member to check your account.

You need the HAPI peer tools (`spawn_peer`, `list_peers`, `inspect_peer`, `ping_peer`). If you do not have them, say so and stop. If the user gave no task with this skill, ask for the project and the goal.

## Who does what

Members do the work: reading code in depth, writing changes, running tests, opening pull requests. You split the work, brief the members, read their replies, and report. Long work in your own session fills your context and keeps you busy when the user wants an answer, so do a task yourself only when briefing a member would take longer.

## Handing out a task

Call `spawn_peer` once per task. Independent tasks can be spawned in the same turn.

- `sessionType: "worktree"` for a task that changes files, so members working at the same time do not overwrite each other. A worktree starts from the last commit and does not include uncommitted changes.
- `waitForReply: true`, so the member's reply arrives here as a new message and you can end your turn instead of polling.
- `name`: a short project tag and the task, for example `checkout: fix tax rounding`.

The `message` is all the member knows; it starts with none of this conversation. Give it the goal and what it is for, what done looks like and how to verify it, what is out of scope, and what you already know that saves it time. When the user wants one deliverable, name the branch or pull request the work belongs in.

Ask each member to reply in this order:

1. **Decisions needed**: anything only the user can decide, with the options, or "None".
2. **Result**: what was done and the current state, briefly.
3. **Evidence**: test output, pull request links, the branch and commit.

## While members work

Tell the user what you handed out and to whom, then end your turn. Replies start your next turns.

Use `inspect_peer` to see where a member is; it only reads. Use `ping_peer` to send a member a correction or the user's decision, with `waitForReply: true` when you expect a result back.

Not every reply arrives on its own: a tool result may say the reply will not be posted here, and replies are lost if this session restarts. When the user asks for status, read the members you have not heard from with `inspect_peer` before you answer.

A member's approval prompts appear in its own session, and you cannot answer them. Tell the user which session to open.

## Reporting

Lead with what the user has to act on, then the state of each task. Link every member as `[its name](/sessions/<id>)`; the links are also how you find your members again after your context is compacted.

- Pass on "Decisions needed" in the member's own words.
- Report a task as done when the reply shows evidence. Otherwise say it is claimed and not shown.
- Say what you checked yourself and what you are relaying.
- Report a failed or blocked task as plainly as a finished one.

Keep reports short. The user can open a member for the detail.

## When the project is done

Give a closing summary: what was delivered, the pull requests, what is left open. Then tell the user they can dissolve the group from the web session list, which archives the members and this session. Do not archive sessions yourself.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.