Skip to content

docs: a yoagent skill for agents, and llms.txt - #307

Merged
yuanhao merged 2 commits into
mainfrom
docs/yoagent-skill
Oct 12, 2026
Merged

yuanhao merged 2 commits into
mainfrom
docs/yoagent-skill

Conversation

@yuanhao

@yuanhao yuanhao commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

An agent-facing guide to yoagent, so agents building on it (yoyo, yobuild, anyone's Claude Code) use the right feature instead of rediscovering it from source on every upgrade.

  • skills/yoagent/SKILL.md, in the AgentSkills format yoagent's own SkillSet loads. It ships in the published crate, so every user has it in their cargo registry. It contains:
    • Pick the feature: a table mapping 23 jobs to their yoagent feature (and the doc page to read).
    • Recipes: a policy, a verifier, a dollar budget, a sub-agent under the parent's policy, plugins from other ecosystems.
    • Tips and pitfalls: from real upgrades, e.g. pricing is opt-in, with_tools replaces the list, policies fail closed, &self hooks run concurrently, the prompt cache, bash and Ctrl+C.
    • What changed: per version, newest first.
  • llms.txt: a map of every docs page, for agents that fetch or browse instead of loading skills.
  • tests/skill_test.rs keeps both true:
    • the skill loads with SkillSet;
    • every repository path either file cites exists;
    • the recipes compile, so an API rename breaks the test rather than leaving the skill stale.
  • Wiring: both READMEs link the skill and llms.txt; CLAUDE.md asks release PRs to update the skill's "What changed".

Checked: cargo test --test skill_test, clippy and docs with all features, cargo package --list (both files ship).

🤖 Generated with Claude Code

https://claude.ai/code/session_01T7iq5hpndSiHQcnAsywKuG

yuanhao and others added 2 commits October 12, 2026 23:21
- skills/yoagent/SKILL.md (AgentSkills format, ships in the crate):
  which yoagent feature for which job (tools, policies, verifiers,
  budgets, sub-agents, plugins from other ecosystems, MCP, structured
  output, steering, retries, tests, Workers), recipes, tips and pitfalls
  (opt-in pricing, with_tools replaces, fail-closed semantics, &self hooks
  run concurrently, prompt cache, Aborted on cancel, bash process groups
  and Ctrl+C, ProviderRetry, per-run limits, cost buckets, 16 MiB plugin
  messages), and what changed per version.
- llms.txt: a map of every docs page for agents that browse instead.
- tests/skill_test.rs: the skill loads with SkillSet, every repository
  path the skill and llms.txt cite exists, the recipes compile.
- README (en/zh) point to both; CLAUDE.md: release PRs update the skill's
  "What changed".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7iq5hpndSiHQcnAsywKuG
…ompiled code

Fact-check fixes in skills/yoagent/SKILL.md:
- the verifier reads the evidence from `stop.messages` (on_event takes
  &self; a shared flag would leak between runs);
- policies: no hook timeout (panic or cancel denies; plugin policies also
  on error/timeout);
- `with_tools`: an agent starts with no tools; call it before
  `with_mcp_server_*`, which adds tools;
- cancelling: Aborted only for a cancel during a model call, otherwise the
  `[Agent stopped: cancelled]` marker; the three sub-agent spellings;
- What changed: 0.25.0's event-stream and AgentLoopConfig breaking changes,
  0.25.1, and 0.24.x split per release.

The copy in the crate cites only files the crate contains (integrations/
crates linked as URLs, in llms.txt too).

tests/skill_test.rs now: checks paths against what the crate publishes and
every #anchor; requires every line of the skill's rust recipes to appear in
the test file, where they compile (verified: editing a recipe only in the
skill fails); runs the verifier recipe; compiles the API names the skill
mentions only in prose. Builds without default features too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7iq5hpndSiHQcnAsywKuG
@yuanhao
yuanhao merged commit bb325f6 into main Oct 12, 2026
17 checks passed
@yuanhao
yuanhao deleted the docs/yoagent-skill branch October 12, 2026 21:41
@yuanhao yuanhao mentioned this pull request Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant