agentleFS
suyashb734suyashb734/cliagents/skills/agent-handoff/SKILL.md

agent-handoff

Skill19 starsChanged 7 months agoMITView on GitHub

Use when passing work between agents with context preservation

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ensure smooth transitions when passing work between AI agents.

    line 9
  2. Distinctive:

    When one agent hands off to another, context can be lost.

    line 13
  3. Distinctive:

    When handing off to another agent, always include:

    line 20
  4. Distinctive:

    Lost decisions: Not documenting why choices were made

    line 143
  5. Distinctive:

    Silent failures: Not reporting issues encountered

    line 144
  6. Distinctive:

    When you receive a handoff:

    line 149
  7. Distinctive:

    Read the full context: Don't skim

    line 151
  8. Very specific:

    Check shared artifacts: Use get_shared_findings

    line 152
  9. Distinctive:

    Build on existing work: Don't start over

    line 154
  10. Distinctive:

    Continue the documentation: Add your own handoff notes

    line 155

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agent Handoff Protocol

Ensure smooth transitions when passing work between AI agents.

Why Handoffs Matter

When one agent hands off to another, context can be lost. This skill ensures:

  • The receiving agent understands what was done
  • Important decisions are preserved
  • Work isn't duplicated or contradicted

Handoff Checklist

When handing off to another agent, always include:

1. Summary of Work Done

What: Brief description of completed work Why: The reasoning behind decisions made Where: Files and locations modified

## Work Completed
- Implemented user authentication in src/auth/
- Added JWT token generation and validation
- Created middleware for protected routes

## Key Decisions
- Chose JWT over sessions for stateless scaling
- Set token expiry to 24 hours (configurable)
- Used bcrypt for password hashing (cost factor 12)

2. Files Changed

List all modified files with brief descriptions:

## Files Modified
- src/auth/jwt.js - Token generation/validation
- src/auth/middleware.js - Auth middleware
- src/routes/auth.js - Login/logout endpoints
- src/models/user.js - Added password field

## New Files Created
- src/auth/config.js - Auth configuration
- tests/auth.test.js - Authentication tests

3. Open Issues and Concerns

What the next agent should be aware of:

## Open Issues
- [ ] Rate limiting not implemented yet
- [ ] Password reset flow pending
- [ ] Need to add refresh token logic

## Concerns
- JWT secret is currently hardcoded - needs env var
- No input validation on login endpoint
- Error messages might leak user existence

4. Next Steps

Clear instructions for the receiving agent:

## For Next Agent
1. Review security of current implementation
2. Add rate limiting to login endpoint
3. Implement password reset via email
4. Add refresh token rotation

Priority: Security review is most critical

Handoff Template

# Agent Handoff: [Task Name]

## Context
[Brief description of the task and current state]

## Work Completed
- [List of completed items]

## Key Decisions
| Decision | Rationale |
|----------|-----------|
| [Choice] | [Why] |

## Files Modified
- path/to/file.js - [what changed]

## Open Issues
- [ ] [Issue description]

## For Next Agent
1. [First action]
2. [Second action]

## Shared Artifacts
- artifact-key: [description]
- finding-ids: [list]

Using cliagents Tools

Store Artifacts for Handoff

store_artifact taskId="task-123" key="implementation-plan" type="plan" content="..."
store_artifact taskId="task-123" key="code-changes" type="code" content="..."

Share Findings

share_finding taskId="task-123" type="info" content="JWT implementation notes..."
share_finding taskId="task-123" type="security" severity="medium" content="Rate limiting needed"

Retrieve Previous Work

get_shared_findings taskId="task-123"

Anti-Patterns

  • No context: Starting fresh without reviewing previous work
  • Duplicated effort: Redoing what another agent already did
  • Lost decisions: Not documenting why choices were made
  • Silent failures: Not reporting issues encountered
  • Vague handoffs: "Finish the implementation" without specifics

Receiving a Handoff

When you receive a handoff:

  1. Read the full context: Don't skim
  2. Check shared artifacts: Use get_shared_findings
  3. Validate understanding: Summarize back if unclear
  4. Build on existing work: Don't start over
  5. Continue the documentation: Add your own handoff notes

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.