Agent Skills
› Fullive-AI/Anima
› your-skill-name
your-skill-name
GitHubAnima智能设备自定义技能开发模板,指导用户配置设备类型、定义触发条件、执行动作及安全规则,支持偏好学习与决策生成。
触发场景
需要为Anima平台创建新的自定义设备控制技能
初始化或修改智能硬件适配器的行为逻辑
安装
npx skills add Fullive-AI/Anima --skill your-skill-name -g -y
SKILL.md
Frontmatter
{
"name": "your-skill-name",
"metadata": {
"version": "0.1.0",
"device_types": [
"your_device_type"
]
},
"description": "Use when reasoning about your custom device type in Anima. Replace this text with when the skill should trigger and what actions it can produce."
}
Your Skill
This folder is a starter template for a user-authored Anima skill.
Before you use it:
- Copy
_template/toskills/custom/<your-skill-name>/ - Rename
name:to a real skill name - Replace
your_device_typewith the device type your adapter emits - Update the references and scripts below
What This Skill Must Define
- When the skill should be used
- Which device types it supports
- What actions it is allowed to emit
- What counts as a safe no-op
- How preferences should be learned over time
Load These Resources
references/knowledge.mdfor domain rules, comfort ranges, and device interactions.references/decide.mdwhen generating a single-device action.references/learn.mdwhen updating the learned profile from usage history.scripts/actions.pyfor the runtime action helpers exposed to Anima.
Working Rules
- Keep the description in frontmatter concrete so the skill is easy to trigger.
- Only expose actions in
scripts/actions.pythat the target adapter can execute. - Prefer narrow, conservative decisions over broad generic prompts.
Fill-In Checklist
- Frontmatter:
Replace
your-skill-namewith a lowercase stable id such asfanorplant_watering. metadata.device_types: Must match thedevice.typevalues your adapter produces.references/knowledge.md: Add real target ranges, risk conditions, and interactions.references/decide.md: Keep the output schema strict. Do not let the model invent actions.references/learn.md: Keep the output structured. Avoid free-form essays.scripts/actions.py: Only keep helpers that are valid for your device.
Common Mistakes
- Using action names that no adapter actually supports
- Forgetting to define when the correct decision is
none - Writing vague descriptions like "smart control for devices"
- Mixing multiple unrelated device types into one skill
版本历史
- 15e7c43 当前 2026-07-05 18:36


