agentspan-skills
CLAUDE.md4 starsChanged 8 months agoMITView on GitHub
Skills for AI coding agents to build with the agentspan Python SDK. The skill files in skills/agentspan/ are installed into agent contexts (Claude Code, Codex, Cursor, etc.) via the install script or Claude Code plugin. The canonical agentspan SDK: github.com/agentspan-ai/agentspan Every code example in every skill file must match the actual agentspan Python API.
- Pipes a download into a shell
- Installs packages
In this repositoryOne other file it gives its agents.
- agentspanSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Default local server: http://localhost:6767 (NOT 8080)
- Very specific: line 69
Default multi-agent strategy: HANDOFF (not SEQUENTIAL)
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
agentspan-skills — Claude Code context
What this repo is
Skills for AI coding agents to build with the agentspan Python SDK. The skill files in skills/agentspan/ are installed into agent contexts (Claude Code, Codex, Cursor, etc.) via the install script or Claude Code plugin.
The canonical agentspan SDK: github.com/agentspan-ai/agentspan
Key commands
# Install all skills locally (for testing)
curl -sSL https://raw.githubusercontent.com/agentspan-ai/agentspan-skills/main/install.sh | bash -s -- --all
# Claude Code plugin
/plugin marketplace add agentspan-ai/agentspan-skills
/plugin install agentspan@agentspan-skillsRepo layout
skills/agentspan/
SKILL.md Core skill (main entry point for agent contexts)
references/sdk-reference.md Python SDK API reference
references/cli-reference.md CLI command reference
references/api-reference.md REST API reference
examples/ Task-specific examples
scripts/agentspan_api.py Stdlib-only REST fallback
install.sh / install.ps1 Shell installers
.claude-plugin/ Claude Code plugin manifest
evaluations/ Eval test casesCritical: agentspan API accuracy (v0.1.0 — verified against source)
Every code example in every skill file must match the actual agentspan Python API.
Server port
Default local server: http://localhost:6767 (NOT 8080)
execution_id (NOT workflow_id)
result.execution_id— NOTresult.workflow_idhandle.execution_id— NOThandle.workflow_idcontext.execution_idin ToolContext — NOTcontext.workflow_id- The REST API uses
workflowIdat the wire level — that stays in api-reference.md
Correct imports
from agentspan.agents import Agent, tool, run, start, stream, configure, AgentRuntime, AgentHandle
from agentspan.agents import run_async, start_async, stream_async, shutdown, plan
from agentspan.agents import Strategy, Status, FinishReason, TokenUsage
from agentspan.agents import TextMentionTermination, MaxMessageTermination, StopMessageTermination, TokenUsageTermination
from agentspan.agents import CallbackHandler, ConversationMemory, SemanticMemory
from agentspan.agents import http_tool, mcp_tool, agent_tool, search_tool, index_tool
from agentspan.agents import image_tool, audio_tool, video_tool, pdf_tool, api_tool, human_tool
from agentspan.agents.testing import mock_run, MockEvent, expectAgent defaults
max_turns=25(not 20)timeout_seconds=0(not 3600; 0 = no timeout)- Default multi-agent strategy:
HANDOFF(not SEQUENTIAL)
AgentResult fields
result.output→ adict{'result': str, 'finishReason': str}for plain text agents; a Pydantic model instance whenoutput_type=is set on the agentresult.output['result']→ the text output (only when nooutput_typeis set)result.execution_id→ str or None (NOTworkflow_id)result.token_usage→ only populated viaAgentRuntimecontext manager; None via module-levelrun()
AgentHandle
handle.execution_id(NOTworkflow_id)handle.stream().get_result()→ wait for result (NOThandle.wait())
SemanticMemory
- Constructor:
SemanticMemory(store=None, max_results=5, session_id=None) - NO
namespace=orembedding_model=params memory.add(content)— NOTmemory.store()memory.search(query)→List[str]
Guardrail
Guardrail(func=my_fn, ...)—func=NOTfn=RegexGuardrailhas noflags=param
configure() server URL
Both forms work — the SDK auto-appends /api in config.py __post_init__:
configure(server_url="http://localhost:6767/api") # explicit — preferred
configure(server_url="http://localhost:6767") # also works — SDK appends /api automaticallyAdditional built-in tools (server-side, no worker needed)
Beyond search_tool and index_tool, these also exist:
image_tool(name, description, llm_provider, model, ...)— image generationaudio_tool(name, description, llm_provider, model, ...)— audio generationvideo_tool(name, description, llm_provider, model, ...)— video generationpdf_tool(name, description, ...)— PDF generation from markdownapi_tool(url, name, ...)— wraps an OpenAPI/REST endpointhuman_tool(name, description, ...)— human-in-the-loop tool
Things that do NOT exist
handle.wait()— usehandle.stream().get_result()handle.select_agent()— doesn't existruntime.register_workers()— useruntime.serve(agent, blocking=False)result.workflow_id— useresult.execution_idhandle.workflow_id— usehandle.execution_idmemory.store()as a callable —memory.add()is the correct methodconfigure(providers={...})— providers param doesn't existasync with stream_async(...)— not supported; uses = await stream_async(...)thenasync for event in sparallel(a, b)/handoff([a, b])— not functionsagentspan.integrations.*— no such module
Install note
pip install agentspan installs all dependencies including conductor-python>=1.3.9 from PyPI.
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
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.

