Skip to content

Add example: Generic Skill Agent with AgentSkills plugin + use_agent + handoff_to_user #242

Description

@hfurkanbozkurt

Summary

Add a sample showing how to run ANY skill using the AgentSkills plugin + use_agent + handoff_to_user. Replicates Kiro/Claude Code experience with zero hardcoding.

Proposed Location

02-samples/skill-agent-runner/

Core Pattern

import sys
from strands import Agent
from strands.vended_plugins.skills import Skill, AgentSkills
from strands_tools import use_agent, handoff_to_user, shell, file_read, file_write

skill = Skill.from_file(sys.argv[1])  # path to skill dir

agent = Agent(
    plugins=[AgentSkills(skills=[skill])],
    tools=[use_agent, handoff_to_user, shell, file_read, file_write],
)
agent(sys.argv[2] if len(sys.argv) > 2 else input("Task: "))

Why AgentSkills instead of raw system_prompt

  • AgentSkills uses progressive disclosure: injects skill metadata upfront, full instructions loaded on demand via skills tool
  • Supports multi-skill via Skill.from_directory()
  • Proper plugin pattern — future-proof as plugin API evolves

Checklist

  • Use AgentSkills plugin with Skill.from_file()
  • use_agent for dynamic subagent spawning
  • handoff_to_user for human-in-the-loop gates
  • Works with ANY skill directory
  • README with instructions

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Language

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions