adaptation
1
总安装量
1
周安装量
#46998
全站排名
安装命令
npx skills add https://github.com/lauraflorentin/skills-marketplace --skill adaptation
Agent 安装分布
claude-code
1
Skill 文档
Adaptation
Adaptation enables an AI system to evolve. Instead of being static, the system monitors its own performance (or receives user feedback) and updates its configuration. This can range from simple parameter tuning to rewriting its own system prompts or code.
When to Use
- Optimization: When you want the agent to automatically improve metrics (e.g., accuracy, conversion rate).
- Personalization: Tailoring the agent’s style to a specific user’s feedback (“Don’t be so formal”).
- Drift Handling: Adjusting to changes in data distribution or environment.
- Experimentation: Checking if a new prompt strategy works better than the old one.
Use Cases
- Prompt Optimization: An “Optimizer Agent” rewrites the prompt of a “Worker Agent” based on failure cases.
- Code Evolution: An agent that maintains a library of helper functions and refactors them when they become inefficient.
- Style Transfer: An agent that learns to mimic the writing style of the user over time.
Implementation Pattern
def adaptation_loop(task_history):
# Step 1: Evaluate Performance
# Analyze recent logs to find recurring failures or weak spots.
performance_report = evaluator.analyze(task_history)
if performance_report.score < threshold:
# Step 2: Mutate / Optimize
# The optimizer proposes a change to the system prompt.
current_prompt = load_prompt()
new_prompt = optimizer.run(
prompt="Improve this prompt based on the failure analysis...",
input={"current_prompt": current_prompt, "report": performance_report}
)
# Step 3: Update System
save_prompt(new_prompt)
print("System adapted with new prompt strategy.")