Agent-almanac basic-obedience
install
source · Clone the upstream repo
git clone https://github.com/pjt222/agent-almanac
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/pjt222/agent-almanac "$T" && mkdir -p ~/.claude/skills && cp -r "$T/i18n/zh-CN/skills/basic-obedience" ~/.claude/skills/pjt222-agent-almanac-basic-obedience-03af56 && rm -rf "$T"
manifest:
i18n/zh-CN/skills/basic-obedience/SKILL.mdsource content
基础服从训练
使用正向强化和标记训练教授基础指令(坐下、等待、过来、随行、趴下)。
适用场景
- 新幼犬(8+ 周龄)准备进行基础训练
- 成年犬缺乏可靠的基本指令
- 救助或转让的犬只需要学习家庭的指令词汇
- 进阶到更复杂的行为或脱绳训练之前
- 现有指令已退化需要重新建立时
输入
- 必需:一只犬(任何品种,8+ 周龄)
- 必需:高价值零食(小块、软质、可快速食用)
- 可选:响片或口头标记词(例如"好")
- 可选:1.8 米牵绳和平扣项圈或胸背带
- 可选:干扰最小的安静训练空间(初始阶段)
步骤
第 1 步:建立标记
标记桥接了期望行为和奖励之间的间隔。
Marker Training Protocol: 1. Choose your marker: clicker (precise) or verbal "yes" (always available) 2. Charge the marker (10-15 reps): - Mark (click or "yes") then immediately deliver a treat - No behavior required — just marker → treat, marker → treat - Dog should begin orienting toward you at the sound of the marker 3. Test: mark when the dog is looking away. Does the dog turn toward you expecting a treat? If yes, the marker is charged. Timing Rule: The marker must occur WITHIN 1 second of the desired behavior. Late marking teaches the wrong behavior. Mark → then reach for the treat (not the reverse).
预期结果: 犬只在听到标记时可靠地转向处理者,期待奖励。
失败处理: 如果犬只在 20 次重复后仍不响应标记,零食价值太低。换用更高价值的奖励(奶酪、鸡肉、肝脏)。如果犬只太分心而不吃东西,环境刺激太强——移到更安静的空间。
第 2 步:教授五个基础指令
每次训练课专注一个指令直到可靠,然后开始混合练习。
Command Protocols: SIT: 1. Hold treat above dog's nose, slowly arc backward over the head 2. As the dog's head follows up, the rear naturally lowers 3. The instant the rear touches the ground → mark and treat 4. Add the verbal cue "sit" AFTER the dog is offering the behavior reliably (cue comes before behavior only once the dog understands the behavior) DOWN: 1. From a sit, hold treat at the dog's nose then lower slowly to the ground 2. Draw the treat slightly forward along the ground 3. As elbows touch the ground → mark and treat 4. If the dog stands instead, reset and try with less forward movement STAY: 1. Ask for a sit or down 2. Open palm toward the dog, say "stay" 3. Wait 1 second → mark and treat while the dog is still in position 4. Gradually increase duration: 2s, 5s, 10s, 30s, 1 min 5. Add distance: one step back, then two, then five 6. Add distraction: only after duration and distance are solid (the "three Ds": Duration, Distance, Distraction — increase one at a time) COME (recall): 1. Start on a long line (15-30 ft) in a low-distraction environment 2. Let the dog wander, then call name + "come" in an upbeat tone 3. If the dog turns toward you → mark → reward generously when the dog arrives 4. NEVER call "come" for something unpleasant (bath, crate, leaving the park) 5. Recall is the most important safety command — make it the most rewarding HEEL: 1. Dog on your left side, treat in left hand at your hip 2. Take one step, if the dog moves with you → mark and treat 3. Gradually increase to two steps, five steps, ten steps 4. Mark and treat for maintaining position (head roughly at your knee) 5. If the dog pulls ahead, stop walking. Resume when the leash is loose.
预期结果: 在低干扰环境中,每个指令都能以零食作为动力可靠执行。
失败处理: 如果一个指令在 3 次课程后没有进步,将其分解为更小的步骤。犬只可能需要一个中间行为(例如对于"趴下",在要求完全肘部着地之前先奖励低头动作)。
第 3 步:组织训练课程
Session Guidelines: +--------------------+------------------------------------------+ | Parameter | Guideline | +--------------------+------------------------------------------+ | Duration | 5-10 minutes (puppies: 3-5 minutes) | | Frequency | 2-3 sessions per day | | End on success | Always end after a successful rep, not | | | after a failure | | Reward rate | Initially: every correct rep | | | Later: intermittent (variable schedule) | | Energy management | High-energy dog? Exercise BEFORE training| | | Low-energy dog? Train when most alert | | Session structure | Warm-up (easy known command) → new | | | material → cool-down (easy command) | +--------------------+------------------------------------------+ The 80/20 Rule: - 80% of reps should succeed (dog is getting it right) - If success rate drops below 80%, the criteria is too high — go easier - 20% challenge keeps the dog engaged without frustrating
预期结果: 简短、成功的训练课程,让犬只意犹未尽。
失败处理: 如果犬只脱离参与(嗅地、四处张望、趴下),训练课程太长、太难或奖励不够有吸引力。结束课程并重新评估。
第 4 步:指令抗干扰训练
在安静环境中可靠后,系统地增加干扰。
Distraction Ladder (work through sequentially): 1. Quiet room, no distractions (starting point) 2. Room with a family member present 3. Backyard or garden 4. Front yard with street noise 5. Quiet park or trail 6. Busy park with other dogs at a distance 7. Busy park with other dogs nearby 8. Novel environments (pet store, cafe patio) At each new level: - Expect performance to decrease — this is normal - Increase reward rate back to every correct rep - Do not add more distraction until the current level is reliable - If the dog fails 3 reps in a row, you moved up too fast — go back one level
预期结果: 指令在逐渐增加干扰的环境中可靠执行。
失败处理: 如果特定干扰(其他犬、松鼠)持续破坏训练,该干扰需要单独的反条件化训练(见
behavioral-modification)。
验证清单
- 标记已充值且犬只可靠响应
- 所有五个指令在低干扰环境中都能执行
- 训练课程为 5-10 分钟,在成功时结束
- 每个指令的成功率在 80% 或以上
- 指令正在通过干扰阶梯进行泛化
- 处理者的时机(标记在 1 秒内)保持一致
常见问题
- 重复指令:说"坐,坐,坐!"教会犬只第一个"坐"是可选的。说一次然后等待
- 给食太迟:零食应在标记后 2-3 秒内给出。迟给零食会破坏关联
- 永远使用引导:用零食做手势引导应在 10-20 次重复内逐渐消除。否则犬只只在看到食物时才响应
- 惩罚失败的召回:叫"过来"然后斥责犬只(因为太慢、因为嘴里叼着东西)会永久性地毒化召回指令
- 训练时间过长:疲劳的犬只什么也学不会。在领先时退出
- 不一致的指令:所有家庭成员必须对每个指令使用相同的词语和手势
相关技能
— 用于解决干扰基础服从训练的不良行为behavioral-modification