Repository navigation
Agent guide: create-projection in sections, fields and strictness for every format, renderer capabilities first - #216
Open
agorischek wants to merge 2 commits into
Open
agorischek wants to merge 2 commits into
agorischek wants to merge 2 commits into
Conversation
… name; every format's fields and strictness; renderer capabilities first Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Field merging discards kind-specific requiredness, causing the generated guide to incorrectly describe fields such as renderer and database type as required across kinds.
1 open issue
What changed in this PR
This PR makes Projections’ agent authoring guide easier to navigate while keeping the full guide available, and adds schema-derived format guidance.
Changes:
- Splits long agent prompts into an overview and selectable sections, with
--allfor the complete prompt. - Generates field-type, requiredness, and closed-object notes for built-in schemas and vocabularies.
- Moves renderer capability guidance ahead of build commands and adds focused unit tests.
| File | Description |
|---|---|
packages/cli/templates/SKILL.md |
Adds strictness guidance and moves capability declarations earlier. |
packages/cli/src/skill/formats.rs |
Generates schema-derived format notes and tests them. |
packages/cli/src/skill.rs |
Includes format notes in the authoring guide. |
packages/cli/src/main.rs |
Adds section selection and the --all help option. |
packages/cli/src/docs.rs |
Implements prompt splitting, section lookup, summaries, and tests. |
docs/reference/cli.md |
Documents the new --all option. |
docs/agents/create-projection.md |
Updates the generated guide with format notes and capability guidance. |
Review effort: Balanced
…uire it Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
6adf245e5a4a0bfc15432dfd718358f09c8ce226#linkor heading, several at once;--allprints it whole; an unknown section lists them all; short prompts and ci (one section) print whole; renderer capabilities come before the build commands.↑ Format notes are generated from the JSON schemas and tested to name api/v0's closed
contractand its requireddeclaration,termandvisibility; every schema and vocabulary has a note; a conditionally required field names the kinds that require it (databasetypeoncolumn).↓ Whether agents follow the overview's instruction to read sections hasn't been observed.
Items 11 and 12 of a downstream user's (Superego) feedback, as decided for v0.3.1.
Item 11:
projections help agents create-projectionin topics. It printed 48 KB (56 KB generated now).projections help agents create-projection extractor custom-rendererprints those sections; a name may also be a#linkor the heading.--allprints the whole guide.The overview tells the agent to read each section before the step that needs it, and every section its task reaches before building. A prompt splits only when it's over 16 KiB with at least four
###sections; today only create-projection does. The generated docs page andprojections help authoring(the skill) stay whole.Renderer capabilities near the top. The Custom renderer section now opens, after its introduction, with Declare what it does first:
rendererConfig'scomparisonModes(diff first) andcapabilities, including when to declaredrawsRelationships: false. Before, these were buried in the rules lists further down.Item 12: fields and strictness for every built-in format. Each schema in the guide's list, and each vocabulary, gets a note generated from its JSON schema in
packages/schemas, so it can't drift: thedatafields the engine checks, on entities and on relationships, with their types, which are required, and which objects are closed. Each note links its schema reference. For example, api/v0:A sentence before the list says an unknown field on an entity or relationship is an error, and that extensions go in
data.Tests:
cargo test -p projections-cli --lib docs:: skill::,cargo test -p projections-cli --test authoring.