skills/skill-collections/ai-agent-building/agent-workflow/SKILL.md
Complete workflow for building, implementing, and testing goal-driven agents. Orchestrates building-agents-* and testing-agent skills. Use when starting a new agent project, unsure which skill to use, or need end-to-end guidance.
npx skillsauth add zjunlp/Skills agent-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Complete Standard Operating Procedure (SOP) for building production-ready goal-driven agents.
This workflow orchestrates specialized skills to take you from initial concept to production-ready agent:
/building-agents-core (optional)/building-agents-construction/building-agents-patterns (optional)/setup-credentials (if agent uses tools requiring API keys)/testing-agentUse this meta-skill when:
Skip this workflow if:
/testing-agent directly"Need to understand agent concepts" → building-agents-core
"Build a new agent" → building-agents-construction
"Optimize my agent design" → building-agents-patterns
"Set up API keys for my agent" → setup-credentials
"Test my agent" → testing-agent
"Not sure what I need" → Read phases below, then decide
"Agent has structure but needs implementation" → See agent directory STATUS.md
Duration: 5-10 minutes
Skill: /building-agents-core
Input: Questions about agent architecture
Skip this phase if you already understand agent fundamentals.
Duration: 15-30 minutes
Skill: /building-agents-construction
Input: User requirements ("Build an agent that...")
Creates the complete agent architecture:
exports/agent_name/)exports/agent_name/ package createdpython -m agent_name validate)You're ready for Phase 2 when:
The building-agents-construction skill produces:
exports/agent_name/
├── __init__.py (package exports)
├── __main__.py (CLI interface)
├── agent.py (goal, graph, agent class)
├── nodes/__init__.py (node specifications)
├── config.py (configuration)
├── implementations.py (may be created for Python functions)
└── README.md (documentation)
If structure complete and validated:
→ Check exports/agent_name/STATUS.md or IMPLEMENTATION_GUIDE.md
→ These files explain implementation options
→ You may need to add Python functions or MCP tools (not covered by current skills)
If want to optimize design: → Proceed to Phase 1.5 (building-agents-patterns)
If ready to test: → Proceed to Phase 2
Duration: 10-15 minutes
Skill: /building-agents-patterns
Input: Completed agent structure
Skip this phase if your agent design is straightforward.
Duration: 20-40 minutes
Skill: /testing-agent
Input: Working agent from Phase 1
Creates comprehensive test suite:
exports/agent_name/tests/exports/agent_name/tests/You're done when:
Agent ready for:
Trigger signals:
Before proceeding:
from exports.agent_name import default_agentWhen to skip Phase 1:
When to skip Phase 2:
User: "Build an agent that monitors files"
→ Use /building-agents-construction
→ Agent structure created
→ Use /testing-agent
→ Tests created and passing
→ Done: Production-ready agent
User: "Build an agent (first time)"
→ Use /building-agents-core (understand concepts)
→ Use /building-agents-construction (build structure)
→ Use /building-agents-patterns (optimize design)
→ Use /testing-agent (validate)
→ Done: Production-ready agent
User: "Test my agent at exports/my_agent"
→ Skip Phase 1
→ Use /testing-agent directly
→ Tests created
→ Done: Validated agent
User: "Build an agent"
→ Use /building-agents-construction (Phase 1)
→ Implementation needed (see STATUS.md)
→ [User implements functions]
→ Use /testing-agent (Phase 2)
→ Tests reveal bugs
→ [Fix bugs manually]
→ Re-run tests
→ Done: Working agent
User: "Build an agent with multi-turn conversations"
→ Use /building-agents-core (learn pause/resume)
→ Use /building-agents-construction (build structure)
→ Use /building-agents-patterns (implement pause/resume pattern)
→ Use /testing-agent (validate conversation flows)
→ Done: Complex conversational agent
agent-workflow (meta-skill)
│
├── building-agents-core (foundational)
│ ├── Architecture concepts
│ ├── Node/Edge/Goal definitions
│ ├── Tool discovery procedures
│ └── Workflow overview
│
├── building-agents-construction (procedural)
│ ├── Creates package structure
│ ├── Defines goal
│ ├── Adds nodes incrementally
│ ├── Connects edges
│ ├── Finalizes agent class
│ └── Requires: building-agents-core
│
├── building-agents-patterns (reference)
│ ├── Best practices
│ ├── Pause/resume patterns
│ ├── Error handling
│ ├── Anti-patterns
│ └── Performance optimization
│
└── testing-agent
├── Reads agent goal
├── Generates tests
├── Runs evaluation
└── Reports results
PYTHONPATH=core:exports python -m agent_name validate/testing-agent to debug and iterateRun these checks:
# Check if agent structure exists
ls exports/my_agent/agent.py
# Check if it validates
PYTHONPATH=core:exports python -m my_agent validate
# Check if tests exist
ls exports/my_agent/tests/
# If structure exists and validates → Phase 2 (testing)
# If structure doesn't exist → Phase 1 (building)
# If tests exist but failing → Debug phase
You're done with the workflow when:
✅ Agent structure validates ✅ All tests pass ✅ Success criteria met ✅ Constraints verified ✅ Documentation complete ✅ Agent ready for deployment
.claude/skills/building-agents-core/SKILL.md.claude/skills/building-agents-construction/SKILL.md.claude/skills/building-agents-patterns/SKILL.md.claude/skills/testing-agent/SKILL.mdcore/README.mdexports/ directoryThis workflow provides a proven path from concept to production-ready agent:
/building-agents-core → Understand fundamentals (optional)/building-agents-construction → Get validated structure/building-agents-patterns → Apply best practices (optional)/testing-agent → Get verified functionalityThe workflow is flexible - skip phases as needed, iterate freely, and adapt to your specific requirements. The goal is production-ready agents built with consistent, repeatable processes.
Choose building-agents-core when:
Choose building-agents-construction when:
Choose building-agents-patterns when:
Choose testing-agent when:
development
Machine learning in Python with scikit-learn. Use when working with supervised learning (classification, regression), unsupervised learning (clustering, dimensionality reduction), model evaluation, hyperparameter tuning, preprocessing, or building ML pipelines. Provides comprehensive reference documentation for algorithms, preprocessing techniques, pipelines, and best practices.
development
Query Reactome REST API for pathway analysis, enrichment, gene-pathway mapping, disease pathways, molecular interactions, expression analysis, for systems biology studies.
tools
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
development
Python interface to OpenMS for mass spectrometry data analysis. Use for LC-MS/MS proteomics and metabolomics workflows including file handling (mzML, mzXML, mzTab, FASTA, pepXML, protXML, mzIdentML), signal processing, feature detection, peptide identification, and quantitative analysis. Apply when working with mass spectrometry data, analyzing proteomics experiments, or processing metabolomics datasets.