# Agent Creator - Meta-Skill for Claude Code **Meta-skill that teaches Claude Code to create complete agents with Claude Skills in a fully autonomous way!** You describe a repetitive workflow β†’ Claude creates a complete production-ready agent in 60-90 minutes. --- ## 🎯 What It Is and What It Does ### Problem It Solves Creating a Claude Code agent manually is: - ⏰ **Time-consuming**: 20-30 hours of work - 🧠 **Complex**: Requires knowledge of APIs, Python, architecture - πŸ” **Labor-intensive**: Research APIs, define analyses, structure, code, document ### Solution: Agent-Creator **You do:** ``` "Automate this workflow: every day I download crop data, compare current year vs previous, takes 2 hours." ``` **Claude Code does:** 1. πŸ” Research available APIs β†’ Decide the best one 2. 🎨 Define useful analyses β†’ Prioritize by value 3. πŸ—οΈ Structure project β†’ Optimal architecture 4. πŸ’» Implement Python code β†’ Functional, no TODOs 5. πŸ“ Write documentation β†’ 12,000+ words 6. βš™οΈ Create configs β†’ Real values 7. πŸ“¦ Deliver agent β†’ Production-ready in subdirectory **Result:** Complete agent in ~90 minutes! --- ## πŸš€ Quick Installation ### Prerequisites - Claude Code CLI installed - Python 3.8+ (for agents that will be created) ### Step 1: Install in Claude Code **In the Claude Code terminal**, run: ```bash /plugin marketplace add FrancyJGLisboa/agent-skill-creator ``` ### Step 2: Verify Installation ```bash /plugin list ``` You should see: ``` βœ“ agent-creator ``` ### Done! πŸŽ‰ The meta-skill is installed and ready to use. --- ## πŸ’‘ How to Use (Tutorial Guide) ### Basic Usage - Describe Your Workflow **In Claude Code**, simply describe what you do repeatedly: ``` πŸ‘€ You type: "Automate this workflow: every day I download US crop data, compare current year vs previous, rank states. Takes 2 hours." ``` **πŸ€– Claude Code:** ``` [Detects keyword: "automate"] [Activates skill: agent-creator] [Loads 5-phase protocol] πŸ” Phase 1: Researching US agriculture APIs... βœ“ 5 options found βœ“ Decided: USDA NASS QuickStats API Reason: Free, data since 1866, complete coverage 🎨 Phase 2: Defining analyses... βœ“ 15 typical questions identified βœ“ 5 main analyses: YoY, Ranking, Trends, Reports πŸ—οΈ Phase 3: Structuring project... βœ“ 3 scripts + 3 utils planned 🎯 Phase 4: Defining automatic detection... βœ“ 50+ keywords identified βš™οΈ Phase 5: Implementing code... βœ“ SKILL.md (6,200 words) βœ“ fetch_nass.py (280 lines) βœ“ parse_nass.py (180 lines) βœ“ analyze_nass.py (520 lines) βœ“ utils/ (350 lines) βœ“ references/ (5,000 words) βœ“ .claude-plugin/marketplace.json βœ… βœ“ README.md (800 words) βœ… AGENT CREATED: ./usda-agriculture-agent/ πŸš€ To install: /plugin marketplace add ./usda-agriculture-agent ``` ### What You Get A complete directory: ``` ./usda-agriculture-agent/ β”œβ”€β”€ .claude-plugin/ β”‚ └── marketplace.json ← For Claude Code installation β”œβ”€β”€ SKILL.md ← Complete orchestration (6,000 words) β”œβ”€β”€ scripts/ β”‚ β”œβ”€β”€ fetch_nass.py ← API client (280 lines) β”‚ β”œβ”€β”€ parse_nass.py ← Parsing & validation (180 lines) β”‚ β”œβ”€β”€ analyze_nass.py ← Analyses (520 lines) β”‚ └── utils/ β”‚ β”œβ”€β”€ cache_manager.py ← Smart cache β”‚ β”œβ”€β”€ rate_limiter.py ← Rate limiting β”‚ └── validators.py ← Validations β”œβ”€β”€ references/ β”‚ β”œβ”€β”€ api-guide.md ← How to use the API β”‚ β”œβ”€β”€ analysis-methods.md ← Detailed methodologies β”‚ └── troubleshooting.md ← Problem solving β”œβ”€β”€ assets/ β”‚ β”œβ”€β”€ config.json ← Real configurations β”‚ └── metadata.json ← Metadata β”œβ”€β”€ DECISIONS.md ← Decision justifications └── README.md ← Usage instructions ``` **Total:** ~2,000 lines of code + ~12,000 words of documentation --- ## πŸ”„ How It Works Internally (5 Phases) ### PHASE 1: Discovery (API Research) **What it does:** - Research available public APIs for the domain - Uses `WebSearch` and `WebFetch` to find options - Compares APIs by: coverage, cost, rate limits, quality - **DECIDES** autonomously which to use **Example (Agriculture):** ```bash WebSearch: "US agriculture API free historical data" WebSearch: "USDA API documentation" WebFetch: https://quickstats.nass.usda.gov/api β†’ DECISION: USDA NASS QuickStats API Justification: Free, data since 1866, all crops ``` --- ### PHASE 2: Design (Analysis Definition) **What it does:** - Brainstorm 10-15 typical user questions - Group by analysis type - **DEFINES** 4-6 priority analyses - Specifies methodologies (formulas, interpretations) **Example:** ``` Typical questions: - "Corn production in 2023?" - "Compare soybeans 2024 vs 2023" - "Top 10 producing states" β†’ ANALYSES DEFINED: 1. YoY Comparison (year vs year) 2. State Ranking (top producers) 3. Trend Analysis (trends) 4. Report Generation (reports) ``` --- ### PHASE 3: Architecture (Structuring) **What it does:** - Defines folder and file structure - Specifies responsibilities of each script - Plans cache strategy and performance **Example:** ``` β†’ STRUCTURE: scripts/ - fetch_nass.py (API requests) - parse_nass.py (parsing) - analyze_nass.py (analyses) utils/ - cache_manager.py - rate_limiter.py ``` --- ### PHASE 4: Detection (Automatic Activation) **What it does:** - Lists domain keywords - Determines when skill should activate - Creates optimized description **Example:** ``` β†’ KEYWORDS: Entities: USDA, NASS, agriculture Commodities: corn, soybeans, wheat Metrics: production, area, yield Actions: compare, ranking, trend ``` --- ### PHASE 5: Implementation (Complete Code) **What it does:** - Creates **marketplace.json** (REQUIRED!) - Implements functional Python code - Writes SKILL.md (5000+ words) - Creates references with useful content - Generates real configs **Commands executed internally:** ```bash mkdir -p agent-name/{scripts/utils,references,assets,.claude-plugin} # Write: .claude-plugin/marketplace.json # Write: SKILL.md # Write: scripts/fetch_*.py # Write: scripts/parse_*.py # Write: scripts/analyze_*.py # Write: utils/cache_manager.py # Write: references/*.md # Write: assets/*.json # Write: README.md ``` --- ## πŸ“– Practical Usage Examples ### Example 1: Agriculture (USDA) **πŸ‘€ Input in Claude Code:** ``` "Automate: every day I download US crop data, compare current year vs previous, rank states. Takes 2 hours." ``` **πŸ€– Claude executes (autonomously):** ``` Phase 1: Research β†’ USDA NASS API Phase 2: Define β†’ YoY, Ranking, Trends Phase 3: Structure β†’ 3 scripts + 2 utils Phase 4: Keywords β†’ USDA, corn, soybeans, production Phase 5: Implement β†’ 1,410 lines of code βœ… Agent created: ./usda-agriculture-agent/ ``` **πŸ’» How to install the created agent:** ```bash # In Claude Code /plugin marketplace add ./usda-agriculture-agent ``` **🎯 How to use:** ``` "US corn production in 2023" "Compare soybeans this year vs last year" "Top 10 wheat producing states" ``` --- ### Example 2: Finance (Stocks) **πŸ‘€ Input:** ``` "Need agent for stock analysis: fetch prices, calculate RSI and MACD, compare with benchmarks. Daily, 3h." ``` **πŸ€– Claude creates:** ``` Phase 1: Alpha Vantage API (or Yahoo Finance) Phase 2: Price fetching, RSI, MACD, Benchmarking Phase 3-5: Implement everything βœ… Created: ./stock-technical-analysis-agent/ ``` **πŸ’» Install:** ```bash /plugin marketplace add ./stock-technical-analysis-agent ``` --- ### Example 3: Climate Anomalies - Dominic RoyΓ© Style (Real Case from Today!) **πŸ‘€ Input:** ``` "Create automated workflow for climate anomaly analysis following Dominic RoyΓ© methodology. Same procedure, always, for anywhere in the world, finding updated raw data, processing exactly as in the tutorial, and generating the same chart (same colors, same quadrants, same logic)." ``` **πŸ€– Claude executed (5 autonomous phases):** ``` πŸ” PHASE 1: Climate API Research Researched: Meteostat, Open-Meteo, ERA5, NOAA, Weather.gov Compared: Coverage, cost, historical data, quality βœ“ DECIDED: Multi-API Strategy β€’ Primary: Meteostat (observational data) β€’ Fallback: Open-Meteo (ERA5 reanalysis, global coverage) β€’ Automatic failover for maximum reliability 🎨 PHASE 2: Analysis Design Based on Dominic RoyΓ© methodology: βœ“ DEFINED: Climate Anomaly Scatter Plot β€’ Axis X: Precipitation anomaly (%) β€’ Axis Y: Temperature anomaly (Β°C) β€’ 4 colored quadrants (wet-warm, dry-warm, wet-cold, dry-cold) β€’ Seasonal analysis (DJF, MAM, JJA, SON) β€’ Climate normal baseline (1991-2020 or 1981-2010) β€’ Labeled extreme years with auto-repulsion πŸ—οΈ PHASE 3: Architecture βœ“ STRUCTURED (modular design): scripts/ - climate_anomalies.py (580 lines) - Integrated pipeline - fetch_climate.py (480 lines) - Multi-API client - parse_climate.py (370 lines) - Seasonal aggregation - plot_anomalies.py (350 lines) - Dominic RoyΓ© visualization utils/ - api_factory.py (210 lines) - Factory pattern - cache_manager.py (260 lines) - Smart cache (TTL by year) - validators.py (200 lines) - Blocking validations - context_validators.py (311 lines) - Context warnings βœ“ Cache: Historical permanent, previous year 30d, current 24h βœ“ Validations: 16 types (8 blocking + 8 contextual) 🎯 PHASE 4: Automatic Detection βœ“ KEYWORDS: Dominic RoyΓ©, climate anomalies, quadrants, DJF MAM JJA SON, temperature precipitation, wet-warm dry-warm wet-cold dry-cold βœ“ DESCRIPTION: Optimized for multi-language detection βš™οΈ PHASE 5: Complete Implementation βœ“ .claude-plugin/marketplace.json (validated) βœ“ SKILL.md (7,000 words) βœ“ Python scripts (2,761 lines) βœ“ References (8,000 words) - roye-methodology.md - meteostat-guide.md - open-meteo-guide.md - troubleshooting.md βœ“ Exact colors: #F7A699, #C23B33, #2C6CB0, #D4E3F3 βœ“ Labeled points = HOLLOW circles (confirmed by reference image) βœ“ README.md + CORRECTIONS.md + EXAMPLES.md βœ… AGENT CREATED: ./climate-anomalies-roye/ ``` **πŸ“Š Statistics:** - **Code:** 2,761 lines of Python (10 scripts) - **Documentation:** 20,000+ words (12 files) - **Files:** 24 main files - **Time:** ~90 minutes of autonomous creation - **Corrections:** 3 critical fixes applied (v1.0.1) **🎨 Visual Output:** Generates scatter plots identical to Dominic RoyΓ©'s methodology: - Temperature anomaly vs Precipitation anomaly - 4 colored quadrants (exact hex colors) - Labeled extreme years (hollow circles) - High quality: 11Γ—8 inches, 130 DPI **πŸ’» Installation of created agent:** ```bash # In terminal cd climate-anomalies-roye pip install -r requirements.txt # In Claude Code /plugin marketplace add ./climate-anomalies-roye ``` **🎯 Using the created agent:** ``` πŸ‘€ "Climate anomalies for Buenos Aires, summer season DJF" πŸ€– [Skill activates automatically] [Fetches data: Meteostat or Open-Meteo] [Processes: seasonal aggregation, anomaly calculation] [Validates: PHASE 2.5 - comprehensive context report] [Generates: PNG chart in Dominic RoyΓ© style] [Returns: Chart + interpretation with context] πŸ‘€ "Anomalies for Paris, winter DJF, baseline 1981-2010" πŸ€– [Complete analysis with custom normal period] [Chart shows extreme years labeled] Output files generated: β€’ data/raw/location_daily.csv (raw data, for audit) β€’ data/processed/location_season_normal.csv (climatology + anomalies) β€’ data/out/location_season_normal.png (Dominic RoyΓ© chart) ✨ ``` **πŸ›‘οΈ Quality Guarantees:** - βœ… Multi-API with automatic fallback - βœ… 16 validation layers (blocking + contextual) - βœ… Users NEVER receive data without adequate context - βœ… Automatic detection of climate change trends - βœ… 100% reproducible (same inputs β†’ same outputs) - βœ… Auditable (raw data saved for verification) --- ## πŸ”„ How It Works: The 5 Autonomous Phases ### PHASE 1: DISCOVERY (API Research) **Objective:** DECIDE which API to use **Process:** 1. Identifies domain (agriculture? finance? climate?) 2. Research available public APIs 3. Compares options (coverage, cost, quality) 4. **DECIDES** with justification 5. Documents decision **Autonomy:** Claude decides without asking the user! **Example of internal commands:** ```bash # Claude executes internally: WebSearch: "US agriculture API free historical data" WebFetch: https://quickstats.nass.usda.gov/api # Compares: NASS vs ERS vs FAO # β†’ DECISION: NASS (best option) ``` --- ### PHASE 2: DESIGN (Analysis Definition) **Objective:** DEFINE which analyses to implement **Process:** 1. Brainstorm typical questions (10-15) 2. Group by type (comparisons, rankings, trends) 3. **DEFINES** 4-6 priority analyses 4. Specifies methodologies (mathematical formulas) **Autonomy:** Claude prioritizes by value and frequency of use! --- ### PHASE 3: ARCHITECTURE (Structuring) **Objective:** STRUCTURE the project optimally **Process:** 1. Defines folder structure 2. Specifies scripts and responsibilities 3. Plans cache strategy 4. Defines validations **Autonomy:** Claude chooses optimal architecture based on complexity! --- ### PHASE 4: DETECTION (Automatic Activation) **Objective:** DETERMINE keywords for detection **Process:** 1. Lists domain entities 2. Lists typical actions 3. Determines keywords 4. Creates optimized description (150-250 words) **Result:** Skill activates automatically when user asks relevant question! --- ### PHASE 5: IMPLEMENTATION (Complete Code) **Objective:** IMPLEMENT everything with REAL code **Process:** ```bash 1. mkdir -p agent-name/{scripts/utils,references,assets,.claude-plugin} 2. Write: .claude-plugin/marketplace.json ← REQUIRED! 3. Write: SKILL.md (5000+ words) 4. Write: scripts/*.py (functional code) 5. Write: utils/*.py (cache, validators, etc) 6. Write: references/*.md (useful content) 7. Write: assets/*.json (real configs) 8. Write: README.md + DECISIONS.md ``` **Quality Standards:** - βœ… Complete code (no `TODO` or `pass`) - βœ… Detailed docstrings - βœ… Robust error handling - βœ… Type hints - βœ… Comprehensive validations **Result:** Production-ready agent! --- ## πŸ“ Step-by-Step Commands ### 1. Create an Agent **In Claude Code:** ``` πŸ‘€ "Create an agent for [objective]" OR πŸ‘€ "Automate this workflow: [description]" ``` ### 2. Wait for Creation Claude executes the 5 phases autonomously (~60-90 min) ### 3. Install Created Agent **In terminal:** ```bash # Go to agent directory cd ./created-agent-name/ # Install Python dependencies pip install -r requirements.txt # If API key needed (follow instructions in README) export API_KEY_VAR="your_key_here" ``` **In Claude Code:** ```bash # Install skill /plugin marketplace add ./created-agent-name # Verify installation /plugin list ``` ### 4. Use the Agent **In Claude Code:** ``` πŸ‘€ Ask questions related to the domain πŸ€– Skill activates automatically and responds ``` --- ## 🎯 ROI (Return on Investment) | Metric | Manual | With Agent-Creator | Savings | |---------|--------|-------------------|----------| | **Time** | 20-30 hours | 1.5 hours | **15-20x** | | **Required knowledge** | APIs, Python, Architecture | None | **100%** | | **Code written** | By you | By Claude | **100%** | | **Quality** | Variable | Production-ready | High | **But the best part:** You do nothing, just describe the workflow! πŸŽ‰ --- ## πŸ“š Complete Documentation This repository includes detailed guides in Portuguese: 1. **[como-compartilhar-skills.md](./como-compartilhar-skills.md)** - How to publish your skills - GitHub, ZIP, Claude.ai - Best practices 2. **[guia-completo-claude-skills.md](./guia-completo-claude-skills.md)** - Complete guide about Claude Skills - Technical specifications - Examples 3. **[como_instalar_agente_creator.md](./como_instalar_agente_creator.md)** - Detailed installation instructions - Troubleshooting 4. **[meta-prompt-autonomo-criacao-agentes.md](./meta-prompt-autonomo-criacao-agentes.md)** - Meta-prompt for agent creation - Universal annotated template - Quality checklist 5. **[scripts-vs-skills-guia-didatico.md](./scripts-vs-skills-guia-didatico.md)** - Didactic comparison Scripts vs Skills - When to use each approach 6. **[agent-creator/README.md](./agent-creator/README.md)** - Meta-skill documentation - Technical details --- ## πŸ’‘ Use Cases ### Agriculture ``` "Create agent for Brazilian crop analysis via CONAB" β†’ Agent with TXT parsing, YoY analyses, regional rankings ``` ### Finance ``` "Automate daily stock analysis: prices, RSI, MACD" β†’ Agent with technical indicators, alerts, comparisons ``` ### Climate ``` "Climate analysis of Sorriso-MT: temperature, rain, trends" β†’ Agent with data since 1940, 6 types of analyses ``` ### Economy ``` "Agent for World Bank economic indicators" β†’ Agent with GDP, inflation, country comparisons ``` **Any domain with API or structured data!** --- ## πŸ› οΈ Useful Commands ### Check Installed Skills ```bash # In Claude Code /plugin list ``` ### Install Agent-Creator ```bash # In Claude Code /plugin marketplace add FrancyJGLisboa/agent-skill-creator ``` ### Create an Agent ```bash # In Claude Code (natural language) "Create an agent for [objective]" "Automate workflow of [description]" ``` ### Install Created Agent ```bash # Terminal cd ./created-agent/ pip install -r requirements.txt # Claude Code /plugin marketplace add ./created-agent ``` ### Use Agent ```bash # In Claude Code (natural language) Ask questions related to the agent's domain ``` --- ## βš™οΈ Technical Requirements ### To Use Agent-Creator - Claude Code CLI installed - Internet connection (for API research) ### For Created Agents - Python 3.8+ - pip (to install dependencies) - Specific dependencies (listed in requirements.txt of each agent) - API key (if chosen API requires - instructions in agent's README) --- ## πŸŽ“ Understanding the Output ### Main Files Created **`.claude-plugin/marketplace.json`** - Configuration for Claude Code installation - **CRITICAL:** Without it, skill cannot be installed **`SKILL.md`** - Complete skill orchestration - Detailed workflows - Analysis documentation - ~5000-7000 words **`scripts/`** - Functional Python code - Separated by responsibility (fetch, parse, analyze) - Reusable utils (cache, validators) - ~1500-2000 lines total **`references/`** - Technical guides (API docs, methodologies) - Troubleshooting - Domain knowledge - ~5000 words **`README.md`** - Installation instructions - Usage examples - Troubleshooting **`DECISIONS.md`** - Justifications for all decisions - Which API chosen and why - Which analyses and why - Trade-offs considered --- ## ⭐ Features - βœ… **Total Autonomy:** Claude decides everything - βœ… **Production-Ready:** Functional code, no TODOs - βœ… **Complete Documentation:** 10,000+ words - βœ… **Smart Cache:** TTL based on data type - βœ… **Robust Validations:** Guaranteed data quality - βœ… **Error Handling:** Retry, fallbacks, clear messages - βœ… **Marketplace.json:** Guaranteed Claude Code installation --- ## 🚧 Limitations **DO NOT use for:** - ❌ Editing existing skills (edit directly) - ❌ Debugging skills (debug directly) - ❌ Asking questions about skills (ask directly) **USE ONLY for:** - βœ… Creating new agents from scratch - βœ… Automating repetitive workflows --- ## 🀝 Contributing Contributions are welcome! 1. Fork this repository 2. Create a branch (`git checkout -b feature/improvement`) 3. Commit your changes 4. Push to the branch 5. Open a Pull Request --- ## πŸ“„ License Apache 2.0 (same license as Anthropic's official skills) Free to use, modify, and distribute. --- ## πŸ™ Credits **Inspired by:** - [Anthropic Agent Skills Spec](https://github.com/anthropics/skills) - [skill-creator skill](https://github.com/anthropics/skills/tree/main/skill-creator) **Differentiator:** Total autonomy - Claude decides everything, not just executes instructions. --- ## πŸ“Š Repository Statistics **Agent-Creator Meta-Skill:** - 8 main files - ~5,000 words in SKILL.md - 6 detailed references - 5-phase autonomous protocol **Documentation:** - 5 complete guides in Portuguese - ~150 KB of documentation - Complete coverage of Claude Skills ecosystem --- ## 🌟 Examples of Agents Created with Agent-Creator **1. USDA Agriculture Agent** - API: USDA NASS - Analyses: YoY, Ranking, Trends - Output: 1,410 lines of code **2. Climate Analysis Sorriso-MT** (created today!) - API: Open-Meteo - Analyses: 6 types (series, trends, anomalies, etc.) - Output: 2,070 lines of code **All created autonomously by the meta-skill!** --- ## πŸ“ž Support **Issues:** https://github.com/FrancyJGLisboa/agent-skill-creator/issues **Discussions:** https://github.com/FrancyJGLisboa/agent-skill-creator/discussions --- ## πŸš€ Quick Start ```bash # 1. Install agent-creator /plugin marketplace add FrancyJGLisboa/agent-skill-creator # 2. Create an agent (in Claude Code) "Automate workflow for analyzing [your domain]" # 3. Wait for creation (~60-90 min) # 4. Install created agent /plugin marketplace add ./created-agent # 5. Use it! "[Ask domain questions]" ``` --- **Start automating today! Transform repetitive workflows into powerful agents! πŸš€** --- **Version:** 1.0.0 **Updated:** October 2025 **Author:** Created with Claude Code **Repository:** https://github.com/FrancyJGLisboa/agent-skill-creator