Skip to content

100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.

feat: initialize self-improving agent skills project with Next.js frontend and Google ADK backend

Shubhamsabood660a3b81087
diff --git a/README.md b/README.md
index bff760c1..d33380f2 100644
--- a/README.md
+++ b/README.md
@@ -210,7 +210,7 @@ A curated collection of **Awesome LLM apps built with RAG, AI Agents, Multi-agen
### 🎯 LLM Optimization Tools
* [🎯 Toonify Token Optimization](advanced_llm_apps/llm_optimization_tools/toonify_token_optimization/) - Reduce LLM API costs by 30-60% using TOON format
-* [🧠 Headroom Context Optimization](advanced_llm_apps/llm_optimization_tools/headroom_context_optimization/) - Reduce LLM API costs by 50-90% through intelligent context compression for AI agents (includes persistent memory & MCP support)
+* [🧠 Headroom Context Optimization](advanced_llm_apps/llm_optimization_tools/headroom_context_optimization/) - Reduce LLM API costs by 50-90% format
### πŸ”§ LLM Fine-tuning Tutorials
@@ -234,6 +234,10 @@ A curated collection of **Awesome LLM apps built with RAG, AI Agents, Multi-agen
- Multi‑agent patterns; agent handoffs
- Swarm orchestration; routing logic
+### 🧩 Awesome Agent Skills
+
+* [♾️ Self-Improving Agent Skills](awesome_agent_skills/self-improving-agent-skills/) - Automatically optimize agent skills using Gemini and ADK
+
## πŸš€ Getting Started
1. **Clone the repository**
diff --git a/awesome_agent_skills/self-improving-agent-skills/README.md b/awesome_agent_skills/self-improving-agent-skills/README.md
new file mode 100644
index 00000000..af2bcb20
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/README.md
@@ -0,0 +1,227 @@
+# Self-Improving Agent Skills
+
+Automatically optimize your agent skills using Gemini's reasoning capabilities. Upload a skill, let AI generate test scenarios and evaluation criteria, then watch as your skill improves itself through iterative optimization.
+
+## How It Works
+
+This app implements an automated skill improvement loop inspired by Karpathy's autoresearch methodology:
+
+1. **Upload**: Drop in your skill folder (following [agentskills.io](https://agentskills.io) spec)
+2. **Configure**: AI generates test scenarios and evaluation criteria. Edit, add, or regenerate as needed
+3. **Optimize**: The system runs your skill, scores outputs, mutates the prompt one change at a time, and keeps improvements
+4. **Results**: Download your improved skill with a detailed changelog
+
+The optimization loop:
+- Runs the skill against test scenarios
+- Scores outputs using binary yes/no evaluation criteria
+- Analyzes failure patterns
+- Proposes ONE targeted change to the skill prompt
+- Tests the change
+- Keeps it if score improves, reverts if not
+- Repeats until 95%+ pass rate or max rounds reached
+
+## Architecture
+
+```
+self-improving-skill/
+β”œβ”€β”€ backend/ # FastAPI server + optimization engine
+β”‚ β”œβ”€β”€ app.py # REST API endpoints + SSE streaming
+β”‚ β”œβ”€β”€ optimizer.py # Core optimization logic
+β”‚ β”œβ”€β”€ requirements.txt
+β”‚ └── .env.example
+β”œβ”€β”€ frontend/ # Next.js + React + Tailwind
+β”‚ β”œβ”€β”€ src/
+β”‚ β”‚ β”œβ”€β”€ app/ # Main page + layout
+β”‚ β”‚ └── components/ # Upload, Config, Running, Results steps
+β”‚ β”œβ”€β”€ package.json
+β”‚ └── *.config.ts
+β”œβ”€β”€ example_skills/ # Sample skills to test
+β”‚ β”œβ”€β”€ code-reviewer/
+β”‚ └── content-writer/
+└── README.md
+```
+
+## Tech Stack
+
+- **Backend**: Python 3.10+, FastAPI, google-genai SDK
+- **Frontend**: Next.js 15, React 19, Tailwind CSS v4, Recharts
+- **AI**: Gemini 2.5 Flash for analysis, execution, scoring, and mutation
+- **Real-time**: Server-Sent Events (SSE) for live optimization progress
+
+## Quick Start
+
+### Backend Setup
+
+```bash
+cd backend
+
+# Create virtual environment
+python -m venv venv
+source venv/bin/activate # On Windows: venv\Scripts\activate
+
+# Install dependencies
+pip install -r requirements.txt
+
+# Set up environment (optional, can also pass via header)
+cp .env.example .env
+# Edit .env and add your GEMINI_API_KEY
+
+# Run server
+python app.py
+# Server runs on http://localhost:8000
+```
+
+### Frontend Setup
+
+```bash
+cd frontend
+
+# Install dependencies
+npm install
+
+# Run development server
+npm run dev
+# App runs on http://localhost:3000
+```
+
+### Usage
+
+1. Get a Gemini API key from [Google AI Studio](https://aistudio.google.com/apikey)
+2. Open http://localhost:3000
+3. Upload a skill folder as a .zip file (or try an example)
+4. Enter your Gemini API key
+5. Review and edit the generated test scenarios and evaluation criteria
+6. Click "Start Optimization" and watch the score climb
+7. Download your improved skill when complete
+
+## Skill Format
+
+Skills follow the [agentskills.io](https://agentskills.io) specification:
+
+```
+my-skill/
+β”œβ”€β”€ SKILL.md # Required: YAML frontmatter + instructions
+β”œβ”€β”€ scripts/ # Optional: executable code
+β”œβ”€β”€ references/ # Optional: additional docs
+└── assets/ # Optional: templates, resources
+```
+
+Example SKILL.md:
+
+```markdown
+---
+name: my-skill
+description: What this skill does and when to use it
+license: MIT
+metadata:
+ author: your-name
+ version: "1.0"
+---
+
+# My Skill
+
+Your skill instructions here...
+```
+
+## Example Skills
+
+Two example skills are included:
+
+- **code-reviewer**: Reviews code for security, performance, and best practices
+- **content-writer**: Writes marketing copy following style guidelines
+
+Create a zip file from an example:
+
+```bash
+cd example_skills
+zip -r code-reviewer.zip code-reviewer/
+```
+
+Then upload the zip in the app.
+
+## How the Optimization Works
+
+### 1. Analysis Phase
+Gemini analyzes your skill and generates:
+- 3-5 diverse test scenarios
+- 3-6 binary evaluation criteria (yes/no questions)
+
+### 2. Baseline Run
+The skill runs against all scenarios. Each output is scored against all evaluation criteria. This establishes the starting score.
+
+### 3. Optimization Loop
+For each round:
+1. Analyze which evaluation criteria fail most frequently
+2. Use Gemini to propose ONE specific change to improve the skill
+3. Run the modified skill against all scenarios
+4. Compare scores
+5. Keep the change if score improved, revert if not
+6. Repeat until 95%+ pass rate for 3 consecutive rounds or max rounds reached
+
+### 4. Output
+- Improved SKILL.md with all successful changes applied
+- Detailed changelog of what changed and why
+- Performance comparison (baseline vs final)
+
+## API Endpoints
+
+- `POST /api/upload` - Upload skill zip file
+- `POST /api/analyze` - Generate scenarios and evals (requires GEMINI_API_KEY header)
+- `POST /api/regenerate` - Regenerate scenarios and evals
+- `POST /api/update-config` - Save user's selected/edited config
+- `POST /api/start/{session_id}` - Start optimization
+- `GET /api/stream/{session_id}` - SSE stream of optimization progress
+- `POST /api/stop/{session_id}` - Stop optimization
+- `GET /api/download/{session_id}` - Download improved skill
+
+## Configuration
+
+### Backend
+
+Set `GEMINI_API_KEY` in `.env` or pass via request header.
+
+### Frontend
+
+API key is stored in component state (not persisted) and sent with each request.
+
+### Optimization Parameters
+
+In `RunningStep.tsx`, adjust `max_rounds`:
+
+```typescript
+body: JSON.stringify({
+ max_rounds: 20, // Default: 20
+}),
+```
+
+In `optimizer.py`, adjust model:
+
+```python
+def __init__(self, api_key: str, model: str = "gemini-2.5-flash"):
+```
+
+## Development
+
+### Backend Tests
+
+```bash
+cd backend
+python -c "from optimizer import SkillOptimizer; print('OK')"
+```
+
+### Frontend Build
+
+```bash
+cd frontend
+npm run build
+```
+
+### Live Development
+
+Both servers support hot reload. Edit code and see changes immediately.
+
+## Based on Karpathy's Autoresearch
+
+This tool applies Andrej Karpathy's autoresearch methodology (using LLMs to iteratively improve their own prompts) to agent skills. The key insight: rather than manually tweaking prompts, define success criteria and let the AI optimize itself.
+
+Original concept: [https://github.com/karpathy/autoresearch](https://github.com/karpathy/autoresearch)
\ No newline at end of file
diff --git a/awesome_agent_skills/self-improving-agent-skills/backend/adk_optimizer.py b/awesome_agent_skills/self-improving-agent-skills/backend/adk_optimizer.py
new file mode 100644
index 00000000..1b815649
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/backend/adk_optimizer.py
@@ -0,0 +1,352 @@
+"""Multi-Agent Skill Optimizer using Google ADK.
+
+3 ADK agents work together to improve agent skills:
+ Executor: runs the skill against test scenarios
+ Analyst: diagnoses why evals failed, picks a mutation strategy
+ Mutator: makes one targeted fix per round
+"""
+
+import json
+import re
+import uuid
+from typing import Callable, Optional
+
+from google.adk import Agent
+from google.adk.runners import Runner
+from google.adk.sessions import InMemorySessionService
+from google import genai
+from google.genai import types
+
+
+class SkillOptimizer:
+ def __init__(self, api_key: str, model: str = "gemini-3-flash-preview"):
+ self.client = genai.Client(api_key=api_key)
+ self.model = model
+ self._session_service = InMemorySessionService()
+ self._call_id = 0
+
+ self.executor = Agent(
+ name="executor",
+ model=model,
+ instruction=(
+ "You execute agent skills faithfully. Given a skill's instructions "
+ "and a user request, produce the output that skill would generate. "
+ "Follow the instructions exactly. No meta-commentary."
+ ),
+ )
+ self.analyst = Agent(
+ name="analyst",
+ model=model,
+ instruction=(
+ "You diagnose why agent skill evaluations fail. "
+ "Given failed eval results, identify the root cause and suggest "
+ "a specific fix. Return valid JSON with keys: "
+ "diagnosis, mutation_strategy (add_example|add_constraint|restructure|add_edge_case), "
+ "target_section, suggested_change."
+ ),
+ )
+ self.mutator = Agent(
+ name="mutator",
+ model=model,
+ instruction=(
+ "You edit agent skill files. Given a SKILL.md and a diagnosis, "
+ "make exactly ONE targeted change. Keep structure and frontmatter intact. "
+ "Return valid JSON with keys: description, reasoning, new_skill_md."
+ ),
+ )
+
+ # -- Agent runner helper --------------------------------------------------
+
+ async def _ask(self, agent: Agent, prompt: str) -> str:
+ """Run an ADK agent with a prompt, return text response."""
+ self._call_id += 1
+ uid = f"u{self._call_id}"
+ runner = Runner(
+ agent=agent, app_name="skill_opt", session_service=self._session_service
+ )
+ session = await self._session_service.create_session(
+ app_name="skill_opt", user_id=uid
+ )
+ text = ""
+ async for event in runner.run_async(
+ user_id=uid,
+ session_id=session.id,
+ new_message=types.Content(parts=[types.Part(text=prompt)]),
+ ):
+ if hasattr(event, "content") and event.content:
+ for part in event.content.parts or []:
+ if hasattr(part, "text") and part.text:
+ text += part.text
+ return text
+
+ # -- Gemini direct call (for structured JSON) -----------------------------
+
+ async def _gen_json(self, prompt: str):
+ """Call Gemini directly for structured JSON output."""
+ resp = await self.client.aio.models.generate_content(
+ model=self.model,
+ contents=prompt,
+ config=types.GenerateContentConfig(
+ response_mime_type="application/json"
+ ),
+ )
+ return json.loads(resp.text)
+
+ # -- Parse JSON from agent text (agents don't guarantee pure JSON) --------
+
+ def _parse_json(self, text: str, fallback: dict) -> dict:
+ try:
+ return json.loads(text)
+ except json.JSONDecodeError:
+ m = re.search(r"\{.*\}", text, re.DOTALL)
+ if m:
+ try:
+ return json.loads(m.group(0))
+ except json.JSONDecodeError:
+ pass
+ return fallback
+
+ # -- Public API -----------------------------------------------------------
+
+ async def analyze_skill(self, skill_files: dict) -> dict:
+ """Generate test scenarios and eval criteria from skill files."""
+ skill_md = next(
+ (v for k, v in skill_files.items() if k.endswith("SKILL.md")), ""
+ )
+ refs = {k: v for k, v in skill_files.items() if "references/" in k}
+ ref_text = ""
+ if refs:
+ ref_text = "\n\nReference files:\n" + "\n---\n".join(
+ f"## {k}\n{v}" for k, v in refs.items()
+ )
+
+ prompt = f"""Analyze this agent skill and generate test scenarios with evaluation criteria.
+
+# SKILL.md
+{skill_md}
+{ref_text}
+
+Generate:
+1. 3-4 diverse test scenarios (realistic user inputs that test different aspects)
+2. 4-6 binary yes/no evaluation criteria
+
+Return JSON:
+{{
+ "scenarios": [
+ {{"id": 1, "name": "short name", "description": "short name", "input": "the user request to test"}}
+ ],
+ "evals": [
+ {{"id": 1, "name": "what to check", "criterion": "what to check", "question": "yes/no question about the output", "pass_condition": "what yes looks like", "fail_condition": "what no looks like"}}
+ ]
+}}"""
+ return await self._gen_json(prompt)
+
+ async def optimize(
+ self,
+ skill_files: dict,
+ scenarios: list,
+ evals: list,
+ max_rounds: int = 5,
+ callback: Optional[Callable] = None,
+ ) -> dict:
+ """Run the optimization loop with 3 ADK agents."""
+
+ async def emit(event):
+ if callback:
+ await callback(event)
+
+ skill_md = next(
+ (v for k, v in skill_files.items() if k.endswith("SKILL.md")), ""
+ )
+ current_md = skill_md
+ score_history = []
+ mutation_log = []
+
+ # -- Baseline ---------------------------------------------------------
+ baseline = await self._score_skill(current_md, scenarios, evals)
+ baseline_pct = round(100 * baseline["passed"] / max(baseline["total"], 1), 1)
+ score_history.append(baseline_pct)
+
+ await emit({
+ "type": "baseline",
+ "data": {
+ "score": baseline_pct,
+ "passed": baseline["passed"],
+ "total": baseline["total"],
+ "per_eval": baseline["per_eval"],
+ },
+ })
+
+ # -- Rounds -----------------------------------------------------------
+ for rnd in range(1, max_rounds + 1):
+ await emit({"type": "experiment_start", "data": {"round": rnd}})
+
+ # Analyst diagnoses worst failure
+ analysis = await self._analyze_failures(
+ current_md, scenarios, evals, baseline["details"]
+ )
+
+ # Mutator applies fix
+ mutation = await self._mutate_skill(current_md, analysis)
+ new_md = mutation.get("new_skill_md", current_md)
+
+ # Re-score
+ result = await self._score_skill(new_md, scenarios, evals)
+ new_pct = round(100 * result["passed"] / max(result["total"], 1), 1)
+
+ kept = new_pct > baseline_pct
+ entry = {
+ "round": rnd,
+ "strategy_type": analysis.get("mutation_strategy", "unknown"),
+ "diagnosis": analysis.get("diagnosis", ""),
+ "description": mutation.get("description", ""),
+ "score_before": baseline_pct,
+ "score_after": new_pct,
+ "kept": kept,
+ }
+ mutation_log.append(entry)
+
+ if kept:
+ current_md = new_md
+ baseline = result
+ baseline_pct = new_pct
+
+ score_history.append(baseline_pct)
+
+ await emit({
+ "type": "experiment_result",
+ "data": {
+ "round": rnd,
+ "score": new_pct,
+ "kept": kept,
+ "status": "kept" if kept else "discarded",
+ "description": mutation.get("description", ""),
+ "strategy": analysis.get("mutation_strategy", ""),
+ "per_eval": result["per_eval"],
+ },
+ })
+
+ # -- Done -------------------------------------------------------------
+ final_pct = baseline_pct
+ await emit({
+ "type": "complete",
+ "data": {
+ "baseline_score": score_history[0],
+ "final_score": final_pct,
+ "improved_skill_md": current_md,
+ "score_history": score_history,
+ "mutation_log": mutation_log,
+ "strategy_stats": self._strategy_stats(mutation_log),
+ },
+ })
+
+ return {
+ "baseline_score": score_history[0],
+ "final_score": final_pct,
+ "improved_skill_md": current_md,
+ "score_history": score_history,
+ "mutation_log": mutation_log,
+ }
+
+ # -- Internal helpers -----------------------------------------------------
+
+ async def _score_skill(self, skill_md, scenarios, evals):
+ """Run Executor on all scenarios, then score with Gemini."""
+ all_results = []
+ total_passed = 0
+ total_checks = 0
+ per_eval = {e["id"]: {"passed": 0, "total": 0} for e in evals}
+
+ for sc in scenarios:
+ # Executor runs the skill
+ output = await self._ask(
+ self.executor,
+ f"Execute this skill:\n\n{skill_md}\n\nUser request:\n{sc['input']}",
+ )
+ # Score with Gemini (structured JSON, not an agent)
+ scores = await self._gen_json(
+ f"""Evaluate this output against criteria. Return JSON array.
+
+Input: {sc['input']}
+Output: {output}
+
+Criteria:
+{json.dumps(evals, indent=2)}
+
+Return: [{{"eval_id": 1, "passed": true, "reason": "..."}}]"""
+ )
+ if not isinstance(scores, list):
+ scores = scores.get("results", scores.get("evaluations", []))
+
+ for s in scores:
+ eid = s.get("eval_id")
+ passed = s.get("passed", False)
+ if passed:
+ total_passed += 1
+ total_checks += 1
+ if eid in per_eval:
+ per_eval[eid]["total"] += 1
+ if passed:
+ per_eval[eid]["passed"] += 1
+ all_results.append({**s, "scenario_id": sc["id"]})
+
+ return {
+ "passed": total_passed,
+ "total": total_checks,
+ "per_eval": [
+ {"eval_id": k, **v, "pass_rate": round(v["passed"] / max(v["total"], 1) * 100, 1)}
+ for k, v in per_eval.items()
+ ],
+ "details": all_results,
+ }
+
+ async def _analyze_failures(self, skill_md, scenarios, evals, details):
+ """Analyst agent diagnoses the worst failures."""
+ failed = [d for d in details if not d.get("passed")]
+ if not failed:
+ return {"diagnosis": "All passed", "mutation_strategy": "add_constraint",
+ "target_section": "N/A", "suggested_change": "none"}
+
+ prompt = (
+ f"Diagnose these failures and suggest ONE fix.\n\n"
+ f"Skill:\n{skill_md[:2000]}\n\n"
+ f"Failed evals:\n{json.dumps(failed[:5], indent=2)}\n\n"
+ f"Return JSON: {{diagnosis, mutation_strategy, target_section, suggested_change}}"
+ )
+ text = await self._ask(self.analyst, prompt)
+ return self._parse_json(text, {
+ "diagnosis": text[:200],
+ "mutation_strategy": "add_constraint",
+ "target_section": "unknown",
+ "suggested_change": "unclear",
+ })
+
+ async def _mutate_skill(self, skill_md, analysis):
+ """Mutator agent makes one targeted change."""
+ prompt = (
+ f"Apply this fix to the skill. Make ONE change only.\n\n"
+ f"SKILL.md:\n{skill_md}\n\n"
+ f"Diagnosis: {analysis.get('diagnosis')}\n"
+ f"Strategy: {analysis.get('mutation_strategy')}\n"
+ f"Target: {analysis.get('target_section')}\n"
+ f"Change: {analysis.get('suggested_change')}\n\n"
+ f"Return JSON: {{description, reasoning, new_skill_md}}"
+ )
+ text = await self._ask(self.mutator, prompt)
+ return self._parse_json(text, {
+ "description": "Failed to parse mutation",
+ "reasoning": "",
+ "new_skill_md": skill_md,
+ })
+
+ @staticmethod
+ def _strategy_stats(mutation_log):
+ stats = {}
+ for m in mutation_log:
+ s = m.get("strategy_type", "unknown")
+ if s not in stats:
+ stats[s] = {"total": 0, "kept": 0}
+ stats[s]["total"] += 1
+ if m.get("kept"):
+ stats[s]["kept"] += 1
+ return stats
diff --git a/awesome_agent_skills/self-improving-agent-skills/backend/app.py b/awesome_agent_skills/self-improving-agent-skills/backend/app.py
new file mode 100644
index 00000000..fe47705c
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/backend/app.py
@@ -0,0 +1,402 @@
+from fastapi import FastAPI, UploadFile, File, HTTPException, Form
+from fastapi.responses import StreamingResponse, FileResponse
+from fastapi.middleware.cors import CORSMiddleware
+from pydantic import BaseModel
+from typing import Optional, List, Dict
+import uuid
+import zipfile
+import io
+import os
+import json
+import asyncio
+import tempfile
+import shutil
+import re
+import logging
+import traceback
+from adk_optimizer import SkillOptimizer
+
+logging.basicConfig(level=logging.INFO)
+logger = logging.getLogger(__name__)
+
+app = FastAPI()
+
+app.add_middleware(
+ CORSMiddleware,
+ allow_origins=["*"],
+ allow_credentials=True,
+ allow_methods=["*"],
+ allow_headers=["*"],
+)
+
+sessions: Dict[str, dict] = {}
+
+
+class AnalyzeRequest(BaseModel):
+ session_id: str
+ gemini_api_key: str
+
+
+class SessionConfig(BaseModel):
+ session_id: str
+ scenarios: List[dict]
+ evals: List[dict]
+
+
+class RegenerateRequest(BaseModel):
+ session_id: str
+ gemini_api_key: str
+
+
+class StartRequest(BaseModel):
+ gemini_api_key: str
+ max_rounds: Optional[int] = 20
+
+
+def parse_skill_frontmatter(content: str) -> dict:
+ """Parse YAML frontmatter from SKILL.md"""
+ if not content.startswith("---"):
+ return {}
+ try:
+ parts = content.split("---", 2)
+ if len(parts) < 3:
+ return {}
+ frontmatter = parts[1].strip()
+ metadata = {}
+ for line in frontmatter.split("\n"):
+ line = line.strip()
+ if ":" in line and not line.startswith(" "):
+ key, value = line.split(":", 1)
+ metadata[key.strip()] = value.strip().strip('"')
+ return metadata
+ except Exception:
+ return {}
+
+
+def create_session_from_files(skill_files: dict, file_list: list) -> dict:
+ """Create a session dict from skill files"""
+ skill_md = None
+ for name, content in skill_files.items():
+ if name.endswith("SKILL.md"):
+ skill_md = content
+ break
+ if not skill_md:
+ raise HTTPException(status_code=400, detail="No SKILL.md found")
+ metadata = parse_skill_frontmatter(skill_md)
+ session_id = str(uuid.uuid4())
+ sessions[session_id] = {
+ "skill_files": skill_files,
+ "file_list": file_list,
+ "metadata": metadata,
+ "status": "uploaded",
+ "scenarios": None,
+ "evals": None,
+ "experiments": [],
+ "changelog": [],
+ "current_skill_md": skill_md,
+ "original_skill_md": skill_md,
+ }
+ return {"session_id": session_id, "file_list": file_list, "metadata": metadata}
+
+
[email protected]("/api/upload")
+async def upload_skill(file: UploadFile = File(...)):
+ """Accept zip file or multiple files, extract, return file list + parsed SKILL.md metadata"""
+ if not file.filename.endswith(".zip"):
+ raise HTTPException(status_code=400, detail="Only .zip files are accepted")
+ content = await file.read()
+ try:
+ with zipfile.ZipFile(io.BytesIO(content)) as zf:
+ skill_files = {}
+ file_list = []
+ for name in zf.namelist():
+ if name.endswith("/") or name.startswith("__MACOSX") or "/.DS_Store" in name or name.endswith(".DS_Store"):
+ continue
+ file_content = zf.read(name).decode("utf-8", errors="ignore")
+ # Strip leading directory if all files share a common prefix
+ skill_files[name] = file_content
+ file_list.append(name)
+
+ # Normalize paths: strip common prefix directory
+ if file_list:
+ common = os.path.commonpath(file_list)
+ if common and common != file_list[0]:
+ skill_files = {os.path.relpath(k, common): v for k, v in skill_files.items()}
+ file_list = [os.path.relpath(f, common) for f in file_list]
+
+ return create_session_from_files(skill_files, file_list)
+ except zipfile.BadZipFile:
+ raise HTTPException(status_code=400, detail="Invalid zip file")
+ except HTTPException:
+ raise
+ except Exception as e:
+ raise HTTPException(status_code=500, detail=f"Error processing file: {str(e)}")
+
+
[email protected]("/api/upload-files")
+async def upload_files(files: List[UploadFile] = File(...)):
+ """Accept multiple files (folder upload via webkitdirectory)"""
+ skill_files = {}
+ file_list = []
+ for f in files:
+ if f.filename.startswith(".") or "/.DS_Store" in (f.filename or "") or "__MACOSX" in (f.filename or ""):
+ continue
+ content = await f.read()
+ name = f.filename or "unknown"
+ skill_files[name] = content.decode("utf-8", errors="ignore")
+ file_list.append(name)
+
+ # Normalize paths: strip common prefix directory
+ if file_list:
+ common = os.path.commonpath(file_list)
+ if common and common != file_list[0]:
+ skill_files = {os.path.relpath(k, common): v for k, v in skill_files.items()}
+ file_list = [os.path.relpath(f, common) for f in file_list]
+
+ return create_session_from_files(skill_files, file_list)
+
+
[email protected]("/api/analyze")
+async def analyze_skill(request: AnalyzeRequest):
+ """Generate scenarios + evals using Gemini"""
+ if request.session_id not in sessions:
+ raise HTTPException(status_code=404, detail="Session not found")
+ session = sessions[request.session_id]
+ try:
+ optimizer = SkillOptimizer(api_key=request.gemini_api_key)
+ analysis = await optimizer.analyze_skill(session["skill_files"])
+ session["scenarios"] = analysis["scenarios"]
+ session["evals"] = analysis["evals"]
+ session["status"] = "analyzed"
+ return {"scenarios": analysis["scenarios"], "evals": analysis["evals"]}
+ except Exception as e:
+ raise HTTPException(status_code=500, detail=f"Analysis failed: {str(e)}")
+
+
[email protected]("/api/regenerate")
+async def regenerate_config(request: RegenerateRequest):
+ """Regenerate scenarios/evals for a session"""
+ analyze_req = AnalyzeRequest(session_id=request.session_id, gemini_api_key=request.gemini_api_key)
+ return await analyze_skill(analyze_req)
+
+
[email protected]("/api/update-config")
+async def update_config(config: SessionConfig):
+ """Save user's selected/edited scenarios + evals"""
+ if config.session_id not in sessions:
+ raise HTTPException(status_code=404, detail="Session not found")
+ session = sessions[config.session_id]
+ session["scenarios"] = config.scenarios
+ session["evals"] = config.evals
+ session["status"] = "configured"
+ return {"status": "ok"}
+
+
[email protected]("/api/stream/{session_id}")
+async def stream_progress(session_id: str):
+ """SSE endpoint streaming optimization progress"""
+ if session_id not in sessions:
+ raise HTTPException(status_code=404, detail="Session not found")
+ session = sessions[session_id]
+
+ async def event_generator():
+ if "event_queue" not in session:
+ session["event_queue"] = asyncio.Queue()
+ queue = session["event_queue"]
+ try:
+ while True:
+ event = await queue.get()
+ if event is None:
+ break
+ yield f"data: {json.dumps(event)}\n\n"
+ except asyncio.CancelledError:
+ pass
+ finally:
+ if "event_queue" in session:
+ del session["event_queue"]
+
+ return StreamingResponse(
+ event_generator(),
+ media_type="text/event-stream",
+ headers={"Cache-Control": "no-cache", "Connection": "keep-alive"},
+ )
+
+
[email protected]("/api/start/{session_id}")
+async def start_optimization(session_id: str, request: StartRequest):
+ """Start optimization in background task"""
+ if session_id not in sessions:
+ raise HTTPException(status_code=404, detail="Session not found")
+ session = sessions[session_id]
+ if not session.get("scenarios") or not session.get("evals"):
+ raise HTTPException(status_code=400, detail="Must configure scenarios and evals first")
+ if session.get("status") == "running":
+ raise HTTPException(status_code=400, detail="Optimization already running")
+
+ session["status"] = "running"
+ session["stop_requested"] = False
+ # Pre-create the event queue so events aren't lost before SSE connects
+ session["event_queue"] = asyncio.Queue()
+ gemini_key = request.gemini_api_key
+
+ async def run_optimization():
+ logger.info(f"Starting optimization for session {session_id}")
+ optimizer = SkillOptimizer(api_key=gemini_key)
+
+ async def callback(event):
+ logger.info(f"Callback event: {event['type']}")
+ if "event_queue" in session:
+ await session["event_queue"].put(event)
+ if event["type"] == "baseline":
+ session["experiments"].append({
+ "experiment_id": 0,
+ "pass_rate": event["data"].get("score", 0),
+ "status": "baseline",
+ "per_eval": event["data"].get("per_eval", []),
+ })
+ elif event["type"] == "experiment_result":
+ session["experiments"].append({
+ "experiment_id": event["data"].get("round", len(session["experiments"])),
+ "pass_rate": event["data"].get("score", 0),
+ "status": "keep" if event["data"].get("kept") else "discard",
+ "per_eval": event["data"].get("per_eval", []),
+ "description": event["data"].get("description", ""),
+ "strategy": event["data"].get("strategy", ""),
+ })
+ elif event["type"] == "complete":
+ session["status"] = "complete"
+ session["final_result"] = event["data"]
+ session["current_skill_md"] = event["data"]["improved_skill_md"]
+ if "event_queue" in session:
+ await session["event_queue"].put(None)
+
+ try:
+ result = await optimizer.optimize(
+ skill_files=session["skill_files"],
+ scenarios=session["scenarios"],
+ evals=session["evals"],
+ max_rounds=request.max_rounds,
+ callback=callback,
+ )
+ logger.info(f"Optimization complete: {result['baseline_score']}% -> {result['final_score']}%")
+ session["final_result"] = result
+ session["current_skill_md"] = result["improved_skill_md"]
+ session["status"] = "complete"
+ except Exception as e:
+ logger.error(f"Optimization error: {traceback.format_exc()}")
+ session["status"] = "error"
+ session["error"] = str(e)
+ if "event_queue" in session:
+ await session["event_queue"].put({"type": "error", "data": {"message": str(e)}})
+ await session["event_queue"].put(None)
+
+ asyncio.create_task(run_optimization())
+ return {"status": "started"}
+
+
[email protected]("/api/stop/{session_id}")
+async def stop_optimization(session_id: str):
+ """Stop optimization"""
+ if session_id not in sessions:
+ raise HTTPException(status_code=404, detail="Session not found")
+ session = sessions[session_id]
+ session["stop_requested"] = True
+ session["status"] = "stopped"
+ if "event_queue" in session:
+ await session["event_queue"].put(None)
+ return {"status": "stopped"}
+
+
[email protected]("/api/download/{session_id}")
+async def download_skill(session_id: str):
+ """Download improved skill as zip"""
+ if session_id not in sessions:
+ raise HTTPException(status_code=404, detail="Session not found")
+ session = sessions[session_id]
+ if not session.get("current_skill_md"):
+ raise HTTPException(status_code=400, detail="No improved skill available")
+ temp_dir = tempfile.mkdtemp()
+ zip_path = os.path.join(temp_dir, "improved_skill.zip")
+ try:
+ with zipfile.ZipFile(zip_path, "w") as zf:
+ for filename, content in session["skill_files"].items():
+ if filename.endswith("SKILL.md"):
+ zf.writestr(filename, session["current_skill_md"])
+ else:
+ zf.writestr(filename, content)
+ if session.get("final_result"):
+ changelog_content = json.dumps(session["final_result"]["changelog"], indent=2)
+ zf.writestr("CHANGELOG.json", changelog_content)
+ return FileResponse(zip_path, media_type="application/zip", filename="improved_skill.zip")
+ finally:
+ asyncio.create_task(cleanup_temp_dir(temp_dir))
+
+
+async def cleanup_temp_dir(temp_dir: str):
+ await asyncio.sleep(60)
+ try:
+ shutil.rmtree(temp_dir)
+ except Exception:
+ pass
+
+
[email protected]("/api/examples")
+async def list_examples():
+ """List available example skills"""
+ examples_dir = os.path.join(os.path.dirname(__file__), "..", "example_skills")
+ examples = []
+ if os.path.exists(examples_dir):
+ for name in sorted(os.listdir(examples_dir)):
+ skill_dir = os.path.join(examples_dir, name)
+ skill_md_path = os.path.join(skill_dir, "SKILL.md")
+ if os.path.isdir(skill_dir) and os.path.exists(skill_md_path):
+ with open(skill_md_path, "r") as f:
+ content = f.read()
+ metadata = parse_skill_frontmatter(content)
+ examples.append({"name": metadata.get("name", name), "description": metadata.get("description", ""), "path": name})
+ return {"examples": examples}
+
+
[email protected]("/api/examples/{example_name}/load")
+async def load_example(example_name: str):
+ """Load an example skill as if it were uploaded"""
+ examples_dir = os.path.join(os.path.dirname(__file__), "..", "example_skills")
+ skill_dir = os.path.join(examples_dir, example_name)
+ if not os.path.isdir(skill_dir):
+ raise HTTPException(status_code=404, detail="Example skill not found")
+ skill_files = {}
+ file_list = []
+ for root, dirs, files in os.walk(skill_dir):
+ for fname in files:
+ if fname.startswith("."):
+ continue
+ full_path = os.path.join(root, fname)
+ rel_path = os.path.relpath(full_path, skill_dir)
+ with open(full_path, "r") as f:
+ skill_files[rel_path] = f.read()
+ file_list.append(rel_path)
+ return create_session_from_files(skill_files, file_list)
+
+
[email protected]("/api/status/{session_id}")
+async def get_status(session_id: str):
+ """Poll-based status endpoint. Returns all experiments so far."""
+ if session_id not in sessions:
+ raise HTTPException(status_code=404, detail="Session not found")
+ session = sessions[session_id]
+ return {
+ "status": session.get("status", "unknown"),
+ "experiments": session.get("experiments", []),
+ "error": session.get("error"),
+ "final_result": session.get("final_result"),
+ }
+
+
+async def health_check():
+ return {"status": "healthy"}
+
+
+if __name__ == "__main__":
+ import uvicorn
+ uvicorn.run(app, host="0.0.0.0", port=8891)
diff --git a/awesome_agent_skills/self-improving-agent-skills/backend/optimizer.py b/awesome_agent_skills/self-improving-agent-skills/backend/optimizer.py
new file mode 100644
index 00000000..f5fbc204
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/backend/optimizer.py
@@ -0,0 +1,419 @@
+from google import genai
+from google.genai import types
+import json
+import asyncio
+import copy
+import re
+from typing import Dict, List, Optional, Callable
+
+
+class SkillOptimizer:
+ def __init__(self, api_key: str, model: str = "gemini-3-flash-preview"):
+ self.client = genai.Client(api_key=api_key)
+ self.model = model
+
+ async def analyze_skill(self, skill_files: Dict[str, str]) -> dict:
+ """Read all skill files, generate 3-5 test scenarios + 3-6 binary eval criteria.
+
+ Returns:
+ {"scenarios": [{"id": 1, "input": "...", "description": "..."}],
+ "evals": [{"id": 1, "name": "...", "question": "...", "pass_condition": "...", "fail_condition": "..."}]}
+ """
+ skill_md = skill_files.get("SKILL.md", "")
+ references = {k: v for k, v in skill_files.items() if k != "SKILL.md"}
+
+ context = f"# Skill Content\n\n{skill_md}\n\n"
+ if references:
+ context += "# Reference Files\n\n"
+ for filename, content in references.items():
+ context += f"## {filename}\n\n{content}\n\n"
+
+ prompt = f"""Analyze this agent skill and generate test scenarios and evaluation criteria.
+
+{context}
+
+Generate:
+1. 3-5 diverse test scenarios that exercise different aspects of the skill
+2. 3-6 binary evaluation criteria (yes/no questions) to measure quality
+
+For each scenario, provide:
+- id (number)
+- description (what this scenario tests)
+- input (the actual test input to send to the skill)
+
+For each evaluation criterion, provide:
+- id (number)
+- name (short label)
+- question (a yes/no question to evaluate the output)
+- pass_condition (what makes it pass)
+- fail_condition (what makes it fail)
+
+Return valid JSON with this structure:
+{{
+ "scenarios": [
+ {{"id": 1, "description": "...", "input": "..."}}
+ ],
+ "evals": [
+ {{"id": 1, "name": "...", "question": "...", "pass_condition": "...", "fail_condition": "..."}}
+ ]
+}}"""
+
+ response = await self.client.aio.models.generate_content(
+ model=self.model,
+ contents=prompt,
+ config=types.GenerateContentConfig(
+ response_mime_type="application/json"
+ )
+ )
+
+ result = json.loads(response.text)
+ return result
+
+ async def execute_skill(self, skill_md: str, test_input: str) -> str:
+ """Run the skill as a system prompt with the test input as user message.
+
+ Returns:
+ The output from executing the skill.
+ """
+ response = await self.client.aio.models.generate_content(
+ model=self.model,
+ contents=[
+ types.Content(
+ role="user",
+ parts=[types.Part(text=f"System instructions:\n\n{skill_md}\n\n---\n\nUser request:\n\n{test_input}")]
+ )
+ ]
+ )
+
+ return response.text
+
+ async def score_output(self, output: str, test_input: str, evals: List[dict]) -> List[dict]:
+ """Score one output against all evals.
+
+ Returns:
+ [{"eval_id": 1, "passed": true/false, "reason": "..."}]
+ """
+ eval_questions = "\n".join([
+ f"{i+1}. {ev['question']}\n Pass: {ev['pass_condition']}\n Fail: {ev['fail_condition']}"
+ for i, ev in enumerate(evals)
+ ])
+
+ prompt = f"""Evaluate this output against the criteria below.
+
+# Test Input
+{test_input}
+
+# Output
+{output}
+
+# Evaluation Criteria
+{eval_questions}
+
+For each criterion, determine if it passes (yes) or fails (no), and explain why.
+
+Return valid JSON array:
+[
+ {{"eval_id": 1, "passed": true, "reason": "..."}},
+ {{"eval_id": 2, "passed": false, "reason": "..."}}
+]"""
+
+ response = await self.client.aio.models.generate_content(
+ model=self.model,
+ contents=prompt,
+ config=types.GenerateContentConfig(
+ response_mime_type="application/json"
+ )
+ )
+
+ return json.loads(response.text)
+
+ async def analyze_failures(self, experiment_results: list, evals: list, changelog: list) -> str:
+ """Analyze which evals fail most and why.
+
+ Returns:
+ Text analysis of failure patterns.
+ """
+ results_summary = json.dumps(experiment_results, indent=2)
+ evals_summary = json.dumps(evals, indent=2)
+ changelog_summary = json.dumps(changelog, indent=2)
+
+ prompt = f"""Analyze these experiment results to identify failure patterns.
+
+# Evaluation Criteria
+{evals_summary}
+
+# Recent Experiment Results
+{results_summary}
+
+# Previous Changes (if any)
+{changelog_summary}
+
+Analyze:
+1. Which evaluation criteria fail most frequently?
+2. What patterns do you see in the failures?
+3. What specific aspect of the skill needs improvement?
+
+Provide a concise analysis focusing on the root cause."""
+
+ response = await self.client.aio.models.generate_content(
+ model=self.model,
+ contents=prompt
+ )
+
+ return response.text
+
+ async def mutate_skill(self, current_skill_md: str, failure_analysis: str, changelog: list) -> dict:
+ """Propose ONE targeted change.
+
+ Returns:
+ {"description": "what changed", "reasoning": "why", "new_skill_md": "..."}
+ """
+ changelog_summary = "\n".join([
+ f"- {entry['description']} ({entry['status']})"
+ for entry in changelog[-5:] if changelog
+ ]) if changelog else "No previous changes"
+
+ prompt = f"""You are improving an agent skill prompt. Based on the failure analysis, propose ONE specific change.
+
+# Current Skill Prompt
+{current_skill_md}
+
+# Failure Analysis
+{failure_analysis}
+
+# Recent Changes
+{changelog_summary}
+
+Propose ONE targeted change to address the failures. Changes can include:
+- Adding specific rules or constraints
+- Clarifying existing instructions
+- Adding examples
+- Restructuring sections
+- Adding checklists or formats
+
+Be surgical: change only what's needed. Avoid changes that were already tried and failed.
+
+Return valid JSON:
+{{
+ "description": "Brief description of the change",
+ "reasoning": "Why this addresses the failures",
+ "new_skill_md": "The complete modified SKILL.md content"
+}}"""
+
+ response = await self.client.aio.models.generate_content(
+ model=self.model,
+ contents=prompt,
+ config=types.GenerateContentConfig(
+ response_mime_type="application/json"
+ )
+ )
+
+ return json.loads(response.text)
+
+ async def run_experiment(self, skill_md: str, scenarios: list, evals: list, runs_per_scenario: int = 2) -> dict:
+ """Run skill across all scenarios, score all outputs.
+
+ Returns:
+ {"score": 14, "max_score": 20, "pass_rate": 70.0, "per_eval": [...], "per_scenario": [...]}
+ """
+ all_results = []
+ per_scenario_results = []
+
+ for scenario in scenarios:
+ scenario_results = []
+
+ for run_idx in range(runs_per_scenario):
+ output = await self.execute_skill(skill_md, scenario["input"])
+ scores = await self.score_output(output, scenario["input"], evals)
+
+ scenario_results.append({
+ "scenario_id": scenario["id"],
+ "run": run_idx + 1,
+ "output": output,
+ "scores": scores
+ })
+ all_results.extend(scores)
+
+ passed = sum(1 for r in scenario_results for s in r["scores"] if s["passed"])
+ total = len(scenario_results) * len(evals)
+
+ per_scenario_results.append({
+ "scenario_id": scenario["id"],
+ "description": scenario["description"],
+ "passed": passed,
+ "total": total,
+ "pass_rate": round((passed / total * 100), 1) if total > 0 else 0
+ })
+
+ per_eval_results = []
+ for eval_item in evals:
+ eval_scores = [r for r in all_results if r["eval_id"] == eval_item["id"]]
+ passed = sum(1 for s in eval_scores if s["passed"])
+ total = len(eval_scores)
+
+ per_eval_results.append({
+ "eval_id": eval_item["id"],
+ "name": eval_item["name"],
+ "passed": passed,
+ "total": total,
+ "pass_rate": round((passed / total * 100), 1) if total > 0 else 0
+ })
+
+ total_passed = sum(1 for r in all_results if r["passed"])
+ total_checks = len(all_results)
+
+ return {
+ "score": total_passed,
+ "max_score": total_checks,
+ "pass_rate": round((total_passed / total_checks * 100), 1) if total_checks > 0 else 0,
+ "per_eval": per_eval_results,
+ "per_scenario": per_scenario_results,
+ "raw_results": all_results
+ }
+
+ async def optimize(
+ self,
+ skill_files: dict,
+ scenarios: list,
+ evals: list,
+ max_rounds: int = 20,
+ callback: Optional[Callable] = None
+ ):
+ """Main optimization loop.
+
+ 1. Run baseline experiment (experiment 0)
+ 2. Loop:
+ a. Analyze failures
+ b. Mutate skill (one change)
+ c. Run experiment
+ d. If score improved: keep. Else: revert.
+ e. Log to changelog
+ f. Call callback with progress event
+ g. Stop if 95%+ for 3 consecutive or max_rounds hit
+ 3. Return final results
+ """
+ skill_md = skill_files.get("SKILL.md", "")
+ current_skill_md = skill_md
+ original_skill_md = skill_md
+
+ changelog = []
+ experiments = []
+ consecutive_95_plus = 0
+
+ if callback:
+ await callback({"type": "status", "data": {"message": "Running baseline experiment..."}})
+
+ baseline = await self.run_experiment(current_skill_md, scenarios, evals)
+ baseline_result = {
+ "experiment_id": 0,
+ "description": "Baseline",
+ "status": "baseline",
+ "score": baseline["score"],
+ "max_score": baseline["max_score"],
+ "pass_rate": baseline["pass_rate"],
+ "per_eval": baseline["per_eval"],
+ "per_scenario": baseline["per_scenario"]
+ }
+ experiments.append(baseline_result)
+
+ if callback:
+ await callback({"type": "baseline", "data": baseline_result})
+
+ best_score = baseline["score"]
+ best_skill_md = current_skill_md
+
+ if baseline["pass_rate"] >= 95:
+ consecutive_95_plus = 1
+
+ for round_idx in range(max_rounds):
+ if consecutive_95_plus >= 3:
+ break
+
+ recent_experiments = experiments[-3:] if len(experiments) >= 3 else experiments
+ failure_analysis = await self.analyze_failures(recent_experiments, evals, changelog)
+
+ if callback:
+ await callback({
+ "type": "experiment_start",
+ "data": {
+ "experiment_id": round_idx + 1,
+ "analyzing": True
+ }
+ })
+
+ mutation = await self.mutate_skill(current_skill_md, failure_analysis, changelog)
+
+ if callback:
+ await callback({
+ "type": "experiment_start",
+ "data": {
+ "experiment_id": round_idx + 1,
+ "description": mutation["description"]
+ }
+ })
+
+ new_skill_md = mutation["new_skill_md"]
+
+ result = await self.run_experiment(new_skill_md, scenarios, evals)
+
+ if result["score"] > best_score:
+ status = "keep"
+ current_skill_md = new_skill_md
+ best_score = result["score"]
+ best_skill_md = new_skill_md
+
+ if result["pass_rate"] >= 95:
+ consecutive_95_plus += 1
+ else:
+ consecutive_95_plus = 0
+ else:
+ status = "discard"
+ if result["pass_rate"] >= 95:
+ consecutive_95_plus += 1
+ else:
+ consecutive_95_plus = 0
+
+ experiment_result = {
+ "experiment_id": round_idx + 1,
+ "description": mutation["description"],
+ "reasoning": mutation["reasoning"],
+ "status": status,
+ "score": result["score"],
+ "max_score": result["max_score"],
+ "pass_rate": result["pass_rate"],
+ "per_eval": result["per_eval"],
+ "per_scenario": result["per_scenario"]
+ }
+
+ experiments.append(experiment_result)
+ changelog.append({
+ "experiment_id": round_idx + 1,
+ "description": mutation["description"],
+ "reasoning": mutation["reasoning"],
+ "status": status,
+ "score_before": best_score if status == "discard" else experiments[-2]["score"],
+ "score_after": result["score"]
+ })
+
+ if callback:
+ await callback({"type": "experiment_result", "data": experiment_result})
+
+ kept_count = sum(1 for e in experiments if e.get("status") == "keep")
+ discarded_count = sum(1 for e in experiments if e.get("status") == "discard")
+
+ final_result = {
+ "baseline_score": baseline["pass_rate"],
+ "final_score": experiments[-1]["pass_rate"],
+ "experiments_run": len(experiments) - 1,
+ "kept": kept_count,
+ "discarded": discarded_count,
+ "changelog": changelog,
+ "experiments": experiments,
+ "improved_skill_md": best_skill_md,
+ "original_skill_md": original_skill_md
+ }
+
+ if callback:
+ await callback({"type": "complete", "data": final_result})
+
+ return final_result
diff --git a/awesome_agent_skills/self-improving-agent-skills/backend/requirements.txt b/awesome_agent_skills/self-improving-agent-skills/backend/requirements.txt
new file mode 100644
index 00000000..eec3bbd3
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/backend/requirements.txt
@@ -0,0 +1,6 @@
+fastapi
+uvicorn[standard]
+google-genai
+google-adk
+python-multipart
+sse-starlette
diff --git a/awesome_agent_skills/self-improving-agent-skills/example_skills/code-reviewer/SKILL.md b/awesome_agent_skills/self-improving-agent-skills/example_skills/code-reviewer/SKILL.md
new file mode 100644
index 00000000..4564623c
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/example_skills/code-reviewer/SKILL.md
@@ -0,0 +1,36 @@
+---
+name: code-reviewer
+description: Reviews code for security vulnerabilities, performance issues, and best practices. Use when reviewing code, performing security audits, checking for code quality, reviewing pull requests.
+license: MIT
+metadata:
+ author: awesome-llm-apps
+ version: "1.0"
+---
+
+# Code Reviewer
+
+You are an expert code reviewer. When given code, analyze it for:
+
+## Security
+- SQL injection vulnerabilities
+- XSS vulnerabilities
+- Hardcoded secrets or credentials
+- Insecure data handling
+
+## Performance
+- Unnecessary loops or redundant operations
+- Memory leaks
+- Missing caching opportunities
+
+## Best Practices
+- Clear variable and function naming
+- Proper error handling
+- Code documentation
+- DRY principle violations
+
+## Output Format
+Provide your review as a structured report with:
+1. A severity rating (Critical/High/Medium/Low) for each finding
+2. The specific line or section with the issue
+3. A recommended fix
+4. An overall code quality score (1-10)
diff --git a/awesome_agent_skills/self-improving-agent-skills/example_skills/content-writer/SKILL.md b/awesome_agent_skills/self-improving-agent-skills/example_skills/content-writer/SKILL.md
new file mode 100644
index 00000000..5f6a4b76
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/example_skills/content-writer/SKILL.md
@@ -0,0 +1,27 @@
+---
+name: content-writer
+description: Writes marketing copy for landing pages, emails, and social media posts. Use when creating promotional content, sales copy, or brand messaging.
+license: MIT
+metadata:
+ author: awesome-llm-apps
+ version: "1.0"
+---
+
+# Content Writer
+
+You write compelling marketing copy. Follow these principles:
+
+## Voice
+- Conversational but professional
+- Active voice, present tense
+- Short sentences, short paragraphs
+
+## Structure
+- Lead with the biggest benefit
+- Use specific numbers over vague claims
+- End with a clear call-to-action
+
+## Rules
+- No jargon unless the audience expects it
+- No superlatives without proof ("best", "revolutionary")
+- Every paragraph must earn its place
diff --git a/awesome_agent_skills/self-improving-agent-skills/example_skills/content-writer/references/style-guide.md b/awesome_agent_skills/self-improving-agent-skills/example_skills/content-writer/references/style-guide.md
new file mode 100644
index 00000000..50ab4686
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/example_skills/content-writer/references/style-guide.md
@@ -0,0 +1,14 @@
+# Style Guide Reference
+
+## Banned Words
+revolutionary, synergy, cutting-edge, next-level, game-changing, leverage, unlock, transform, disrupt, innovative
+
+## CTA Templates
+- "Start [action] today"
+- "Get [specific result] in [timeframe]"
+- "Join [number] [people] who [achieved result]"
+
+## Headline Formulas
+- [Number] ways to [achieve desired outcome]
+- How [company/person] [achieved result] in [timeframe]
+- The [adjective] guide to [topic]
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/next-env.d.ts b/awesome_agent_skills/self-improving-agent-skills/frontend/next-env.d.ts
new file mode 100644
index 00000000..830fb594
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/next-env.d.ts
@@ -0,0 +1,6 @@
+/// <reference types="next" />
+/// <reference types="next/image-types/global" />
+/// <reference path="./.next/types/routes.d.ts" />
+
+// NOTE: This file should not be edited
+// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/next.config.ts b/awesome_agent_skills/self-improving-agent-skills/frontend/next.config.ts
new file mode 100644
index 00000000..2f6491cf
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/next.config.ts
@@ -0,0 +1,7 @@
+import type { NextConfig } from "next";
+
+const nextConfig: NextConfig = {
+ reactStrictMode: true,
+};
+
+export default nextConfig;
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/package-lock.json b/awesome_agent_skills/self-improving-agent-skills/frontend/package-lock.json
new file mode 100644
index 00000000..df113c2b
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/package-lock.json
@@ -0,0 +1,2068 @@
+{
+ "name": "self-improving-skills-frontend",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "self-improving-skills-frontend",
+ "version": "1.0.0",
+ "dependencies": {
+ "diff": "^7.0.0",
+ "lucide-react": "^0.468.0",
+ "next": "^15.1.4",
+ "react": "^19.0.0",
+ "react-dom": "^19.0.0",
+ "recharts": "^2.15.0"
+ },
+ "devDependencies": {
+ "@tailwindcss/postcss": "^4.0.0",
+ "@types/diff": "^6.0.0",
+ "@types/node": "^22",
+ "@types/react": "^19",
+ "@types/react-dom": "^19",
+ "tailwindcss": "^4.0.0",
+ "typescript": "^5"
+ }
+ },
+ "node_modules/@alloc/quick-lru": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",
+ "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.29.2",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz",
+ "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@emnapi/runtime": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.0.tgz",
+ "integrity": "sha512-QN75eB0IH2ywSpRpNddCRfQIhmJYBCJ1x5Lb3IscKAL8bMnVAKnRg8dCoXbHzVLLH7P38N2Z3mtulB7W0J0FKw==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@img/colour": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
+ "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@img/sharp-darwin-arm64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",
+ "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-darwin-arm64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-darwin-x64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",
+ "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-darwin-x64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-libvips-darwin-arm64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",
+ "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-darwin-x64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",
+ "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-arm": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",
+ "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-arm64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",
+ "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-ppc64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",
+ "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-riscv64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",
+ "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-s390x": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",
+ "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",
+ "cpu": [
+ "s390x"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-x64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",
+ "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",
+ "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linuxmusl-x64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",
+ "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-linux-arm": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",
+ "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-arm": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-arm64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",
+ "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-arm64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-ppc64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",
+ "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-ppc64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-riscv64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",
+ "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",
+ "cpu": [
+ "riscv64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-riscv64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-s390x": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",
+ "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",
+ "cpu": [
+ "s390x"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-s390x": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-x64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz",
+ "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-x64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linuxmusl-arm64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz",
+ "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linuxmusl-x64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz",
+ "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-wasm32": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz",
+ "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==",
+ "cpu": [
+ "wasm32"
+ ],
+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/runtime": "^1.7.0"
+ },
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-arm64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz",
+ "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-ia32": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz",
+ "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-x64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",
+ "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@next/env": {
+ "version": "15.5.13",
+ "resolved": "https://registry.npmjs.org/@next/env/-/env-15.5.13.tgz",
+ "integrity": "sha512-6h7Fm29+/u1WBPcPaQl0xBov7KXB6i0c8oFlSlehD+PuZJQjzXQBuYzfkM32G5iWOlKsXXyRtcMaaqwspRBujA==",
+ "license": "MIT"
+ },
+ "node_modules/@next/swc-darwin-arm64": {
+ "version": "15.5.13",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.5.13.tgz",
+ "integrity": "sha512-XrBbj2iY1mQSsJ8RoFClNpUB9uuZejP94v9pJuSAzdzwFVHeP+Vu2vzBCHwSObozgYNuTVwKhLukG1rGCgj8xA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-darwin-x64": {
+ "version": "15.5.13",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.5.13.tgz",
+ "integrity": "sha512-Ey3fuUeWDWtVdgiLHajk2aJ74Y8EWLeqvfwlkB5RvWsN7F1caQ6TjifsQzrAcOuNSnogGvFNYzjQlu7tu0kyWg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-arm64-gnu": {
+ "version": "15.5.13",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.5.13.tgz",
+ "integrity": "sha512-aLtu/WxDeL3188qx3zyB3+iw8nAB9F+2Mhyz9nNZpzsREc2t8jQTuiWY4+mtOgWp1d+/Q4eXuy9m3dwh3n1IyQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-arm64-musl": {
+ "version": "15.5.13",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.5.13.tgz",
+ "integrity": "sha512-9VZ0OsVx9PEL72W50QD15iwSCF3GD/dwj42knfF5C4aiBPXr95etGIOGhb8rU7kpnzZuPNL81CY4vIyUKa2xvg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-x64-gnu": {
+ "version": "15.5.13",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.5.13.tgz",
+ "integrity": "sha512-3knsu9H33e99ZfiWh0Bb04ymEO7YIiopOpXKX89ZZ/ER0iyfV1YLoJFxJJQNUD7OR8O7D7eiLI/TXPryPGv3+A==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-x64-musl": {
+ "version": "15.5.13",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.5.13.tgz",
+ "integrity": "sha512-AVPb6+QZ0pPanJFc1hpx81I5tTiBF4VITw5+PMaR1CrboAUUxtxn3IsV0h48xI7fzd6/zw9D9i6khRwME5NKUw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-win32-arm64-msvc": {
+ "version": "15.5.13",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.5.13.tgz",
+ "integrity": "sha512-FZ/HXuTxn+e5Lp6oRZMvHaMJx22gAySveJdJE0//91Nb9rMuh2ftgKlEwBFJxhkw5kAF/yIXz3iBf0tvDXRmCA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-win32-x64-msvc": {
+ "version": "15.5.13",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.5.13.tgz",
+ "integrity": "sha512-B5E82pX3VXu6Ib5mDuZEqGwT8asocZe3OMMnaM+Yfs0TRlmSQCBQUUXR9BkXQeGVboOWS1pTsRkS9wzFd8PABw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@swc/helpers": {
+ "version": "0.5.15",
+ "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz",
+ "integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@tailwindcss/node": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.2.1.tgz",
+ "integrity": "sha512-jlx6sLk4EOwO6hHe1oCGm1Q4AN/s0rSrTTPBGPM0/RQ6Uylwq17FuU8IeJJKEjtc6K6O07zsvP+gDO6MMWo7pg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/remapping": "^2.3.5",
+ "enhanced-resolve": "^5.19.0",
+ "jiti": "^2.6.1",
+ "lightningcss": "1.31.1",
+ "magic-string": "^0.30.21",
+ "source-map-js": "^1.2.1",
+ "tailwindcss": "4.2.1"
+ }
+ },
+ "node_modules/@tailwindcss/oxide": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.2.1.tgz",
+ "integrity": "sha512-yv9jeEFWnjKCI6/T3Oq50yQEOqmpmpfzG1hcZsAOaXFQPfzWprWrlHSdGPEF3WQTi8zu8ohC9Mh9J470nT5pUw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20"
+ },
+ "optionalDependencies": {
+ "@tailwindcss/oxide-android-arm64": "4.2.1",
+ "@tailwindcss/oxide-darwin-arm64": "4.2.1",
+ "@tailwindcss/oxide-darwin-x64": "4.2.1",
+ "@tailwindcss/oxide-freebsd-x64": "4.2.1",
+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.2.1",
+ "@tailwindcss/oxide-linux-arm64-gnu": "4.2.1",
+ "@tailwindcss/oxide-linux-arm64-musl": "4.2.1",
+ "@tailwindcss/oxide-linux-x64-gnu": "4.2.1",
+ "@tailwindcss/oxide-linux-x64-musl": "4.2.1",
+ "@tailwindcss/oxide-wasm32-wasi": "4.2.1",
+ "@tailwindcss/oxide-win32-arm64-msvc": "4.2.1",
+ "@tailwindcss/oxide-win32-x64-msvc": "4.2.1"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-android-arm64": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.2.1.tgz",
+ "integrity": "sha512-eZ7G1Zm5EC8OOKaesIKuw77jw++QJ2lL9N+dDpdQiAB/c/B2wDh0QPFHbkBVrXnwNugvrbJFk1gK2SsVjwWReg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-darwin-arm64": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.2.1.tgz",
+ "integrity": "sha512-q/LHkOstoJ7pI1J0q6djesLzRvQSIfEto148ppAd+BVQK0JYjQIFSK3JgYZJa+Yzi0DDa52ZsQx2rqytBnf8Hw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-darwin-x64": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.2.1.tgz",
+ "integrity": "sha512-/f/ozlaXGY6QLbpvd/kFTro2l18f7dHKpB+ieXz+Cijl4Mt9AI2rTrpq7V+t04nK+j9XBQHnSMdeQRhbGyt6fw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-freebsd-x64": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.2.1.tgz",
+ "integrity": "sha512-5e/AkgYJT/cpbkys/OU2Ei2jdETCLlifwm7ogMC7/hksI2fC3iiq6OcXwjibcIjPung0kRtR3TxEITkqgn0TcA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.2.1.tgz",
+ "integrity": "sha512-Uny1EcVTTmerCKt/1ZuKTkb0x8ZaiuYucg2/kImO5A5Y/kBz41/+j0gxUZl+hTF3xkWpDmHX+TaWhOtba2Fyuw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.2.1.tgz",
+ "integrity": "sha512-CTrwomI+c7n6aSSQlsPL0roRiNMDQ/YzMD9EjcR+H4f0I1SQ8QqIuPnsVp7QgMkC1Qi8rtkekLkOFjo7OlEFRQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.2.1.tgz",
+ "integrity": "sha512-WZA0CHRL/SP1TRbA5mp9htsppSEkWuQ4KsSUumYQnyl8ZdT39ntwqmz4IUHGN6p4XdSlYfJwM4rRzZLShHsGAQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.2.1.tgz",
+ "integrity": "sha512-qMFzxI2YlBOLW5PhblzuSWlWfwLHaneBE0xHzLrBgNtqN6mWfs+qYbhryGSXQjFYB1Dzf5w+LN5qbUTPhW7Y5g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.2.1.tgz",
+ "integrity": "sha512-5r1X2FKnCMUPlXTWRYpHdPYUY6a1Ar/t7P24OuiEdEOmms5lyqjDRvVY1yy9Rmioh+AunQ0rWiOTPE8F9A3v5g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.2.1.tgz",
+ "integrity": "sha512-MGFB5cVPvshR85MTJkEvqDUnuNoysrsRxd6vnk1Lf2tbiqNlXpHYZqkqOQalydienEWOHHFyyuTSYRsLfxFJ2Q==",
+ "bundleDependencies": [
+ "@napi-rs/wasm-runtime",
+ "@emnapi/core",
+ "@emnapi/runtime",
+ "@tybys/wasm-util",
+ "@emnapi/wasi-threads",
+ "tslib"
+ ],
+ "cpu": [
+ "wasm32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/core": "^1.8.1",
+ "@emnapi/runtime": "^1.8.1",
+ "@emnapi/wasi-threads": "^1.1.0",
+ "@napi-rs/wasm-runtime": "^1.1.1",
+ "@tybys/wasm-util": "^0.10.1",
+ "tslib": "^2.8.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.2.1.tgz",
+ "integrity": "sha512-YlUEHRHBGnCMh4Nj4GnqQyBtsshUPdiNroZj8VPkvTZSoHsilRCwXcVKnG9kyi0ZFAS/3u+qKHBdDc81SADTRA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.2.1.tgz",
+ "integrity": "sha512-rbO34G5sMWWyrN/idLeVxAZgAKWrn5LiR3/I90Q9MkA67s6T1oB0xtTe+0heoBvHSpbU9Mk7i6uwJnpo4u21XQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/postcss": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.2.1.tgz",
+ "integrity": "sha512-OEwGIBnXnj7zJeonOh6ZG9woofIjGrd2BORfvE5p9USYKDCZoQmfqLcfNiRWoJlRWLdNPn2IgVZuWAOM4iTYMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@alloc/quick-lru": "^5.2.0",
+ "@tailwindcss/node": "4.2.1",
+ "@tailwindcss/oxide": "4.2.1",
+ "postcss": "^8.5.6",
+ "tailwindcss": "4.2.1"
+ }
+ },
+ "node_modules/@types/d3-array": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz",
+ "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-color": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz",
+ "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-ease": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz",
+ "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-interpolate": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz",
+ "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-color": "*"
+ }
+ },
+ "node_modules/@types/d3-path": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz",
+ "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-scale": {
+ "version": "4.0.9",
+ "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz",
+ "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-time": "*"
+ }
+ },
+ "node_modules/@types/d3-shape": {
+ "version": "3.1.8",
+ "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.8.tgz",
+ "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-path": "*"
+ }
+ },
+ "node_modules/@types/d3-time": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz",
+ "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-timer": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz",
+ "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/diff": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/@types/diff/-/diff-6.0.0.tgz",
+ "integrity": "sha512-dhVCYGv3ZSbzmQaBSagrv1WJ6rXCdkyTcDyoNu1MD8JohI7pR7k8wdZEm+mvdxRKXyHVwckFzWU1vJc+Z29MlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "22.19.15",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.15.tgz",
+ "integrity": "sha512-F0R/h2+dsy5wJAUe3tAU6oqa2qbWY5TpNfL/RGmo1y38hiyO1w3x2jPtt76wmuaJI4DQnOBu21cNXQ2STIUUWg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~6.21.0"
+ }
+ },
+ "node_modules/@types/react": {
+ "version": "19.2.14",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",
+ "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "csstype": "^3.2.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "version": "19.2.3",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",
+ "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "^19.2.0"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001780",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001780.tgz",
+ "integrity": "sha512-llngX0E7nQci5BPJDqoZSbuZ5Bcs9F5db7EtgfwBerX9XGtkkiO4NwfDDIRzHTTwcYC8vC7bmeUEPGrKlR/TkQ==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/client-only": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
+ "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==",
+ "license": "MIT"
+ },
+ "node_modules/clsx": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+ "license": "MIT"
+ },
+ "node_modules/d3-array": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz",
+ "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==",
+ "license": "ISC",
+ "dependencies": {
+ "internmap": "1 - 2"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-color": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz",
+ "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-ease": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz",
+ "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-format": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz",
+ "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-interpolate": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz",
+ "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-color": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-path": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz",
+ "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-scale": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz",
+ "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2.10.0 - 3",
+ "d3-format": "1 - 3",
+ "d3-interpolate": "1.2.0 - 3",
+ "d3-time": "2.1.1 - 3",
+ "d3-time-format": "2 - 4"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-shape": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz",
+ "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-path": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-time": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz",
+ "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-time-format": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz",
+ "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-time": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-timer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz",
+ "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/decimal.js-light": {
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz",
+ "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==",
+ "license": "MIT"
+ },
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "devOptional": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/diff": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz",
+ "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.3.1"
+ }
+ },
+ "node_modules/dom-helpers": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz",
+ "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.8.7",
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/enhanced-resolve": {
+ "version": "5.20.1",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.1.tgz",
+ "integrity": "sha512-Qohcme7V1inbAfvjItgw0EaxVX5q2rdVEZHRBrEQdRZTssLDGsL8Lwrznl8oQ/6kuTJONLaDcGjkNP247XEhcA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.4",
+ "tapable": "^2.3.0"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/eventemitter3": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
+ "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==",
+ "license": "MIT"
+ },
+ "node_modules/fast-equals": {
+ "version": "5.4.0",
+ "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.4.0.tgz",
+ "integrity": "sha512-jt2DW/aNFNwke7AUd+Z+e6pz39KO5rzdbbFCg2sGafS4mk13MI7Z8O5z9cADNn5lhGODIgLwug6TZO2ctf7kcw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/internmap": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz",
+ "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "2.6.1",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz",
+ "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "lib/jiti-cli.mjs"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "license": "MIT"
+ },
+ "node_modules/lightningcss": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.31.1.tgz",
+ "integrity": "sha512-l51N2r93WmGUye3WuFoN5k10zyvrVs0qfKBhyC5ogUQ6Ew6JUSswh78mbSO+IU3nTWsyOArqPCcShdQSadghBQ==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "dependencies": {
+ "detect-libc": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ },
+ "optionalDependencies": {
+ "lightningcss-android-arm64": "1.31.1",
+ "lightningcss-darwin-arm64": "1.31.1",
+ "lightningcss-darwin-x64": "1.31.1",
+ "lightningcss-freebsd-x64": "1.31.1",
+ "lightningcss-linux-arm-gnueabihf": "1.31.1",
+ "lightningcss-linux-arm64-gnu": "1.31.1",
+ "lightningcss-linux-arm64-musl": "1.31.1",
+ "lightningcss-linux-x64-gnu": "1.31.1",
+ "lightningcss-linux-x64-musl": "1.31.1",
+ "lightningcss-win32-arm64-msvc": "1.31.1",
+ "lightningcss-win32-x64-msvc": "1.31.1"
+ }
+ },
+ "node_modules/lightningcss-android-arm64": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.31.1.tgz",
+ "integrity": "sha512-HXJF3x8w9nQ4jbXRiNppBCqeZPIAfUo8zE/kOEGbW5NZvGc/K7nMxbhIr+YlFlHW5mpbg/YFPdbnCh1wAXCKFg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-arm64": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.31.1.tgz",
+ "integrity": "sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-x64": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.31.1.tgz",
+ "integrity": "sha512-1ObhyoCY+tGxtsz1lSx5NXCj3nirk0Y0kB/g8B8DT+sSx4G9djitg9ejFnjb3gJNWo7qXH4DIy2SUHvpoFwfTA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-freebsd-x64": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.31.1.tgz",
+ "integrity": "sha512-1RINmQKAItO6ISxYgPwszQE1BrsVU5aB45ho6O42mu96UiZBxEXsuQ7cJW4zs4CEodPUioj/QrXW1r9pLUM74A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm-gnueabihf": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.31.1.tgz",
+ "integrity": "sha512-OOCm2//MZJ87CdDK62rZIu+aw9gBv4azMJuA8/KB74wmfS3lnC4yoPHm0uXZ/dvNNHmnZnB8XLAZzObeG0nS1g==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-gnu": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.31.1.tgz",
+ "integrity": "sha512-WKyLWztD71rTnou4xAD5kQT+982wvca7E6QoLpoawZ1gP9JM0GJj4Tp5jMUh9B3AitHbRZ2/H3W5xQmdEOUlLg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-musl": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.31.1.tgz",
+ "integrity": "sha512-mVZ7Pg2zIbe3XlNbZJdjs86YViQFoJSpc41CbVmKBPiGmC4YrfeOyz65ms2qpAobVd7WQsbW4PdsSJEMymyIMg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-gnu": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.31.1.tgz",
+ "integrity": "sha512-xGlFWRMl+0KvUhgySdIaReQdB4FNudfUTARn7q0hh/V67PVGCs3ADFjw+6++kG1RNd0zdGRlEKa+T13/tQjPMA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-musl": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.31.1.tgz",
+ "integrity": "sha512-eowF8PrKHw9LpoZii5tdZwnBcYDxRw2rRCyvAXLi34iyeYfqCQNA9rmUM0ce62NlPhCvof1+9ivRaTY6pSKDaA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-arm64-msvc": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.31.1.tgz",
+ "integrity": "sha512-aJReEbSEQzx1uBlQizAOBSjcmr9dCdL3XuC/6HLXAxmtErsj2ICo5yYggg1qOODQMtnjNQv2UHb9NpOuFtYe4w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-x64-msvc": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.31.1.tgz",
+ "integrity": "sha512-I9aiFrbd7oYHwlnQDqr1Roz+fTz61oDDJX7n9tYF9FJymH1cIN1DtKw3iYt6b8WZgEjoNwVSncwF4wx/ZedMhw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lodash": {
+ "version": "4.17.23",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz",
+ "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==",
+ "license": "MIT"
+ },
+ "node_modules/loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ },
+ "bin": {
+ "loose-envify": "cli.js"
+ }
+ },
+ "node_modules/lucide-react": {
+ "version": "0.468.0",
+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.468.0.tgz",
+ "integrity": "sha512-6koYRhnM2N0GGZIdXzSeiNwguv1gt/FAjZOiPl76roBi3xKEXa4WmfpxgQwTTL4KipXjefrnf3oV4IsYhi4JFA==",
+ "license": "ISC",
+ "peerDependencies": {
+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/magic-string": {
+ "version": "0.30.21",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.5"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.11",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/next": {
+ "version": "15.5.13",
+ "resolved": "https://registry.npmjs.org/next/-/next-15.5.13.tgz",
+ "integrity": "sha512-n0AXf6vlTwGuM93Z++POtjMsRuQ9pT5v2URPciXKUQIl/EB2WjXF0YiIUxaa9AEMFaMpZlaG3KPK6i4UVnx9eQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@next/env": "15.5.13",
+ "@swc/helpers": "0.5.15",
+ "caniuse-lite": "^1.0.30001579",
+ "postcss": "8.4.31",
+ "styled-jsx": "5.1.6"
+ },
+ "bin": {
+ "next": "dist/bin/next"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^19.8.0 || >= 20.0.0"
+ },
+ "optionalDependencies": {
+ "@next/swc-darwin-arm64": "15.5.13",
+ "@next/swc-darwin-x64": "15.5.13",
+ "@next/swc-linux-arm64-gnu": "15.5.13",
+ "@next/swc-linux-arm64-musl": "15.5.13",
+ "@next/swc-linux-x64-gnu": "15.5.13",
+ "@next/swc-linux-x64-musl": "15.5.13",
+ "@next/swc-win32-arm64-msvc": "15.5.13",
+ "@next/swc-win32-x64-msvc": "15.5.13",
+ "sharp": "^0.34.3"
+ },
+ "peerDependencies": {
+ "@opentelemetry/api": "^1.1.0",
+ "@playwright/test": "^1.51.1",
+ "babel-plugin-react-compiler": "*",
+ "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",
+ "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",
+ "sass": "^1.3.0"
+ },
+ "peerDependenciesMeta": {
+ "@opentelemetry/api": {
+ "optional": true
+ },
+ "@playwright/test": {
+ "optional": true
+ },
+ "babel-plugin-react-compiler": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/next/node_modules/postcss": {
+ "version": "8.4.31",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
+ "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.6",
+ "picocolors": "^1.0.0",
+ "source-map-js": "^1.0.2"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
+ },
+ "node_modules/postcss": {
+ "version": "8.5.8",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",
+ "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.11",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/prop-types": {
+ "version": "15.8.1",
+ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
+ "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.4.0",
+ "object-assign": "^4.1.1",
+ "react-is": "^16.13.1"
+ }
+ },
+ "node_modules/prop-types/node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
+ "license": "MIT"
+ },
+ "node_modules/react": {
+ "version": "19.2.4",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
+ "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.2.4",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz",
+ "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.27.0"
+ },
+ "peerDependencies": {
+ "react": "^19.2.4"
+ }
+ },
+ "node_modules/react-is": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
+ "license": "MIT"
+ },
+ "node_modules/react-smooth": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/react-smooth/-/react-smooth-4.0.4.tgz",
+ "integrity": "sha512-gnGKTpYwqL0Iii09gHobNolvX4Kiq4PKx6eWBCYYix+8cdw+cGo3do906l1NBPKkSWx1DghC1dlWG9L2uGd61Q==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-equals": "^5.0.1",
+ "prop-types": "^15.8.1",
+ "react-transition-group": "^4.4.5"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/react-transition-group": {
+ "version": "4.4.5",
+ "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",
+ "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@babel/runtime": "^7.5.5",
+ "dom-helpers": "^5.0.1",
+ "loose-envify": "^1.4.0",
+ "prop-types": "^15.6.2"
+ },
+ "peerDependencies": {
+ "react": ">=16.6.0",
+ "react-dom": ">=16.6.0"
+ }
+ },
+ "node_modules/recharts": {
+ "version": "2.15.4",
+ "resolved": "https://registry.npmjs.org/recharts/-/recharts-2.15.4.tgz",
+ "integrity": "sha512-UT/q6fwS3c1dHbXv2uFgYJ9BMFHu3fwnd7AYZaEQhXuYQ4hgsxLvsUXzGdKeZrW5xopzDCvuA2N41WJ88I7zIw==",
+ "license": "MIT",
+ "dependencies": {
+ "clsx": "^2.0.0",
+ "eventemitter3": "^4.0.1",
+ "lodash": "^4.17.21",
+ "react-is": "^18.3.1",
+ "react-smooth": "^4.0.4",
+ "recharts-scale": "^0.4.4",
+ "tiny-invariant": "^1.3.1",
+ "victory-vendor": "^36.6.8"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "peerDependencies": {
+ "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/recharts-scale": {
+ "version": "0.4.5",
+ "resolved": "https://registry.npmjs.org/recharts-scale/-/recharts-scale-0.4.5.tgz",
+ "integrity": "sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w==",
+ "license": "MIT",
+ "dependencies": {
+ "decimal.js-light": "^2.4.1"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.27.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
+ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "7.7.4",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
+ "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
+ "license": "ISC",
+ "optional": true,
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/sharp": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",
+ "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==",
+ "hasInstallScript": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "dependencies": {
+ "@img/colour": "^1.0.0",
+ "detect-libc": "^2.1.2",
+ "semver": "^7.7.3"
+ },
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-darwin-arm64": "0.34.5",
+ "@img/sharp-darwin-x64": "0.34.5",
+ "@img/sharp-libvips-darwin-arm64": "1.2.4",
+ "@img/sharp-libvips-darwin-x64": "1.2.4",
+ "@img/sharp-libvips-linux-arm": "1.2.4",
+ "@img/sharp-libvips-linux-arm64": "1.2.4",
+ "@img/sharp-libvips-linux-ppc64": "1.2.4",
+ "@img/sharp-libvips-linux-riscv64": "1.2.4",
+ "@img/sharp-libvips-linux-s390x": "1.2.4",
+ "@img/sharp-libvips-linux-x64": "1.2.4",
+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4",
+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4",
+ "@img/sharp-linux-arm": "0.34.5",
+ "@img/sharp-linux-arm64": "0.34.5",
+ "@img/sharp-linux-ppc64": "0.34.5",
+ "@img/sharp-linux-riscv64": "0.34.5",
+ "@img/sharp-linux-s390x": "0.34.5",
+ "@img/sharp-linux-x64": "0.34.5",
+ "@img/sharp-linuxmusl-arm64": "0.34.5",
+ "@img/sharp-linuxmusl-x64": "0.34.5",
+ "@img/sharp-wasm32": "0.34.5",
+ "@img/sharp-win32-arm64": "0.34.5",
+ "@img/sharp-win32-ia32": "0.34.5",
+ "@img/sharp-win32-x64": "0.34.5"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/styled-jsx": {
+ "version": "5.1.6",
+ "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz",
+ "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==",
+ "license": "MIT",
+ "dependencies": {
+ "client-only": "0.0.1"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "peerDependencies": {
+ "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "@babel/core": {
+ "optional": true
+ },
+ "babel-plugin-macros": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/tailwindcss": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.2.1.tgz",
+ "integrity": "sha512-/tBrSQ36vCleJkAOsy9kbNTgaxvGbyOamC30PRePTQe/o1MFwEKHQk4Cn7BNGaPtjp+PuUrByJehM1hgxfq4sw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tapable": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz",
+ "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ }
+ },
+ "node_modules/tiny-invariant": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
+ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==",
+ "license": "MIT"
+ },
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "license": "0BSD"
+ },
+ "node_modules/typescript": {
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "6.21.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/victory-vendor": {
+ "version": "36.9.2",
+ "resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-36.9.2.tgz",
+ "integrity": "sha512-PnpQQMuxlwYdocC8fIJqVXvkeViHYzotI+NJrCuav0ZYFoq912ZHBk3mCeuj+5/VpodOjPe1z0Fk2ihgzlXqjQ==",
+ "license": "MIT AND ISC",
+ "dependencies": {
+ "@types/d3-array": "^3.0.3",
+ "@types/d3-ease": "^3.0.0",
+ "@types/d3-interpolate": "^3.0.1",
+ "@types/d3-scale": "^4.0.2",
+ "@types/d3-shape": "^3.1.0",
+ "@types/d3-time": "^3.0.0",
+ "@types/d3-timer": "^3.0.0",
+ "d3-array": "^3.1.6",
+ "d3-ease": "^3.0.1",
+ "d3-interpolate": "^3.0.1",
+ "d3-scale": "^4.0.2",
+ "d3-shape": "^3.1.0",
+ "d3-time": "^3.0.0",
+ "d3-timer": "^3.0.1"
+ }
+ }
+ }
+}
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/package.json b/awesome_agent_skills/self-improving-agent-skills/frontend/package.json
new file mode 100644
index 00000000..87026aca
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/package.json
@@ -0,0 +1,28 @@
+{
+ "name": "self-improving-skills-frontend",
+ "version": "1.0.0",
+ "private": true,
+ "scripts": {
+ "dev": "next dev",
+ "build": "next build",
+ "start": "next start",
+ "lint": "next lint"
+ },
+ "dependencies": {
+ "react": "^19.0.0",
+ "react-dom": "^19.0.0",
+ "next": "^15.1.4",
+ "recharts": "^2.15.0",
+ "diff": "^7.0.0",
+ "lucide-react": "^0.468.0"
+ },
+ "devDependencies": {
+ "@types/node": "^22",
+ "@types/react": "^19",
+ "@types/react-dom": "^19",
+ "@types/diff": "^6.0.0",
+ "typescript": "^5",
+ "tailwindcss": "^4.0.0",
+ "@tailwindcss/postcss": "^4.0.0"
+ }
+}
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/postcss.config.mjs b/awesome_agent_skills/self-improving-agent-skills/frontend/postcss.config.mjs
new file mode 100644
index 00000000..a34a3d56
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/postcss.config.mjs
@@ -0,0 +1,5 @@
+export default {
+ plugins: {
+ '@tailwindcss/postcss': {},
+ },
+};
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/src/app/globals.css b/awesome_agent_skills/self-improving-agent-skills/frontend/src/app/globals.css
new file mode 100644
index 00000000..ec831caf
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/src/app/globals.css
@@ -0,0 +1,146 @@
+@import "tailwindcss";
+
+@layer base {
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ html,
+ body {
+ height: 100%;
+ }
+
+ /* Dark mode (default) */
+ html.dark body {
+ background-color: #09090b;
+ color: #fafafa;
+ }
+
+ /* Light mode */
+ html.light body {
+ background-color: #fafafa;
+ color: #18181b;
+ }
+
+ body {
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ transition: background-color 0.2s, color 0.2s;
+ }
+
+ /* Scrollbar - dark */
+ html.dark ::-webkit-scrollbar {
+ width: 10px;
+ }
+ html.dark ::-webkit-scrollbar-track {
+ background: #18181b;
+ }
+ html.dark ::-webkit-scrollbar-thumb {
+ background: #27272a;
+ border-radius: 5px;
+ }
+ html.dark ::-webkit-scrollbar-thumb:hover {
+ background: #3f3f46;
+ }
+
+ /* Scrollbar - light */
+ html.light ::-webkit-scrollbar {
+ width: 10px;
+ }
+ html.light ::-webkit-scrollbar-track {
+ background: #f4f4f5;
+ }
+ html.light ::-webkit-scrollbar-thumb {
+ background: #d4d4d8;
+ border-radius: 5px;
+ }
+ html.light ::-webkit-scrollbar-thumb:hover {
+ background: #a1a1aa;
+ }
+}
+
+@layer utilities {
+ /* Glass effect - dark */
+ html.dark .glass {
+ background: rgba(24, 24, 27, 0.6);
+ backdrop-filter: blur(12px);
+ border: 1px solid rgba(63, 63, 70, 0.4);
+ }
+
+ /* Glass effect - light */
+ html.light .glass {
+ background: rgba(255, 255, 255, 0.8);
+ backdrop-filter: blur(12px);
+ border: 1px solid rgba(228, 228, 231, 0.8);
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
+ }
+
+ .gradient-text {
+ background: linear-gradient(to right, #8b5cf6, #a855f7);
+ -webkit-background-clip: text;
+ background-clip: text;
+ -webkit-text-fill-color: transparent;
+ }
+
+ .gradient-bg {
+ background: linear-gradient(135deg, #8b5cf6, #a855f7);
+ }
+
+ .shimmer {
+ animation: shimmer 2s infinite;
+ background: linear-gradient(
+ 90deg,
+ rgba(255, 255, 255, 0) 0%,
+ rgba(255, 255, 255, 0.1) 50%,
+ rgba(255, 255, 255, 0) 100%
+ );
+ background-size: 200% 100%;
+ }
+
+ @keyframes shimmer {
+ 0% { background-position: -200% 0; }
+ 100% { background-position: 200% 0; }
+ }
+
+ .pulse-ring {
+ animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
+ }
+
+ @keyframes pulse-ring {
+ 0%, 100% { opacity: 1; transform: scale(1); }
+ 50% { opacity: 0.5; transform: scale(1.05); }
+ }
+
+ /* Light mode overrides for common component patterns */
+ html.light .bg-zinc-900 { background-color: #ffffff !important; }
+ html.light .bg-zinc-800 { background-color: #f4f4f5 !important; }
+ html.light .bg-zinc-700 { background-color: #e4e4e7 !important; }
+ html.light .border-zinc-800 { border-color: #e4e4e7 !important; }
+ html.light .border-zinc-700 { border-color: #d4d4d8 !important; }
+ html.light .text-zinc-400 { color: #71717a !important; }
+ html.light .text-zinc-500 { color: #52525b !important; }
+ html.light .text-white { color: #18181b !important; }
+ html.light .text-zinc-300 { color: #3f3f46 !important; }
+ html.light .text-zinc-200 { color: #27272a !important; }
+ html.light .hover\:bg-zinc-700:hover { background-color: #e4e4e7 !important; }
+ html.light .hover\:bg-zinc-800:hover { background-color: #f4f4f5 !important; }
+ html.light .hover\:border-zinc-700:hover { border-color: #d4d4d8 !important; }
+ html.light .focus\:border-violet-500:focus { border-color: #8b5cf6 !important; }
+ html.light input, html.light textarea {
+ color: #18181b !important;
+ }
+ html.light input::placeholder, html.light textarea::placeholder {
+ color: #a1a1aa !important;
+ }
+
+ /* Recharts overrides for light mode */
+ html.light .recharts-cartesian-grid line {
+ stroke: #e4e4e7 !important;
+ }
+ html.light .recharts-text {
+ fill: #52525b !important;
+ }
+}
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/src/app/layout.tsx b/awesome_agent_skills/self-improving-agent-skills/frontend/src/app/layout.tsx
new file mode 100644
index 00000000..ae58250b
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/src/app/layout.tsx
@@ -0,0 +1,42 @@
+import type { Metadata } from "next";
+import { Inter } from "next/font/google";
+import "./globals.css";
+import ThemeToggle from "@/components/ThemeToggle";
+
+const inter = Inter({ subsets: ["latin"] });
+
+export const metadata: Metadata = {
+ title: "Self-Improving Agent Skills",
+ description: "Optimize agent skills with Google ADK multi-agent system and Gemini",
+};
+
+export default function RootLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
+ return (
+ <html lang="en" suppressHydrationWarning>
+ <head>
+ <script dangerouslySetInnerHTML={{
+ __html: `
+ (function() {
+ var theme = localStorage.getItem('theme');
+ if (theme === 'light') {
+ document.documentElement.classList.add('light');
+ document.documentElement.classList.remove('dark');
+ } else {
+ document.documentElement.classList.add('dark');
+ document.documentElement.classList.remove('light');
+ }
+ })();
+ `
+ }} />
+ </head>
+ <body className={inter.className}>
+ <ThemeToggle />
+ {children}
+ </body>
+ </html>
+ );
+}
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/src/app/page.tsx b/awesome_agent_skills/self-improving-agent-skills/frontend/src/app/page.tsx
new file mode 100644
index 00000000..6b5e98fe
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/src/app/page.tsx
@@ -0,0 +1,110 @@
+"use client";
+
+import { useState } from "react";
+import StepIndicator from "@/components/StepIndicator";
+import UploadStep from "@/components/UploadStep";
+import ConfigStep from "@/components/ConfigStep";
+import RunningStep from "@/components/RunningStep";
+import ResultsStep from "@/components/ResultsStep";
+
+export default function Home() {
+ const [currentStep, setCurrentStep] = useState(1);
+ const [sessionId, setSessionId] = useState<string | null>(null);
+ const [apiKey, setApiKey] = useState("");
+ const [metadata, setMetadata] = useState<any>(null);
+ const [scenarios, setScenarios] = useState<any[]>([]);
+ const [evals, setEvals] = useState<any[]>([]);
+ const [finalResult, setFinalResult] = useState<any>(null);
+
+ const handleUploadComplete = (
+ sid: string,
+ key: string,
+ meta: any,
+ initialScenarios: any[],
+ initialEvals: any[]
+ ) => {
+ setSessionId(sid);
+ setApiKey(key);
+ setMetadata(meta);
+ setScenarios(initialScenarios);
+ setEvals(initialEvals);
+ setCurrentStep(2);
+ };
+
+ const handleConfigComplete = () => {
+ setCurrentStep(3);
+ };
+
+ const handleOptimizationComplete = (result: any) => {
+ setFinalResult(result);
+ setCurrentStep(4);
+ };
+
+ const handleStartOver = () => {
+ setCurrentStep(1);
+ setSessionId(null);
+ setApiKey("");
+ setMetadata(null);
+ setScenarios([]);
+ setEvals([]);
+ setFinalResult(null);
+ };
+
+ return (
+ <main className="min-h-screen p-8">
+ <div className="max-w-7xl mx-auto">
+ <div className="text-center mb-12">
+ <h1 className="text-5xl font-bold mb-4">
+ <span className="gradient-text">Self-Improving</span> Agent Skills
+ </h1>
+ <p className="text-zinc-400 dark:text-zinc-400 text-zinc-600 text-lg">
+ Powered by Google ADK multi-agent system and Gemini
+ </p>
+ <div className="flex items-center justify-center gap-2 mt-3">
+ <span className="px-3 py-1 bg-blue-500/10 text-blue-400 dark:text-blue-400 text-blue-600 rounded-full text-xs font-medium border border-blue-500/20">Google ADK</span>
+ <span className="px-3 py-1 bg-violet-500/10 text-violet-400 dark:text-violet-400 text-violet-600 rounded-full text-xs font-medium border border-violet-500/20">Gemini</span>
+ <span className="px-3 py-1 bg-emerald-500/10 text-emerald-400 dark:text-emerald-400 text-emerald-600 rounded-full text-xs font-medium border border-emerald-500/20">Multi-Agent</span>
+ </div>
+ </div>
+
+ <StepIndicator currentStep={currentStep} />
+
+ <div className="mt-12">
+ {currentStep === 1 && (
+ <UploadStep onComplete={handleUploadComplete} />
+ )}
+
+ {currentStep === 2 && sessionId && (
+ <ConfigStep
+ sessionId={sessionId}
+ apiKey={apiKey}
+ scenarios={scenarios}
+ evals={evals}
+ onScenariosChange={setScenarios}
+ onEvalsChange={setEvals}
+ onComplete={handleConfigComplete}
+ />
+ )}
+
+ {currentStep === 3 && sessionId && (
+ <RunningStep
+ sessionId={sessionId}
+ apiKey={apiKey}
+ scenarios={scenarios}
+ evals={evals}
+ onComplete={handleOptimizationComplete}
+ />
+ )}
+
+ {currentStep === 4 && finalResult && (
+ <ResultsStep
+ result={finalResult}
+ sessionId={sessionId!}
+ onStartOver={handleStartOver}
+ />
+ )}
+ </div>
+ </div>
+ </main>
+ );
+}
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/ConfigStep.tsx b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/ConfigStep.tsx
new file mode 100644
index 00000000..f533ab95
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/ConfigStep.tsx
@@ -0,0 +1,367 @@
+"use client";
+
+import { useState } from "react";
+import { CheckSquare, Square, Plus, X, RefreshCw, ArrowRight } from "lucide-react";
+
+interface ConfigStepProps {
+ sessionId: string;
+ apiKey: string;
+ scenarios: any[];
+ evals: any[];
+ onScenariosChange: (scenarios: any[]) => void;
+ onEvalsChange: (evals: any[]) => void;
+ onComplete: () => void;
+}
+
+export default function ConfigStep({
+ sessionId,
+ apiKey,
+ scenarios: initialScenarios,
+ evals: initialEvals,
+ onScenariosChange,
+ onEvalsChange,
+ onComplete,
+}: ConfigStepProps) {
+ const [scenarios, setScenarios] = useState(
+ initialScenarios.map((s) => ({ ...s, selected: true, editing: false }))
+ );
+ const [evals, setEvals] = useState(
+ initialEvals.map((e) => ({ ...e, selected: true, editing: false }))
+ );
+ const [isRegenerating, setIsRegenerating] = useState(false);
+ const [showAddScenario, setShowAddScenario] = useState(false);
+ const [showAddEval, setShowAddEval] = useState(false);
+
+ const handleScenarioToggle = (id: number) => {
+ setScenarios((prev) =>
+ prev.map((s) => (s.id === id ? { ...s, selected: !s.selected } : s))
+ );
+ };
+
+ const handleEvalToggle = (id: number) => {
+ setEvals((prev) =>
+ prev.map((e) => (e.id === id ? { ...e, selected: !e.selected } : e))
+ );
+ };
+
+ const handleScenarioEdit = (id: number, field: string, value: string) => {
+ setScenarios((prev) =>
+ prev.map((s) => (s.id === id ? { ...s, [field]: value } : s))
+ );
+ };
+
+ const handleEvalEdit = (id: number, field: string, value: string) => {
+ setEvals((prev) =>
+ prev.map((e) => (e.id === id ? { ...e, [field]: value } : e))
+ );
+ };
+
+ const handleDeleteScenario = (id: number) => {
+ setScenarios((prev) => prev.filter((s) => s.id !== id));
+ };
+
+ const handleDeleteEval = (id: number) => {
+ setEvals((prev) => prev.filter((e) => e.id !== id));
+ };
+
+ const handleAddScenario = () => {
+ const newId = Math.max(...scenarios.map((s) => s.id), 0) + 1;
+ setScenarios((prev) => [
+ ...prev,
+ {
+ id: newId,
+ description: "New scenario",
+ input: "",
+ selected: true,
+ editing: true,
+ },
+ ]);
+ setShowAddScenario(false);
+ };
+
+ const handleAddEval = () => {
+ const newId = Math.max(...evals.map((e) => e.id), 0) + 1;
+ setEvals((prev) => [
+ ...prev,
+ {
+ id: newId,
+ name: "New criterion",
+ question: "",
+ pass_condition: "",
+ fail_condition: "",
+ selected: true,
+ editing: true,
+ },
+ ]);
+ setShowAddEval(false);
+ };
+
+ const handleRegenerate = async () => {
+ setIsRegenerating(true);
+
+ try {
+ const API_BASE = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8891";
+ const response = await fetch(`${API_BASE}/api/regenerate`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ session_id: sessionId, gemini_api_key: apiKey }),
+ });
+
+ if (!response.ok) {
+ throw new Error("Regeneration failed");
+ }
+
+ const data = await response.json();
+ setScenarios(data.scenarios.map((s: any) => ({ ...s, selected: true })));
+ setEvals(data.evals.map((e: any) => ({ ...e, selected: true })));
+ } catch (error) {
+ alert("Failed to regenerate. Please try again.");
+ } finally {
+ setIsRegenerating(false);
+ }
+ };
+
+ const handleContinue = async () => {
+ const selectedScenarios = scenarios.filter((s) => s.selected);
+ const selectedEvals = evals.filter((e) => e.selected);
+
+ if (selectedScenarios.length === 0 || selectedEvals.length === 0) {
+ alert("Please select at least one scenario and one evaluation criterion");
+ return;
+ }
+
+ try {
+ const API_BASE2 = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8891";
+ const response = await fetch(`${API_BASE2}/api/update-config`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ session_id: sessionId,
+ scenarios: selectedScenarios,
+ evals: selectedEvals,
+ }),
+ });
+
+ if (!response.ok) {
+ throw new Error("Failed to save configuration");
+ }
+
+ onScenariosChange(selectedScenarios);
+ onEvalsChange(selectedEvals);
+ onComplete();
+ } catch (error) {
+ alert("Failed to save configuration. Please try again.");
+ }
+ };
+
+ const selectedScenarioCount = scenarios.filter((s) => s.selected).length;
+ const selectedEvalCount = evals.filter((e) => e.selected).length;
+
+ return (
+ <div className="max-w-5xl mx-auto space-y-8">
+ <div className="glass rounded-2xl p-8">
+ <div className="flex items-center justify-between mb-6">
+ <div className="flex items-center gap-3">
+ <h2 className="text-2xl font-bold">Test Scenarios</h2>
+ <span className="px-3 py-1 bg-violet-500/20 text-violet-400 rounded-full text-sm font-medium">
+ {selectedScenarioCount} selected
+ </span>
+ </div>
+ <div className="flex gap-2">
+ <button
+ onClick={() => setShowAddScenario(true)}
+ className="px-4 py-2 bg-zinc-800 hover:bg-zinc-700 rounded-lg transition-colors flex items-center gap-2"
+ >
+ <Plus className="w-4 h-4" />
+ Add
+ </button>
+ <button
+ onClick={handleRegenerate}
+ disabled={isRegenerating}
+ className="px-4 py-2 bg-zinc-800 hover:bg-zinc-700 rounded-lg transition-colors flex items-center gap-2"
+ >
+ <RefreshCw className={`w-4 h-4 ${isRegenerating ? "animate-spin" : ""}`} />
+ Regenerate
+ </button>
+ </div>
+ </div>
+
+ <div className="space-y-4">
+ {showAddScenario && (
+ <div className="p-4 bg-zinc-900 border border-zinc-800 rounded-lg">
+ <button
+ onClick={handleAddScenario}
+ className="w-full py-3 border-2 border-dashed border-zinc-700 rounded-lg hover:border-violet-500 transition-colors text-zinc-400 hover:text-white"
+ >
+ Click to add scenario
+ </button>
+ </div>
+ )}
+
+ {scenarios.map((scenario) => (
+ <div
+ key={scenario.id}
+ className="p-4 bg-zinc-900 border border-zinc-800 rounded-lg hover:border-zinc-700 transition-colors"
+ >
+ <div className="flex items-start gap-3">
+ <button
+ onClick={() => handleScenarioToggle(scenario.id)}
+ className="mt-1 text-violet-500 hover:text-violet-400"
+ >
+ {scenario.selected ? (
+ <CheckSquare className="w-5 h-5" />
+ ) : (
+ <Square className="w-5 h-5" />
+ )}
+ </button>
+
+ <div className="flex-1 space-y-2">
+ <input
+ type="text"
+ value={scenario.description}
+ onChange={(e) =>
+ handleScenarioEdit(scenario.id, "description", e.target.value)
+ }
+ className="w-full px-3 py-2 bg-zinc-800 border border-zinc-700 rounded-lg focus:outline-none focus:border-violet-500"
+ />
+ <textarea
+ value={scenario.input}
+ onChange={(e) =>
+ handleScenarioEdit(scenario.id, "input", e.target.value)
+ }
+ rows={3}
+ placeholder="Test input..."
+ className="w-full px-3 py-2 bg-zinc-800 border border-zinc-700 rounded-lg focus:outline-none focus:border-violet-500 resize-none"
+ />
+ </div>
+
+ <button
+ onClick={() => handleDeleteScenario(scenario.id)}
+ className="mt-1 text-zinc-500 hover:text-red-400 transition-colors"
+ >
+ <X className="w-5 h-5" />
+ </button>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ <div className="glass rounded-2xl p-8">
+ <div className="flex items-center justify-between mb-6">
+ <div className="flex items-center gap-3">
+ <h2 className="text-2xl font-bold">Evaluation Criteria</h2>
+ <span className="px-3 py-1 bg-violet-500/20 text-violet-400 rounded-full text-sm font-medium">
+ {selectedEvalCount} selected
+ </span>
+ </div>
+ <div className="flex gap-2">
+ <button
+ onClick={() => setShowAddEval(true)}
+ className="px-4 py-2 bg-zinc-800 hover:bg-zinc-700 rounded-lg transition-colors flex items-center gap-2"
+ >
+ <Plus className="w-4 h-4" />
+ Add
+ </button>
+ </div>
+ </div>
+
+ <div className="space-y-4">
+ {showAddEval && (
+ <div className="p-4 bg-zinc-900 border border-zinc-800 rounded-lg">
+ <button
+ onClick={handleAddEval}
+ className="w-full py-3 border-2 border-dashed border-zinc-700 rounded-lg hover:border-violet-500 transition-colors text-zinc-400 hover:text-white"
+ >
+ Click to add criterion
+ </button>
+ </div>
+ )}
+
+ {evals.map((evalItem) => (
+ <div
+ key={evalItem.id}
+ className="p-4 bg-zinc-900 border border-zinc-800 rounded-lg hover:border-zinc-700 transition-colors"
+ >
+ <div className="flex items-start gap-3">
+ <button
+ onClick={() => handleEvalToggle(evalItem.id)}
+ className="mt-1 text-violet-500 hover:text-violet-400"
+ >
+ {evalItem.selected ? (
+ <CheckSquare className="w-5 h-5" />
+ ) : (
+ <Square className="w-5 h-5" />
+ )}
+ </button>
+
+ <div className="flex-1 space-y-2">
+ <input
+ type="text"
+ value={evalItem.name}
+ onChange={(e) =>
+ handleEvalEdit(evalItem.id, "name", e.target.value)
+ }
+ className="w-full px-3 py-2 bg-zinc-800 border border-zinc-700 rounded-lg focus:outline-none focus:border-violet-500 font-semibold"
+ />
+ <input
+ type="text"
+ value={evalItem.question}
+ onChange={(e) =>
+ handleEvalEdit(evalItem.id, "question", e.target.value)
+ }
+ placeholder="Yes/no question..."
+ className="w-full px-3 py-2 bg-zinc-800 border border-zinc-700 rounded-lg focus:outline-none focus:border-violet-500"
+ />
+ <div className="grid grid-cols-2 gap-2">
+ <input
+ type="text"
+ value={evalItem.pass_condition}
+ onChange={(e) =>
+ handleEvalEdit(evalItem.id, "pass_condition", e.target.value)
+ }
+ placeholder="Pass condition..."
+ className="px-3 py-2 bg-zinc-800 border border-zinc-700 rounded-lg focus:outline-none focus:border-green-500 text-sm"
+ />
+ <input
+ type="text"
+ value={evalItem.fail_condition}
+ onChange={(e) =>
+ handleEvalEdit(evalItem.id, "fail_condition", e.target.value)
+ }
+ placeholder="Fail condition..."
+ className="px-3 py-2 bg-zinc-800 border border-zinc-700 rounded-lg focus:outline-none focus:border-red-500 text-sm"
+ />
+ </div>
+ </div>
+
+ <button
+ onClick={() => handleDeleteEval(evalItem.id)}
+ className="mt-1 text-zinc-500 hover:text-red-400 transition-colors"
+ >
+ <X className="w-5 h-5" />
+ </button>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ <button
+ onClick={handleContinue}
+ disabled={selectedScenarioCount === 0 || selectedEvalCount === 0}
+ className={`
+ w-full py-4 rounded-xl font-semibold transition-all flex items-center justify-center gap-2
+ ${
+ selectedScenarioCount > 0 && selectedEvalCount > 0
+ ? "gradient-bg hover:scale-105"
+ : "bg-zinc-800 text-zinc-500 cursor-not-allowed"
+ }
+ `}
+ >
+ Start Optimization
+ <ArrowRight className="w-5 h-5" />
+ </button>
+ </div>
+ );
+}
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/ResultsStep.tsx b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/ResultsStep.tsx
new file mode 100644
index 00000000..1d8305da
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/ResultsStep.tsx
@@ -0,0 +1,190 @@
+"use client";
+
+import { useState } from "react";
+import { Download, RotateCcw, TrendingUp, CheckCircle, XCircle } from "lucide-react";
+import { diffLines, Change } from "diff";
+
+interface ResultsStepProps {
+ result: any;
+ sessionId: string;
+ onStartOver: () => void;
+}
+
+export default function ResultsStep({
+ result,
+ sessionId,
+ onStartOver,
+}: ResultsStepProps) {
+ const [showDiff, setShowDiff] = useState(false);
+
+ const handleDownload = async () => {
+ try {
+ const response = await fetch(
+ `${process.env.NEXT_PUBLIC_API_URL || "http://localhost:8891"}/api/download/${sessionId}`
+ );
+
+ if (!response.ok) {
+ throw new Error("Download failed");
+ }
+
+ const blob = await response.blob();
+ const url = window.URL.createObjectURL(blob);
+ const a = document.createElement("a");
+ a.href = url;
+ a.download = "improved_skill.zip";
+ document.body.appendChild(a);
+ a.click();
+ window.URL.revokeObjectURL(url);
+ document.body.removeChild(a);
+ } catch (error) {
+ alert("Download failed. Please try again.");
+ }
+ };
+
+ const improvementPercent =
+ result.final_score - result.baseline_score;
+
+ const topChanges = result.changelog
+ ?.filter((c: any) => c.status === "keep")
+ .slice(0, 5) || [];
+
+ const diff = diffLines(
+ result.original_skill_md || "",
+ result.improved_skill_md || ""
+ );
+
+ return (
+ <div className="max-w-6xl mx-auto space-y-8">
+ <div className="glass rounded-2xl p-12 text-center">
+ <div className="inline-flex items-center gap-6 mb-6">
+ <div>
+ <div className="text-5xl font-bold text-zinc-400">
+ {result.baseline_score.toFixed(0)}%
+ </div>
+ <div className="text-sm text-zinc-500 mt-1">Baseline</div>
+ </div>
+
+ <TrendingUp className="w-12 h-12 text-violet-500" />
+
+ <div>
+ <div className="text-5xl font-bold gradient-text">
+ {result.final_score.toFixed(0)}%
+ </div>
+ <div className="text-sm text-zinc-500 mt-1">Final</div>
+ </div>
+ </div>
+
+ <div className="text-3xl font-bold text-green-400 mb-2">
+ +{improvementPercent.toFixed(1)}%
+ </div>
+ <p className="text-zinc-400">Improvement achieved</p>
+ </div>
+
+ <div className="grid grid-cols-3 gap-6">
+ <div className="glass rounded-xl p-6 text-center">
+ <div className="text-3xl font-bold mb-2">
+ {result.experiments_run}
+ </div>
+ <div className="text-sm text-zinc-400">Experiments Run</div>
+ </div>
+
+ <div className="glass rounded-xl p-6 text-center">
+ <div className="text-3xl font-bold text-green-400 mb-2">
+ {result.kept}
+ </div>
+ <div className="text-sm text-zinc-400">Changes Kept</div>
+ </div>
+
+ <div className="glass rounded-xl p-6 text-center">
+ <div className="text-3xl font-bold text-red-400 mb-2">
+ {result.discarded}
+ </div>
+ <div className="text-sm text-zinc-400">Changes Discarded</div>
+ </div>
+ </div>
+
+ {topChanges.length > 0 && (
+ <div className="glass rounded-2xl p-8">
+ <h3 className="text-2xl font-bold mb-6">Top Changes</h3>
+ <div className="space-y-4">
+ {topChanges.map((change: any, idx: number) => (
+ <div
+ key={idx}
+ className="p-4 bg-zinc-900 border border-zinc-800 rounded-lg"
+ >
+ <div className="flex items-start gap-3">
+ <CheckCircle className="w-5 h-5 text-green-400 mt-1 flex-shrink-0" />
+ <div className="flex-1">
+ <div className="font-medium mb-1">{change.description}</div>
+ <div className="text-sm text-zinc-400">
+ {change.reasoning}
+ </div>
+ <div className="text-xs text-zinc-500 mt-2">
+ Score: {change.score_before} β†’ {change.score_after}
+ </div>
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ )}
+
+ <div className="glass rounded-2xl p-8">
+ <div className="flex items-center justify-between mb-6">
+ <h3 className="text-2xl font-bold">Skill Changes</h3>
+ <button
+ onClick={() => setShowDiff(!showDiff)}
+ className="px-4 py-2 bg-zinc-800 hover:bg-zinc-700 rounded-lg transition-colors"
+ >
+ {showDiff ? "Hide" : "Show"} Diff
+ </button>
+ </div>
+
+ {showDiff && (
+ <div className="bg-zinc-900 rounded-lg p-6 overflow-x-auto">
+ <div className="font-mono text-sm space-y-1">
+ {diff.map((part: Change, idx: number) => {
+ const lines = part.value.split("\n").filter((l) => l.trim());
+ return lines.map((line, lineIdx) => (
+ <div
+ key={`${idx}-${lineIdx}`}
+ className={`
+ px-2 py-1
+ ${part.added ? "bg-green-500/20 text-green-400" : ""}
+ ${part.removed ? "bg-red-500/20 text-red-400" : ""}
+ ${!part.added && !part.removed ? "text-zinc-400" : ""}
+ `}
+ >
+ {part.added && "+ "}
+ {part.removed && "- "}
+ {!part.added && !part.removed && " "}
+ {line}
+ </div>
+ ));
+ })}
+ </div>
+ </div>
+ )}
+ </div>
+
+ <div className="flex gap-4">
+ <button
+ onClick={handleDownload}
+ className="flex-1 py-4 gradient-bg rounded-xl font-semibold hover:scale-105 transition-all flex items-center justify-center gap-2"
+ >
+ <Download className="w-5 h-5" />
+ Download Improved Skill
+ </button>
+
+ <button
+ onClick={onStartOver}
+ className="flex-1 py-4 bg-zinc-800 hover:bg-zinc-700 rounded-xl font-semibold transition-all flex items-center justify-center gap-2"
+ >
+ <RotateCcw className="w-5 h-5" />
+ Start Over
+ </button>
+ </div>
+ </div>
+ );
+}
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/RunningStep.tsx b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/RunningStep.tsx
new file mode 100644
index 00000000..8554343a
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/RunningStep.tsx
@@ -0,0 +1,303 @@
+"use client";
+
+import { useState, useEffect } from "react";
+import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from "recharts";
+import { Loader2, StopCircle } from "lucide-react";
+
+interface RunningStepProps {
+ sessionId: string;
+ apiKey: string;
+ scenarios: any[];
+ evals: any[];
+ onComplete: (result: any) => void;
+}
+
+interface Experiment {
+ experiment_id: number;
+ description: string;
+ status: string;
+ score: number;
+ max_score: number;
+ pass_rate: number;
+ per_eval: any[];
+}
+
+export default function RunningStep({
+ sessionId,
+ apiKey,
+ scenarios,
+ evals,
+ onComplete,
+}: RunningStepProps) {
+ const [experiments, setExperiments] = useState<Experiment[]>([]);
+ const [currentScore, setCurrentScore] = useState(0);
+ const [isRunning, setIsRunning] = useState(false);
+ const [currentExperiment, setCurrentExperiment] = useState<string>("");
+ const [started, setStarted] = useState(false);
+
+ useEffect(() => {
+ if (!started) {
+ setStarted(true);
+ startOptimization();
+ }
+ }, []);
+
+ const startOptimization = async () => {
+ setIsRunning(true);
+ const API_BASE = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8892";
+
+ try {
+ // Start the optimization
+ const startResponse = await fetch(
+ `${API_BASE}/api/start/${sessionId}`,
+ {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ gemini_api_key: apiKey,
+ max_rounds: 20,
+ }),
+ }
+ );
+
+ if (!startResponse.ok) {
+ const err = await startResponse.json().catch(() => ({}));
+ if (!err.detail?.includes("already running")) {
+ throw new Error(err.detail || "Failed to start optimization");
+ }
+ }
+
+ // Poll for status every 3 seconds
+ const poll = async () => {
+ let lastExpCount = 0;
+ while (true) {
+ await new Promise((r) => setTimeout(r, 3000));
+
+ try {
+ const res = await fetch(`${API_BASE}/api/status/${sessionId}`);
+ if (!res.ok) continue;
+ const data = await res.json();
+
+ // Update experiments if new ones arrived
+ if (data.experiments && data.experiments.length > lastExpCount) {
+ const newExps = data.experiments;
+ setExperiments(newExps);
+ const latest = newExps[newExps.length - 1];
+ setCurrentScore(latest.pass_rate);
+ setCurrentExperiment(
+ latest.status === "baseline"
+ ? "Baseline complete"
+ : `Experiment ${latest.experiment_id}: ${latest.status}`
+ );
+ lastExpCount = newExps.length;
+ }
+
+ // Check if complete
+ if (data.status === "complete" && data.final_result) {
+ setIsRunning(false);
+ onComplete(data.final_result);
+ return;
+ }
+
+ if (data.status === "error") {
+ setIsRunning(false);
+ alert(`Error: ${data.error || "Unknown error"}`);
+ return;
+ }
+
+ if (data.status === "stopped") {
+ setIsRunning(false);
+ return;
+ }
+ } catch {
+ // Network error, keep polling
+ }
+ }
+ };
+
+ poll();
+ } catch (error: any) {
+ alert(error.message || "Failed to start optimization.");
+ setIsRunning(false);
+ }
+ };
+
+ const handleStop = async () => {
+ try {
+ const API_BASE2 = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8891";
+ await fetch(`${API_BASE2}/api/stop/${sessionId}`, {
+ method: "POST",
+ });
+ setIsRunning(false);
+ } catch (error) {
+ alert("Failed to stop optimization");
+ }
+ };
+
+ const chartData = experiments.map((exp) => ({
+ experiment: exp.experiment_id === 0 ? "Base" : exp.experiment_id.toString(),
+ passRate: exp.pass_rate,
+ status: exp.status,
+ }));
+
+ const evalBreakdown = evals.map((evalItem) => {
+ const latestExperiment = experiments[experiments.length - 1];
+ if (!latestExperiment) {
+ return { ...evalItem, passed: 0, total: 0, passRate: 0 };
+ }
+
+ const evalResult = latestExperiment.per_eval?.find(
+ (pe: any) => pe.eval_id === evalItem.id
+ );
+
+ return {
+ ...evalItem,
+ passed: evalResult?.passed || 0,
+ total: evalResult?.total || 0,
+ passRate: evalResult?.pass_rate || 0,
+ };
+ });
+
+ return (
+ <div className="max-w-7xl mx-auto space-y-8">
+ <div className="glass rounded-2xl p-8">
+ <div className="flex items-center justify-between mb-8">
+ <div>
+ <h2 className="text-3xl font-bold mb-2">
+ {currentScore.toFixed(1)}
+ <span className="text-lg text-zinc-500">%</span>
+ </h2>
+ <p className="text-zinc-400">{currentExperiment}</p>
+ </div>
+
+ {isRunning && (
+ <button
+ onClick={handleStop}
+ className="px-6 py-3 bg-red-500/20 hover:bg-red-500/30 text-red-400 rounded-xl transition-all flex items-center gap-2"
+ >
+ <StopCircle className="w-5 h-5" />
+ Stop Optimization
+ </button>
+ )}
+ </div>
+
+ <ResponsiveContainer width="100%" height={300}>
+ <LineChart data={chartData}>
+ <CartesianGrid strokeDasharray="3 3" stroke="#27272a" />
+ <XAxis
+ dataKey="experiment"
+ stroke="#71717a"
+ style={{ fontSize: "12px" }}
+ />
+ <YAxis
+ stroke="#71717a"
+ style={{ fontSize: "12px" }}
+ domain={[0, 100]}
+ />
+ <Tooltip
+ contentStyle={{
+ backgroundColor: "#18181b",
+ border: "1px solid #27272a",
+ borderRadius: "8px",
+ }}
+ />
+ <defs>
+ <linearGradient id="colorGradient" x1="0" y1="0" x2="0" y2="1">
+ <stop offset="5%" stopColor="#8b5cf6" stopOpacity={0.3} />
+ <stop offset="95%" stopColor="#8b5cf6" stopOpacity={0} />
+ </linearGradient>
+ </defs>
+ <Line
+ type="monotone"
+ dataKey="passRate"
+ stroke="#8b5cf6"
+ strokeWidth={3}
+ dot={(props: any) => {
+ const { cx, cy, payload, index } = props;
+ const color =
+ payload.status === "baseline"
+ ? "#3b82f6"
+ : payload.status === "keep"
+ ? "#22c55e"
+ : "#ef4444";
+ return <circle key={`dot-${index}`} cx={cx} cy={cy} r={5} fill={color} />;
+ }}
+ fill="url(#colorGradient)"
+ />
+ </LineChart>
+ </ResponsiveContainer>
+ </div>
+
+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-8">
+ <div className="glass rounded-2xl p-8">
+ <h3 className="text-xl font-bold mb-6">Experiment Log</h3>
+ <div className="space-y-3 max-h-96 overflow-y-auto">
+ {experiments.length === 0 ? (
+ <div className="flex items-center justify-center py-12 text-zinc-500">
+ <Loader2 className="w-8 h-8 animate-spin" />
+ </div>
+ ) : (
+ experiments.map((exp) => (
+ <div
+ key={exp.experiment_id}
+ className="p-4 bg-zinc-900 border border-zinc-800 rounded-lg"
+ >
+ <div className="flex items-start justify-between mb-2">
+ <span
+ className={`
+ px-3 py-1 rounded-full text-xs font-medium
+ ${
+ exp.status === "baseline"
+ ? "bg-blue-500/20 text-blue-400"
+ : exp.status === "keep"
+ ? "bg-green-500/20 text-green-400"
+ : "bg-red-500/20 text-red-400"
+ }
+ `}
+ >
+ {exp.status === "baseline"
+ ? "Baseline"
+ : exp.status === "keep"
+ ? "Keep βœ“"
+ : "Discard βœ—"}
+ </span>
+ <span className="text-lg font-bold text-violet-400">
+ {exp.pass_rate}%
+ </span>
+ </div>
+ <p className="text-sm text-zinc-400">
+ {exp.experiment_id === 0
+ ? "Initial baseline"
+ : exp.description}
+ </p>
+ </div>
+ ))
+ )}
+ </div>
+ </div>
+
+ <div className="glass rounded-2xl p-8">
+ <h3 className="text-xl font-bold mb-6">Evaluation Breakdown</h3>
+ <div className="space-y-4">
+ {evalBreakdown.map((evalItem) => (
+ <div key={evalItem.id}>
+ <div className="flex items-center justify-between mb-2">
+ <span className="text-sm font-medium">{evalItem.name}</span>
+ <span className="text-sm text-zinc-400">
+ {evalItem.passed}/{evalItem.total}
+ </span>
+ </div>
+ <div className="w-full h-2 bg-zinc-800 rounded-full overflow-hidden">
+ <div
+ className="h-full gradient-bg transition-all duration-500"
+ style={{ width: `${evalItem.passRate}%` }}
+ />
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/StepIndicator.tsx b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/StepIndicator.tsx
new file mode 100644
index 00000000..5d39cc6b
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/StepIndicator.tsx
@@ -0,0 +1,71 @@
+"use client";
+
+import { Check } from "lucide-react";
+
+interface StepIndicatorProps {
+ currentStep: number;
+}
+
+const steps = [
+ { number: 1, name: "Upload" },
+ { number: 2, name: "Configure" },
+ { number: 3, name: "Optimize" },
+ { number: 4, name: "Results" },
+];
+
+export default function StepIndicator({ currentStep }: StepIndicatorProps) {
+ return (
+ <div className="flex items-center justify-center gap-4">
+ {steps.map((step, index) => (
+ <div key={step.number} className="flex items-center">
+ <div className="flex items-center gap-3">
+ <div
+ className={`
+ w-12 h-12 rounded-full flex items-center justify-center font-semibold
+ transition-all duration-300
+ ${
+ currentStep > step.number
+ ? "gradient-bg text-white"
+ : currentStep === step.number
+ ? "gradient-bg text-white scale-110"
+ : "bg-zinc-800 text-zinc-500"
+ }
+ `}
+ >
+ {currentStep > step.number ? (
+ <Check className="w-6 h-6" />
+ ) : (
+ step.number
+ )}
+ </div>
+ <span
+ className={`
+ text-sm font-medium transition-colors
+ ${
+ currentStep >= step.number
+ ? "text-white"
+ : "text-zinc-500"
+ }
+ `}
+ >
+ {step.name}
+ </span>
+ </div>
+
+ {index < steps.length - 1 && (
+ <div
+ className={`
+ w-16 h-0.5 mx-4 transition-colors
+ ${
+ currentStep > step.number
+ ? "bg-gradient-to-r from-violet-500 to-purple-500"
+ : "bg-zinc-800"
+ }
+ `}
+ />
+ )}
+ </div>
+ ))}
+ </div>
+ );
+}
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/ThemeToggle.tsx b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/ThemeToggle.tsx
new file mode 100644
index 00000000..58ef9131
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/ThemeToggle.tsx
@@ -0,0 +1,52 @@
+"use client";
+
+import { useState, useEffect } from "react";
+
+export default function ThemeToggle() {
+ const [isDark, setIsDark] = useState(true);
+
+ useEffect(() => {
+ const saved = localStorage.getItem("theme");
+ if (saved === "light") {
+ setIsDark(false);
+ document.documentElement.classList.add("light");
+ document.documentElement.classList.remove("dark");
+ } else {
+ setIsDark(true);
+ document.documentElement.classList.add("dark");
+ document.documentElement.classList.remove("light");
+ }
+ }, []);
+
+ const toggle = () => {
+ const next = !isDark;
+ setIsDark(next);
+ if (next) {
+ document.documentElement.classList.add("dark");
+ document.documentElement.classList.remove("light");
+ localStorage.setItem("theme", "dark");
+ } else {
+ document.documentElement.classList.add("light");
+ document.documentElement.classList.remove("dark");
+ localStorage.setItem("theme", "light");
+ }
+ };
+
+ return (
+ <button
+ onClick={toggle}
+ className="fixed top-4 right-4 z-50 p-2 rounded-lg bg-zinc-200 dark:bg-zinc-800 hover:bg-zinc-300 dark:hover:bg-zinc-700 transition-colors border border-zinc-300 dark:border-zinc-700"
+ aria-label="Toggle theme"
+ >
+ {isDark ? (
+ <svg className="w-5 h-5 text-yellow-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" />
+ </svg>
+ ) : (
+ <svg className="w-5 h-5 text-zinc-700" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" />
+ </svg>
+ )}
+ </button>
+ );
+}
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/UploadStep.tsx b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/UploadStep.tsx
new file mode 100644
index 00000000..b9564635
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/src/components/UploadStep.tsx
@@ -0,0 +1,340 @@
+"use client";
+
+import { useState, useRef } from "react";
+import { Upload, FileText, Loader2, Sparkles, FolderOpen } from "lucide-react";
+
+interface UploadStepProps {
+ onComplete: (
+ sessionId: string,
+ apiKey: string,
+ metadata: any,
+ scenarios: any[],
+ evals: any[]
+ ) => void;
+}
+
+const API_BASE = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8891";
+
+const EXAMPLE_SKILLS = [
+ {
+ name: "Code Reviewer",
+ description: "Reviews code for security, performance, and best practices",
+ path: "code-reviewer",
+ },
+ {
+ name: "Content Writer",
+ description: "Writes marketing copy for landing pages and emails",
+ path: "content-writer",
+ },
+];
+
+export default function UploadStep({ onComplete }: UploadStepProps) {
+ const [isDragging, setIsDragging] = useState(false);
+ const [apiKey, setApiKey] = useState("");
+ const [isUploading, setIsUploading] = useState(false);
+ const [isAnalyzing, setIsAnalyzing] = useState(false);
+ const [fileList, setFileList] = useState<string[]>([]);
+ const [metadata, setMetadata] = useState<any>(null);
+ const [sessionId, setSessionId] = useState<string | null>(null);
+ const folderInputRef = useRef<HTMLInputElement>(null);
+
+ const handleDragOver = (e: React.DragEvent) => {
+ e.preventDefault();
+ setIsDragging(true);
+ };
+
+ const handleDragLeave = () => {
+ setIsDragging(false);
+ };
+
+ const handleDrop = async (e: React.DragEvent) => {
+ e.preventDefault();
+ setIsDragging(false);
+ const files = Array.from(e.dataTransfer.files);
+ const zipFile = files.find((f) => f.name.endsWith(".zip"));
+ if (zipFile) {
+ await uploadZip(zipFile);
+ } else if (files.length > 0) {
+ await uploadMultipleFiles(files);
+ }
+ };
+
+ const handleZipSelect = async (e: React.ChangeEvent<HTMLInputElement>) => {
+ const files = e.target.files;
+ if (files && files[0]) {
+ await uploadZip(files[0]);
+ }
+ };
+
+ const handleFolderSelect = async (e: React.ChangeEvent<HTMLInputElement>) => {
+ const files = e.target.files;
+ if (files && files.length > 0) {
+ await uploadMultipleFiles(Array.from(files));
+ }
+ };
+
+ const uploadZip = async (file: File) => {
+ setIsUploading(true);
+ try {
+ const formData = new FormData();
+ formData.append("file", file);
+ const response = await fetch(`${API_BASE}/api/upload`, {
+ method: "POST",
+ body: formData,
+ });
+ if (!response.ok) {
+ const err = await response.json().catch(() => ({}));
+ throw new Error(err.detail || "Upload failed");
+ }
+ const data = await response.json();
+ setSessionId(data.session_id);
+ setFileList(data.file_list);
+ setMetadata(data.metadata);
+ } catch (error: any) {
+ alert(error.message || "Upload failed. Please try again.");
+ } finally {
+ setIsUploading(false);
+ }
+ };
+
+ const uploadMultipleFiles = async (files: File[]) => {
+ setIsUploading(true);
+ try {
+ const formData = new FormData();
+ for (const f of files) {
+ const path = (f as any).webkitRelativePath || f.name;
+ formData.append("files", f, path);
+ }
+ const response = await fetch(`${API_BASE}/api/upload-files`, {
+ method: "POST",
+ body: formData,
+ });
+ if (!response.ok) {
+ const err = await response.json().catch(() => ({}));
+ throw new Error(err.detail || "Upload failed");
+ }
+ const data = await response.json();
+ setSessionId(data.session_id);
+ setFileList(data.file_list);
+ setMetadata(data.metadata);
+ } catch (error: any) {
+ alert(error.message || "Upload failed. Please try again.");
+ } finally {
+ setIsUploading(false);
+ }
+ };
+
+ const handleAnalyze = async () => {
+ if (!apiKey || !sessionId) return;
+ setIsAnalyzing(true);
+ try {
+ const response = await fetch(`${API_BASE}/api/analyze`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ session_id: sessionId, gemini_api_key: apiKey }),
+ });
+ if (!response.ok) {
+ const err = await response.json().catch(() => ({}));
+ throw new Error(err.detail || "Analysis failed");
+ }
+ const data = await response.json();
+ onComplete(sessionId, apiKey, metadata, data.scenarios, data.evals);
+ } catch (error: any) {
+ alert(error.message || "Analysis failed. Check your API key.");
+ } finally {
+ setIsAnalyzing(false);
+ }
+ };
+
+ const handleExampleSelect = async (examplePath: string) => {
+ if (!apiKey) {
+ alert("Please enter your Google API key first.");
+ return;
+ }
+ setIsUploading(true);
+ try {
+ const loadResponse = await fetch(`${API_BASE}/api/examples/${examplePath}/load`, {
+ method: "POST",
+ });
+ if (!loadResponse.ok) throw new Error("Failed to load example");
+ const loadData = await loadResponse.json();
+ setSessionId(loadData.session_id);
+ setFileList(loadData.file_list);
+ setMetadata(loadData.metadata);
+ setIsUploading(false);
+ setIsAnalyzing(true);
+
+ const analyzeResponse = await fetch(`${API_BASE}/api/analyze`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ session_id: loadData.session_id, gemini_api_key: apiKey }),
+ });
+ if (!analyzeResponse.ok) {
+ const err = await analyzeResponse.json().catch(() => ({}));
+ throw new Error(err.detail || "Analysis failed");
+ }
+ const analyzeData = await analyzeResponse.json();
+ onComplete(loadData.session_id, apiKey, loadData.metadata, analyzeData.scenarios, analyzeData.evals);
+ } catch (error: any) {
+ alert(error.message || "Failed to load example skill.");
+ setSessionId(null);
+ } finally {
+ setIsUploading(false);
+ setIsAnalyzing(false);
+ }
+ };
+
+ return (
+ <div className="max-w-4xl mx-auto space-y-8">
+ {!sessionId ? (
+ <>
+ <div
+ onDragOver={handleDragOver}
+ onDragLeave={handleDragLeave}
+ onDrop={handleDrop}
+ className={`glass rounded-2xl p-16 text-center transition-all ${
+ isDragging ? "border-violet-500 bg-violet-500/10 scale-105" : "border-zinc-800 hover:border-zinc-700"
+ }`}
+ >
+ <input type="file" accept=".zip" onChange={handleZipSelect} className="hidden" id="zip-upload" />
+ <input
+ type="file"
+ ref={folderInputRef}
+ onChange={handleFolderSelect}
+ className="hidden"
+ id="folder-upload"
+ {...({ webkitdirectory: "", directory: "" } as any)}
+ multiple
+ />
+
+ <div className="mb-6">
+ {isUploading ? (
+ <Loader2 className="w-16 h-16 mx-auto text-violet-500 animate-spin" />
+ ) : (
+ <Upload className="w-16 h-16 mx-auto text-zinc-500" />
+ )}
+ </div>
+
+ <h3 className="text-2xl font-semibold mb-2">
+ {isUploading ? "Uploading..." : "Drop your skill here"}
+ </h3>
+ <p className="text-zinc-400 mb-4">Drag a .zip file or use the buttons below</p>
+
+ <div className="flex justify-center gap-4">
+ <label
+ htmlFor="zip-upload"
+ className="px-6 py-3 bg-zinc-800 hover:bg-zinc-700 rounded-xl cursor-pointer transition-colors flex items-center gap-2 text-sm font-medium"
+ >
+ <Upload className="w-4 h-4" />
+ Upload .zip
+ </label>
+ <button
+ onClick={() => folderInputRef.current?.click()}
+ className="px-6 py-3 bg-zinc-800 hover:bg-zinc-700 rounded-xl cursor-pointer transition-colors flex items-center gap-2 text-sm font-medium"
+ >
+ <FolderOpen className="w-4 h-4" />
+ Upload Folder
+ </button>
+ </div>
+ </div>
+
+ <div className="glass rounded-2xl p-6">
+ <label className="block">
+ <span className="text-sm font-medium text-zinc-400 mb-2 block">Google API Key</span>
+ <input
+ type="password"
+ value={apiKey}
+ onChange={(e) => setApiKey(e.target.value)}
+ placeholder="Enter your Google API key"
+ className="w-full px-4 py-3 bg-zinc-900 border border-zinc-800 rounded-lg focus:outline-none focus:border-violet-500 transition-colors"
+ />
+ <span className="text-xs text-zinc-500 mt-1 block">
+ Required for analysis. Stored locally, sent only to the backend.
+ </span>
+ </label>
+ </div>
+
+ <div>
+ <p className="text-center text-zinc-500 mb-4">
+ {isAnalyzing ? "Analyzing with ADK agents..." : "Or try an example skill:"}
+ </p>
+ <div className="grid grid-cols-2 gap-4">
+ {EXAMPLE_SKILLS.map((skill) => (
+ <button
+ key={skill.path}
+ onClick={() => handleExampleSelect(skill.path)}
+ disabled={isUploading || isAnalyzing || !apiKey}
+ className={`glass rounded-xl p-6 text-left transition-all ${
+ apiKey && !isUploading && !isAnalyzing
+ ? "hover:border-violet-500 hover:scale-105 cursor-pointer"
+ : "opacity-50 cursor-not-allowed"
+ }`}
+ >
+ <h4 className="font-semibold mb-2 flex items-center gap-2">
+ {skill.name}
+ {isAnalyzing && <Loader2 className="w-4 h-4 animate-spin text-violet-500" />}
+ </h4>
+ <p className="text-sm text-zinc-400">{skill.description}</p>
+ </button>
+ ))}
+ </div>
+ </div>
+ </>
+ ) : (
+ <div className="space-y-6">
+ <div className="glass rounded-2xl p-8">
+ <div className="flex items-start gap-4 mb-6">
+ <FileText className="w-8 h-8 text-violet-500" />
+ <div className="flex-1">
+ <h3 className="text-xl font-semibold mb-1">{metadata?.name || "Skill Uploaded"}</h3>
+ {metadata?.description && <p className="text-zinc-400">{metadata.description}</p>}
+ </div>
+ </div>
+ <div className="border-t border-zinc-800 pt-4 mt-4">
+ <p className="text-sm text-zinc-500 mb-2">Files in skill:</p>
+ <div className="flex flex-wrap gap-2">
+ {fileList.map((file) => (
+ <span key={file} className="px-3 py-1 bg-zinc-800 rounded-full text-xs text-zinc-300">
+ {file}
+ </span>
+ ))}
+ </div>
+ </div>
+ </div>
+
+ <div className="glass rounded-2xl p-8">
+ <label className="block mb-4">
+ <span className="text-sm font-medium text-zinc-400 mb-2 block">Google API Key</span>
+ <input
+ type="password"
+ value={apiKey}
+ onChange={(e) => setApiKey(e.target.value)}
+ placeholder="Enter your Google API key"
+ className="w-full px-4 py-3 bg-zinc-900 border border-zinc-800 rounded-lg focus:outline-none focus:border-violet-500 transition-colors"
+ />
+ </label>
+ <button
+ onClick={handleAnalyze}
+ disabled={!apiKey || isAnalyzing}
+ className={`w-full py-4 rounded-xl font-semibold transition-all flex items-center justify-center gap-2 ${
+ apiKey && !isAnalyzing ? "gradient-bg hover:scale-105" : "bg-zinc-800 text-zinc-500 cursor-not-allowed"
+ }`}
+ >
+ {isAnalyzing ? (
+ <>
+ <Loader2 className="w-5 h-5 animate-spin" />
+ Analyzing Skill...
+ </>
+ ) : (
+ <>
+ <Sparkles className="w-5 h-5" />
+ Analyze Skill
+ </>
+ )}
+ </button>
+ </div>
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/tailwind.config.ts b/awesome_agent_skills/self-improving-agent-skills/frontend/tailwind.config.ts
new file mode 100644
index 00000000..c74bfe92
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/tailwind.config.ts
@@ -0,0 +1,15 @@
+import type { Config } from "tailwindcss";
+
+const config: Config = {
+ content: [
+ "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
+ "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
+ "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
+ ],
+ theme: {
+ extend: {},
+ },
+ plugins: [],
+};
+
+export default config;
diff --git a/awesome_agent_skills/self-improving-agent-skills/frontend/tsconfig.json b/awesome_agent_skills/self-improving-agent-skills/frontend/tsconfig.json
new file mode 100644
index 00000000..47fe7d2c
--- /dev/null
+++ b/awesome_agent_skills/self-improving-agent-skills/frontend/tsconfig.json
@@ -0,0 +1,40 @@
+{
+ "compilerOptions": {
+ "target": "ES2020",
+ "lib": [
+ "dom",
+ "dom.iterable",
+ "esnext"
+ ],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "preserve",
+ "incremental": true,
+ "paths": {
+ "@/*": [
+ "./src/*"
+ ]
+ },
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ]
+ },
+ "include": [
+ "**/*.ts",
+ "**/*.tsx",
+ "next-env.d.ts",
+ ".next/types/**/*.ts"
+ ],
+ "exclude": [
+ "node_modules"
+ ]
+}