Skip to content

Separate agent goal from human instructions#97

Draft
pkosiec wants to merge 4 commits into
pkosiec/agent-skills-unificationfrom
pkosiec/agent-skills-unification-2
Draft

Separate agent goal from human instructions#97
pkosiec wants to merge 4 commits into
pkosiec/agent-skills-unificationfrom
pkosiec/agent-skills-unification-2

Conversation

@pkosiec
Copy link
Copy Markdown
Member

@pkosiec pkosiec commented May 18, 2026

Summary

Agent prompts now receive only outcome descriptions (goal.md), while human-facing pages keep full step-by-step instructions (content.md). This eliminates contradictions between recipe content and installed agent skills.

What changed

  • New goal.md file for all recipes (21), examples (6), and cookbooks (5) — describes WHAT to build
  • Agent prompt path sends only goal.md; skills handle implementation
  • Human pages unchanged — render goal + full instructions together
  • Cookbook agent mode sends cookbook goal + recipe goals as labeled components
  • Intent blocks and preamble updated to direct agents to use skills
  • Example prompts include goal + scaffold entry point (clone/init command), skip prerequisites

Co-authored-by: Isaac

pkosiec added 2 commits May 18, 2026 19:34
Agent prompts now receive only goal.md (outcome description) while
human pages keep the full step-by-step content. This eliminates
contradictions between recipe content and installed agent skills.

- Add goal.md to all 21 recipes, 6 examples, and 5 cookbooks
- Agent prompt builder uses goalOnly() — sends goal when present,
  falls back to full content for backward compat
- Cookbook composition gains mode parameter: "agent" (goals only)
  vs "human" (full inline content)
- Update intent blocks to direct agents to use skills for implementation
- Update preamble text to reference goals instead of step-by-step content
- Rename example content.md -> goal.md (already outcome-only)
- Rename cookbook intro.md -> goal.md
- Delete redundant rag-chat/deployment.md

Co-authored-by: Isaac
@pkosiec pkosiec force-pushed the pkosiec/agent-skills-unification-2 branch from 871a758 to 19d3586 Compare May 18, 2026 19:51
buildFullPrompt() now uses sections.goal when present, skipping
prerequisites/content/deployment. The agent gets the outcome
description + scaffold entry point; skills handle implementation.

Only rag-chat was affected (the sole example with prerequisites.md).
Renamed its prerequisites.md to content.md so the human page still
shows the Lakebase provisioning steps.

Co-authored-by: Isaac
@pkosiec pkosiec changed the title Separate agent goal from human instructions (goal.md split) Separate agent goal from human instructions May 18, 2026
- plugins/cookbooks.ts now reads goal.md (falls back to intro.md)
- use-cookbook-markdown.ts passes mode: "agent" for copy prompt
- All 5 cookbook pages import and render Goal component
- Strip headings from cookbook goal.md files
- Remove unused joinGoalAndContent()
- Update stale REQUIRED_CONTENT_SECTION_FILE comment

Co-authored-by: Isaac
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