duck
Configure Duck AI pre-commit guardrails for a repository. Use when adding or tuning duck.yaml rules, choosing OpenAI-compatible/Claude/Codex providers, or helping an agent avoid committing sloppy generated code.
- License 许可
- MIT
- 最近更新
- 2026-05-20
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- duck
- description
- Configure Duck AI pre-commit guardrails for a repository. Use when adding or tuning duck.yaml rules, choosing OpenAI-compatible/Claude/Codex providers, or helping an agent avoid committing sloppy generated code.
02 资源文件 3
- 脚本scripts/claude.yaml187 B
- 脚本scripts/codex.yaml223 B
- 脚本scripts/openai-compatible.yaml282 B
03 SKILL.md 正文
Duck
Duck is an AI pre-commit hook. It checks the staged git diff against plain-language rules in duck.yaml and blocks commits on high-confidence failures. This skill is intentionally small and compatible with the skills.sh directory format.
When configuring Duck
- Keep
duck.yamlsmall. - Write rules as concrete fail conditions.
- Prefer
provider.type: claudeorprovider.type: codexwhen the user's machine already has those CLIs authenticated. - Prefer
provider.type: openai-compatiblefor API endpoints, hosted GPUs, OpenAI-compatible gateways, or CI. - Never put API keys in
duck.yaml; useapiKeyEnvand.env.
Example configs
See:
scripts/openai-compatible.yamlscripts/claude.yamlscripts/codex.yaml
Validate
After changing Duck config, run:
git add .
duck check
Expected output is either duck: pass with one [pass] per rule, or duck: fail with file/line reasons.
04 同仓库更多 Skills
understanding-pulse
Configure and explain Union Street pulse heartbeats, recurring self-checks, pulse cadence, and pulse instructions. Use when agents should periodically wake up and inspect work.
token-accounting
Inspect, configure, and reason about Union Street token usage, model accounting modes, free providers, and usage records. Use when debugging cost, throughput, or token-heavy fleet behavior.
setting-agent-schedules
Configure Union Street agent schedules, cron jobs, due runs, scheduler ticks, and scheduled prompts. Use when creating recurring agent work beyond pulse.
managing-union-street
Manage a Union Street agent fleet from outside Union Street. Use when configuring, auditing, onboarding, repairing, or operating Union Street agents, fleets, plugins, memory, Lash delegation, schedules, webhooks, messaging, environments, or performance.
managing-shared-memory
Configure and audit Union Street Honcho-backed memory, profile memory namespaces, memory sync, traces, anchors, and shared institutional memory. Use when agents forget context, memory is collapsed, or memory boundaries need design.
managing-agent-environments
Configure Union Street agent runtime environments, local host mode, workspace scope, secrets, and future Docker/Kubernetes/cloud sandbox targets. Use when changing where agents run.